GD32F403xx User Manual
254
16.1.3.
Block diagram
Figure 16-1. Advanced timer block diagram
provides details of the internal configuration of
the advanced timer.
Figure 16-1. Advanced timer block diagram
=
1
0
0
0
0
In
p
u
t
L
o
g
ic
S
y
n
c
h
ro
n
iz
e
r&
F
ilt
e
r
&
E
d
g
e
D
e
te
c
to
r
E
d
g
e
s
e
le
c
to
r
P
re
s
c
a
le
r
T
ri
g
g
e
r
p
ro
c
e
s
s
o
r
T
ri
g
g
e
r
S
e
le
c
to
r&
C
o
u
n
te
r
Q
u
a
d
ra
te
D
e
c
o
d
e
r
C
o
u
n
te
r
E
x
te
rn
a
l T
ri
g
g
e
r
In
p
u
t
lo
g
ic
P
o
la
ri
ty
s
e
le
c
ti
o
n
E
d
g
e
d
e
te
c
to
r
P
re
s
c
a
le
r
F
ilt
e
r
T
IM
E
R
x
_
C
H
x
C
V
R
e
g
is
te
r
/I
n
te
rr
u
p
t
R
e
g
is
te
r
s
e
t
a
n
d
u
p
d
a
te
In
te
rr
u
p
t
c
o
ll
e
c
to
r
a
n
d
c
o
n
tr
o
lle
r
A
P
B
B
U
S
CK
_
T
IM
E
R
CH
0
_
IN
CH
1
_
IN
CH
2
_
IN
CH
3
_
IN
CI
0
IT
I0
IT
I1
IT
I2
IT
I3
E
T
I
C
A
R
R
e
p
e
a
te
r
O
u
tp
u
t
L
o
g
ic
g
e
n
e
ra
ti
o
n
o
f
o
u
tp
u
ts
s
ig
n
a
ls
i
n
c
o
m
p
a
re
,
P
W
M
,a
n
d
m
ix
e
d
m
o
d
e
s
a
c
c
o
rd
in
g
t
o
i
n
it
ia
li
z
a
ti
o
n
,
c
o
m
p
le
m
e
n
ta
ry
m
o
d
e
,
s
o
ft
w
a
re
o
u
tp
u
t
c
o
n
tr
o
l,
d
e
a
d
ti
m
e
i
n
s
e
rt
io
n
,
b
re
a
k
i
n
p
u
t,
o
u
tp
u
t
m
a
s
k
,
and
p
o
la
ri
ty
c
o
n
tr
o
l
B
R
K
E
N
B
R
K
I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