Specifications

CY8CKIT-042 PSoC 4 Pioneer Kit Guide, Doc. # 001-86371 Rev. *D 49
Code Examples
5.2 Project: PWM
5.2.1 Project Description
This code example demonstrates the use of the PWM component. The project uses three PWM out-
puts to set the color of RGB LED on the Pioneer Kit. The LED cycles through seven colors – violet >
indigo > blue > green > yellow > orange > red (VIBGYOR). Each color is maintained for a duration of
one second. The different colors are achieved by changing the pulse width of the PWMs.
Figure 5-11. PSoC Creator Schematic Design of PWM Project
5.2.2 Hardware Connections
No specific hardware connections are required for this project because all connections are hard-
wired on the board. Open PWM.cydwr in the Workspace Explorer and select the suitable pins.
Table 5-2. Pin Connections
Pin Name Port Name
PWM1 P1_6 (Red)
PWM2 P0_2 (Green)
PWM3 P0_3 (Blue)