Another idea, even if not the best, having a 2XHPWM frequency, fed the HPWM output on a INT pin, enable the interrupt, and play with the duty in the Interupt handler... in my head it's working but i know i miss something in it....
OR create your own with a Timer interrupt.. but geez, a little bit more tricky if you really need it 100% stable.
Or, a double I2C DAC could be intereting... something like MAX518 if you can deal with a 8 bit resolution. They're not too cheap but great and simple to use.
There's still the Digital pot way, or, or ,or... man it's incredible how many ways you can do it
)
What is the purpose of those PWMs?
EDIT: Darrel already done a SSPWM solution bellow but the frequency range is probably out of what you need
http://www.pbpgroup.com/modules/wfse...p?articleid=12
Last edited by mister_e; - 29th June 2006 at 23:15.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks