Reply To: LED blinking problem
06/07/2018 at 13:51 #3202
Try to make these few coinages and see if will make a difference:
- In Proba.h, switch OFF the LVP: Change #pragma config LVP = OFF
- In Prob.c change int main(void) to void main(void)
- Remove the loop in the delay function, I used the loop in the past because the old XC8 compiler did not accept high delay values, but this limitation has been resolved in new compilers. Write: __delay_ms(1000);
- Do you experience the same problem even if you connect your LED to a different pin or PORT?