> -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of Peter Johansson > Sent: 10 October 2011 19:33 > To: Microcontroller discussion list - Public. > Subject: Re: [EE] Simple Class D audio amp from uC? >=20 > On Mon, Oct 10, 2011 at 3:55 AM, wrote: >=20 > > 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 > the details are in the files, including a PC app for mangling WAV files > into data that could stored in the micro. >=20 > 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. >=20 > I did some more math last night and realized that things are going to > be much tighter than I first thought... >=20 > 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. You don't actually need to use an inductor at that rate unless the highest quality audio is a priority. The speaker itself is an inductor, and a typical small low quality speaker will roll off well before 20kHz anyway. Mike =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .