PIC 16F1613 progam not working
I am new to PICS. I am using MPLAB with a PICKT 3 programmer. I have wrote a simple program to blink a LED, it complies OK and appears to successfully load to my PIC. The LED comes on but does to blink. It appears to me that the program is not stepping through. I would appreciate some help please. This is my code while(1)
LATAbits.LATA4=1;
_delay(1000000);
LATAbits.LATA4=0;
_delay(1000000);
Re: PIC 16F1613 progam not working
Did you see here it is PicBasic pro forum ??? :rolleyes:
I bet you didn't ...
Looks to be written with XC8, the C compiler from Microchip ... :D
Am I right ?
One sure thing: LOTS are missing ...
Alain
Re: PIC 16F1613 progam not working
maybe you mean
while(1){
LATAbits.LATA4=1;
_delay(1000000);
LATAbits.LATA4=0;
_delay(1000000);
}
while(1)
LATAbits.LATA4=1;
_delay(1000000);
LATAbits.LATA4=0;
_delay(1000000);
would not compile
and
while(1);
LATAbits.LATA4=1;
_delay(1000000);
LATAbits.LATA4=0;
_delay(1000000);
would stop pgm in its tracks at the while