This forum has a minimum of 4 characters for its searches. But you can get around that with a google search of the site: http://www.picbasic.co.uk/forum/cont...-for-the-Forum
When you say 2 discrete PWM frequencies, do you really mean sinewave, or just 2 discrete PWM periods? I see page 229 of the datasheet lets you select timer 2,4 or 6 for each of the CCPx pins. Bruce has a DSM example which includes single PWM here: http://www.picbasic.co.uk/forum/show...4268#post84268 using timer2 and PR2. You could use some of the basic PWM code from his example (he's got it mixing pins and such), and set up another with timer4 and PR4.
Last edited by ScaleRobotics; - 22nd October 2010 at 16:55.
http://www.scalerobotics.com
Bookmarks