![ARTERY AT32F435 Series Скачать руководство пользователя страница 313](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592313.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 313
Rev 2.03
Figure 14-83
Up/down counting mode and PWM mode A
0
1
2
3
...
31
32
31
30
...
3
2
1
0
1
2
3
...
COUNTER
31
32
31
30
30
PR[15:0]
C1ORAW
TMR_CLK
0
DIV[15:0]
32
110
C1OCTRL[2
:
0]
3
C1DT[15
:
0]
C1ORAW
0
0
CIDT[15
:
0]
1
C1ORAW
≥
32
C1DT[15
:
0]
Figure 14-84 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 slave 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 to 1, 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- 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.