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

cross mob
YashBhatnagar
Level 1
Level 1
First like received 5 sign-ins First question asked

Hi, I want to create a basic project for CY8CKIT-041S-MAX PSOC 4100S MAX PIONEER BOARD of changing the LED intensity using PWM to give it a breathing effect. I want to use the PDL library for this instead of HAL library. Can someone share a basic project that does this. I am very new to this board and ModusToolbox.

1 Solution
Ekta
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hi @YashBhatnagar 

We currently do not have a breathing LED project for PSoC 4100S Max device. But there is one that exists for PSoC 6. You can find it here: https://github.com/Infineon/mtb-example-smartio-ramping-led/tree/master

The example uses PDL for PSoC 6.
At your end, you would need to replace these PDL functions in the main with the ones available for PSoC 4.
PSoC 4 PDL API reference guide can be used for going through the PDL functions: https://infineon.github.io/mtb-pdl-cat2/pdl_api_reference_manual/html/index.html

You can go through the design and implementation section of the readme to understand how PWM along with Smart IO's are utilized to get a breathing LED.

Since you need to use PDL, you would also need to configure these resources in your design configurator.

I hope these pointers will help you to create your breathing LED project.

Best Regards
Ekta

View solution in original post

2 Replies
NXTY_Tatebayasi
Level 5
Level 5
Distributor - NEXTY (Japan)
50 questions asked 25 likes received 250 sign-ins

Hi, @YashBhatnagar -san,

 

I recommend "TCPWM_square_wave" project.
You can find it within the BSP or GitHub.
https://github.com/Infineon/mtb-example-psoc4-tcpwm-square-wave/tree/master

 

Actually, I try to porting TCPWM Project  form PSoC Creator to Modus tool box now.
I also seeking useful sample codes to learn how to implement TCPWM on the Modus tool box.

I hope this helps you.

Best Regards, 
Chihiro Tatebayashi / NEEXTY

Ekta
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hi @YashBhatnagar 

We currently do not have a breathing LED project for PSoC 4100S Max device. But there is one that exists for PSoC 6. You can find it here: https://github.com/Infineon/mtb-example-smartio-ramping-led/tree/master

The example uses PDL for PSoC 6.
At your end, you would need to replace these PDL functions in the main with the ones available for PSoC 4.
PSoC 4 PDL API reference guide can be used for going through the PDL functions: https://infineon.github.io/mtb-pdl-cat2/pdl_api_reference_manual/html/index.html

You can go through the design and implementation section of the readme to understand how PWM along with Smart IO's are utilized to get a breathing LED.

Since you need to use PDL, you would also need to configure these resources in your design configurator.

I hope these pointers will help you to create your breathing LED project.

Best Regards
Ekta