Zilog application note describing closed- and open-loop control of a 3-phase BLDC motor with the Z51F3220 MCU and Hall sensor feedback.
This Zilog MultiMotor Series application note (AN037102-1215) investigates closed- and open-loop control of a 3-phase brushless DC motor using the Z51F3220 MCU, a member of Zilog's Z8051 series. The Z8051 family is designed for motor control applications and includes an on-chip integrated array of analog and digital modules using the MultiMotor Development Kit.
The document describes a sensored feedback control system with fault protection, based on a MultiMotor MCU Module with a Z51F3220 MCU, a 3-phase MultiMotor Development Board, and a 3-phase, 24 VDC, 30W, 3200 RPM BLDC motor with internal Hall sensors. It covers Hall sensor commutation, motor speed measurement, motor protection logic, potentiometer-adjustable speed, direction control, UART interface for PC control, and LED indicators for motor operation, UART control and fault conditions. Source code AN037102-SC01 is available for download from the Zilog website.
| Motor supply voltage | 24 VDC |
|---|---|
| Motor power | 30W |
| Motor speed | 3200 RPM |
| MCU clock | up to 16 MHz |
| Internal Flash memory | up to 32 kilobytes |
| Internal RAM | 256 bytes |
| External RAM | 768 bytes |
| PWM outputs | three complementary pairs or six independent PWM outputs |
| ADC channels | up to sixteen single-ended channels, 12-bit |
| UARTs | two full-duplex 9-bit UARTs |
| Timers | one 8-bit timer and two 16-bit timers |
The example uses a 3-phase, 24 VDC, 30W, 3200 RPM BLDC motor with internal Hall sensors.
Three Hall sensors are placed inside the motor, typically spaced 120 degrees apart, and rotor position is determined by analyzing the outputs of all three Hall sensors.
The control algorithm is simple and easy to understand, and rotor position is available right at startup, when the motor is not turning yet.
The source code was compiled using the Keil µVision4 and Small Device C Compiler (SDCC) tools.