ATmega Timer Sync’ing

I’m tempted to make some bad “Hammer Time” and “‘NSYNC” mashup here, but i’ll save you the agony. Instead, i will replace it with something that will hopefully help relieve frustration for some of you in the future. Another PWM/Timer tutorial! This one is dedicated to syncrhonizing multiple timers using the GTCCR register. This is useful for making Triple PWMs, combining interrupt processing for multiple timers, keeping capacitive sensing lines from interfering with each other, or generating complicated waveforms like NTSC. It’s a bit of an advanced topic, but the work has been done, so why not publish it?

Posted in updates | 1 Comment

Pulse What!?! Modulation (PWM)

PWM Signal Components

Pulse Width Modulation (PWM) is a very easy, and often used method to get audio out of your microcontroller. But, there is a lot more going on under the hood besides for just writing values to your timer. We just finished a complete dissection of how PWM works, and what you can do to get the best possible audio from your PWM output. We also put up an Arduino sketch that helps you quickly navigate the possible options, and pick the settings that are best for your application. So follow the links below to learn more!

Dual PWMs
Distortion Analysis
Arduino Tutorial

Posted in updates | 2 Comments