You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
piklab/test/pic30/test_c.c

23 lines
312 B

#include <p30f3010.h>
_FOSC(XT_PLL16 & FRC & CSW_FSCM_OFF);
_FWDT(WDTPSB_16 & WDTPSA_512 & WDT_OFF);
_FBORPOR(PWRT_64 & BORV_20 & PBOR_ON & MCLR_EN);
//_FGS(CODE_PROT_ON);
void delay(void);
int main (void)
{
int i = 0xFFFF;
for (;;) {
delay();
}
}
void delay()
{
int i;
for (i = 0; i < 0xFFFF; i++) {;}
}