Contents
1 Introduction .................................................................. 1
1.1 Features .............................................................. 1
1.2 Block Diagram ..................................................... 2
2 Operation Overview ..................................................... 3
2.1 Configuring Counter in TCPWM .......................... 3
2.2 Selecting Clock for Counter ................................ 3
3 TCPWM Operation Examples...................................... 5
3.1 Timer Mode ......................................................... 5
3.2 Capture Mode ..................................................... 7
3.3 PWM Mode ......................................................... 9
3.4 PWM Dead Time (PWM_DT) Mode .................. 11
3.5 Relation of Trigger Multiplexer .......................... 13
4 Glossary .................................................................... 14
5 Related Documents ................................................... 15
Document History............................................................ 16
Worldwide Sales and Design Support ............................. 17
1 Introduction
This application note describes how to use TCPWM in Cypress Traveo II family MCUs.
The CYT2 series has one Arm® Cortex®-M4F-based CPU (CM4) and one Cortex-M0+-based CPU (CM0+). The CYT4
series has two Arm Cortex-M7-based CPUs (CM7) and one CM0+, and The CYT3 series has one Arm CM7 and one
CM0+.
TCPWM is a multifunctional counter component, which supports several functional modes.
TCPWM counter width is 16-bit or 32-bit. In addition, 16-bit counters support special functions optimized for Motor
Control.
See the device datasheet for the number of TCPWM channels available for each device.
This application note explains the functioning of TCPWM in the series, initial configuration, and several functional modes
with use cases.
To understand the functionality described and terminology used in this application note, see the “Timer, Counter, and
PWM” chapter of the Architecture Technical Reference Manual (TRM).
1.1 Features
Table 1 shows the TCPWM function modes.
Table 1. TCPWM Function Modes