PWM pulse in DSPIC at 200kHZ frequency and 50% duty

General discussion on mikroC PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
peterkj93
Posts: 3
Joined: 03 Oct 2019 09:33

PWM pulse in DSPIC at 200kHZ frequency and 50% duty

#1 Post by peterkj93 » 15 Oct 2019 10:39

I am using DSPIC33FJ32MC202 IC. I need to create 2 switching pulses having a switching frequency of 200kHz and a duty of 50%. What formula should I follow to calculate the inputs for different frequency and duty?

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: PWM pulse in DSPIC at 200kHZ frequency and 50% duty

#2 Post by stefan.filipovic » 16 Oct 2019 14:53

Hi,

You can find the formula for calculating PWM Frequency in the family reference manual.

Kind regards,
Stefan Filipović

Post Reply

Return to “mikroC PRO for dsPIC30/33 and PIC24 General”