I haven't worked through your code in detail, but the HWPWM is 10 bits wide so 50% dutycycle would be 512. I also don't see a lot of configuration code, but I'm not familiar with PBP3. PBP 2.6 doesn't have a HWPWM command.
I haven't worked through your code in detail, but the HWPWM is 10 bits wide so 50% dutycycle would be 512. I also don't see a lot of configuration code, but I'm not familiar with PBP3. PBP 2.6 doesn't have a HWPWM command.
Did you verify the minimum available PWM freq in your manual ???
just an idea ...
Alain
Last edited by Acetronics2; - 11th April 2013 at 14:11.
************************************************** ***********************
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 " !!!
*****************************************
I agree I thought lowest frequency would have to be higher, but when set at 200hz with 8mhz pic scope shows output at 200hz but changing the duty variable does not change the duty :?
Bookmarks