AT32F421
Series Reference Manual
2022.11.11
Page 223
Rev 2.02
Figure 14-68 One-pulse mode
0
1
2
3
4
5
6
...
40
41
42
43
44
...
5F
60
61
0
COUNTER
61
PR[15
:
0]
42
C1DT[15
:
0]
TRGIN
C1ORAW
C1OUT
Master timer event output
When TMR is selected as the master timer, the following signal sources can be selected as TRGOUT
signal to output to the salve timer, by setting the PTOS bit in the TMRxCTRL2 register.
–
PTOS=3’b000, TRGOUT outputs software overflow event (OVFSWTR bit in the TMRx_SWEVT
register).
–
PTOS=3’b001, TRGOUT outputs counter enable signal.
–
PTOS=3’b010, TRGOUT outputs counter overflow event.
–
PTOS=3’b011, TRGOUT outputs capture and compare event.
–
PTOS=3’b100, TRGOUT outputs C1ORAW signal.
–
PTOS=3’b101, TRGOUT outputs C2ORAW signal.
Dead-time insertion
The channel 1 of the TMR15 timer contains a set of reverse channel output. This function is enabled by
the CxCEN bit and its polarity is defined by CxCP. Refer to Table 14-11 for more information about the
output state of CxOUT and CxCOUT.
The dead-time is activated when switching to IDLEF state (OEN falling down to 0).
Setting both CxEN and CxCEN bits, and using DTC[7:0] bit to insert dead-time of different durations.
After the dead-time insertion, the rising edge of the CxOUT is delayed compared to the rising edge of
the reference signal; the rising edge of the CxCOU is delayed compared to the falling edge of the
reference signal.
If the delay is greater than the width of the active output, and if C1OUT and C1COUT do not generate
corresponding pulses, the dead-time should be less than the width of the active output.
Figure 14-69
gives an example of dead-time insertion when CxP=0, CxCP=0, OEN=1, CxEN=1 and
CxCEN=1.