Freescale Semiconductor
User's Guide
Document Number:MC9S12ZVM128MCBUG
Rev 1, 07/2013
S12ZVM12EVB Evaluation Board
User Guide
Contents
1 Introduction
1
2
3
4
5
6
7
Introduction................................................................1
Interface Description.................................................4
Design Considerations............................................11
Motor Control Kit Board Set-Up............................29
Electrical Characteristics.........................................30
References...............................................................30
S12ZVMxEVB Board Schematics.........................31
The S12ZVMx12EVB board is designed to drive 3-phase
BLDC or PMSM motors, enabling implementation of motor
control techniques:
• Sensor-less:
• Back-EMF signal sensing using the MCU
integrated ADC modules
• Back-EMF zero-cross signal monitoring using
MCU integrated comparators
• Sensor-based:
• Hall sensor signal monitoring
• Resolver sin/cos signal monitoring
The board features the S12ZVM, a 16-bit automotive
microcontroller from the MagniV family. This System on
Chip integrates an S12Z microcontroller with a Local
Interconnect Network (LIN) physical interface, a 5-V
regulator and a Gate Driver Unit (GDU). The motor power
stage comprises 6 N-channel power MOSFETs that are
controlled by the MCU integrated GDU.
A USB to SCI interface is available and can be used for
FreeMaster PC-based application control. An integrated
OSBDM debugger interface is also provided for easy
programming/debugging of the S12ZVM microcontroller
device.
The board is available in the following versions:
• S12ZVML12EVBLIN – Features the
MC9S12ZVML12, with integrated LINPHY
© 2013 Freescale Semiconductor, Inc.
Introduction
• S12ZVMC12EVBCAN – Features the MC9S12ZVMC12, with a Voltage Regulator controller to supply an external
CAN transceiver
• MTRCKTSBNZVM128 – Motor Control Kit integrating the S12ZVML12EVBLIN Evaluation Board with a 3-phase
BLDC Motor with Hall sensor, running a sensorless control application using Back-EMF zero-crossing detection
1.1 EVB Features
•
•
•
•
•
MC9S12ZVML12MKH or MC9S12ZVMC12MKH microcontroller, 64LQFP package
BDM interface for MCU code download and debugging, via 6-pin header
On-board OSBDM for MCU code download and debugging, via USB connector
6 N-channel Power MOSFETs in 3-phase half H-bridge array
Motor Control Interface:
• Hall Sensor
• Resolver interface
• SINCOS interface
Connectivity:
• LIN
• CAN
• USB-to-SCI serial port
Phase and DC-bus current sensing circuits
LED indicators:
• Supply voltage indicator
• Reset indicator
• VDDX (MCU 5 V supply) indicator
• FAULT indicator
Over-voltage and over-current FAULT indicator with potentiometer adjustments
2 general-purpose, user configurable LEDs
2 general-purpose, user configurable push buttons
1 general-purpose, user configurable switch
Optional 4 MHz external oscillator
1 general-purpose Potentiometer
•
•
•
•
•
•
•
•
•
1.2 Board Architecture
The S12VMx12EVB Controller Board basic building blocks are depicted in the following figure.
S12ZVM12EVB Evaluation Board User Guide, Rev 1, 07/2013
2
Freescale Semiconductor, Inc.
Introduction
Figure 1. S12ZVMx12EVB block diagram
The board is supplied by VBAT voltage in the range from 3.5 V to 26 V. The board includes a reverse battery protection FET
to the output Field Effect Transistor (FET) power bridge, as well as a reverse battery protection diode to the logic supply. A
boost converter can be enabled by using the integrated boost controller and external inductor and diode components, for low
voltage operation (VBAT < 7 V).
The S12ZVM microcontroller integrates the necessary regulation stages, so that VBAT is supplied directly to the
microcontroller device. The VDDX regulator integrated into the S12ZVM provides 5 V to the I/O stages of the
microcontroller.
The S12ZVM can supply 5 V to an external Hall sensor via the EVDD pin. Another integrated voltage regulator provides the
necessary voltages to drive the power MOSFETs.
The MCU also integrates a Gate Driver Unit to drive the power MOSFETs directly from the MCU pins, using external
bootstrap capacitors on the high side FETs. The GDU module includes a Charge Pump to enable 100% duty cycle driving on
the high side FETs. The GDU outputs are internally controlled by the Pulse Width Modulator with Fault Protection module
(PMF) inside the MCU. The PMF module can drive the different channels independently or in complementary pairs, with
automatic dead time insertion.Several FAULT monitoring comparators are connected to the PMF’s external FAULT pin. The
settings for FAULT triggering can be configured using on-board potentiometers.
S12ZVM12EVB Evaluation Board User Guide, Rev 1, 07/2013
Freescale Semiconductor, Inc.
3
Interface Description
Figure 2. MC9S12ZVM128MCB controller board
2 Interface Description
2.1 Power Supply, J54 or J58
The S12VMx12EVB board can be supplied either by using the 2.1 mm DC power plug J54, or the alternate connector J58.
The board can accept input voltage in the range from 3.5 V to 26 V. The board is protected against a reverse battery
condition.
2.2 Alternative Power Supply, J64 and J65
The S12VMx12EVB board can also be supplied either by populating a blade terminal on both J64 (positive) and J65 (ground
reference) for applications requiring higher current capabilities.
S12ZVM12EVB Evaluation Board User Guide, Rev 1, 07/2013
4
Freescale Semiconductor, Inc.
Interface Description
2.3 3-Phase Motor Connector, J24
Power outputs to the motor are located on connector J24. Phase outputs are labeled 0, 1, and 2. A permanent magnet
synchronous (PMSM) or a brushless DC (BLDC) motor phase windings can be connected into these connectors.
Table 1. 3-phase motor connector
Connector
J24 pin 1
J24 pin 2
J24 pin 3
Signal name
Phase 0
Phase 2
Phase 1
Description
Supplies power to motor phase A
Supplies power to motor phase C
Supplies power to motor phase B
2.4 Hall Sensor Interface, J11
In Hall sensor based BLDC applications, the Hall sensor inputs are used to determine the actual motor rotor sector. The MCU
is capable of providing a regulated 5 V supply to an external Hall sensor by the EVDD pin.
The signals from this connector can be routed to the timer related inputs on the MCU. The following table shows the pinout
description of the Hall Sensor connector interface.
Table 2. Hall Sensor connector interface
Interface pin
1
2
3
4
5
6
Signal name
EVDD
GND
HALL_A/PH_A
HALL_B/PH_B
HALL_C/Index
—
MCU signal
EVDD (PP0 through
J14)
—
IOC1 (PT1 through J15)
IOC2 (PT2 through J16)
IOC3 (PT3)
—
Description
5 V supply to Hall
sensor
Ground reference
Hall sensor A
Hall sensor B
Hall sensor C
(Not connected)
Direction
Power Output
Power Reference
Digital Input
Digital Input
Digital Input
—
2.5 Resolver Interface, J62
In applications using a resolver sensor, the position of the rotor is encoded into sine and cosine signals indicating the shaft
angle. A reference signal is generated out of an MCU timer pin. The sine and cosine signals can be routed to two different
ADC channels, depending on the appropriate jumper configuration.
The resolver driver circuit shapes a rectangular reference signal from the timer port PT0 output to a sinusoidal waveform. It
consists of an integrator that transforms the rectangular signal into a triangle. The higher harmonic components are filtered
out by the following stage. The output of the filter stage drives the resolver reference winding (RES_GENP/RES_GENM).
The resolver sine and cosine signals are input into a conditioning circuitry that adjusts voltage levels down to the range
acceptable to the on-chip ADC module.
S12ZVM12EVB Evaluation Board User Guide, Rev 1, 07/2013
Freescale Semiconductor, Inc.
5