PWM with dsPIC

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
Dave @Harper Adams
Posts: 33
Joined: Tue May 21, 2013 4:21 pm
Been thanked: 1 time
Contact:

PWM with dsPIC

Post 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
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

Post Reply