GD32F20x User Manual
348
And TIMER_out needs to have functions of complementary and Dead-time, so only advanced
timer can be chosen. In addition
, based on the timers’ internal connection relationship, pair’s
timers can be selected. For example:
TIMER_in (TIMER0) -> TIMER_out (TIMER7 ITI0)
TIMER_in (TIMER1) -> TIMER_out (TIMER0 ITI1)
And so on.
After getting appropriate timers combination, and wire connection, we need to configure
timers. Some key settings include:
Enable XOR by setting TI0S, then, each change of input signal will make the CI0 toggle.
CH0VAL will record the value of counter at that moment.
Enable ITIx connected to commutation function directly by setting CCUC and CCSE.
Configuration PWM parameter based on your request.
Figure 18-20. Hall sensor is used to BLDC motor
TIMER_in
Input capture
GPIO
TIMER_out
Output compare
PWM output
CPU
Core
Hall Sensor Rotor
Position signals
Driver Motor
MCU
BLDC
Motor
Содержание 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 ...