How to set 0-100%duty for PWM of PSoC4S

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
YoIs_1298666
Level 5
Level 5
250 sign-ins 100 replies posted 100 sign-ins

Hello,

I prepared how to set 0-100%duty for PWM of PSoC4S.

The default values of PWM are as follows.

    Period:0x9c40(40000)

    Compare:0x7d0(2000)

You can change the compare value from "Bridge Control Panel" using "pwmduty.iic" script.

Best regards,

Yocchi

0 Likes
1 Reply
Aashita_R
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi YoIs_1298666​,

Thank you very much for sharing this code example.

Best Regards,

Aashita

0 Likes