Thank you Mark T, and Noob,
I have no problem manipulating PWM on the ATmega on the mega2560. All of those recommended docks deal with the AVR series processors. I need the same sort of info for the sam3 on the arduino DUE. The thing that I am after is the sam3 on the DUE runs at a faster speed than the AVR on the mega2560. The mega2560 has no problem doing as i ask, he just cant execute enough instruction per second. The sam3 on the DUE seems to execute ten fold or so. The at mega2560 will run my 3 phase motor playing 60 or so samples of sine at 19 Hz to the motor in my truck. This was good enough for proof of concept but i need to have a faster processor to run at 60 or 80 Hz to achieve a reasonable top speed also I would like to play 180 samples of sine. The DUE has no problem doing this. I need to have pwm running at at least 4000 Hz for 60 samples 60 samples of sine times 60 times a second is 3600 slices of time. 4000 allows for some overhead.
To play the 180 samples i need three times the pwm freq. 12000 Hz.