Archive for 09 Sep 2011

PWM (Part 3)

Part 1, 2, 3, 4 We previously used OCR2A register for storing the upper counting limit for the base frequency of the generated wave. OCR2B is the second register related to timer 2, which is compared to TCNT2 for triggering specific events. In our case, we will not trigger the OC2B because it is physically one pin (PIND3 actually). […]