8-bit Triple Compare PWM for LED Control

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.
Anonymous
Not applicable
        8-bit Pulse-width Modulator with 3 programmable compares implemented in less than a single UDB. The period is programmable as well. An example project shows the use of the Component to cycle through the color wheel on the RGB LED of the Pioneer board. Have fun! Antonio   
5 Replies
Anonymous
Not applicable

 Thanks, shall download and check:. 🙂

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

 Updated Component:
Fixed bug with macros (added parentheses), changed datasheet name so that it can be accessed from the Component.

   

Enjoy.

   

Antonio

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Further updates based on feedback:
Improved Datasheet

   

Renamed Component

   

Added Write_RGB(uint32 color) API

   

Added Component Macro for ease of use with RGB LEDs

   

Removed unused Component Parameters

0 Likes
Anonymous
Not applicable

Anton I was trying to use your component in PSOC4 and it compiles but does not work. Can you tell me the procedure to use it in PSOC4.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum, vicky.

   

The example was designed for a PSoC4. Which board are you using for the project? CY8CKIT-0??

   

 

   

Bob

0 Likes