Download Application Note
Transcript
Software implementation on the MC9S12ZVML128 Figure 10. Speed control with current limitation 4 Software implementation on the MC9S12ZVML128 4.1 MC9S12ZVM configuration The BLDC sensorless application framework is designed to meet the following technical specification: • Targeted at the MC9S12ZVML128 evaluation board (for further information, see MC9S12ZVM128MCBUG, MC9S12ZVML128 Evaluation Board User’s Manual and MTRCKTSBNZVM128QSG, Quick Start Guide for 3-Phase Sensorless BLDC Kit with MagniV MC9S12ZVML128 MCUs) • PWM output frequency = 20 kHz • Current loop sampling period 1 ms • Speed loop sampling period 1 ms • Linear approximation of the ADC samples for accurate BEMF zero-crossing detection. Internal dividers and multiplexer of the MC9S12ZVML128 are used for phase voltage measurement. • DC bus voltage measurement at the HD pin by the ADC. The internal voltage dividers of the MC9S12ZVML128 are employed. • Internal operational amplifier AMP0 is used for DC bus current measurement. The MC9S12ZVML128 device includes modules such as the Pulse Width Modulator with Fault Protection (PMF), a Programmable Trigger Unit (PTU), an Analog-to-Digital Converter (ADC), a Timer module (TIM), and a Gate Drive Unit (GDU) suitable for control applications, in particular, motor control applications. These modules are directly interconnected and can be configured to meet various motor control application requirements. Figure 11 shows module interconnection for a typical BLDC sensorless application. The modules are described below and a detailed description can be found in MC9S12ZVMRMV1, MC9S12ZVM-Family Reference Manual. 3-phase Sensorless BLDC Motor Control Kit with the S12 MagniV MC9S12ZVM, Rev. 1 Freescale Semiconductor 13