Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

AVR timers do more than count time

Probably Timer/Counters are one of the most complex peripherals in microcontrollers, but as fact, they are most common and no matter what complexity program is. Designers of timers have put a lot of thought in them making them very flexible, versatile for all timing dependent tasks like measuring periods, generating PWM signals, generating output signals and timed interrupts. Timers run independently from AVR core. Once set, they do their silent job while AVR can do other tasks or go to sleep. AVR can read timer values, or change operation modes whenever it needs or only can be interrupted with several available interrupts. If you see an application where the frequency is measured, music is generated or motor is driven – there is timer involved. Continue reading