> -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of lee@baudalign.com > Sent: 17 August 2009 05:09 > To: piclist@mit.edu > Subject: [PIC] Adding PWM figures; stereo to mono? > > G'day all, long-time lurker trying to get back into the basics of PICs... > > A question on whether theory would translate into practice; I'm looking at > a project that has stereo sound output via two PWM channels with RC > filters on the end. Now, I'm only going to be driving a single speaker, > but want to keep the two sound streams and merge them. > I've physically tested combining the analogue out of the two RC filters, > and also combining the "digital" outputs of the two PWMs before going into > ONE RC filter; my theory now is, can I get the numbers that are driving > the two PWMs and simply add them together, to drive one PWM, and still > result in the same sound? To my mind in theory it should work, as this is > essentially what is happening when you physically connect the two PWM > outputs together, or am I missing something? Add the PWM values and divide by two to maintain the same number of bits. Job done. Regards Mike ======================================================================= 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. ======================================================================= -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist