![GigaDevice Semiconductor GD32E23 Series Скачать руководство пользователя страница 253](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794253.webp)
GD32E23x User Manual
253
SMC
[2:0]=3’b011
CI1FE1=
0
Up
Down
X
X
CI0FE0=
1
X
X
Up
Down
CI0FE0=
0
X
X
Down
Up
Note:
"-" means "no counting"; "X" means impossible.
”0” means “low level”, ”1” means “high
level”.
Figure 14-20. Counter behavior with CI0FE0 polarity non-inverted in mode 2
CI0FE0
CI1FE1
CNT_REG
21
20
22
23
24
25
24
23 22
21
20
19
TIMERx_CAR
99
Figure 14-21. Counter behavior with CI0FE0 polarity inverted in mode 2
CI0FE0
CI1FE1
CNT_REG
19
20
18
17
16
15
16
17 18
19
20
21
TIMERx_CAR
99
Hall sensor function
Hall sensor is generally used to control BLDC Motor; the timers can support this function.
Figure 14-22. Hall sensor is used to BLDC motor
show how to connect. And we can see
we need two timers. First TIMER_in (Advanced/GeneralL0 TIMER) should accept three
HALL sensor signals.
Each of the three input of HALL sensors provides a pulse that applied to an input capture pin,
can then be analyzed and both speed and position can be deduced.
By the internal connection such as TRGO-ITIx, TIMER_in and TIMER_out can be connected.