2) Design ofcurrem‘ loop
Brushless DC motor torque command value is
proportional to the armature winding current command
value, so the right conduction order of the stator armature
Winding can be determined according to position Hall
signals of rotor by means of the armature winding current
command value. The average voltage needed to conduct
stator armature winding can be determined according to the
actual current detection value of armature winding, the
average voltage is duty circle of PWM signal. Current loop
flow chart is shown in Fig.6d4
As a result of length limit, I only list the partial
program source code as follow:
Initialize PWM mode: