Hi friends,
I am a newbei to PIC18F1220. I have use MicroC to code for PIC18F1220. I have imported this simple code into the PIC18F1220. However, the delay_ms function does not work, my LED is not turned off.
Could you please give me any suggestions to fix this problem?
Thanx alot!
Quang Tien
I am a newbei to PIC18F1220. I have use MicroC to code for PIC18F1220. I have imported this simple code into the PIC18F1220. However, the delay_ms function does not work, my LED is not turned off.
Rich (BB code):
//my blinking LED code is posted here//
void main() {
PORTA = 0;
TRISA = 0; // PORTA is output
do {
PORTA = 1; // Bitwise negation of pins on PORTA
Delay_ms(1000); // 1 second delay
PORTA = 0;
Delay_ms(1000);
} while(1); // endless loop
}//~!
Thanx alot!
Quang Tien
Last edited by a moderator: