GD32F10x User Manual
289
Figure 15-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.
TIMER_out will generate PWM signal to control BLDC motor’s speed based on the ITRx.
Then, the feedback circuit is finished, also you change configuration to fit your request.
About the TIMER_in, it need have input XOR function, so you can choose from
Advanced/GeneralL0 TIMER.
And TIMER_out need have functions of complementary and Dead-time, so only advanced
timer
can be chosen. Else, 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 of input signal change 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 15-22. 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
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...