void main() {
output_low(pin_a0);
delay_ms(1000); //pause 1 sec
output_high(pin_a0); //blink red led
delay_ms(5000); //pause 5 sec
output_low(pin_a0); //turn of led
}
Instruction delay never work! and cause a program malfunction (i think an infinite delay), but when I adjust use delay precompiler instruction to #use delay (clock=4000000) 4MHZ program works but delay time has not a good precision (delay_ms(1000) takes approx. 300ms).
What happens? Im sure my hardware is ok. I have 3.203 version,
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum