Instead of discussing all the registers at once, we will be discussing them as and when necessary. Since timer is a peripheral, it can be activated by setting some bits in some registers. In this tutorial, we will learn to use TIMER0. I have assumed that you have understood the concepts discussed above. So, I will move towards its implementation directly. And then, to finish off, we learnt about interrupts.We have also discussed how to choose an appropriate value of a prescaler.We have seen how prescalers are used to trade duration with resolution.Of these, TIMER1 is a 16-bit timer whereas others are 8-bit timers. In AVR, there are three types of timers – TIMER0, TIMER1 and TIMER2.Thus, the terms timer/counter are used interchangeably. We have seen how timers are made up of registers, whose value automatically increases/decreases. In the previous post, we have discussed the basic concepts of AVR Timers. Hello friends! Welcome back to the second part of the AVR Timers Series.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |