PWM with dsPIC
Posted: Wed Jul 20, 2016 4:04 pm
Hi
I'm trying to produce a variable frequency PWM on a dsPIC development board.
It works all right if the duty and period are variables in the range 0-255, but if the period is a variable in the range 0-65535 then it appears to automatically reset in the 0-255 range.
If The period is set to a fixed value in the range 0-65535 then it's okay.
Regards Dave
I'm trying to produce a variable frequency PWM on a dsPIC development board.
It works all right if the duty and period are variables in the range 0-255, but if the period is a variable in the range 0-65535 then it appears to automatically reset in the 0-255 range.
If The period is set to a fixed value in the range 0-65535 then it's okay.
Regards Dave