On Wed, 17 Oct 2001 12:24:00 -0400, Philip Galanter wrote: >I think this is the case, but just to be clear... > >To play sampled sound using the PWM technique, you just do a simple >linear mapping of the waveshape amplitudes (the samples) into the >range 0-255 for the pulse width. > >Right? As long as your integrating capacitor is fed by a constant current source and you use the PWM output only to discharge the cap and not source current into it, but rather, let the constant current source charge it. Should be nice and linear that way. There may be simpler ways to do this though... Dan > >thanks, Philip > >-- >http://www.piclist.com#nomail Going offline? Don't AutoReply us! >email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body