S i M 3 U 1 x x
44
Preliminary Rev. 0.8
4.5. Counters/Timers and PWM
4.5.1. Programmable Counter Array (EPCA0, PCA0, PCA1)
The SiM3U1xx devices include two types of PCA module: Enhanced and Standard.
The Enhanced Programmable Counter Array (EPCA0) and Standard Programmable Counter Array (PCA0, PCA1)
modules are timer/counter systems allowing for complex timing or waveform generation. Multiple modules run from
the same main counter, allowing for synchronous output waveforms.
The Enhanced PCA module is multi-purpose, but is optimized for motor control applications. The EPCA module
includes the following features:
Three sets of channel pairs (six channels total) capable of generating complementary waveforms.
Center- and edge-aligned waveform generation.
Programmable dead times that ensure channel pairs are never both active at the same time.
Programmable clock divisor and multiple options for clock source selection.
Waveform update scheduling.
Option to function while the core is inactive.
Multiple synchronization triggers and outputs.
Pulse-Width Modulation (PWM) waveform generation.
High-speed square wave generation.
Input capture mode.
DMA capability for both input capture and waveform generation.
PWM generation halt input.
The Standard PCA module (PCA) includes the following features:
Two independent channels.
Center- and edge-aligned waveform generation.
Programmable clock divisor and multiple options for clock source selection.
Pulse-Width Modulation waveform generation.
4.5.2. 32-bit Timer (TIMER0, TIMER1)
Each timer module is independent, and includes the following features:
Operation as a single 32-bit or two independent 16-bit timers.
Clocking options include the APB clock, the APB clock scaled using an 8-bit prescaler, the external
oscillator, or falling edges on an external input pin (synchronized to the APB clock).
Auto-reload functionality in both 32-bit and 16-bit modes.
Up/Down count capability, controlled by an external input pin.
Rising and falling edge capture modes.
Low or high pulse capture modes.
Duty cycle capture mode.
Square wave output mode, which is capable of toggling an external pin at a given rate with 50% duty cycle.
32- or 16-bit pulse-width modulation mode.