Showing posts with label isr. Show all posts
Showing posts with label isr. Show all posts

Sunday, August 24, 2014

Arduino Basic Tutorial (timer interrupt) #3

Atmega328p's got three timers two 8 bit and one 16 bit . This means the timer value can get upto 255 and 65535 for 8 bit and 16 bit timer respectively. We can use this for the generation of the interrupt or many other time related jobs. ..
Here we are using this to toggle the led of arduino.
Since this is basic tutorial we are only using the library file for the timer interrupt which is available at http://playground.arduino.cc/code/timer1