GD32F20x User Manual
400
Figure 18-44. Example of counter operation in encoder interface mode
CI0
CI1
UP
down
Counter
Figure 18-45. Example of encoder interface mode with CI0FE0 polarity inverted
CI0
CI1
UP
down
Counter
Slave controller
The TIMERx can be synchronized with a trigger in several modes including the restart mode,
the pause mode and the event mode which is selected by the SMC [2:0] in the
TIMERx_SMCFG register. The trigger input of these modes can be selected by the TRGS
[2:0] in the TIMERx_SMCFG register.
Table 18-6. Slave controller examples
Mode Selection
Source
Selection
Polarity Selection
Filter and Prescaler
LIST
SMC[2:0]
3'b100 (restart mode)
3'b101 (pause mode)
3'b110 (event mode)
TRGS[2:0]
000: ITI0
001: ITI1
010: ITI2
011: ITI3
100: CI0F_ED
101: CI0FE0
If you choose the CI0FE0
or CI1FE1, configure the
CHxP and CHxNP for the
polarity
selection
and
inversion.
If you choose the ETIF,
For the ITIx no filter and
prescaler can be used.
For the CIx, configure
Filter by CHxCAPFLT,
no prescaler can be
used.
Содержание GD32F20 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F20x ARM Cortex M3 32 bit MCU User Manual Revision 2 2 Oct 2019 ...
Страница 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Страница 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Страница 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Страница 385: ...GD32F20x User Manual 385 ...
Страница 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...