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
PWM with dsPIC
Moderator: Benj
-
- Posts: 33
- Joined: Tue May 21, 2013 4:21 pm
- Been thanked: 1 time
- Contact:
PWM with dsPIC
- Attachments
-
- Flowcode6 - dsPIC PWM65535.fcfx
- Period 0-65535
- (6.57 KiB) Downloaded 378 times
-
- Flowcode6 - dsPIC PWM255.fcfx
- Period 0-255
- (6.56 KiB) Downloaded 373 times