AT32F421
Series Reference Manual
2022.11.11
Page 269
Rev 2.02
Figure 14-116 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.
-
PTOS=3’b110, TRGOUT outputs C3ORAW signal.
-
PTOS=3’b111, TRGOUT outputs C4ORAW signal.
CxORAW clear
When the CxOSEN bit is set, the CxORAW signal for a given channel is cleared by applying a high level
to the EXT input. The CxORAW signal remains unchanged until the next overflow event.
This function can only be used in output capture or PWM modes, and does not work in forced mode.
Figure 14-
117
shows the example of clearing CxORAW. When the EXT input is high, the CxORAW
signal, which was originally high, is driven low; when the EXT is low, the CxORAW signal outputs the
corresponding level according to the comparison result between the counter value and CxDT value.
Figure 14-117 Clearing CxORAW(PWM mode A) by EXT input
0
1
2
3
4
5
6
7
8
9
A
B
C
D
0
1
2
3
COUNTER
CxOSEN
7
CxDT
EXT
CxORAW
Dead-time insertion
The channel 1 to 3 of the advanced 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-17 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.