On Mon, Oct 10, 2011 at 3:55 AM, wrote: > You may want to look at Olins development environment for PICs. He did a = project called HAL that does something similar to what you want, and all th= e details are in the files, including a PC app for mangling WAV files into = data that could stored in the micro. I was just planning to use the SOX audio library to convert whatever input I want into raw 8-bit LPCM audio samples at my desired sample rate. I did some more math last night and realized that things are going to be much tighter than I first thought... As I mentioned, I will be running MCLK at 16 MHz, and driving TIMER_A at this frequency as well as the MSP430 does not include a clock multiplier. 8-bit audio will provide a 62.5 kHz PWM frequency. A little lower than I was initially thinking in terms of inductor selection, but as I am not concerned with audio frequencies above 5 kHz this should be acceptable for my needs. The next selection is audio sample rate. It looks like there are three choices here, based on whether I let each audio sample run for 2, 3 or 4 PWM cycles: 2 PWM cycles =3D 31,250 Hz sample rate 3 PWM cycles =3D 20,833.33 Hz sample rate 4 PWM cycles =3D 15,625 Hz sample rate If I go with a 31,250 Hz sample rate, at only gives me 512 clocks to fetch a sample from SD-flash and update CCR1. That's not a lot on an MCU that requires 4-6 cycles per instruction! And now I realize why Bob was interested to know when I get it working. ;-= ) -p. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .