I'll keep that in mind. Thx. Jan-Erik Soderholm wrote: > Shawn Wilton wrote : > > >>>First you must have a method to put the PWM output >>>on/off. The AP note uses the TRIS bit of RB4 for this. >>>Probably OK. >> >>You think the tristate should be flipped eh? Why not just >>use the duty cycle as a switch? You have a preference I take it? > > > No particular preference, I'd just use what's easiest. > If you'd use the duty cycle, you have to "remember" what it was set > to until it's time to start the PWM again. The TRIS bit are just a > single bcf/bsf instruction. Faster and less code. > > >>> >>>>If that's the case, then how would you go about doing that? >>>>Would this require a second timer that runs at some "baud rate" >>>>that pulls data from a register and sends it out the pwm? >>> >>> >>>You don't have to tie up a hole counter for this, just >>>another software counter. >> >>A counter is a counter though. > > > Sorry, I should have written "tie up a hole timer"... > I read "a second timer" in your text as a "hardware timer", > which isn't needed, as I wrote. > > Best Regards, > Jan-Erik. > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads