mansiz
Newbie level 3
Hi all!!
I tried to blink a led and I can't as expected. I use CCS C. The hex file is working with ISIS properly. The code and the circuit are attached below. Can anybody tell me the mistakes??
Thanks in advance...
I tried to blink a led and I can't as expected. I use CCS C. The hex file is working with ISIS properly. The code and the circuit are attached below. Can anybody tell me the mistakes??
Thanks in advance...
Code:
#include <16F877A.H>
#use delay (clock = 20000000)
void main(void) {
while (1) {
output_high(PIN_A0);
delay_ms(1000); // Delay 1s
output_low(PIN_A0);
delay_ms(1000); // Delay 1s
}
}