PSoC 6 MCU Ramping LED using Smart I/O
Document No. 002-25568 Rev.*A
3
Figure 1. LUT Configuration and Timing Diagram
Q
Q
SET
CLR
D
99 Hz
LUT2
Q
Q
SET
CLR
D
LUT3
LUT4
chip 4 (TCPWM line)
I/O 4 (LED)
99 Hz
LUT2
output
LUT3
Output
(99/4 Hz)
LUT4
output
chip 4
PWM
output
D0
D1
Q0
Q1
Resources and Settings
lists the ModusToolbox resources used in this example, and how they are used in the design. For pin usage and
configuration, open the Pins tab of the
design.modus
file.
Table 2. ModusToolbox Resources
Resource
Alias
Purpose
Timer Counter PWM (TCPWM)
PWM
Generates 25 Hz, 50% duty cycle square wave
Smart I/O
SmartIO
Implements divide-by-4 sequential circuit
Digital Output Pin
Pin_LED
Provides visual feedback using the LED