The actual production of a permanent magnet brushless
motor drive scheme of single chip microcomputer for
resource allocation:
1. Six road PWM which the motor driver needed was
produced by CCU6 and realized the hardware protection
function
2. Phase current signal sampling and the physical
quantity which controlled hardware protection were
achieved by ADC unit.
3.The generation of sine wave vector pulse width
modulation signal ,vector transformation, current estimation
were achieved by CORDIC unit.
4.Achieving PI regulation by MDU unit.
5.UART achieved the communication with upper
computer to obtain the parameters needed to control.
The main algorithm of program is finished in the T12
cycle interrupt, because switch frequency of device is 10
KHZ, so T12 interrupt cycle is 100 microseconds, but
execution time of algorithm is between in 100 microseconds
and 200 microseconds, in an interrupt service program
execution period, next interrupt request can't respond,
therefore practical algorithm calculation cycle is 200
microseconds.Position estimation and current loop
calculation need to undertake in each period, and calculation