Sample code that outputs 8ch PWM using CY8CKIT-149

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.
KaKi_1384211
Level 6
Level 6
100 replies posted 50 replies posted 50 questions asked

Hi, 

This is a sample code that outputs 8ch PWM using CY8CKIT-149. The 8ch PWM outputs are connected as shown below. The blue wires should be wired.

KaKi_1384211_0-1646902425262.png

KaKi_1384211_1-1646902455995.png

You can use EZI2C to change the PWM duty from the Bridge Controll Panel of your PC. I attach the pwm_repeat.iic script file.

KaKi_1384211_2-1646902510151.png

Click once in the Editor screen and press Ctrl + A to select all. Then click Repeat and the Compare value will change every 500ms.

KaKi_1384211_3-1646902566101.png

Thanks and regards,

 

1 Reply
Takashi_M
Moderator
Moderator
Moderator
1000 replies posted 500 solutions authored 750 replies posted

Thank you very much for uploading your CE.

Really appreciate your contribution in IFX Developer Community!!

0 Likes