Generate frequency with ATmega8A and Timer/Counter2

There is one of the common requirements to generate a specific frequency which appears from time to time. This article will give you an idea how to generate two different frequencies using Clear Timer on Compare Match (CTC) mode of the Timer/Counter2 available in the ATmega8A microcontroller. The most important part here probably is to prove these frequencies to be generated correctly with help of the signals tracing obtained during a simulation with MCUSim and an oscillogram from the real hardware.

Last modified 17 months ago Last modified on Jan 11, 2019, 4:12:07 PM