45.2 Features
The following are key features of the TCC module:
- Up to six Compare/Capture Channels (CC)
with:
- Double buffered period setting
- Double buffered compare or capture channel
- Circular buffer on period and compare channel registers
- Waveform Generation:
- Frequency generation
- Single-slope pulse-width modulation (PWM)
- Dual-slope PWM with half-cycle reload capability
- Input Capture:
- Event capture
- Frequency capture
- Pulse-width capture
- Waveform Extensions:
- Configurable distribution of compare channels outputs across port pins
- Low-side and high-side output with programmable dead-time insertion
- Waveform swap option with double buffer support
- Pattern generation with double buffer support
- Dithering support
- Fault Protection for Safe Disabling of
Drivers:
- Two recoverable fault sources
- Two non-recoverable fault sources
- Debugger can be a source of non-recoverable fault
- Input Events:
- Two input events (EVx) for counter
- One input event (MCx) for each channel
- Output Events:
- Three output events (Count, re-trigger and overflow) are available for counter
- One compare match/input capture event output for each channel
- Interrupts:
- Overflow and re-trigger interrupt
- Compare match/input capture interrupt
- Interrupt on fault detection
The following table lists the features for each TCC instance.
TCC# | Channels (CC_NUM) | Waveform Output (WO_NUM) | Counter size | Fault | Dithering | Output matrix | Dead Time Insertion (DTI) | SWAP | Pattern generation |
---|---|---|---|---|---|---|---|---|---|
0 | 6 | 8 | 24-bit | Yes | Yes | Yes | Yes | Yes | Yes |
1 | 4 | 8 | 24-bit | Yes | Yes | Yes | Yes | Yes | Yes |
2 | 3 | 3 | 16-bit | Yes | - | Yes | - | - | - |
3 | 2 | 2 | 16-bit | Yes | - | - | - | - | - |
4 | 2 | 2 | 16-bit | Yes | - | - | - | - | - |
Note: The number of CC registers (CC_NUM) for
each TCC corresponds to the number of compare/capture channels, so that a TCC can have more
Waveform Outputs (WO_NUM) than CC registers.