Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

PIC10F322 LED blinking using timer and interrupt

$
0
0
Hi All,
This is my first time working on PIC chip, so I started by blinking an LED using timer and interrupt first. I wanted it to On for 1s and then Off for another 1s. I had tried coded the timer called for interrupt, and it work good. But the counting for time isn't correct. The counting was On for about 2s and then Off for another 2s, which is isn't correct. Is there something wrong with the calculation or is there a misunderstanding? The chip is 16MHZ, timer0 is 8 bits and no prescaler....

PIC10F322 LED blinking using timer and interrupt

Viewing all articles
Browse latest Browse all 4923

Trending Articles