Thanks, Jan-Erik. Changing the duty cycle will change the volume, I believe. I think I've got enough spare cycles to make a software solution work, but am hoping to be lazy and find an easy hardware solution. Don > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Jan-Erik Soderholm > Sent: Tuesday, May 18, 2004 9:37 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC:] Need 2nd Independent PWM for 18Fxxx > > > Don Rahmlow wrote : > > > I need 2 independent PWMs from the 18Fxxx, enabling control of both > > frequency and duty cycle. Purpose is to provide two > independent audio > > outputs where both volume and tone can be changed by the PIC. > > Hi. > Doesn't answer you question maybe, but... > You can control the tone ("pitch") of the signal using the > PWM module, yes, but how do you control the volume (without > using some external > parts) ? > > Now, trying to answer you question... :-) > If the frequencies are not to high, you could run a > software-PWM routine. > > Jan-Erik. > > -- > http://www.piclist.com hint: The PICList is archived three > different ways. See http://www.piclist.com/#archives for details. > > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.