GD32F3x0 User Manual
271
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 (TIMER1) -> TIMER_out (TIMER0 ITI1)
And so on.
After getting appropriate timer 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 16-20. Hall sensor is used to BLDC motor