![ARTERY AT32F435 Series Reference Manual Download Page 310](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592310.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 310
Rev 2.03
Figure 14-517 Example of PWM input mode configuration
C1P=0
C1CP=0
edge detector
C1IF
C1IN
C1IFP1(pos)
C2IFP1
STCI
C1C(2'b01)
C1IRAW
filter
C1DF
C1EN
Capture trigger
C1INC
IS3
IS2
IS1
EXT
C2IFP2
STIS(3'b101)
Trigger
mode
Hang
mode
Reset
mode
Encoder
mode
SMSEL(3'b110)
C2P=1
C2CP=0
edge detector
C2IN
C1IFP2(neg)
C2IFP2
STCI
C2EN
Capture trigger
C2C(2'b10)
Capture
Capture
CNT counter
C1DT
C2DT
reset
(CH1 period)
(CH1 high level time)
IS0
Figure 14-528
PW M input mode
A
0
1
2
3
4
5
6
7
8
9
A
0
1
2
COUNTER
C1C
CH1
0x1
reset counter and C1DT capture
C1P
0x0
C2C
0x2
C2P
0x1
STIS
0x5
SMSEL
0x6
0xA
0x4
C1DT
C2DT
0x0
C2DT capture
3
4
5
6
7
8
9
A
0
1
2
14.4.3.4 TMR output function
The TMR output consists of a comparator and an output controller. It is used to program the period, duty
cycle and polarity of the output signal. The advanced-control timer output function varies from one
channel to one channel.