25.3.3.3 Output
Timer synchronization and output logic level depend on the selected Waveform Generation Mode (WGMODE) bit field in Control B (TCFn.CTRLB) register.
Writing the Waveform Output Enable (WOnEN) bit in Control C (TCFn.CTRLC)
register to '1
' enables the waveform output, making the waveform output
available on the corresponding pin, overriding the value in the corresponding PORT and
DIR registers.
The table below lists the different configurations and their impact on the output.
WOnEN | WGMODE | Waveform Output |
---|---|---|
1 | 8-bit PWM mode | Output follows PWM waveform |
Frequency or NCO modes | Output follows Frequency waveform | |
0 | Not applicable | No output |
Important: It is not possible to change modes while the
peripheral is enabled. There is a possibility that an interrupt flag is set during the
timer configuration. It is recommended to clear the Timer/Counter Interrupt Flags
(TCFn.INTFLAGS) register after configuring the peripheral.
The waveform outputs to the Event System and CCL are bypassing the output enable. The figure below shows the waveform output logic for the TCF.