MC9S12G128 Controller Board User Guide

advertisement
MC9S12G128 Controller Board User
Guide
Document Number: MC9S12G128MCBUG
1.0
08/2012
Freescale Semiconductor
Chapter 1 Introduction
1.1
1.2
1.3
1.4
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Board Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Board Jumper Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Board LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Chapter 2 Interface Description
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
Power Supply J1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
UNI3 Interface J31 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
MC33937A Interface J34 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
Hall Sensor Interface JP1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
LIN Connector J9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
CAN Connector J5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
USB Connector J36 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Header JP2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Header J30 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Headers J14, J15, J16, J17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Chapter 3 Design Consideration
3.1
3.2
3.3
3.4
MC9S12G128 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
PWM /HS and LS Signal Split and Phase Dead Time Generation . . . . . . . . . . . . . . . . . 23
Board Fault Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Hall Sensor Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Chapter 4 Electrical Characteristics
Chapter 5 Board Set-up Guide
Chapter 6 References
Chapter 7 Acronyms
Chapter 8 MC9S12G128 Controller Board Schematic
Freescale Semiconductor
3
4
Freescale Semiconductor
About This Book
This document describes the MC9S12G128 Controller Board design, which is targeted for development
of motor control applications.
To locate any published updates for this document, refer to the world-wide web at:
http://www.freescale.com/.
Revision History
Table i. Revision History Table
Date
Revision
level
August 2012
1.0
Description
Initial release
Documentation
The MC9S12G128 documentation is available at the web site, http://www.freescale.com. as follows:
• Reference manuals — MC9S12G128 modules in detail
• Data sheets — information mainly on the device’s AC, DC, thermal characteristics and packages
pin-out
• Product briefs — device overview
• Application notes — address specific design issues
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
5
MC9S12G128 Controller Board User Guide, Rev. 1.0
6
Freescale Semiconductor
Introduction
Chapter 1 Introduction
The MC9S12G128 Controller Board is designed to a drive 3-phase BLDC motor, enabling implementation
of motor control techniques:
• Sensorless:
— Back-EMF signal sensing using an MCU ADC module
— Back-EMF zero-cross signal monitoring
• Sensor based:
— Hall sensor signal monitoring
On-board UNI-3 interface enables control of the BLDC motor power stage.
The LIN and CAN communication interfaces connect the board to the other automotive network nodes.
The USB interface is targeted at FreeMASTER PC-based application control.
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
7
Introduction
1.1
Features
The MC9S12G128 Controller Board features follows:
• MC9S12G128 microcontroller, 100 LQFP package
• BDM interface for MCU code download and debugging
• MC33905 System-basis chip (power supply, connectivity)
• Motor control interface:
— UNI-3
— MC33937A predriver
— Hall sensors
• Connectivity interface:
— LIN (MC33905)
— CAN (MC33905)
— USB interface
• LEDs:
— Power-on indicators
— Phase A, B, C PWM control signals
— Phase A, B, C zero-cross
— Hall sensor outputs
— Fault monitoring
— SBC safe mode
— User application
• Rotary encoder switch for an application control
• On-board PWM dead time generation
• MCU pins accessible via pin headers
MC9S12G128 Controller Board User Guide, Rev. 1.0
8
Freescale Semiconductor
Introduction
1.2
Board Architecture
The MC9S12G128 Controller Board basic building blocks are depicted in Figure 1-1. The block color
differentiates a block function:
• Blue - MCU and application software download and the debug interface
• Green - Motor control related hardware
• Red - Board power supply and connectivity
• Violet - Application control
+5V
+3V3 / +5V
MCZ33905
VBAT
PWM /HS and LS
Signal Split
&
PWM Dead Time
Insertion
+5V / +3V3
Regulator
LIN
Interface
Fault
Logic
UNI-3
Interface
CAN
Interface
BDM
Interface
MC9S12G128
MCZ33937
Interface
USB
Interface
Rotary
Encoder
Hall
Interface
Figure 1-1. MC9S12G128 Controller Board Block Diagram
The board is supplied by VBAT voltage in the range of 8 V to 18 V. The MCZ33905 provides 5 V to Hall
interface. The MCU and on-board logic are supplied by either 3.3 V or 5 V, depending on the assembled
SBC version. The board is populated with the 3.3 V SBC version by default.
The MCU generates one PWM signal for each phase. An additional on-board logic is used to split the
PWM signals to control power stage top and bottom switches separately. A PWM dead time is inserted by
additional hardware, if required.
The Fault logic triggers the DC bus undervoltage and DC bus overcurrent faults, and turns OFF the power
stage top and bottom switches. The circuitry behaviour depends on the selected configuration. For more
info, see Chapter 3.3, “Board Fault Management".
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
9
Introduction
The user can control the application using the rotary switch, USB interface (RS232), CAN and LIN buses.
The BDM interface is present on-board to enable the download and debugging of the MCU code.
For the on-board block location, see Figure 1-2.
Fault
PWMDeadTime
and
Circuitry
Hall/ZCLEDs
Hall
Interface
USB
Interface
PWMLEDs
FaultLogic
Rotary
Encoder
Switch
BDM
UNIͲ3
Interface
MCZ33905
SBC
MCZ33937
Interface
CAN
LIN
Power
Supply
Figure 1-2. MC9S12G128 Controller Board Block Location
MC9S12G128 Controller Board User Guide, Rev. 1.0
10
Freescale Semiconductor
Introduction
1.3
Board Jumper Configuration
See Table 1-1 and Figure 1-3 for proper jumper configuration.
Table 1-1. MC9S12G128 Board Configuration
Jumper
Selector
Function
Connection
J3
SBC
Debug Mode
SBC Debug mode (J4 not placed):
- ON, placed
- OFF, unplaced
Placed
J4
SBC
Fail-Safe Mode
SBC Normal mode (J3 not placed):
- ON, placed
- OFF, unplaced
Unplaced
J6, J7
CAN
Termination
CAN bus termination:
- 120R, placed
- without termination, unplaced
Placed
J8
LIN
Master/Slave
LIN mode:
- Master, placed
- Slave, unplaced
Placed
J18
/RESET
SBC and MCU /RESET pins connected:
- connected, placed
- unconnected, unplaced
Unplaced
J20, J22
PHASE A Dead Time
Dead time ~2s generated by on-board HW:
- ON, placed pins 1-2
- OFF, placed pins 2-3
Placed, pins 1-2
J21, J23
PHASE C Dead Time
Dead time ~2s generated by on-board HW:
- ON, placed pins 1-2
- OFF, placed pins 2-3
Placed, pins 1-2
J24, J25
PHASE B Dead Time
Dead time ~2s generated by on-board HW:
- ON, placed pins 1-2
- OFF, placed pins 2-3
Placed, pins 1-2
J26
FAULTS
Fault is processed by:
- on-board HW, placed pins 1-2
- MCU software (/IRQ), placed pins 2-3
Placed, pins 1-2
J27, J28
FAULTS
In case of Fault, the power stage switched turned OFF by:
- on-board HW, placed pins 1-2
- power stage HW (EN pin), placed pins 2-3
Placed, pins 1-2
J29
FAULTS
Overcurrent diagnostic input:
- on-board comparator, placed pins 1-2
- power stage MC33972 comparator, placed pins 2-3
Placed, pins 1-2
J32
HALL/ZC PHASE A
BLDC sensor control based on:
- Hall sensors, placed pins 1-2
- Zero-cross, placed pins 2-3
Placed, pins 1-2
J33
HALL/ZC PHASE B
BLDC sensor control based on:
- Hall sensors, placed pins 1-2
- Zero-cross, placed pins 2-3
Placed, pins 1-2
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
11
Introduction
Table 1-1. MC9S12G128 Board Configuration (continued)
Jumper
Selector
Function
J35
HALL/ZC PHASE C
BLDC sensor control based on:
- Hall sensors, placed pins 1-2
- Zero-cross, placed pins 2-3
J32,J33,J35
J21,J23
Hall/ZeroCross PhCDT
J24,J25
PhBDT
Connection
Placed, pins 1-2
J20,J22
PhADT
J26,J27,J28,J29
Faults
Configuration
J18
/RESET
J3,J4
MCZ33905
SBC
J6,J7
CANTermination
J8
LINMaster/Slave
Figure 1-3. MC9S12G128 Controller Board Jumper Position and Default Setting
MC9S12G128 Controller Board User Guide, Rev. 1.0
12
Freescale Semiconductor
Introduction
1.4
Board LEDs
The Table 1-2 displays the on-board LEDs. For on-board LED locations, see Figure 1-2.
Table 1-2. on-board LEDs
LED
Signal Name
Description
D3
+5V
5 V Hall power supply
D6
/SAFE
MCZ33905 safe-pin state (ON - SBC in safe mode)
D7
+3V3
3.3 V board power supply
D11
-
User LED1
D12
-
User LED2
D21
AT
Phase A top switch signal (ON - High Level)
D22
UV
DC bus undervoltage fault (ON - Fault)
D23
BT
Phase B top switch signal (ON - High Level)
D24
OC
DC bus overcurrent fault (ON - Fault)
D25
CT
Phase C top switch signal (ON - High Level)
D26
H0 / ZA
Hall 0 / Zero-cross Phase A signal (ON - High Level)
D27
AB
Phase A bottom switch signal (ON - High Level)
D28
H1 / ZB
Hall 1 / Zero-cross Phase B signal (ON - High Level)
D29
BB
Phase B bottom switch signal (ON - High Level)
D30
H2 / ZC
Hall 2 / Zero-cross Phase C signal (ON - High Level)
D31
CB
Phase C bottom switch signal (ON - High Level)
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
13
Introduction
MC9S12G128 Controller Board User Guide, Rev. 1.0
14
Freescale Semiconductor
Interface Description
Chapter 2 Interface Description
The following chapters summarize the on-board connectors and header pin-outs, signal meanings and
MCU pins assignments.
2.1
Power Supply J1
The MC9S12G128 Controller Board can be supplied either by using the 2.1 mm DC power plug J1 or the
UNI-3 connector (J31, pin 19).
The controller board provides 5 V for a Hall interface and 3.3 V for on-board logic. Both voltages are
generated by the MC33905 SBC. Proper operation is monitored by LEDs D3 for the 5V line and D7 for
the 3.3V line (see Table 1-2).
The board is designed to operate in the voltage range from 8 V to 18 V. The board is protected against a
reverse battery.
2.2
UNI3 Interface J31
The Unified Interface Version 3 (UNI-3) defines the interface between the MC9S12G128 Controller Board
and the BLDC motor power stage.
The list of UNI-3 signal is as follows:
• Control signals:
— PWM phase A, B, C top and bottom switches control
— Brake signal control
— Power Factor Correction (PFC)
• Monitor signals
— DC-bus voltage
— DC-bus current
— Phase A, B, C current
— Zero-cross signals
— Back-EMF phase A, B, C
— Temperature monitoring
• Power Supply +12V
• Serial line - a bidirectional communication line between the Controller Board and Power Stage
The Table 2-1 defines the UNI-3 pin-out and pin assignment to the MCU.
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
15
Interface Description
Table 2-1. UNI-3 Signal Description
Interface Pin
Signal Name
MCU Signal
Description
Direction
1
PWM_AT
PWM3
Phase A top switch control (H -> Turn OFF)
Digital output
3
PWM_AB
PWM3 & PA0
Phase A bottom switch control (H -> Turn ON)
Digital output
5
PWM_BT
PWM5
Phase B top switch control (H -> Turn OFF)
Digital output
7
PWM_BB
PWM5 & PA1
Phase B bottom switch control (H -> Turn ON)
Digital output
9
PWM_CT
PWM7
Phase C top switch control (H -> Turn OFF)
Digital output
11
PWM_CB
PWM7 & PA2
Phase C bottom switch control (H -> Turn ON)
Digital output
2, 4, 6, 8, 10
Shield
-
PWM signals shield
(grounded on the power stage side only)
-
12,13
GND_D
-
Digital power supply ground
-
14, 15
+5V DC
-
+5V digital power supply
-
17, 18
AGND
-
Analog power supply ground
-
19
+12/+15V DC
-
Analog power supply
-
16,20, 23,24,25,
27, 28,37
NC
21
VDCBUS
PAD6
DC-bus voltage sensing, 0V – 3.3V
Analog input
22
IDCBUS
PAD1
PAD3
PAD5
DC-bus current sensing, 0V – 3.3V
Analog input
26
TEMP
PAD7
Analog temperature 0V – 3.3V
Analog input
29
BRAKE_CONT
PA5
DC-bus brake control
Digital output
30
SERIAL
-
Serial interface
Dig. bidirectional
31
PFC
-
Power factor correction PWM
Digital output
32
PFCEN
-
Power factor correction enable
Digital output
33
PFCZC
-
Power factor correction Zero-cross
Digital input
34
ZCA
KWP2
Phase A Back-EMF zero crossing
Digital input
35
ZCB
KWP4
Phase B Back-EMF zero crossing
Digital input
36
ZCC
KWP6
Phase C Back-EMF zero crossing
Digital input
38
Back-EMF_A
PAD0
Phase A Back-EMF voltage sensing
Analog input
39
Back-EMF_B
PAD2
Phase B Back-EMF voltage sensing
Analog input
40
Back-EMF_C
PAD4
Phase C Back-EMF voltage sensing
Analog input
-
Not connected
-
MC9S12G128 Controller Board User Guide, Rev. 1.0
16
Freescale Semiconductor
Interface Description
2.3
MC33937A Interface J34
When using a Freescale 3-phase low voltage power stage [1.], the phase top and bottom switches are
controlled by the MC33937A pre-driver. The device is configured by the SPI, see Table 2-2.
Table 2-2. MC33937 Signal Description
Interface Pin
Signal Name
MCU Signal
Description
Direction
1
NC
-
Not connected.
-
2
NC
-
Not connected
-
3
MC33937_EN
PA4
Device enable
Digital output
4
MC33937_OC
-
Over-current
Digital input
5
MC33937_/RST
PC4
Reset
Digital output
6
MC33937_INT
PC5
Interrupt
Digital input
7
MC33937_SOUT
MISO0
SPI Input data
Digital input
8
MC33937_SCK
SCK0
SPI clock
Digital output
9
MC33937_CS
/SS0
Chip-select
Digital output
10
MC33937_SIN
MOSI0
SPI output data
Digital output
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
17
Interface Description
2.4
Hall Sensor Interface JP1
When developing the sensor based BLDC application, the Hall sensors are used to determine the actual
motor rotor sector.
Connect the motor Hall sensors outputs to JP1 following the instructions in Table 2-3. and watch the signal
levels by on-board LEDs (Table 1-2, Table 1-1).
Table 2-3. HALL Signal Description
Interface Pin
Signal Name
MCU Signal
Description
Direction
1
+5Vdc
-
+5 V sensor supply voltage
-
2
GND
-
Ground
-
3
HALL0
KWP2
HALL0 sensor output
Digital input
4
HALL1
KWP4
HALL1 sensor output
Digital input
5
HALL2
KWP6
HALL 2 sensor output
Digital input
6
NC
-
Not connected
-
2.5
LIN Connector J9
The MC33905 LIN transceiver is used as an on-board LIN interface hardware. The LIN node can be
configured to either the Master or Slave mode, see Table 1-1.
A Table 2-4 shows the LIN connector pin-out and pin assignment to the MCU.
Table 2-4. LIN Signal Description
Interface Pin
Signal Name
MCU Signal
Description
Direction
1
GND
-
Ground
-
2
GND
-
Ground
-
3
VSUP
-
Power Supply
-
4
LIN
RXD1/TXD1
LIN bus
Dig. bidirectional
2.6
CAN Connector J5
The system basis chip on the MC33905 CAN transceiver is used as the CAN hardware interface. The
on-board jumpers J6, J7 enable node termination, impedance of 120R, see Table 1-1.
Table 2-5 shows the CAN connector pin-out and pin assignment to the MCU.
MC9S12G128 Controller Board User Guide, Rev. 1.0
18
Freescale Semiconductor
Interface Description
Table 2-5. CAN Signal Description
Interface Pin
Signal Name
MCU Signal
Description
Direction
1
CANH
RXCAN/TXCAN
CAN bus H
Diff. bidirectional
2
CANL
RXCAN/TXCAN
CAN bus L
Diff. bidirectional
3
GND
-
Ground
-
4
NC
-
Not connected
-
2.7
USB Connector J36
The USB line is used for board communication with the PC, when using e.g. the Freescale FreeMASTER
tool to control the user application.
The interface uses a B type connector and is isolated from the board environment. See Table 2-6 for the
pin description and pin assignment to the MCU.
Table 2-6. USB Signal Description
Interface Pin
Signal Name
MCU Signal
Description
Direction
1
VBUS
-
USB Power Supply
-
2
D-
RXD0/TXD0
Data –
Dig. bidirectional
3
D+
RXD0/TXD0
Data +
Dig. bidirectional
4
GNDB
-
USB Ground
-
2.8
Header JP2
Monitoring the PWM signal is possible using JP2. The Table 2-7 summarizes header pin-out.
Table 2-7. JP2 Signal Description
Interface Pin
Signal Name
MCU Signal
Description
Direction
1
PWM_AT
PWM3
Phase A top switch control
Digital output
2
PWM_AB
PWM3 & PA0
Phase A bottom switch control
Digital output
3
PWM_BT
PWM5
Phase B top switch control
Digital output
4
PWM_BB
PWM5 & PA1
Phase B bottom switch control
Digital output
5
PWM_CT
PWM7
Phase C top switch control
Digital output
6
PWM_CB
PWM7 & PA2
Phase C bottom switch control
Digital output
2.9
Header J30
Header J30 allows monitoring the MC33937A EN and OC pins, see Table 2-8.
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
19
Interface Description
Table 2-8. J30 Signal Description
Interface Pin
Signal Name
MCU Signal
Description
Direction
1
MC33937_OC
-
Over-current
Digital input
2
MC33937_EN
PA4
Device enable
Digital output
2.10
Headers J14, J15, J16, J17
The MC9S12G128 MCU signals can be monitored using headers J14, J15, J16, J17, see board schematic.
MC9S12G128 Controller Board User Guide, Rev. 1.0
20
Freescale Semiconductor
Design Consideration
Chapter 3 Design Consideration
This chapter provides an additional information on functional blocks of the MC9S12G128 controller
board.
3.1
MC9S12G128 Features
The MC9S12G-Family is an automotive 16-bit microcontroller product line focused on
low-cost, high-performance and low pin-count [2.]. This family is intended to bridge between high-end
8-bit microcontrollers and high-performance 16-bit microcontrollers, such as the MC9S12XS-Family.
The MC9S12G-Family is targeted at generic automotive applications requiring CAN or LIN/J2602
communication.
The MC9S12G128 MCU 100 LQFP features follows (see Figure 3-1):
• CPU12V1 core
• Memory
— 128 KB of Flash memory
— 4096 bytes of EEPROM
— 8192 bytes of RAM
• Clock modules:
— External oscillator
— Internal 1MHz RC oscillator
— PLL
• Connectivity:
— MSCAN, 1 module
— SCI, 3modules
— SPI, 3modules
• 16-bit timer, 8 channels
• 8-bit PWM, that can be configured as either 8 channel 8-bit PWM or 4 channel 16-bit PWM.
• 10-bit ADC, 16 channels
• MCU Supply voltage from 3.13 V to 5.5 V
• Execution speed 50MHz
The MC9S12G128 Controller Board is designed to use MCU PWM3, PWM5, PWM7 channels as power
stage phase A, phase B and phase C signals. The PWM1 channel is used primarily for proper timing of the
power stage DC-bus current and BLDC motor Back-EMF ADC conversion.
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
21
03,
5;67
5;67
5;67
5;67
$+!,% )*+%(&$&+(-&!
((%%)
)!! (%
&+(-&!
2)("' % (%
9% )&==%
!()*($(%
/ )-(+
!"#$%%&'
&($%(-)#$
:%<&$)
(-&! ($('($
#$%$ !
)!! (%
$% ($
$-$%
#$%%&'(-&!
2,#&''!
@
3@3
2@2
0
+ !,$ !(+
($D%%
#
9,98) $$!
"%
/
8,98) $$!
&!/-(-&! (%
#
#
#3
#2
#
#
#9
#;
/
/
/3
/2
/
/
/9
/;
4
4
4
"43
#3
$)%($(&% !#:
#
$)%($(&% !#:
#
$)%($(&% !#:
#
$)%($(&% !#:
#
$)%($(&% !#:
#3
$)%($(&% !#:
#
#
#
#
#
#
567
(! +
+&! (%
#$'&622A
4567
3
2
9
;
./ *,&'#$1
+ !,$ !(+
($D%%
?
3
2
9
;
3,9) (%
,89)
$ !(+,+ !
($D%%
3
2
$ !(+
("' % (%
3
2
9
;
>./ *,&'#$1
93:! ./0#$1 Design Consideration
>
>
>3
>2
>
>
>9
>;
Figure 3-1. S12G Family Block Diagram
MC9S12G128 Controller Board User Guide, Rev. 1.0
22
Freescale Semiconductor
Design Consideration
3.2
PWM /HS and LS Signal Split and Phase Dead Time Generation
The MC9S12G128 MCU PWM module generates one PWM signal per each phase. The power stage
requires separate PWM signals for each phase top and bottom switch.
The Figure 3-2 shows how the PWM signals are generated for motor phase A. The other motor phases are
controlled using the same logic circuitry.
The PWMA signal is split using the dual AND gate U3 into:
• PWMA_/HS signal:
— turn ON the power stage top switch, when reaches a low level
— turn OFF the power stage top switch, when reaches a high level
• PWMA_LS signal:
— turn ON the power stage bottom switch, when reaches a high level
— turn OFF the power stage bottom switch, when reaches a low level
In case of need to turn OFF the top and bottom switch simultaneously, the CTRLA signal is driven by
MCU low level and PWMA signal is driven high level.
The RC cell and diode are present on-board to insert a dead time approximately 2 micro seconds into the
phase PWM signal. Optionally this can be disabled using on-board jumpers, see Section 1.3, “Board
Jumper Configuration.”
!
"
!
"
Figure 3-2. PWM Signal Split and Phase Dead Time Generation
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
23
Design Consideration
3.3
Board Fault Management
The Faults can be processed either by MCU software or by an on-board hardware. The action depends on
jumper configuration, see Figure 3-3. and Table 1-1 J26, J27, J28, J29.
There are two sources of Fault condition (U6 comparator output high level):
•
•
/FLT_DET0 - fault is triggered whenever the signal level is below limit set by R57
FLT_DET1 - fault is triggered whenever the signal level is above limit set by R69
The /FLT_DET0 can be used for the DC bus undervoltage fault detection. The FLT_DET1 is designed for
the DC bus overcurrent detection.
The jumper J29 selects the source of overcurrent fault. Either the on-board comparator or the power stage
overcurrent fault signal, e.g. when using the MC33937A, determine the fault condition.
In fact, there are three options of fault processing, i.e. turning OFF power stage the top and bottom
switches:
1. MCU using the /IRQ pin - MCU software is responsible for the power stage switches turn OFF
2. Power Stage Enable pin - when the fault is captured by U8 the RS Flip-Flop, the EN signal goes
low. The power stage is responsible for turning OFF the switches.
3. on-board hardware - when the fault is captured by the U8 RS Flip-Flop, the U7 and U9 turn OFF
the power stage top and bottom switches.
For configuration, see Table 3-1.
Table 3-1. Fault Jumper Configuration
Fault Action
Responsibility
Fault Action Signals
J26
J27
J28
Software
MCU /IRQ pin, low level
Placed, pins 2-3
Unplaced
Unplaced
Power Stage
J34 EN pin, low level
Placed, pins 1-2
Placed, pins 2-3
Unplaced
Controller Board HW
RS Flip-Flop signals
Placed, pins 1-2
Placed, pins 1-2
Placed, pins 1-2
MC9S12G128 Controller Board User Guide, Rev. 1.0
24
Freescale Semiconductor
Design Consideration
:
@
C
@
9
9
:
:
;;
E
;C
@
;
9
:
;
C :
:
;
7
;:
@
C
;
FC
:D
F9
;9
@
9
:C :
C :
@
:
;
:
@
:
;
9
;
@
F:
;
@
7
:
;
F;
;
@
@
C
;
C
C
:
;
9
:C :
!"#
$%
&
'(
)
*
'(
+
'(
,
*
-.
/
**+012
13
'(
)
'(
+
*
'(
,
4
-.
13
$ -
5
-
6
5
6&
'(
)
'(
+
'(
,
:
9
9
C
C
&/!8)&9
:;&;&,+$,1&6&&+)-2& )6.0(#-<&. ,6)
:
9
:C :
))4-!()&)/#-,$7.-', &
9
:C :
2#4&7,-./)$'&-,$'!#$4&#$3, /!'#,$&6 ,6 #)'! 5&',& ))4-!()&)/#-,$7.-', &!$7&42!((&$,'&0)&.4)7&3,
)$%#$)) #$%&7)4#%$<&6 ,-. )/)$'&, &/!$.3!-'. )&#$&"2,()&, &#$&6! '&"#'2,.'&'2)&)=6 )44&" #'')$&6) /#44#,$
,3& ))4-!()&)/#-,$7.-', &(!44#3#-!'#,$*
* * ?
* !"#$%&#'()*
)4#%$) *
A)4#%$) B
&&)1)(,6/)$'&@#'
!"$&05*
A !"$5B
!%)&#'()*
66 ,1)7*
A66 ,1) B
#+)
,-./)$'&./0)
!')*
2. 47!5<&! -2&<&
!.('&,%#)1
?
>:9;&*&>:9;
2))'
;
,3
9
Figure 3-3. Fault Management Hardware
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
25
Design Consideration
3.4
Hall Sensor Interface
The Hall sensor interface is used for BLDC sensor based motor control applications. The Hall sensors are
used to determine the actual motor rotor sector.
The on-board interface provides the 5V power supply voltage to supply the sensors. The Hall interface
inputs are designed to support an open collector as well as push-pull Hall sensors outputs (see Figure 3-4).
A single pole RC low pass filter is present to reduce a signal noise.
For a detailed JP1 connector signal description, see Table 2-3.
Figure 3-4. Hall Sensor Interface
The Figure 3-5 shows the Hall sensor signal alignment to BLDC motor Back-EMF signal. The Hall
sensors detect the rotor flux, so their actual state is not influenced by stator current. The Hall effect outputs
in BLDC motors divide the electrical revolution into three equal sections of 120°. In this so-called 120°
configuration, the Hall states 111 and 000 never occur.
Based on the Hall sensor signal, the BLDC motor commutation table is developed. An example is shown
in Figure 3-6. The right-hand side of the table shows the Hall sensors signal, while the left side applied
phase voltage.
MC9S12G128 Controller Board User Guide, Rev. 1.0
26
Freescale Semiconductor
Design Consideration
Figure 3-5. BLDC Motor Back-EMF and Hall Sensor Signal Alignment
Figure 3-6. BLDC Motor Commutation Table
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
27
Design Consideration
MC9S12G128 Controller Board User Guide, Rev. 1.0
28
Freescale Semiconductor
Electrical Characteristics
Chapter 4 Electrical Characteristics
The electrical characteristics in Table 4-1 apply to an operation at 25 °C.
Table 4-1. Electrical Characteristics
Characteristic
Power supply Voltage
(1)
Symbol
Min
Typ
Max
Units
VDC
8
12
18
V
Current consumption
ICC
30
mA
Input Voltage Range
VIN
0
–
3.3
V
Input Voltage Range Hall and MC33937 interface
VIN
0
–
5
V
1
—12V power supply, MCU without software
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
29
Electrical Characteristics
MC9S12G128 Controller Board User Guide, Rev. 1.0
30
Freescale Semiconductor
Board Set-up Guide
Chapter 5 Board Set-up Guide
The board is designed to be supplied either by the UNI-3 interface or by using the on-board J1 connector,
power supply voltage from 8 V to 18 V. When using board as a standalone EVB, connect the power supply
to J1. In case of board operation with the power stage, it is recommended to supply board using UNI-3
interface.
The MC9S12G128 Controller Board (blue board) is designed for operation with the FSL MC33937A
based 3-Phase low voltage power stage (green board), see Figure 5-1. The complete 3-phase BLDC
Sensor/Sensorless Development Kit can be ordered at http://www.freescale.com/AutoMCDevKits.
Figure 5-1. 3-Phase BLDC Sensor/Sensorless Development Kit
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
31
Board Set-up Guide
MC9S12G128 Controller Board User Guide, Rev. 1.0
32
Freescale Semiconductor
References
Chapter 6 References
1. 3-phase Low Voltage Power Stage User Manual, Rev. 0, 31 March 2009,
http://www.freescale.com/AutoMCDevKits.
2. MC9S12G Family Reference Manual, MC9S12GRMV1 Rev. 1.06, 8 November 2011
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
33
References
MC9S12G128 Controller Board User Guide, Rev. 1.0
34
Freescale Semiconductor
Acronyms
Chapter 7 Acronyms
ADC
Analog to Digital Converter
BEMF
Back Electromotive Force
BLDC
Brushless DC Motor
CAN
Controller Area Network
DT
Dead Time
LIN
Local Interconnect Network
MCU
Microcontroller Unit
PC
Personal Computer
PWM
Pulse Width Modulation
USB
Universal Serial Bus
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
35
Acronyms
MC9S12G128 Controller Board User Guide, Rev. 1.0
36
Freescale Semiconductor
MC9S12G128 Controller Board Schematic
Chapter 8 MC9S12G128 Controller Board Schematic
MC9S12G128 Controller Board User Guide, Rev. 1.0
Freescale Semiconductor
37
5
D
4
3
2
Notes:
---------Sheet 4: Configure BLDC motor BEMF and current sensing.
Sheet 5: Insert Dead time ~2us.
Sheet 6: Configure Fault logic.
Sheet 7: Select either Hall sensor or Zero Cross based sensing.
1
SCHEMATIC REVISIONS
Zone
All
All
Rev
0.1
1.0
Description
Initial version
Release version
Date
11.01.2012
13.01.2012
Revised
PCh
JK, PCh
D
C
C
B
B
Freescale Semiconductor RCSC
1. maje 1009
765 61 Roznov p. R. Czech republic, Europe
This document contains information proprietary to Freescale Semiconductor and shall not be used for
engineering design, procurement or manufacture in whole or in part without the express written permission
of Freescale Semiconductor.
ICAP Classification:
FCP: ____
FIUO: X
PUBI: ____
Designer:
Drawing Title:
<Designer>
A
S12G BLDC Development Kit
5
4
3
Drawn by:
<DrawnBy>
Page Title:
Approved:
<Approver>
Size
B
Document Number
Date:
Monday, February 06, 2012
2
Info
Rev
X
SCH-27496 PDF: SPF-27496
Sheet
1
1
of
9
A
5
4
04_MCU
3
2
05_PWM_and_Dead_Time_Unit
1
06_Fault_Logic
07_UNI3_HALL_Interface
PWM3
PA0
PWMA
CTRLA
PWMA_/HS
PWMA_LS
PWMA_/HS_IN
PWMA_LS_IN
PWMA_/HS_OUT
PWMA_LS_OUT
PWM_AT
PWM_AB
PWM5
PA1
PWMB
CTRLB
PWMB_/HS
PWMB_LS
PWMB_/HS_IN
PWMB_LS_IN
PWMB_/HS_OUT
PWMB_LS_OUT
PWM_BT
PWM_BB
PWM7
PA2
PWMC
CTRLC
PWMC_/HS
PWMC_LS
PWMC_/HS_IN
PWMC_LS_IN
PWMC_/HS_OUT
PWMC_LS_OUT
PWM_CT
PWM_CB
D
D
BRAKE
05_PWM_and_Dead_Time_Unit
/IRQ
FLT_OUT
FLT0_OUT
FLT1_OUT
PA3
PA4
PA5
FLT_RST
EN_IN
/FLT0_DET
FLT1_DET
FLT1_DET_ALT
DCBV
DCBI
MC33937_OC
TEMP
EN_OUT
MC33937_EN
06_Fault_Logic
MC33937_/RST
MC33937_INT
/SS0
SCK0
MOSI0
MISO0
MC33937_/CS
MC33937_SCK
MC33937_SIN
MC33937_SOUT
C
C
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
AN8
BEMF_A
BEMF_B
BEMF_C
KWP2
KWP4
KWP6
HALL0/ZCA
HALL1/ZCB
HALL2/ZCC
09_LEDs_&_Ctrl
KWJ4
KWJ5
KWJ6
KWJ7
B
LED9_G
LED10_G
LED11_G
LED1_Y
LED2_Y
LED3_Y
ROTA
ROTB
ROTSW
LED4_G
LED5_G
LED6_G
B
LED7_R
LED8_R
UNI3_+12V/+15V_PWR_OUT
07_UNI3_HALL_Interface
09_LEDs_&_Ctrl
03_Power_Supply_LIN_CAN
PC3
PC4
PC5
PC6
PC7
MC33905_/CS
+VSUP_PWR_IN
MC33905_SCLK
MC33905_MOSI
MC33905_MISO
Freescale Semiconductor RCSC
1. maje 1009
765 61 Roznov p. R. Czech republic, Europe
MC33905_MUX_OUT
08_USB_RS232_Interface
/RESET
A
RS232_RX
RS232_TX
RXD0
TXD0
RXD1
TXD1
RXCAN
TXCAN
08_USB_RS232_Interface
04_MCU
5
MC33905_/INT
MC33905_/RST
LIN_RX
LIN_TX
S12G BLDC Development Kit
CAN_RX
CAN_TX
03_Power_Supply_LIN_CAN
4
This document contains information proprietary to Freescale Semiconductor and shall not be used for
engineering design, procurement or manufacture in whole or in part without the express written permission
of Freescale Semiconductor.
ICAP Classification:
FCP: ____
FIUO: X
PUBI: ____
Designer:
Drawing Title:
<Designer>
3
Drawn by:
<DrawnBy>
Page Title:
Approved:
<Approver>
Size
B
Document Number
Date:
Monday, February 06, 2012
2
System Connection
Rev
X
SCH-27496 PDF: SPF-27496
Sheet
1
2
of
9
A
5
4
A
D1
3
2
1
C
TP1
+5V
ES1JL
R1
1.0K
+ C1
10UF
C2
0.1UF
J1
1
3
2
A
D
A
D
D2
C
D3
HSMG-C170
ES1JL
GNDD
TP2
+3.3VA_MCU
C
CON_1_PWR
GNDD
GND
L1
GNDD
VSUP <+8V, +28V>
J2
1000 OHM
VSUP
+ C4
10UF
1
D4
A
+VSUP_PWR_IN
C
R2
C3
0.1UF
ES1JL
C5
330UF
+
C7
C6
330UF
R3
10.0K
GND
B
A
1
GND
R4
R7
GND
C
R6
1.0K
A
16
20
GND
R13
10.0K
R14
C11
0.1UF
1
1
GND
C
GND
32
VB
VE
31
13
VAUX
C
GNDD
TXD
RXD
TXD_L
RXD_L
22
23
R10
0 R12
MC33905_/RST
MC33905_/INT
0
26
25
27
24
14
MC33905_MOSI
MC33905_SCLK
MC33905_MISO
MC33905_/CS
R11
0
29
30
18
19
U1
MCZ33905BS3EK
MC33905_MUX_OUT
R15
4.7K
6
GNDA
+ C14
10UF
CAN_TX
CAN_RX
LIN_TX
LIN_RX
C15
0.1UF
B
4
3
J7
SW1
B3S-1002
2
2
C13
47PF
CANH
SPLIT
CANL
LIN_T
LIN
GNDD
28
EX_PAD
3
C12
47PF
CON_1x4
J6
5V_CAN
GND
7
10
8
4
17
TERMINATE
I/O_0
I/O_1
I/O_3
9
2
R17
60.4
VSENSE
MUX_OUT
15
21
3
1
4
1
2
R16
60.4
MOSI
SCLK
MISO
CS
10.0K
L2
B82789C0513N002
CANH
CANL
RST
INT
DBG
GND_CAN
CAN
D9
NUP2105L
GNDD
HSMG-C170
VDD
33
C
R9
4.7K
VSUP1
VSUP2
SAFE
12
11
1
2
5
VBAUX
2
VCAUX
R8
1.0K
J4
D8
MMSZ8V2T1G
0
A
2
1
4.7K
C8
0.1UF
D7
J3
1
VSUP
+ C9
10UF
A
D6
HSMS-C170
GND
C
3
+3.3VD_MCU
R5
1.0K
C10
0.1UF
B
GNDA
TP3
Q1
BCP52-16
+3.3VD_MCU
M2
1
2
3
4
M1
GNDA
C
ES1JL
J5
0
2
4
C
GND
D5
GND
3
0.1UF
E
+
GND
GND
2
1
C16
4700PF
GND
GND
GND
J8
1
R18
2
LIN
1.0K
4
3
2
1
A
MMSD914T1
VSUP
J10
C17
J11
J12
J13
1
GND
1
GND
1
220PF
CON PLUG 4
1
J9
D10
C
GND
GNDA
GNDD
GNDD
Freescale Semiconductor RCSC
A
A
1. maje 1009
765 61 Roznov p. R. Czech republic, Europe
This document contains information proprietary to Freescale Semiconductor and shall not be used for
engineering design, procurement or manufacture in whole or in part without the express written permission
of Freescale Semiconductor.
ICAP Classification:
FCP: ____
FIUO: X
PUBI: ____
Designer:
Drawing Title:
<Designer>
S12G BLDC Development Kit
5
4
3
2
Drawn by:
<DrawnBy>
Page Title:
Approved:
<Approver>
Size
C
Document Number
Date:
Monday, February 06, 2012
Power Supply, LIN, CAN
Rev
X
SCH-27496 PDF: SPF-27496
Sheet
1
3
of
9
5
4
3
2
1
J14
PA0
PA2
PA4
PA6
PJ7
PJ5
PJ3
PJ1
U2
PA0
PA1
PA2
PA3
PA4
PA5
J15
2
4
6
8
10
12
14
16
18
20
22
24
26
PB0
PB2
PB4
PB6
PP1
PP3
PP5
PP7
PT6
PT4
PT2
PT0
HDR_2X13
GNDD
/IRQ
PC3
PC4
PC5
PC6
PC7
GNDD
J16
PC0
PC2
PC4
PC6
PAD0
PAD2
PAD4
PAD6
PAD8
PAD10
PAD12
PAD14
C
1
3
5
7
9
11
13
15
17
19
21
23
25
2
4
6
8
10
12
14
16
18
20
22
24
26
PC1
PC3
PC5
PC7
PAD1
PAD3
PAD5
PAD7
PAD9
PAD11
PAD13
PAD15
KWJ4
KWJ5
KWJ6
KWJ7
RXCAN
TXCAN
HDR_2X13
GNDD
GNDA
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
4
5
6
7
16
17
18
19
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
25
26
27
28
47
48
49
50
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7
51
52
53
54
71
72
73
74
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
78
79
80
81
94
95
96
97
PJ0
PJ1
PJ2
PJ3
PJ4
PJ5
PJ6
PJ7
20
21
22
23
3
2
1
100
PM0
PM1
PM2
PM3
92
93
98
99
10
9
11
VDDX1
J17
PD1
PD3
PD5
PD7
PS0
PS2
PS4
PS6
PM0
PM2
+3.3VD_MCU
2
4
6
8
10
12
14
16
18
20
22
24
26
PD0
PD2
PD4
PD6
PS1
PS3
PS5
PS7
PM1
PM3
VDDX2
91
90
VDDX3
37
38
VDDA
76
77
VRH
75
13
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
PB0/ECLK
PB1/API_EXTCLK
PB2/ECLKX2
PB3
PB4/IRQ
PB5/XIRQ
PB6
PB7
PT0/IOC0
PT1/IOC1
PT2/IOC2
PT3/IOC3
PT4/IOC4
PT5/IOC5
PT6/IOC6
PT7/IOC7
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7
PAD0/KWAD0/AN0
PAD1/KWAD1/AN1
PAD2/KWAD2/AN2
PAD3/KWAD3/AN3
PAD4/KWAD4/AN4
PAD5/KWAD5/AN5
PAD6/KWAD6/AN6
PAD7/KWAD7/AN7
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
PAD8/KWAD8/AN8
PAD9/KWAD9/AN9
PAD10/KWAD10/AN10
PAD11/KWAD11/AN11
PAD12/KWAD12
PAD13/KWAD13
PAD14/KWAD14
PAD15/KWAD15
PJ0/KWJ0/MISO1
PJ1/KWJ1/MOSI1
PJ2/KWJ2/SCK1
PJ3/KWJ3/SS1
PJ4/KWJ4/MISO2
PJ5/KWJ5/MOSI2
PJ6/KWJ6/SCK2
PJ7/KWJ7/SS2
PS0/RXD0
PS1/TXD0
PS2/RXD1
PS3/TXD1
PS4/MISO0
PS5/MOSI0
PS6/SCK0
PS7/API_EXTCLK/SS0
PM0/RXCAN
PM1/TXCAN
PM2/RXD2
PM3/TXD2
R20
100
29
30
31
32
33
34
35
36
PP0
PP1
PP2
PP3
PP4
PP5
PP6
PP7
46
45
44
43
42
41
40
39
PT0
PT1
PT2
PT3
PT4
PT5
PT6
PT7
55
57
59
61
63
65
67
69
PAD0
PAD1
PAD2
PAD3
PAD4
PAD5
PAD6
PAD7
56
58
60
62
64
66
68
70
PAD8
PAD9
PAD10
PAD11
PAD12
PAD13
PAD14
PAD15
0
R22
0
GNDA
R23
AN1
DNP
R26
0
C19
100 PF
GNDA
DNP
R27
0
R29
0
R28
100
PAD2
AN2
C20
100 PF
R30
0
R31
0
GNDA
R32
100
PAD3
82
83
84
85
86
87
88
89
AN3
DNP
C21
100 PF
GNDA
PS0
PS1
PS2
PS3
PS4
PS5
PS6
PS7
RXD0
TXD0
RXD1
TXD1
MISO0
MOSI0
SCK0
/SS0
DNP
R33
0
R35
0
R34
100
PAD4
C
AN4
C22
100 PF
R36
0
R37
0
GNDA
100
GNDD
76
75
1
VDDR
VDDX1
VSSX1
PE0/EXTAL
PE1/XTAL
14
R38
100
PAD5
AN5
22pF
Y1
8MHz
12
DNP
C24
100 PF
C25
VDDX2
VSSX2
VDDX3
VSSX3
26
50
TEST
VDDA
VSSA
GNDA
GNDD
51
25
BKGD/MODC
VRH
VSS
RESET
15
22pF
GNDD
24
BKGD
8
/RST
R39
J18
1
100
PAD6
2
AN6
/RESET
C26
100 PF
MC9S12G128
C27
4700PF
GNDA
GNDD
R40
GNDD
D
100
PAD1
KWP2
PWM3
KWP4
PWM5
KWP6
PWM7
SW2
B3S-1002
HDR_2X13
R24
C23
L3
1000 OHM
+3.3VD_MCU
R25
0
PP0/KWP0/ETRIG0/PWM0
PP1/KWP1/ETRIG1/PWM1
PP2/KWP2/ETRIG2/PWM2
PP3/KWP3/ETRIG3/PWM3
PP4/KWP4/PWM4
PP5/KWP5/PWM5
PP6/KWP6/PWM6
PP7/KWP7/PWM7
100
PAD7
2
1
GNDD
1
3
5
7
9
11
13
15
17
19
21
23
25
0
C18
100 PF
HDR_2X13
1
3
5
7
9
11
13
15
17
19
21
23
25
0
R21
AN0
GNDD
D
PB1
PB3
PB5
PB7
PP0
PP2
PP4
PP6
PT7
PT5
PT3
PT1
DNP
R19
PAD0
2
PJ6
PJ4
PJ2
PJ0
2
4
6
8
10
12
14
16
18
20
22
24
26
1
GNDD
1
3
5
7
9
11
13
15
17
19
21
23
25
4
3
PA1
PA3
PA5
PA7
AN7
GNDD
GNDA
C28
100 PF
B
B
GNDD
GNDA
R41
J19
1
3
5
BKGD
100
PAD8
2
4
6
AN8
GNDD
/RST
C29
100 PF
+3.3VD_MCU
CON 2X3 PLUG TH 100MIL
C30
0.1UF
GNDA
GNDD
R42
1.0K
VDDA
+3.3VA_MCU
L4
C34
0.1UF
GNDA
D11
A
+3.3VD_MCU
HSMG-C170
+ C31
10UF
C35
0.1UF
C32
0.1UF
GNDD
R43
1.0K
GNDD
VDDX2
GNDA
C
PC0
1000 OHM
VRH
+ C33
10UF
VDDX1
+3.3VD_MCU
PC1
GNDA
Configure ADC signals used for BEMF and BLDC motor current sensing:
------------------------------------------------------------------- AN0, AN1 populate R21, R24
- AN2, AN3 populate R29, R30
- AN4, AN5 populate R35, R36
D12
C
A
HSMG-C170
C36
0.1UF
R44
10.0K
GNDD
A
Freescale Semiconductor RCSC
PC2
C37
0.1UF
This document contains information proprietary to Freescale Semiconductor and shall not be used for
engineering design, procurement or manufacture in whole or in part without the express written permission
of Freescale Semiconductor.
ICAP Classification:
FCP: ____
FIUO: X
PUBI: ____
Designer:
Drawing Title:
<Designer>
SW3
B3S-1002
S12G BLDC Development Kit
2
1
GNDD
GNDD
5
4
3
A
1. maje 1009
765 61 Roznov p. R. Czech republic, Europe
4
3
VDDX3
2
Drawn by:
<DrawnBy>
Page Title:
Approved:
<Approver>
Size
C
Document Number
Date:
Monday, March 12, 2012
MCU
Rev
X
SCH-27496 PDF: SPF-27496
Sheet
1
4
of
9
5
4
3
2
+3.3VD_MCU
J20
1
+3.3VD_MCU
J21
C38
C39
1
2
3
GNDD
1
2
3
GNDD
0.1UF
1
R47 1.0K
PWMC
7
C41
100 PF
GNDD
GNDD
GNDD
1
2
3
J23
1
2
3
J22
U3B
R49 620
U5B
5
D15
BAT54T1G
C
A
D
PWMC_/HS
GND
SN74LVC2G08DCT
R48 15.0K
4
GNDD
7
2
GND
SN74LVC2G08DCT
C40
100 PF
U5A
VCC
1
PWMA_/HS
2
R46 15.0K
D14
BAT54T1G
A
C
8
U3A
VCC
4
PWMA
D
D13
BAT54T1G
A
C
8
R45 1.0K
0.1UF
3
PWMA_LS
6
R51 22.0K
R50 620
SN74LVC2G08DCT
5
D16
BAT54T1G
C
A
3
6
R52 22.0K
PWMC_LS
SN74LVC2G08DCT
C
C
C42
100 PF
C43
100 PF
GNDD
GNDD
CTRLA
CTRLC
+3.3VD_MCU
J24
C44
1
2
3
GNDD
0.1UF
PWMB
D17
BAT54T1G
A
C
8
R53 1.0K
B
1
U4A
VCC
7
2
B
PWMB_/HS
GND
SN74LVC2G08DCT
4
R54 15.0K
C45
100 PF
GNDD
GNDD
Insert Dead time ~2us:
----------------------Yes - Place jumper on J2x headers, pins 2,3
No - Place jumper on J2x headers, pins 1,2
1
2
3
J25
U4B
R55 620
Freescale Semiconductor RCSC
5
D18
BAT54T1G
C
A
3
6
R56 22.0K
1. maje 1009
765 61 Roznov p. R. Czech republic, Europe
PWMB_LS
SN74LVC2G08DCT
This document contains information proprietary to Freescale Semiconductor and shall not be used for
engineering design, procurement or manufacture in whole or in part without the express written permission
of Freescale Semiconductor.
ICAP Classification:
FCP: ____
FIUO: X
PUBI: ____
Drawing Title:
Designer:
<Designer>
A
C46
100 PF
S12G BLDC Development Kit
Drawn by:
<DrawnBy>
Page Title:
Approved:
<Approver>
Size
B
Document Number
Date:
Monday, February 06, 2012
PWM and Dead Time Unit
GNDD
CTRLB
5
4
3
2
Rev
X
SCH-27496 PDF: SPF-27496
Sheet
1
5
of
9
A
5
4
3
2
1
+3.3VD_MCU
+3.3VD_MCU
FLT0_OUT
3
R57
10K
R58
10.0K
R59
+3.3VD_MCU
2
C49
+3.3VD_MCU
U6A
LM393M_NL
GNDD
7
GND
MC74AC32DG
C53
0.1UF
GNDD
10.0K
R66
1.0M
FLT_OUT
4
NC
Y
A
GND
1
R69
10K
-
R
3
FLT_RST
GNDD
FLT1_DET_ALT
FLT_/Q
U7B
4
PWMA_/HS_IN
C
U6B
LM393M_NL
FLT_Q
4
6
FLT_Q
Q
R68
10.0K
B
5
1
2
3
3
6
3
GNDD
GNDD
5
U8B
SN74LVC2G02DCTR
7
4
2
J28
1
2
3
+
6
U9A
MC74AC08DG
2
R67
10.0K
8
C55
0.1UF
5
EN_IN
GNDD
J29
GNDD
U8A
SN74LVC2G02DCTR
1
NC7SZ14
+3.3VD_MCU
EN_OUT
GNDD
VCC
+3.3VD_MCU
C54
4700PF
3
GNDD
+3.3VD_MCU
C
VCC
GND
+3.3VD_MCU
5
FLT1_DET
D
2
U10
GNDD
R65
1
FLT_/Q
/Q
2
GND
GNDD
GNDD
10.0K
8
7
VCC
2
FLT1_OUT
VCC
7
1
1
GNDD
0.1UF
14
0.1UF
S
U7A
3
-
C52
4700PF
GNDD
R61
10.0K
1
2
3
1
4
/FLT0_DET
+
J27
R60
10.0K
0.1UF
R62
10.0K
4
10.0K
2
R64
J26
1
2
3
C48
0.1UF
14
3
R63
GNDD
GNDD
GNDD
8
GNDD
C50
C51
+3.3VD_MCU
C47
0.1UF
1
D
+3.3VD_MCU
1.0M
6
PWMA_/HS_OUT
PWMA_LS_IN
5
PWMA_LS_OUT
U9B
MC74AC08DG
MC74AC32DG
Configure on board Fault logic:
------------------------------1. Select source of OC protection, J29
2. MCU /IRQ based (software based) Fault logic:
- jumper on J26, pins 2, 3
- jumper on J27, open
- jumper on J28, open
3. HW based Fault logic using gate driver
MC33972_EN signal to turn OFF MOSFETs:
- jumper on J26, pins 1, 2
- jumper on J27, pins 2, 3
- jumper on J28, open
4. HW based Fault logic using on board logic to turn OFF
MOSFETs (/HS = H, LS = L):
- jumper on J26, pins 1, 2
- jumper on J27, pins 1, 2
- jumper on J28, pins 1, 2
B
U7C
9
9
8
10
PWMB_/HS_IN
8
PWMB_/HS_OUT
PWMB_LS_IN
10
PWMB_LS_OUT
1. maje 1009
765 61 Roznov p. R. Czech republic, Europe
U7D
12
12
11
A
13
PWMC_/HS_IN
11
PWMC_/HS_OUT
PWMC_LS_IN
13
U9D
MC74AC08DG
MC74AC32DG
5
Freescale Semiconductor RCSC
U9C
MC74AC08DG
MC74AC32DG
4
3
PWMC_LS_OUT
This document contains information proprietary to Freescale Semiconductor and shall not be used for
engineering design, procurement or manufacture in whole or in part without the express written permission
of Freescale Semiconductor.
ICAP Classification:
FCP: ____
FIUO: X
PUBI: ____
Designer:
Drawing Title:
<Designer>
S12G BLDC Development Kit
Drawn by:
<DrawnBy>
Page Title:
Approved:
<Approver>
Size
B
Document Number
Date:
Thursday, March 01, 2012
2
Fault Logic
Rev
X
SCH-27496 PDF: SPF-27496
Sheet
1
6
of
9
A
5
4
3
GNDD
PWM_AT
PWM_AB
PWM_BT
PWM_BB
PWM_CT
PWM_CB
J31
UNI3_+12V/+15V_PWR_OUT
DCBV
R73
BRAKE
470
ZCB
BEMF_B
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
D
1
2
3
4
5
6
+5V
J32
HDR 1X6
R70
1.0K
C56
47PF
ZCA
ZCC
BEMF_A
BEMF_C
+5V
SOUT
MC33937_/CS
GNDD
J33
JP1
2
4
6
8
10
R74
6.2K
GNDD
C
R75
1.0K
1
2
3
4
5
6
GNDA
1
3
5
7
9
3.3K
+5V
J34
EN
R72
HALL0/ZCA
TP
CON_2X20
MC33937_EN
MC33937_/RST
ZCA
DCBI
C
GNDA
1
2
3
R71
27
R76
27
1
2
3
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
PWM_AT
PWM_AB
PWM_BT
PWM_BB
PWM_CT
PWM_CB
1
JP2
D
PWM_AT
PWM_AB
PWM_BT
PWM_BB
PWM_CT
PWM_CB
2
ZCB
R77
HALL1/ZCB
C57
47PF
HALL SENSORS
OC
INT
+5V
3.3K
R78
6.2K
GNDD
GNDD
MC33937_SCK
MC33937_SIN
J35
GNDD
R79
1.0K
HDR_2X5
1
2
3
R80
27
ZCC
R82
R81
OC
MC33937_OC
3.3K
C58
47PF
1
B
HALL2/ZCC
OC
R83
6.2K
R84
6.2K
B
GNDD
2
J30
3.3K
GNDD
EN
GNDD
R85
INT
MC33937_INT
3.3K
R86
6.2K
Freescale Semiconductor RCSC
1. maje 1009
765 61 Roznov p. R. Czech republic, Europe
GNDD
R87
TP
MC33937_SOUT
3.3K
TEMP
3.3K
R89
6.2K
GNDD
5
This document contains information proprietary to Freescale Semiconductor and shall not be used for
engineering design, procurement or manufacture in whole or in part without the express written permission
of Freescale Semiconductor.
ICAP Classification:
FCP: ____
FIUO: X
PUBI: ____
Designer:
Drawing Title:
<Designer>
R88
SOUT
A
R90
6.2K
S12G BLDC Development Kit
GNDA
4
3
Drawn by:
<DrawnBy>
Page Title:
Approved:
<Approver>
Size
B
Document Number
Date:
Monday, February 06, 2012
2
UNI 3 Interface
Rev
X
SCH-27496 PDF: SPF-27496
Sheet
1
7
of
9
A
5
4
3
D
2
1
D
Isolation Barrier
RS232_RX
VDD_USB
RS232_TX
+3.3VD_MCU
GNDD
VIA
VOA
VIB
VOB
5
4
GND1
3
C
GND_USB
C
GNDD
C61
0.1UF
U12
A
B
9
10
C
6
23
22
13
14
12
NC_8
RESET
NC_24
DSR
DCD
OSCI
RI
OSCO
FT232RL
R94
27
VDD_USB
DTR
CBUS0
CBUS1
CBUS2
CBUS3
CBUS4
15
3V3OUT
8
19
24
C62
27
4.7uF
L5
1000 OHM
-D
+D
G
V
1
D20
HSMY-C170
USBDP
S2
2
3
4
1
S1
2
D19
HSMY-C170
USBDM
CTS
J36
27
4
2
RTS
R93
3
11
GND_USB
16
USB_TYPE_B
C63
0.01UF
B
28
17
GND3
GND2
GND1
AGND
3
4
20
GND_USB
C64
0.1UF
21
18
7
25
R92
1.0K
VCCIO
VCC
TEST
R91
1.0K
TXD
RXD
26
1
5
A
6
ADUM1201
VDD_USB
C
2
GND2
7
C60
0.1UF
8
VDD1
U11
VDD2
C59
0.1UF
1
GND_USB
GND_USB
Freescale Semiconductor RCSC
1. maje 1009
765 61 Roznov p. R. Czech republic, Europe
This document contains information proprietary to Freescale Semiconductor and shall not be used for
engineering design, procurement or manufacture in whole or in part without the express written permission
of Freescale Semiconductor.
ICAP Classification:
FCP: ____
FIUO: X
PUBI: ____
Designer:
Drawing Title:
<Designer>
A
S12G BLDC Development Kit
5
4
3
Drawn by:
<DrawnBy>
Page Title:
Approved:
<Approver>
Size
B
Document Number
Date:
Monday, February 06, 2012
2
USB to RS232 Interface
Rev
X
SCH-27496 PDF: SPF-27496
Sheet
1
8
of
9
A
5
4
3
+3.3VD_MCU
D
2
+3.3VD_MCU
GNDD
14
U13A
VCC
2
C66
0.1UF
R95
1.0K
D21
C
GND
MC74HC04ADG
A
+3.3VD_MCU
1
LED7_R
HSMY-C170
7
14
7
1
GNDD
LED2_Y
U14A
VCC
2
R96
1.0K
D22
C
GND
MC74HC04ADG
A
+3.3VD_MCU
HSMS-C170
GNDD
U13B
3
D
GNDD
C65
0.1UF
LED1_Y
1
R97
1.0K
4
U14B
D23
C
A
3
LED8_R
R98
1.0K
4
D24
C
HSMY-C170
A
+3.3VD_MCU
HSMS-C170
MC74HC04ADG
MC74HC04ADG
C
R99
4.7K
U13C
LED3_Y
5
R102
1.0K
6
U14C
D25
C
A
5
LED9_G
R103
1.0K
6
C
HSMY-C170
D26
SW4
EC11J1524802
A
ROTA
C
MC74HC04ADG
B
R104
1.0K
12
U14D
C
D27
A
9
LED10_G
R105
1.0K
8
C
HSMG-C170
D28
A
HSMG-C170
MC74HC04ADG
MC74HC04ADG
U13E
U14E
D
D
ROTSW
COMMON
B
E
E
S1
S2
S3
S4
S5
S6
U13F
13
A
GND1
GND2
GND3
GND4
GND5
GND6
ROTB
LED4_G
C
R101
4.7K
A
HSMG-C170
MC74HC04ADG
R100
4.7K
GNDD
B
LED5_G
11
R106
1.0K
10
C
D29
A
11
LED11_G
R107
1.0K
10
HSMG-C170
U13D
9
B
A
MC74HC04ADG
R108
1.0K
8
D30
HSMG-C170
MC74HC04ADG
LED6_G
C
U14F
C
D31
A
13
12
HSMG-C170
MC74HC04ADG
MC74HC04ADG
GNDD
Freescale Semiconductor RCSC
1. maje 1009
765 61 Roznov p. R. Czech republic, Europe
This document contains information proprietary to Freescale Semiconductor and shall not be used for
engineering design, procurement or manufacture in whole or in part without the express written permission
of Freescale Semiconductor.
ICAP Classification:
FCP: ____
FIUO: X
PUBI: ____
Designer:
Drawing Title:
<Designer>
A
S12G BLDC Development Kit
5
4
3
Drawn by:
<DrawnBy>
Page Title:
Approved:
<Approver>
Size
B
Document Number
Date:
Monday, February 06, 2012
2
LEDs and Control
Rev
X
SCH-27496 PDF: SPF-27496
Sheet
1
9
of
9
A
MC9S12G128 Controller Board Schematic
MC9S12G128 Controller Board User Guide, Rev. 1.0
38
Freescale Semiconductor
How to Reach Us:
Home Page:
www.freescale.com
Web Support:
http://www.freescale.com/support
USA/Europe or Locations Not Listed:
Freescale Semiconductor, Inc.
Technical Information Center, EL516
2100 East Elliot Road
Tempe, Arizona 85284
1-800-521-6274 or +1-480-768-2130
www.freescale.com/support
Europe, Middle East, and Africa:
Freescale Halbleiter Deutschland GmbH
Technical Information Center
Schatzbogen 7
81829 Muenchen, Germany
+44 1296 380 456 (English)
+46 8 52200080 (English)
+49 89 92103 559 (German)
+33 1 69 35 48 48 (French)
www.freescale.com/support
Japan:
Freescale Semiconductor Japan Ltd. Headquarters
ARCO Tower 15F
1-8-1, Shimo-Meguro, Meguro-ku,
Tokyo 153-0064
Japan
0120 191014 or +81 3 5437 9125
support.japan@freescale.com
Asia/Pacific:
Freescale Semiconductor China Ltd.
Exchange Building 23F
No. 118 Jianguo Road
Chaoyang District
Beijing 100022
China
+86 10 5879 8000
support.asia@freescale.com
Freescale Semiconductor Literature Distribution Center
1-800-441-2447 or +1-303-675-2140
Fax: +1-303-675-2150
LDCForFreescaleSemiconductor@hibbertgroup.com
Information in this document is provided solely to enable system and
software implementers to use Freescale Semiconductor products. There are
no express or implied copyright licenses granted hereunder to design or
fabricate any integrated circuits or integrated circuits based on the
information in this document.
Freescale Semiconductor reserves the right to make changes without further
notice to any products herein. Freescale Semiconductor makes no warranty,
representation or guarantee regarding the suitability of its products for any
particular purpose, nor does Freescale Semiconductor assume any liability
arising out of the application or use of any product or circuit, and specifically
disclaims any and all liability, including without limitation consequential or
incidental damages. “Typical” parameters that may be provided in Freescale
Semiconductor data sheets and/or specifications can and do vary in different
applications and actual performance may vary over time. All operating
parameters, including “Typicals”, must be validated for each customer
application by customer’s technical experts. Freescale Semiconductor does
not convey any license under its patent rights nor the rights of others.
Freescale Semiconductor products are not designed, intended, or authorized
for use as components in systems intended for surgical implant into the body,
or other applications intended to support or sustain life, or for any other
application in which the failure of the Freescale Semiconductor product could
create a situation where personal injury or death may occur. Should Buyer
purchase or use Freescale Semiconductor products for any such unintended
or unauthorized application, Buyer shall indemnify and hold Freescale
Semiconductor and its officers, employees, subsidiaries, affiliates, and
distributors harmless against all claims, costs, damages, and expenses, and
reasonable attorney fees arising out of, directly or indirectly, any claim of
personal injury or death associated with such unintended or unauthorized
use, even if such claim alleges that Freescale Semiconductor was negligent
regarding the design or manufacture of the part.
Freescale™ and the Freescale logo are trademarks of Freescale
Semiconductor, Inc. All other product or service names are the property of their
respective owners.
© Freescale Semiconductor, Inc. 2012. All rights reserved.
MC9S12G128MCBUG
Rev. 1.0
08/2012
Download