Page 1 of 1

PWM with dsPIC

Posted: Wed Jul 20, 2016 4:04 pm
by Dave @Harper Adams
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