MSP430 audio sampling
< Previous Photo | Next Photo >
Back to gallery | See all galleries

Echo audio input
The watchdog timer is used as a timer with an alarm. When the alarm sounds (8000 times per second), the ADC is started. The ADC measurement isn't immediately available, we have to wait a few cycles for everything to be ready. We don't need to worry about this period, because the ADC on the MSP430 will trigger it's own alarm (interrupt), just like the WDT alarm that got the process started. When the ADC alarm sounds, the chip will execute a single line of code that moves the recorded value into the pulse-width modulator duty cycle register. As you might recall from last time, this is how we output sound on the MSP430.
Ian Lesnet
May 9th 2008 5:07AM
< Previous Photo | Next Photo >





