So, Consider
if You set HPWM @ 1000 Hz for a default 4Mhz Clock ...
HPWM will run @ 4000 Hz for Xtal @ 16 Mhz
.................. @ 5000 Hz for Xtal @ 20 Mhz
Just correct your HPWM frequencies like that ...
You also can have a look to Genuine examples that show how to use the PWM modules without using the HPWM command ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks