- This topic has 1 reply, 2 voices, and was last updated 9 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › Flash LED on and off every other second using TMR0. (Beginner coding question)
Hello,
I am learning how to use TMR0 on a pic16f690. I am trying to flash an led on and off every other second. I am using the microchip low pin count board, a pickit 2 to program and MPLAB X to code and build the program with the MPLAB X compiler. My code is below. When i run the code on the board, the led lights up after about 5 seconds and just stays on. No flashing or anything else. Could anyone please tell me what i am doing wrong.
Thank you for your help ahead of time!
first you go through our PIC tutorials given on
EG labs / micro controller / PIC
surely you will get idea whts going wrong in your application