KTTWRMCMVHB1EVBUG, TWR-MC-MVHB1EVB Tower System Platform - User s Guide

Freescale Semiconductor, Inc.
User’s Guide
Document Number: KTTWRMCMVHB1EVBUG
Rev. 2.0, 9/2015
TWR–MC–MVHB1EVB Tower System Platform
Figure 1. TWR–MC–MVHB1EVB
© Freescale Semiconductor, Inc., 2015. All rights reserved.
Contents
1
2
3
4
5
6
7
8
9
10
11
Important Notice. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Getting Started. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Understanding the Freescale Tower System Platform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Getting to Know the Hardware. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Setting up the Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Installing Processor Expert Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Board Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Board Bill of Materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
References. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
KTTWRMCMVHB1EVBUG Rev. 2.0
2
Freescale Semiconductor, Inc.
Important Notice
1
Important Notice
Freescale provides the enclosed product(s) under the following conditions:
This evaluation kit is intended for use of ENGINEERING DEVELOPMENT OR EVALUATION PURPOSES ONLY.
It is provided as a sample IC pre-soldered to a printed circuit board to make it easier to access inputs, outputs, and
supply terminals. This evaluation board may be used with any development system or other source of I/O signals
by simply connecting it to the host MCU or computer board via off-the-shelf cables. This evaluation board is not a
Reference Design and is not intended to represent a final design recommendation for any particular application.
Final device in an application will be heavily dependent on proper printed circuit board layout and heat sinking
design as well as attention to supply filtering, transient suppression, and I/O signal quality.
The goods provided may not be complete in terms of required design, marketing, and or manufacturing related
protective considerations, including product safety measures typically found in the end product incorporating the
goods. Due to the open construction of the product, it is the user's responsibility to take any and all appropriate
precautions with regard to electrostatic discharge. In order to minimize risks associated with the customers
applications, adequate design and operating safeguards must be provided by the customer to minimize inherent or
procedural hazards. For any safety concerns, contact Freescale sales and technical support services.
Should this evaluation kit not meet the specifications indicated in the kit, it may be returned within 30 days from the
date of delivery and will be replaced by a new kit.
Freescale reserves the right to make changes without further notice to any products herein. Freescale makes no
warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does
Freescale 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
can and do vary in different applications and actual performance may vary over time. All operating parameters,
including “Typical”, must be validated for each customer application by customer’s technical experts.
Freescale does not convey any license under its patent rights nor the rights of others. Freescale 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
product could create a situation where personal injury or death may occur.
Should the Buyer purchase or use Freescale products for any such unintended or unauthorized application, the
Buyer shall indemnify and hold Freescale 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 Freescale 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. 2015
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
3
Getting Started
2
Getting Started
2.1
Kit Contents/Packing List
The TWR-MC-MVHB1EVB contents include:
• Assembled and tested evaluation board/module in anti-static bag
• Quick Start Guide, Analog Tools
• Warranty card
2.2
Jump Start
Freescale’s analog product development boards help to easily evaluate Freescale products. These tools support analog mixed signal and
power solutions including monolithic ICs using proven high-volume SMARTMOS mixed signal technology, and system-in-package devices
utilizing power, SMARTMOS and MCU dies. Freescale products enable longer battery life, smaller form factor, component count reduction,
ease of design, lower system cost and improved performance in powering state of the art systems.
• Click here: www.freescale.com/TWR-MC-MVHB1EVB
• Review your Tool Summary Page
• Look for
Jump Start Your Design
• Download documents, software and other information
Once the files are downloaded, review the user guide in the bundle. The user guide includes setup instructions, BOM and schematics.
Jump start bundles are available on each tool summary page with the most relevant and current information. The information includes
everything needed for design.
2.3
Required Equipment and Software
To use this kit, you need:
• Power supply 8.0 V—36 V with current limit set initially to max 5.0 A.
• Typical loads: DC brushed motor, stepper motor,
• Wire cables for power supply and load connection.
• Other Tower modules (MCU, ELEV etc): www.freescale.com/tower
• (Optional) MVHBRIDGE-PEXPERT: (See www.freescale.com/MVHBRIDGE-PEXPERT)
2.4
System Requirements
The kit requires the following to function properly with the software:
• Windows® XP, Windows 7, or Vista in 32- and 64-bit versions
KTTWRMCMVHB1EVBUG Rev. 2.0
4
Freescale Semiconductor, Inc.
Understanding the Freescale Tower System Platform
3
Understanding the Freescale Tower System Platform
Freescale's Tower System peripheral module is designed to be used in conjunction with other Tower System modules.
The Freescale Tower System platform is a modular development environment for 8-, 16- and 32-bit MCUs and MPUs that enables
advanced development through rapid prototyping. Featuring more than fifty development boards or modules, the Tower System platform
provides designers with building blocks for entry-level to advanced MCU development.
TWR-ELEV-PRI
(Primary)
TWR-ELEV-SEC
(Secondary)
TWR-MC-MVHB1EVB
TWR-MCU
Figure 2. Tower System Overview
Table 1. Description
Name
Description
TWR-MC-MVHB1EVB
TWR-MC-MVHB1EVB Evaluation Board
Tower MCU Board
Additional Freescale Tower boards (Optional)
TWR-ELEV-PRI
Tower System Elevator Primary Module
TWR-ELEV-SEC
Tower System Elevator Secondary Module
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
5
Understanding the Freescale Tower System Platform
3.1
Block Diagram
Primary Elevator Connection
Zero
0
Resistors
0
0
0
0
0
0
0
P3.3V
0
P5V
VDD Jumper
0
OUT4|OUT3
Motor
Connector
MC33932
Power
Connector
MC33932
x2
Dual
H-Bridge
Motor Driver
x3
Enable
Disable
FB
SF
x2
SLEW
INx
x2
INV
x2
x2
x4
SFx
OUT2|OUT1
Motor
Connector
Enable
Disable
FBx
INx
x4
VDD LED
x2
MC33926
Single
H-Bridge
x2
Status LED
Power LED
x2
Power LED
Status LEDs
OUT1|OUT2
Motor
Connector
MC33926
Power
Connector
Secondary Elevator Connection
Figure 3. TWR-MC-MVHB1EVB Block Diagram
Table 2. Device Features
Device
MC33932
MC33926
Note
1.
(1)
Description
Features
MC33932 is a monolithic H-bridge
Power IC in a robust thermally enhanced package with two independent
H-bridges.
•
•
•
•
•
•
5.0 V to 28 V continuous operation (transient operation from 5.0 V to 40 V)
235 mΩ maximum RDS(on) at 150 °C (each H-bridge MOSFET)
3.0 V and 5.0 V TTL / CMOS logic compatible inputs
Output short-circuit protection (short to VPWR or GND)
Overcurrent limiting (regulation) via internal constant-off-time PWM
Temperature dependant current limit threshold reduction to allow for continuous operation
without shutdown
• Sleep mode with current draw < 50 μA (each half with inputs floating or set to match default
logic states)
MC33926 is a monolithic H-bridge
Power IC in a robust thermally enhanced package with single H-bridge
•
•
•
•
•
•
5.0 V to 28 V continuous operation (transient operation from 5.0 V to 40 V)
235 mΩ maximum RDS(on) at 150 °C (each H-bridge MOSFET)
3.0 V and 5.0 V TTL / CMOS logic compatible inputs
Output short-circuit protection (short to VPWR or GND)
Overcurrent limiting (regulation) via internal constant-off-time PWM
Temperature dependant current limit threshold reduction to allow for continuous operation
without shutdown
• Sleep mode with current draw < 50 μA (each half with inputs floating or set to match default
logic states)
• Fast or slow slew rate adjustment
For MC33931, MC34931, and MC34931S software development, use one half of the MC33932. For MC34932, use MC33932.
KTTWRMCMVHB1EVBUG Rev. 2.0
6
Freescale Semiconductor, Inc.
Getting to Know the Hardware
4
Getting to Know the Hardware
4.1
Board Overview
The TWR-MC-MVHB1EVB is a Tower System peripheral module circuit board allowing the user to exercise all the functions of two
H-bridge motor driver ICs (MC33932 and MC33926.)
4.2
Board Features
The board features are as follows:
• Compatibility with Freescale's Tower Platform. (A zero Ω resistor is placed between the tower connector and each control
pin of the device for maximum flexibility.)
• LEDs to indicate power supply and error status
• Transient voltage suppressor to handle system level transients
• Test points to allow probing of signals
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
7
Getting to Know the Hardware
4.3
Board Description
The TWR–MC–MVHB1EVB consists of the following components:
Tower Connector
Jumper
MC33932
MC33926
MC33932
Connectors
MC33926
Connectors
LED
Test Point
Figure 4. Board Description
Table 3. Board Description
Name
Description
Jumper
VDD power selection. Select 3.3 V / 5.0 V power from tower elevator (based on what MCU tower board is connected)
LEDs
Indicate power supply and fault detection status
Test Points
Allow signal probing
Tower Connectors
Primary and secondary connectors that plug into corresponding Tower Elevator modules
MC33932
H-bridge Power IC with two independent H-bridges
MC33926
H-bridge Power IC with single H-bridge
MC33932 Connectors
MC33932 outputs and power/ground inputs
MC33926 Connectors
MC33926 outputs and power/ground inputs
KTTWRMCMVHB1EVBUG Rev. 2.0
8
Freescale Semiconductor, Inc.
Getting to Know the Hardware
4.4
LED Display
The following LEDs are provided as visual output devices for the TWR-MC-MVHB1EVB evaluation board:
D1
D10
D11
D5
D8
D2
Figure 5. LED
Table 4. LEDs
Schematic Label
Name
D1
Green LED
D2
Red LED
Description
Indicates when power supply is connected to MC33932
Illuminates when a fault is detected in H-bridge Channel B of MC33932
D5
Green LED
Indicates when power supply is connected to MC33932
D8
Green LED
Indicates when power supply is connected to MC33926
D10
Green LED
Indicates when power supply is connected to VDD (Digital power from primary connector)
D11
Red LED
Illuminates when a fault is detected for H-bridge of MC33926
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
9
Getting to Know the Hardware
4.5
Connectors
Input/output connectors provide the following signals:
J7 Primary
J8
J1
J4
J2
J5
J3
J7 Secondary
Figure 6. Connectors
Table 5. Connectors
Schematic Label
Name
Description
J1
Motor - A
Motor connector for H-bridge Channel A of MC33932
J2
Motor - B
Motor connector for H-bridge Channel B of MC33932
J3
33932 PWR - IN 8 - 28V
Power supply for MC33932 MCU
J4
Motor
Motor connector for H-bridge Channel A of MC33926
J5
33926 PWR - IN 8 - 28V
Power supply for MC33926 MCU
Primary Tower Platform Connector
Plugs into primary Tower Elevator connector TWR-ELEV-PRI
Secondary Tower Platform Connector
Plugs into secondary Tower Elevator connector TWR-ELEV-SEC
Reserved Connector
Reserved for MCU ADC/PWM interface
J7 Primary
J7 Secondary
J8
KTTWRMCMVHB1EVBUG Rev. 2.0
10
Freescale Semiconductor, Inc.
Getting to Know the Hardware
4.6
Test Point Definitions
The following test-point jumpers provide access to signals on the TWR-MC-MVHB1EVB IC:
TP7
TP2
TP4 TP15
TP21
TP28
TP8
TP19
TP1
TP6
TP9
TP17
TP16
TP22
TP24
TP18
TP5
TP12
TP14
TP10
TP11
TP23
TP29
TP3
TP27
TP13 TP20
Figure 7. Test Points
Table 6. Test Points
Schematic Label
Signal Name
Description
TP2
GND
Ground
TP3
GND
Ground
TP4
IN1
Logic input control for OUT1 - MC33932
TP5
IN2
TP6
EN/D2_bar
Enable input 1 - MC33932
Logic input control for OUT2 - MC33932
TP7
D1
Disable input 1 - MC33932
TP8
SFA_bar
Status flag A - MC33932
TP9
FBA
Feedback A - MC33932
TP10
IN3
Logic input control for OUT3 - MC33932
TP11
IN4
Logic input control for OUT4 - MC33932
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
11
Getting to Know the Hardware
Table 6. Test Points (continued)
Schematic Label
TP12
Signal Name
EN/D4_bar
Description
Enable input 2 - MC33932
TP13
D3
TP14
SF_bar
Disable input 2 - MC33932
TP15
FBB
Feedback B - MC33932
TP16
IN1
Logic input control for OUT1 - MC33926
TP17
IN2
Logic input control for OUT2 - MC33926
TP18
EN
Enable input - MC33926
TP19
D1
Disable input 1 - MC33926
TP20
D2_bar
Disable input 2 - MC33926
Status flag B - MC33932
TP21
INV
TP22
SLEW
Slew rate control - MC33926
Inverter input - MC33926
TP23
SF_bar
Status flag - MC33926
TP24
FB
Feedback - MC33926
TP27
GND
Ground
TP28
GND
Ground
TP29
GND
Ground
KTTWRMCMVHB1EVBUG Rev. 2.0
12
Freescale Semiconductor, Inc.
Getting to Know the Hardware
4.7
Jumper Definitions
The following table defines the evaluation board jumper position and explains its function:
J6
Figure 8. Jumpers
.
Table 7. Jumpers
Jumper
J6
Description
VDD power supply selection
Setting
Connection
1-2
VDD connected to 3.3 V (from Tower Elevator)
2-3
VDD connected to 5.0 V (from Tower Elevator)
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
13
Getting to Know the Hardware
4.8
Tower Elevator Connections
TWR-MC-MVHB1EVB features two expansion card edge connectors that interface to elevator boards in a Tower System: the Primary and
Secondary Elevator Connectors. Table 8 provides the pinouts for the Primary Elevator Connector (TWR-ELEV-PRI). There are no
electrical connections to the Secondary Elevator Connector (TWR-ELEV-SEC.)
Table 8. Primary Elevator Connector Pinouts
Side B
Pin
#
Name
Group
Side A
Usage
Jumper
Pin
#
Name
Group
Usage
Jumper
B1
5V
Power
5.0V Power
A1
5V
Power
B2
GND
Power
Ground
A2
GND
Power
5.0V Power
Ground
B3
3.3V
Power
3.3V Power
A3
3.3V
Power
3.3V Power
B4
ELE_PS_SENSE
Power
Elevator Power
Sense
A4
3.3V
Power
3.3V Power
B5
GND
Power
Ground
A5
GND
Power
Ground
B6
GND
Power
Ground
A6
GND
Power
Ground
B7
SDHC_CLK /
SPI1_CLK
SDHC / SPI 1
A7
SCL0
I2C 0
B8
SDHC_CS1_D3 /
SPI1_CS1
SDHC / SPI 1
A8
SDA0
I2C 0
B9
SDHC_CS0_D3 /
SPI1_CS0
SDHC / SPI 1
A9
GPIO9 / CTS1
GPIO / UART
MC33932_D1
(2)
B10
SDHC_CMD /
SPI1_MOSI
SDHC / SPI 1
A10
GPIO8 / SDHC_D2
GPIO / SDHC
MC33932_EN/
D2bar
(2)
B11
SDHC_D0 /
SPI1_MISO
SDHC / SPI 1
A11
GPIO7 /
SD_WP_DET
GPIO / SDHC
MC33932_D3
(2)
B12
ETH_COL
Ethernet
A12
ETH_CRS
Ethernet
B13
ETH_RXER
Ethernet
A13
ETH_MDC
Ethernet
B14
ETH_TXCLK
Ethernet
A14
ETH_MDIO
Ethernet
B15
ETH_TXEN
Ethernet
A15
ETH_RXCLK
Ethernet
B16
ETH_TXER
Ethernet
A16
ETH_RXDV
Ethernet
B17
ETH_TXD3
Ethernet
A17
ETH_RXD3
Ethernet
B18
ETH_TXD2
Ethernet
A18
ETH_RXD2
Ethernet
B19
ETH_TXD1
Ethernet
A19
ETH_RXD1
Ethernet
B20
ETH_TXD0
Ethernet
A20
ETH_RXD0
Ethernet
B21
GPIO1 / RTS1
GPIO / UART
(2)
A21
SSI_MCLK
SSI
B22
GPIO2 / SDHC_D1
GPIO / SDHC MC33926_D2bar
(2)
A22
SSI_BCLK
SSI
B23
GPIO3
GPIO
(2)
A23
SSI_FS
SSI
B24
CLKIN0
Clock
A24
SSI_RXD
SSI
B25
CLKOUT1
Clock
A25
SSI_TXD
SSI
Mechanical Key
MC33926_D1
MC33926_D2bar
B26
GND
Power
Ground
A26
GND
Power
Ground
B27
AN7
ADC
Reserved 7
A27
AN3
ADC
Reserved 3
B28
AN6
ADC
Reserved 6
A28
AN2
ADC
Reserved 2
B29
AN5
ADC
A29
AN1
ADC
MC33932_FBB
(2)
B30
AN4
ADC
MC33926_FB
A30
AN0
ADC
MC33932_FBA
(2)
B31
GND
Power
Ground
Ground
B32
DAC1
DAC
B33
TMR3
Timer
B34
TMR2
Timer
B35
GPIO4
(2)
A31
GND
Power
A32
DAC0
DAC
Reserved 5
A33
TMR1
Timer
Reserved 4
A34
TMR0
Timer
Reserved 0
GPIO
MC33932_EN/
D4bar
GPIO
B36
3.3V
Power
B37
PWM7
PWM
B38
PWM6
PWM
B39
PWM5
PWM
A35
3.3V Power
MC33926_IN2
(2)
GPIO6
Reserved 1
(2)
A36
3.3V
Power
3.3V Power
A37
PWM3
PWM
MC33932_IN4
(2)
A38
PWM2
PWM
MC33932_IN3
(2)
A39
PWM1
PWM
MC33932_IN2
(2)
KTTWRMCMVHB1EVBUG Rev. 2.0
14
Freescale Semiconductor, Inc.
Getting to Know the Hardware
Table 8. Primary Elevator Connector Pinouts
Side B
Pin
#
Name
Group
Side A
Usage
MC33926_IN1
Jumper
Pin
#
Name
Group
B40
PWM4
PWM
A40
PWM0
PWM
B41
CANRX
CAN
A41
RXD0
UART 0
B42
CANTX
CAN
A42
TXD0
UART 0
B43
1WIRE
1-Wire
A43
RXD1
B44
SPI0_MISO
SPI 0
MC33926_EN
(2)
A44
B45
SPI0_MOSI
SPI 0
MC33926_SLEW
(2)
A45
B46
SPI0_CS0
SPI 0
MC33926_INV
(2)
B47
SPI0_CS1
SPI 0
B48
SPI0_CLK
SPI 0
MC33926_SFbar
B49
GND
Power
Ground
(2)
(2)
Usage
MC33932_IN1
(2)
UART 1
MC33932_EN/
D4bar
(2)
TXD1
UART 1
MC33932_D1
(2)
GPIO10
GPIO
VSSA
A46
GPIO11
GPIO
VDDA
A47
GPIO12
GPIO
A48
GPIO13
GPIO
A49
GND
Power
Ground
(2)
(2)
B50
SCL1
I2C 1
A50
GPIO14
GPIO
MC33932_EN/
D4bar
B51
SDA1
I2C 1
A51
GPIO15
GPIO
MC33932_D1
B52
GPIO5 /
SD_CARD_DET
GPIO/ SDHC
A52
GPIO16
GPIO
B53
USB0_DP_PDOWN
USB 0
A53
GPIO17
GPIO
B54
USB0_DM_PDOWN USB 0
A54
USB0_DM
USB 0
B55
IRQ_H
Interrupt
A55
USB0_DP
USB 0
B56
IRQ_G
Interrupt
A56
USB0_ID
USB 0
B57
IRQ_F
Interrupt
A57
USB0_VBUS
USB 0
B58
IRQ_E
Interrupt
A58
TMR7
Timer
B59
IRQ_D
Interrupt
A59
TMR6
Timer
B60
IRQ_C
Interrupt
A60
TMR5
Timer
MC33926_SFbar
MC33926_SFbar
(2)
B61
IRQ_B
Interrupt
MC33932_SFBb
ar
B62
IRQ_A
Interrupt
MC33932_SFAb
ar
B63
EBI_ALE/EBI_CS1_
b
EBI
B64
EBI_CS0_b
EBI
B65
GND
Power
B66
EBI_AD15
EBI
A66
EBI_AD14
EBI
B67
EBI_AD16
EBI
A67
EBI_AD13
EBI
B68
EBI_AD17
EBI
A68
EBI_AD12
EBI
B69
EBI_AD18
EBI
A69
EBI_AD11
EBI
B70
EBI_AD19
EBI
A70
EBI_AD10
EBI
B71
EBI_R/W_b
EBI
A71
EBI_AD9
EBI
B72
EBI_OE_b
EBI
A72
EBI_AD8
EBI
B73
EBI_D7
EBI
A73
EBI_AD7
EBI
B74
EBI_D6
EBI
A74
EBI_AD6
EBI
B75
EBI_D5
EBI
A75
EBI_AD5
EBI
B76
EBI_D4
EBI
A76
EBI_AD4
EBI
B77
EBI_D3
EBI
A77
EBI_AD3
EBI
B78
EBI_D2
EBI
A78
EBI_AD2
EBI
B79
FB_D1
Flexbus
A79
FB_AD1
Flexbus
B80
FB_D0
Flexbus
A80
FB_AD0
Flexbus
B81
GND
Power
Ground
A81
GND
Power
Ground
B82
3.3V
Power
3.3V Power
A82
3.3V
Power
3.3V Power
Ground
Jumper
(2)
A61
TMR4
Timer
(2)
A62
RSTIN_b
Reset
A63
RSTOUT_b
Reset
A64
CLKOUT0
Clock
A65
GND
Power
Ground
Notes
2. 0 Ω resistor is connected between the pin and the connector to create a flexible connection.
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
15
Setting up the Hardware
5
Setting up the Hardware
When configured as a Freedom Tower platform module, the TWR-MC-MVHB1EVB must be used in conjunction with another Tower MCU
evaluation board (available at www.freescale.com/tower.)
The following procedure describes how to set up the hardware when the TWR-MC-MVHB1EVB is configured to drive two DC brushed
motors. (The MC33932 can only support a single stepper motor, attached to either the Channel A or the Channel B connector.)
1. Assemble the Freescale Tower platform by sliding the TWR-MC-MVHB1EVB elevator connectors into the top slots on the Tower
Elevator modules. Insert the Tower MCU evaluation board in the Tower Elevator modules in a set of slots below the
TWR-MC-MVHB1EVB.
2. Connect the USB cable between the PC and the USB port on the Tower MCU evaluation board.
3. Connect the MC33932 Channel A load to connector J1 (OUT2 & OUT1) and the MC33932 Channel B load to connector J2 (OUT4
and OUT3) on the TWR-MC-MVHB1EVB evaluation board.
4. Connect the MC33932 8.0 V—28 V DC power supply to connector J3 (PWR-IN) on the evaluation board.
5. Connect the MC33926 load to connector J4 (OUT2 & OUT1) on the TWR-MC-MVHB1EVB evaluation board.
6. Connect the MC33926 8.0 V—28 V DC power supply to connector J5 (PWR-IN) on the evaluation board.
7. Launch the software application used to communicate with the board.
Figure 9 illustrates the procedure.
TWR-MC-MVHB1EVB
MC33926
Motor
8.0 V—28 V
DC Power Supply
(MC33926)
MC33932
Motor - A
MC33932
Motor - B
Tower MCU
Evaluation Board
8.0 V—28 V
DC Power Supply
(MC33932)
Figure 9. TWR-MC-MVHB1EVB Tower System Hardware Configuration
KTTWRMCMVHB1EVBUG Rev. 2.0
16
Freescale Semiconductor, Inc.
Installing Processor Expert Software
6
Installing Processor Expert Software
6.1
Installing CodeWarrior on your Computer
This procedure explains how to obtain and install the latest version of CodeWarrior (version 10.6 in this guide).
NOTE
The sample software in this kit requires CodeWarrior 10.6 or newer. The component and some
examples in the component package are intended for Kinetis Design Studio 3.0.0. If you have
CodeWarrior 10.6 and Kinetis Design Studio 3.0.0 already installed on your system, skip this section.
1. Obtain the latest CodeWarrior installer file from the Freescale CodeWarrior website here:
www.freescale.com/webapp/sps/site/homepage.jsp?code=CW_HOME&tid=vanCODEWARRIOR.
2. Run the executable file and follow the instructions.
3. In the Choose Components window, select the Kinetis component and click on Next to complete the installation.
n Check K i n eti s
Figure 10. Choose CodeWarrior Components Screen
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
17
Installing Processor Expert Software
6.2
Downloading the MVHBridge Component and Example Projects
The examples used in this section are based on a pre-configured CodeWarrior project. You must first download the project and its
associated components:
1. Go to the Freescale website www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MVHBRIDGE-PEXPERT
2. Download example projects and H-Bridge component zip file.
3. Unzip the downloaded file and check that the folder contains the files listed in Table 9.
Table 9. MVHBridge Example Project and Components
Folder Name
CodeWarrior_Examples
Folder Contents
Example project folder for CodeWarrior
MVH_K20D72M_brushed
Example project for DC brush motor control
MVH_K20D72M_brushed_FreeMaster
Example project intended for control of brushed motor using FreeMaster tool. Latest Freemaster
installation package: www.freescale.com/freemaster
MVH_K20D72M_step_FreeMaster
Example project intended for control of stepper motor using FreeMaster tool
MVH_K20D72M_stepper
Example project for stepper motor control using full-stepping and micro-stepping mode
MVH_K20D72M_stepper_fullstep
Example project for stepper motor control demonstrating full-step mode
MVH_K20D72M_stepper_ramp
Example project for stepper motor control demonstrating acceleration and deceleration ramp
MVH_K64F120M_brushed_2component
Example project for DC brush motor control using two H-Bridges (i.e. MC33932 and MC33926)
MVH_K70F120M_brushed
Example project for TWR-K70F120M with DC brushed motor control.
MVH_K70F120M_stepper
Example project for TWR-K70F120M with stepper motor control using full-stepping and
micro-stepping mode
MVH_KL25Z48M_brushed_2component
Example project for DC brushed motor control using a dual H-Bridge device (e.g. MC33932 and
33926)
MVH_KL25Z48M_fullstep_ramp
Example project for stepper motor control demonstrates acceleration and deceleration ramp in
full-step mode
Component
Processor Expert component folder
DriverSuite_Examples
Example project folder for Driver Suite
MVH_K20D72M_stepper
KDS_Examples
Example project for stepper motor control uses full-stepping and micro-stepping mode
Example project folder for Kinetis Design Studio
MVH_K20D72M_stepper
Example project for stepper motor control, which uses full-stepping and micro-stepping mode
MVH_K20D72M_stepper_ramp
Example project for stepper motor control demonstrating usage of acceleration and deceleration
ramp
FRDM34931SEVB_Examples
MVH_KL25Z_brushed
6.2.1
Example project folder for CodeWarrior and H-Bridge board FRDM-34931SEVB
Example project for DC brush motor control
Importing the MVHBridge Component into the Processor Expert Library
1. Launch CodeWarrior by clicking on the CodeWarrior icon (located on your desktop or in Program Files -> Freescale Codewarrior
folder.)
2. When the CodeWarrior IDE opens, go to the menu bar and click Processor Expert -> Import Component(s).
3. In the pop-up window, locate the component file (.PEupd) in the example project folder MVHBridge_PEx_SW\Component. Select
MVHBridge_bxxx.PEupd and ChannelAllocator_bxxx.PEupd files then click Open (see Figure 11).
KTTWRMCMVHB1EVBUG Rev. 2.0
18
Freescale Semiconductor, Inc.
Installing Processor Expert Software
n Click
o Select
Processor Expert
Import Component(s)
pS e l e c t a l l
.P E u p d
components
qC lick Open
Figure 11. Importing the MVHBridge Component
4. If the import is successful, the MVHBridge component appears in Components Library -> SW -> User Component (see
Figure 12). The MVHBridge component is ready to use.
Figure 12. MVHBridge Component Location After Importing to CodeWarrior
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
19
Installing Processor Expert Software
6.2.2
Importing an Example Project into the Processor Expert Library
The following steps show how to import an example from the downloaded zip file into CodeWarrior.
1. In the CodeWarrior menu bar, click File -> Import… In the pop-up window, select General -> Existing Projects into Workspace
and click Next.
o Select
n Click
General >
Existing Projects into Workspace
File > Import
p C l i c k Next
Figure 13. Importing an Example File (a)
KTTWRMCMVHB1EVBUG Rev. 2.0
20
Freescale Semiconductor, Inc.
Installing Processor Expert Software
2. Click Browse and locate the folder where you unzipped the downloaded example files. Find the folder
MVHBridge_PEx_SW\CodeWarrior_Examples and select a project to import. (see Figure 14, which shows
MVH_K20D72M_step_FreeMaster as the imported project). Then click OK.
q C l i c k Browse
r Find and select
an Example project
s C l i c k OK
Figure 14. Importing an Example File (b)
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
21
Installing Processor Expert Software
3. With your project now loaded in the Select root directory box, click on the Copy projects into workspace checkbox. Then click
Finish. Figure 15 shows the CodeWarrior Projects panel and the Components panel after the project has been successfully
imported.
The project is now in the CodeWarrior workspace where you can build and run it.
tSe lect Copy projects
into workspace
v C o d e Wa r r i o r P r o j e c t s p a n e l
u C lick Finish
a n d C o m p o n e n ts p a n e l
u p o n c o m p l e ti o n
Figure 15. Importing an Example File (c)
KTTWRMCMVHB1EVBUG Rev. 2.0
22
Freescale Semiconductor, Inc.
Installing Processor Expert Software
6.3
Creating a New Project with Processor Expert and the MVHBridge
Component
If you choose not to use the example project, the following instructions describe how to create and setup a new project that uses the
MVHBridge component. If you do not have the MVHBridge component in the Processor Expert Library, please follow steps in Importing
the MVHBridge Component into the Processor Expert Library on page 18.
To create a new project do the following:
1. In the CodeWarrior menu bar, select File -> New -> Bareboard Project. When the New Bareboard Project dialog box opens,
enter a project name into the text box and then click Next. (see Figure 16).
n Se le ct File > New > Bareboard Project
o E n te r p r o j e c t
name
p C l i c k Next
Figure 16. Creating an MCU Bare-board Project
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
23
Installing Processor Expert Software
2. In the Devices dialog box, select the MCU class your project is using in the MCU board (In Figure 17, MK20DX256 has been
selected). Then click Next.
3. In the Connections dialog box, select the type of connection your project uses. (In Figure 17 P&E USB Multilink Universal
[FX]/USB MultiLink has been selected). Then click Next.
q Select t he device
you are usin g
r S e l e c t th e c o n n e c ti o n
you are using
s C l i c k Next
Figure 17. Selecting a Device and a Connection
KTTWRMCMVHB1EVBUG Rev. 2.0
24
Freescale Semiconductor, Inc.
Installing Processor Expert Software
4. In the Language and Build Tools Options dialog box, select the options that apply to your project. (In Figure 18, the default
options are selected.) Then click Next.
5. In the Rapid Application Development dialog box, make sure that the Processor Expert button is selected. Then click Finish
tSe le ct yo u r language
an d build t ool o p t ions
vC l i c k th e
Processor Expert
b u tto n
u C lick Next
w C l i c k Finish
Figure 18. Selecting the Language, Build Tools, and the Rapid Application Development Options
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
25
Installing Processor Expert Software
6. Figure 19 shows the CodeWarrior Projects panel and the Components panel after the project has been successfully created.
Before you can build and run your project, you must add the MVHBridge component (imported in Importing the MVHBridge Component
into the Processor Expert Library on page 18) into your project. Adding the MVHBridge Component into the Project on page 27 outlines
this procedure.
w C o d e Wa r r i o r P r o j e c ts p a n e l
a n d C o m p o n e n ts p a n e l
u p o n c o m p l e ti o n
Figure 19. CodeWarrior Projects and Components Panels with Project Created
KTTWRMCMVHB1EVBUG Rev. 2.0
26
Freescale Semiconductor, Inc.
Installing Processor Expert Software
6.3.1
Adding the MVHBridge Component into the Project
1. Find MVHBridge in the Components Library and add it into your project (see Figure 20).
nH ig h lig h t y o u r p r o j e c t
name in t h e C o d e Wa r r i o r
Project s p a n e l
pC l i c k o n
A d d t o P r o je c t
oI n t he C o mp o n e n t s
Library, rig h t -click o n
MVH Bridge
Figure 20. Add the MVHBridge Component to the Project
2. Figure 21 shows the Components panel after the component has been added. To view the Component Inspector options, double
click on the MVHBridge component in the Components panel.
qDouble -click o n
compo nent name
t o view C omponent
I nspec t o r opt io n s
Figure 21. Select the component
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
27
Installing Processor Expert Software
6.3.2
General Settings of MVHBridge Component
The Component Inspector view provides a means of accessing and modifying component properties. When CodeWarrior is set to the
Classic view, properties in the Component Inspector are arranged in a collapsible tree-structure. Property names appear in the Name
column. The Values column lists the current value assigned to the property. Values that are not greyed-out in this column may be modified.
The Details column contains additional information (including error conditions) about the selected property. (If you have CodeWarrior
preferences set to the Tab view, properties will be arranged differently in the Component Inspector; However, the same definitions apply.)
Figure 22 shows typical Component Inspector properties for a project using a DC brushed motor and an MC33926 device with a single
H-Bridge. Different components and settings may apply when other types of motors and MCU’s are used.
Figure 22. Component Inspector - Brushed DC Motor Project
For the project in Figure 22 the H-Bridge Model is the top node in the tree structure. A drop-down menu in the Value column allows you
to select the H-Bridge model your project uses.
The Motor Control group is directly below the H-Bridge Model node. The group contains two child nodes: Timer Setting and H-Bridge
A MCU Interface. An MCU with dual H-Bridges would have an H-Bridge B MCU Interface group with settings similar to H-Bridge A. The
settings in each of these groups are detailed below:
Timer Setting when enabled, defines timer settings for the project. (For the MC33926 used in this example, the timer is enabled
by default.) The group contains the following settings:
• Timer Component defines the name of the linked TimerUnit_LDD Component.
• Timer Device defines the name of the hardware timer being used.
H-Bridge A MCU Interface defines H-Bridge interface setting. The group contains three child nodes:
DC Brush allows you to select the motor control mode and the motor direction:
Control Mode allows you to select whether your settings control the motor speed (Speed Control) or whether the motor is
controlled by GPIO pin signals (State Control).
• PWM Frequency sets the Pulse Width Modulation frequency.
Direction Control determines in which direction the motor is allowed to rotate. Forward means the motor can rotate only in the
clockwise direction. Reverse allows movement in the counterclockwise direction only. Bidirectional allows the motor to rotate in
either direction.
• Init Direction determines which direction (forward or reverse) the motor moves at startup.
KTTWRMCMVHB1EVBUG Rev. 2.0
28
Freescale Semiconductor, Inc.
Installing Processor Expert Software
Device Mode defines the H-Bridge operational mode for the selected device. The mode specifics depend on the device, but
Normal, Sleep, and Stand-by are typical. For more information, see the data sheet for your device. Device Mode is controlled by
enabling and disabling pins. The mode can be changed in your C code using the SetMode method.
Device Settings A associates each of the output pins with a corresponding input pin name.
Enable and Disable Pins settings control the Device Mode. The number and the names of pins in this group depends on the
H-Bridge model you have selected. In all cases, you must assign the appropriate value to each pin name in the group.
Slew Rate enables the selection of fast or slow slew rate.
• Pin for Slew defines the component setting associated with the device’s SLEW pin.
Input Invert allows you to set the device’s INV pin, subsequently causing IN1 and IN2 to be set to LOW = TRUE (see the device’s
data sheet for additional information on the Input Invert (INV) pin).
• Pin for INV defines the component setting associated with the device’s INV pin.
Input Control Pins settings define H-Bridge outputs. These pins are controlled by timer channels or by GPIO pins according to
other settings in the component.
Feedback Pin settings define current measurements on the feedback pin. H-Bridge feedback provides ground-referenced 0.24%
of the high side output current.
• ADC Component sets the name of the linked ADC_LDD component.
• ADC Device defines the device used for current measurement.
• ADC Pin defines the pin used for ADC current sensing.
• ADC Conversion Time specifies the time interval in micro-seconds allowed for a single analog to digital conversion.
Status Flag Pin allows tracking of the H-Bridge status flag. Method GetStatusFlag provides current device status. Method
ClearStatusFlag clears the status flag. Use Event OnStatusFlagA or OnStatusFlagB (depending on the H-Bridge interface) to
handle errors indicated by the status flag.
Auto Initialization when set, causes Processor Expert to automatically make an initialization call. If this option is not set, your code
must make the Init call.
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
29
Installing Processor Expert Software
6.3.3
Setting up a Project to Control a DC Brushed Motor
1. Select the H-Bridge model you want to configure and set the Motor Control property to Brushed.
nS e l e c t H - B r id g e M o d e l
and set Motor Control
to B r u s h e d
oS e t th e
C o n t r ol
Mode
pS elect the
P WM
Frequenc y
qS e t th e
D ir e c t io n C o n t r o l
o p ti o n s
Figure 23. Brushed Motor Control Setup
2. Set the Control Mode property. There are two ways to control the DC brushed motor:
Speed Control - motor speed is controlled by your settings. The TimerUnit_LDD component is used to generate the PWM
signal. The PWM Frequency property is visible in this mode only. If you set the Speed Control mode on both interfaces (i.e.
Interface A and Interface B), the PWM Frequency property on Interface B will be set automatically to the same value as
Interface A (because Interface B uses the same timer.)
State Control - motor is controlled by GPIO pins (BitIO_LDD components). This means you can switch the motor on or off
without speed adjustments. The advantage of this mode is that you do not need timer channels. If you set State Control on
both interfaces or you have only a single H-Bridge model (one interface) with State Control, the TimerUnit_LDD component
is not required by the MVHBridge component and you can remove it from the project.
3. Set the PWM Frequency.
4. Set the Direction Control property. The Direction Control property determines what direction the motor is allowed to move in.
Setting the property to Forward restricts the motor's movement to the forward direction only. Setting the property to Reverse
restricts movement to the reverse direction only. A Bidirectional setting allows the motor to move in either direction. The
Bidirectional mode requires two timer channels. Forward or Reverse requires only one timer channel and one GPIO port. This
setting is available only when Speed Control mode is set in the Control Mode property.
KTTWRMCMVHB1EVBUG Rev. 2.0
30
Freescale Semiconductor, Inc.
Installing Processor Expert Software
6.3.4
Setting up a Project to Control a Stepper Motor
1. Select the dual H-Bridge model you want to configure and set Stepper in the Motor Control property. Notice that you must use a
dual H-Bridge model because a two phase bipolar stepper motor has four inputs.
nS e l e c t H - B r id ge M ode l
a n d s e t M o t o r Cont r ol
to S t e p p e r
oS e t th e a p p r o p r i a t e
S t e p p e r M o t or
p r o p e r ti e s
Figure 24. Stepper Motor Control Setup
2. In the Stepper Motor group, set the properties that apply to your environment.
Output Control property defines the control method for the H-Bridge outputs.
With PWM selected the component utilizes four channels of a timer to control the stepper motor. Signals are generated in
hardware and micro-step mode is available.
With GPIO selected, GPIO pins instead of timer channels control the motor and only full-step mode is available. Micro-step
mode is not available. This mode consumes more MCU clock cycles because all signals are generated in interrupts using
four GPIO pins.
Manual Timer Setting (only visible when Advanced is selected) is designed to change the Counter frequency property of
the linked TimerUnit_LDD component. By default Counter frequency is set automatically by the MVHBridge component.
In some cases the frequency value does not have to be set appropriately (for example, when you want to set a different value
or when an error has occurred). For more information see Stepper Motor Speed on page 32.
Motor Control Mode allows you to select the step mode. The allowable values are Full-step, Micro-step and Full-step
and Micro-step. Selecting Full-step and Micro-step allows you to switch between full-stepping and micro-stepping in C
code.
The Full-step Configuration group contains speed and acceleration settings. Code for the acceleration and deceleration
ramp is generated when the Acceleration property is set to a value greater than zero. Note that acceleration is always the
same as deceleration. An example of an acceleration ramp is depicted in Figure 25. The acceleration setting is 400, as
shown in Figure 24.
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
31
Installing Processor Expert Software
Initial Speed is set to 100 full-steps per second. This value can be changed in C code.
Acceleration Ramp defines the ramp speed for both acceleration and deceleration. In this example the value is set to
400 full-steps per second2. Note that the motor reaches the speed in 0.25 second (desired_speed / acceleration = 100 /
400 = 0.25).
Figure 25. Acceleration and Deceleration Ramp
Micro-step Configuration group settings are similar to those of the Full-step Configuration. PWM Frequency is the
frequency of the micro-step PWM signal. Micro-step per Step is the number of micro-steps per one full-step.
6.3.5
Stepper Motor Speed
This defines the stepper motor’s minimum and maximum speed. These limit values are used by various component methods. Minimum
and maximum speeds depend on the MVHBridge component settings. Counter input frequency does not influence micro-stepping spend,
but could affect full-stepping speed.
Table 10: Minimum and maximum stepper motor speed
MVHBridge component properties
Mode
Description
Stepper motor speed [steps per second]
Timer Device
Output Control
Motor Control Mode
Minimum Speed
[steps/sec]
Maximum Speed
[steps/sec]
Full-step mode
FTM
PWM
Full-step
Depends on Timer Input
Frequency
11 000
Micro-step mode
FTM or TPM
PWM
Micro-step
1
5 000
Full-step mode
(using TPM timer)
TPM
PWM
Full-step
1
11 000
Full-step mode
(SW control)
FTM or TPM
GPIO
Full-step
1
11 000
Possible values for the timer input frequency (Counter frequency property in TimerUnit_LDD) are in Table 11. Input frequency values
depend on MVHBridge component settings. Note that, in one case, two frequency values are needed in Full-step and Micro-step mode
when FTM timer is used (the MVHBridge component switches in runtime between these two values).
KTTWRMCMVHB1EVBUG Rev. 2.0
32
Freescale Semiconductor, Inc.
Installing Processor Expert Software
Table 11. Minimum and maximum timer input frequency per stepper control mode
MVHBridge component properties
Stepper motor speed [steps per second]
Mode
Description
Timer Device
Output Control
Full-step mode
FTM or TPM
PWM
Full-step
1
131 kHz
1 MHz
Micro-step mode
FTM or TPM
PWM
Micro-step
1
1.2 MHz
10 MHz
2
1st value for
Full-step: 131 kHz
1st value for
Full-step: 1 MHz
2nd value for
Micro-step: 1.2 MHz
2nd value for
Micro-step: 10 MHz
Motor Control
Mode
Number of values
Minimum
Maximum
Full-step and
Micro-step mode
FTM
PWM
Full-step and
Micro-step
Full-step and
Micro-step mode
(using TPM
timer)
TPM
PWM
Full-step and
Micro-step
1
1.2 MHz
10 MHz
Full-step mode
(SW control)
FTM or TPM
GPIO
Full-step
1
131 kHz
1 MHz
6.3.5.1
Computation of Minimum Full-stepping Speed
The minimum full-stepping speed depends on the timer input frequency only when the Timer Device is set to FTM (FTM0_CNT, or
FTM1_CNT, etc.), and Output Control is set to PWM. The Full-step signal is generated by a timer while channels toggle on compare (See
Figure 26).
Figure 26. Generating the Full-step Control Signal
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
33
Installing Processor Expert Software
The Full-step minimum speed is derived from the input frequency of the timer device (the Counter frequency property of the
TimerUnit_LDD component being used). You can find minimum values for speed in the MVHBridge header file (see constant
<component_name>_MIN_FULLSTEP_ SPEED). The formula for calculation of this value is as follows:
2 X Counter_frequency
Speedmin =
65536
+ 1
where:
Counter_frequency = input frequency of the timer device
65536 = maximum value of TimerUnit_LDD counter (16-bit counter).
Adding 1 ensures that the 16-bit counter does not overflow (which is the point of the formula).
For example if the Counter frequency is set to 187,500 Hz, the minimum speed is:
2 X Counter_frequency
Speedmin =
2 X 187500
+ 1 =
65536
65536
+ 1 = 6.72
The MCU rounds the value down, so the result is 6 full-steps per second.
6.3.5.2
Setting the Minimum Full-stepping Speed
This section describes how to change the input frequency of the TimerUnit_LDD component.
1. Launch Processor Expert and select the MVHBridge component.
2. In the Processor Expert menu bar, set component visibility to Advanced.
3. In the Properties tab, find the Manual Timer setting property and set the value to Enabled. If you do not see this property, make
sure that component visibility is set to Advanced (see Figure 27).
nS elect th e
oS e t v i e w to
Advanced
MV HBridge component
pE n a b l e
M a nua l Ti m e r
s e t t i ng
Figure 27. Enabling the Manual Frequency Setting
4. In the Components panel, expand the Referenced_Components folder and double-click on the component
TU1:TimerUnit_LDD
5. Click the Counter frequency value field. An ellipsis button appears at the right edge of the cell.
6. Click on the ellipsis button.
KTTWRMCMVHB1EVBUG Rev. 2.0
34
Freescale Semiconductor, Inc.
Installing Processor Expert Software
rS e l e c t th e
qSelect
T U 1 :Ti m er U n i t_L D D
Counter frequency
Va lu e c e l l
sC l i c k th e
e l l i p s i s b u tto n
Figure 28. Component TimerUnit_LDD Timing Dialog
7. Set the frequency value (163.84 kHz in illustration). The list of available frequencies depends on the CPU component settings
(with an external crystal as the clock source and a core clock of 48 MHz).
8. Set the Allowed Error value at 10% (see Figure 29).
9. Click OK to complete the process.
tS e l e c t a
fr e q u e n c y v a l u e
uSet A l l o w e d
E rro r t o 10%
vC l i c k OK
Figure 29. Component TimerUnit_LDD Timing Dialog—Select Input Frequency
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
35
Installing Processor Expert Software
6.3.6
Generating Driver Source Code
After you have completed configuring the components, you are ready to generate the driver code that will be incorporated into your
application. The process is as follows
1. Click on the Generate Processor Expert Code icon in the upper right corner of the Components panel.
nC l i c k th e
Ge n e r a t e P r o c e s s or
Expert Code icon
Figure 30. Generating the Source Code
2. The driver code for the H-Bridge device is generated into the Generated_Code folder in the Project panel. The component only
generates the driver code. It does not generate application code. Figure 31 shows the locations of the generated driver source
and the application code.
Driver code is
generat e d here
A pplicatio n so u rce
code be lo n g s h e re
Figure 31. Source Code Locations
KTTWRMCMVHB1EVBUG Rev. 2.0
36
Freescale Semiconductor, Inc.
Installing Processor Expert Software
6.3.7
Developing Application Code in Processor Expert
Processor Expert allows you to write application code, add component methods, and build your application without leaving the
CodeWarrior environment.
6.3.7.1
Writing your Application Code
All of your application code must reside in the Sources folder in your project directory. You may modify the code in main.c and Events.c,
but retain the original comments related to usage directions.
6.3.7.2
Adding Component Methods
To add a component method into your application source code:
1. In the Components panel for your project, click on Components. Find the method you wish to add to your code.
2. Drag and drop the method directly into the source code panel
3. Add the appropriate parameters to the method. (Hovering your mouse over the method displays a a list of the required
parameters.)
For example, you can open the MVHBridge component method list, drag and drop RotateProportional to main.c and add the necessary
parameters (see Figure 32).
nO pen R e fe ren ced_ C o mp o n e n t s
oDrag and D ro p
meth od in t o
sourc e code
pA d d r e q u i r e d
m e th o d
p a r a m e te r s
Figure 32. Adding Component Methods
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
37
Installing Processor Expert Software
6.3.7.3
Finding Descriptions of the MVHBridge Methods
Hovering your mouse over any of the methods displays a description of the method, including a list of required parameter. See Figure 33.
Ho ver o ver me t hod
t o veiw d e scrip t ion
Figure 33. MVHBridge Method Descriptions
6.3.7.4
Jumping into Function Source Code
CodeWarrior is based on the Eclipse IDE which allows you to jump directly into the source code of a function from within the main routine
while you are editing. To do so, move your mouse cursor over the function name and click. The source code appears in the edit window.
oFun c ti o n s o u r c e
code appears in
edit window
nHover mouse
ov er funct ion
name and click
Figure 34. Jumping into a Function’s Source Code
KTTWRMCMVHB1EVBUG Rev. 2.0
38
Freescale Semiconductor, Inc.
Installing Processor Expert Software
6.3.7.5
Compiling, Downloading and Debugging
To compile, download and debug on board, click compile, then click the debug icon in the toolbar. CodeWarrior will download and launch
the program on board (see Figure 35).
nTo compile,
click h e re
oTo d o w n l o a d
and debug,
click here
Figure 35. Compiling and Downloading the Application
6.4
Stepper Motor Control Application Notes
The MVHBridge component is designed to control a two phase bipolar stepper motor. Because a stepper motor uses electrical
commutation to rotate, it requires a dual H-Bridge device. The basic control method is full-stepping which fully powers each coil in
sequence. Increased precision can be achieved by using PWM to control coil current (open loop control). This method is called
micro-stepping (available in the MVHBridge component.)
In both micro-step and full-step mode you can control motor speed, direction, acceleration and deceleration and the position of the stepper
motor.
The following application notes apply to stepper motor control:
• The MVHBridge component was tested with a core clock frequency ranging from 20 MHz (minimal value) to 120 MHz.
• Do not change the settings of the timer device (TimerUnit_LDD) linked by the MVHBridge component. The component sets the timer
device automatically.
• The acceleration and deceleration ramp of the stepper motor is computed in real-time using integer arithmetic. This solution is based
on the article “Generate stepper-motor speed profiles in real time" (Austin, David. 2005.)
• The stepper motor holds its position (coils are powered) after motor movement is completed. Use method DisableMotor to set
H-Bridge outputs to LOW (coils are not powered).
• Forward motor direction indicates that steps are executed in the order depicted in Figure 36. IN1 through IN4 are the input pins of the
H-Bridge device which control H-Bridge outputs. These pins input to the stepper motor. You must connect the stepper motor to output
pins OUT1-OUT4 and select control input pins on your MCU in the component settings.
• The FTM or TPM timer device is needed by stepper control logic.
• The AlignRotor method affects the position of the motor. This method executes four full-steps. It is available only when full-step mode
is enabled.
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
39
Installing Processor Expert Software
6.4.1
Full-step Control Mode
The component uses normal drive mode where two coils are powered at the same time.
As mentioned in Setting up a Project to Control a Stepper Motor on page 31, you can generate a full-stepping signal either by using four
channels of a timer or by using four GPIO pins. The signal generated by the MCU (inputs of H-Bridge device) using four timer channels is
shown in Figure 36. The voltage levels applied to the coils of the stepper motor are depicted in Figure 37. Note that the voltage is applied
to both coils at the same time.
Figure 36. Signals of Logic Input Pins Generated by the MCU in Full-step Mode
Figure 37. Output of the H-Bridge Device in Full-step Mode
KTTWRMCMVHB1EVBUG Rev. 2.0
40
Freescale Semiconductor, Inc.
Installing Processor Expert Software
6.4.2
Micro-step Control Mode
Micro-stepping allows for smoother motor movement and increased precision. The current varies in motor windings A and B depending
on the micro-step position. A PWM signal is used to reach the desired current value (see the following equations). This method is called
sine cosine micro-stepping.
IA = IMAX X sin(θ)
IB = IMAX X cos(θ)
where:
IA = the current in winding A
IB = the current in winding B,
IMAX = the maximum allowable current
θ = the electrical angle
In micro-step mode, a full-step is divided into smaller steps (micro-steps). The MVHBridge component offers 2, 4, 8, 16 and 32 micro-steps
per full-step. The micro-step size is defined by the property Micro-steps per Step and can be changed later in C code.
IB
120
0
8
112
16
IB
0
32
96
40
88
80
48
72
64
IA
IB = cos(22.5) = 92.39%
24
104
8
16
24
32
IA = sin(22.5) = 38.75%
IA
56
Figure 38. Micro-stepping Phase Diagram
The micro-stepping signal is generated using four timer channels (see Figure 39). Output from logic analyzer in Figure 40 shows the
change of PWM duty with respect to the micro-step position. Current values applied to the stepper motor coils are depicted in Figure 41.
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
41
Installing Processor Expert Software
Figure 39. Logic Input Pin Signals Generated by the MCU in Micro-step Mode
Figure 40. Logic Analyzer output
Figure 41. H-Bridge device output in Micro-step mode
KTTWRMCMVHB1EVBUG Rev. 2.0
42
Freescale Semiconductor, Inc.
Installing Processor Expert Software
6.5
Frequently Asked Questions
Q: Why do I occasionally unexpected behavior in my stepper or DC brushed motor?
A:
Check the value of the signals on the enable and disable pins (D1, EN/D2, D3, EN/D4). These signals affect the H-Bridge device
mode. To provide a wider range of MCU compatibility, some pins are wired to more than one MCU board pin using 0 Ω resistors.
Check your schematic and remove resistors as needed to disconnect unused pins.
Q: How do I set up the MVHBridge component when two or more components with conflicting values are configured to control brushed
motors? (See Figure 42)
Figure 42. Conflict in the Required Values for Components in the Project
A:
You can use more than one MVHBridge components in same project. These components can share the same timer device in brushed
motor control mode, but the PWM Frequency and Timer Device properties must conform in all of the components.
Q: Can I use both a stepper motor and a brushed DC motor on a single timer?
A:
The stepper motor control needs a dedicated timer because the timer period can be dynamically changed. Using a stepper motor and
a brushed DC motor on the same timer pins is possible only when the Control Mode property of the brushed DC motor is set to State
Control.
Q: The TimerUnit_LDD component used by MVHBridge is not set properly and shows some errors.
A:
The reason may be that the TimerUnit_LDD component channels are not allocated correctly. Change some MVHBridge component
properties to force channel allocations. If you are configuring a stepper motor (Motor Control property set to Stepper), change the
Output Control property to GPIO then back to PWM. For brushed DC motors (Motor Control property set to Brushed), change the
Control Mode property to State Control and back to Speed Control on interface A or interface B.
Q: I sometimes get the following unexpected error while generating Processor Expert code: "Generator: FAILURE: Unexpected status
of script: Drivers\Kinetis\TimerUnit_LDD.drv, please contact Freescale support". What causes this?
A:
Occasionally, when you enable the MVHBridge component in your project, the TimerUnit_LDD component channels have not been
allocated. If this occurs, changing certain MVHBridge properties will force allocation of the channels. If you are configuring a stepper
motor (Motor Control property set to Stepper), try changing the Output Control property to GPIO and then back to PWM. If you are
configuring a brushed motor (Motor Control property set to Brushed), change the Control Mode property to State Control and then
back to Speed Control on interface 1 or interface 2.
Figure 43. Unexpected error related to the MVHBridge TimerUnit_LDD component
Q: I have set up several CPU clock configurations (via the Clock configurations property of the CPU component). Sometimes during
runtime, when I switch between these configuration (using the CPU SetClockConfiguration method), the speed of the stepper motor
appears to be inaccurate. Why does this occur?
A:
Switching to a different configuration results in the use of a different input frequency by a timer device. The MVHBridge component
may not pick up the new value and continues to use the previous value in its calculations.
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
43
DNP
R1
10K
TP4
R3
100
3
3
MC33926_EN
MC33926_D1
MC33926_D2bar
MC33926_INV
MC33926_SLEW
3
3
3
3
1K
R15
DNP
R11
MC33926_Sfbar
VDD
MC33926_IN1
MC33926_IN2
3
C
R13
10K
RED
D11
A
1
VDD
MC33926_Sfbar
43K
2
6
7
4
52
NC2
NC6
NC7
FBA
SFA
EN/D2
D1
IN1
IN2
CCPA
U1A
NC_1
NC_2
NC_3
SLEW
INV
D1
D2
EN
IN1
IN2
1K
MMBT3906WT1G
Q3
R4
C
C13
0.1uF
32
21
8
27
28
29
30
+
RED
D1
43K
12
13
14
15
MC33926_FB
CCP
SF
FB
OUT2_1
OUT2_2
OUT2_3
OUT2_4
OUT1_1
OUT1_2
OUT1_3
OUT1_4
50V
VPWR_MC33926
R7
8
14
21
22
45
44
11
MC33932EK
NC8
NC14
NC21
NC22
OUT2_2
OUT2_1
OUT1_2
10
C1
0.1uF
OUT1_1
50V
VPWR_MC33932
MC33932_SFAbar
MC33926
9
17
25
3
7
26
16
10
2
1
U2
MC33926
MC33926_IN1
MC33926_IN2
MC33926_EN
MC33926_D1
MC33926_D2bar
MC33926_INV
MC33926_SLEW
MC33926_Sfbar
MC33926_FB
Close to Tower Connector
50V
C12
1uF
MC33932_SFAbar
MC33932_FBA
MC33932_SFAbar
3
3
3
3
5
3
51
50
47
MC33932_IN1
MC33932_IN2
MC33932_EN/D2bar
MC33932_D1
MC33932_SFAbar
MC33932_FBA
50V
0.033UF
MC33932_EN/D2bar
MC33932_D1
VPWR_MC33932 C5
MC33932_IN1
MC33932_IN2
TP16
TP17
TP18
TP19
TP20
TP21
TP22
TP23
TP24
MC33932_FBA
VDD
3
3
TP5
1
9
53
46
AGNDA
54
VPWRA1
VPWRA2
VPWRA3
VPWRA4
PGNDA1
PGNDA2
PGNDA3
PGNDA4
12
13
42
43
4
6
11
31
VPWR_1
VPWR_2
VPWR_3
VPWR_4
47uF
C2
50V
Motor_OUT6
Motor_OUT5
C23
50V
J4
Close to Connector
3
3
Close to Connector
C19
50V
0.01uF
Close to Tower Connector
J1
Motor A Connector
2
1
1923869
C8
50V
0.01uF
MC33926_FB
1923869
1
2
C7
0.01uF
MC33926_Sfbar
VPWR_MC33926
C27 50V
1uF
0.033UF
Motor_OUT6
C18
0.01uF
MMBT3906WT1G
Q1
50V
Motor_OUT2
Motor_OUT1
Motor_OUT5
R14
100
C14
47uF
A
1
VDD
Motor_OUT2
Motor_OUT1
+
MC33932
2
1
2
1
1923869
J5
1923869
J3
0.033UF
50V
DNP
R5
100
10K
P5V_ELEV
1
1
20A
F2
20A
F1
2
2
J6
HDR TH 1X3
50V
0.1uF
C24
VDD_in
A
C
MBR130LSFT1G
D9
P3_3V_ELEV
1
DNP
1
TP26
1K
50V
VDD
C
+
RED
D2
43K
A
1
50V
0.1uF
C26
+
D10
GREEN
R12
1K
C20
C21
220uF
0.1uF
50V
VPWR_MC33926
D7
VDD
10uF
50V
C22
50V
10uF
C17
50V
Motor_OUT4
Motor_OUT3
D8
GREEN
R10
10K
D5
GREEN
R9
10K
MMBT3906WT1G
Q2
Motor_OUT4
C15
C16
220uF
0.1uF
50V
VPWR_MC33932
D4
SMBJ24AHE3/52
10uF
C25
R6
C4
47uF
Motor_OUT3
+
Power Supply
R8
35
41
48
49
18
17
38
MC33932EK
NC35
NC41
NC48
NC49
OUT4_2
OUT4_1
OUT3_2
37
C3
0.1uF
OUT3_1
50V
VPWR_MC33932
MC33932_SFBbar
SMBJ24AHE3/52
DNP
TP25
NC29
NC33
NC34
FBB
SFB
EN/D4
D3
IN3
IN4
CCPB
U1B
Close to Tower Connector
C11
1uF
MC33932_SFBbar
29
33
34
31
25
32
30
24
23
20
MC33932_IN3
MC33932_IN4
MC33932_EN/D4bar
MC33932_D3
MC33932_SFBbar
MC33932_FBB
Default Setting:
Short 1&2
VPWR_MC33926_in
50V
MC33932_FBB
MC33932_SFBbar
MC33932_EN/D4bar
MC33932_D3
R2
3
3
C6
MC33932_IN3
MC33932_IN4
VPWR_MC33932_in
MC33932_FBB
VDD
3
3
3
3
VPWR_MC33932
TP10
TP11
TP12
TP13
TP14
TP15
27
TP6
AGND_1
AGND_2
5
33
PGND_1
PGND_2
PGND_3
PGND_4
PGND_5
PGND_6
18
19
20
22
23
24
2
3
AGNDB
TP7
2
3
1
2
3
19
26
28
36
C
C
A
EP
55
VPWRB_1
VPWRB_2
VPWRB_3
VPWRB_4
PGNDB_1
PGNDB_2
PGNDB_3
PGNDB_4
15
16
39
40
A
2
3
TP8
A
C
A
C
44
A
C9
0.01uF
1923869
J2
TP27
TP1
TP28
TP2
Close to Connector
C10
50V
0.01uF
Motor B Connector
2
1
TP29
TP3
7
C
TP9
Schematic
Schematic
Figure 44. Evaluation Board Schematic, Part 1
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
Schematic
P3_3V_ELEV
P5V_ELEV
P5V_ELEV
P3_3V_ELEV
J7A
B1
B2
B3
B4
B5
B6
B7
B8
B9
B10
B11
Elevator Power Sense
2
2
R19
R20
R21
MC33926_D1
MC33926_D2bar
0
0
0
Reserved 7
Reserved 6
2
R28
MC33926_FB
0
Reserved 5
Reserved 4
2
2
2
2
2
MC33926_IN2
MC33926_IN1
2
2
2
MC33926_EN
MC33926_SLEW
MC33926_INV
MC33926_Sfbar
MC33932_SFBbar
MC33932_SFAbar
R37
R39
0
0
R42
R44
R45
0
0
0
R46
0
R49
0
R50
0
R52
R54
0
0
B12
B13
B14
B15
B16
B17
B18
B19
B20
B21
B22
B23
B24
B25
B26
B27
B28
B29
B30
B31
B32
B33
B34
B35
B36
B37
B38
B39
B40
B41
B42
B43
B44
B45
B46
B47
B48
B49
B50
B51
B52
B53
B54
B55
B56
B57
B58
B59
B60
B61
B62
B63
B64
B65
B66
B67
B68
B69
B70
B71
B72
B73
B74
B75
B76
B77
B78
B79
B80
B81
B82
5V_1
GND_1
3.3V_1
ELE_PS_SENSE_1
GND_2
GND_3
SDHC_CLK/SPI1_CLK
SDHC_D3/SPI1_CS1
SDHC_D3/SPI1_CS0
SDHC_CMD/SPI1_MOSI
SDHC_D0/SPI1_MISO
ETH_COL_1
ETH_RXER_1
ETH_TXCLK_1
ETH_TXEN_1
ETH_TXER
ETH_TXD3
ETH_TXD2
ETH_TXD1_1
ETH_TXD0_1
GPIO1/UART1_RTS
GPIO2/SDHC_D1
GPIO3
CLKIN0
CLKOUT1
GND_4
AN7
AN6
AN5
AN4
GND_5
DAC1
TMR3
TMR2
GPIO4
3.3V_2
PWM7
PWM6
PWM5
PWM4
CAN0_RX
CAN0_TX
1WIRE
SPI0_MISO/IO1
SPI0_MOSI/IO0
SPI0_CS0
SPI0_CS1
SPI0_CLK
GND_6
I2C1_SCL
I2C1_SDA
GPIO5/SPI0_HOLD/IO3
RSRV_B53
RSRV_B54
IRQ_H
IRQ_G
IRQ_F
IRQ_E
IRQ_D
IRQ_C
IRQ_B
IRQ_A
EBI_ALE/EBI_CS1
EBI_CS0
GND_7
EBI_AD15
EBI_AD16
EBI_AD17
EBI_AD18
EBI_AD19
EBI_R/W
EBI_OE
EBI_D7
EBI_D6
EBI_D5
EBI_D4
EBI_D3
EBI_D2
EBI_D1
EBI_D0
GND_8
3.3V_3
5V_2
GND_9
3.3V_4
3.3V_5
GND_10
GND_11
I2C0_SCL
I2C0_SDA
GPIO9/UART1_CTS
GPIO8/SDHC_D2
GPIO7/SD_WP_DET
ETH_CRS
ETH_MDC_1
ETH_MDIO_1
ETH_RXCLK_1
ETH_RXDV_1
ETH_RXD3
ETH_RXD2
ETH_RXD1_1
ETH_RXD0_1
I2S0_MCLK
I2S0_DOUT_SCK
I2S0_DOUT_WS
I2S0_DIN0
I2S0_DOUT0
GND_12
AN3
AN2
AN1
AN0
GND_13
DAC0
TMR1
TMR0
GPIO6
3.3V_6
PWM3
PWM2
PWM1
PWM0
UART0_RX
UART0_TX
UART1_RX
UART1_TX
VSSA
VDDA
CAN1_RX
CAN1_TX
GND_14
GPIO14
GPIO15
GPIO16/SPI0_WP/IO2
GPIO17
USB0_DM
USB0_DP
USB0_ID
USB0_VBUS
I2S0_DIN_SCK
I2S0_DIN_WS
I2S0_DIN1
I2S0_DOUT1
RSTIN
RSTOUT
CLKOUT0
GND_15
EBI_AD14
EBI_AD13
EBI_AD12
EBI_AD11
EBI_AD10
EBI_AD9
EBI_AD8
EBI_AD7
EBI_AD6
EBI_AD5
EBI_AD4
EBI_AD3
EBI_AD2
EBI_AD1
EBI_AD0
GND_16
3.3V_7
PCI EXPRESS TOWER SYSTEM
A1
A2
A3
A4
A5
A6
A7
A8
A9
A10
A11
A12
A13
A14
A15
A16
A17
A18
A19
A20
A21
A22
A23
A24
A25
A26
A27
A28
A29
A30
A31
A32
A33
A34
A35
A36
A37
A38
A39
A40
A41
A42
A43
A44
A45
A46
A47
A48
A49
A50
A51
A52
A53
A54
A55
A56
A57
A58
A59
A60
A61
A62
A63
A64
A65
A66
A67
A68
A69
A70
A71
A72
A73
A74
A75
A76
A77
A78
A79
A80
A81
A82
R16
R17
R18
0
0
0
R27
R29
0
0
R34
0
R35
R36
R38
R40
0
0
0
0
R41
R43
0 MC33932_EN/D4bar
0 MC33932_D1
R47
R48
0 MC33932_EN/D4bar
0 MC33932_D1
MC33932_D1
2
MC33932_EN/D2bar
MC33932_D3
2
2
Reserved 3
Reserved 2
MC33932_FBB
MC33932_FBA
2
2
Reserved 1
Reserved 0
MC33932_EN/D4bar
MC33932_IN4
MC33932_IN3
MC33932_IN2
MC33932_IN1
2
2
2
2
2
PRIMARY
DNP
J8
Reserved 0
Reserved 2
Reserved 4
Reserved 6
1
3
5
7
2
4
6
8
Reserved 1
Reserved 3
Reserved 5
Reserved 7
HDR_2X4
Figure 45. Evaluation Board Schematic, Part 2
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
45
Schematic
P3_3V_ELEV
P5V_ELEV
P5V_ELEV
P3_3V_ELEV
J7B
Elevator Power Sense
D1
D2
D3
D4
D5
D6
D7
D8
D9
D10
D11
D12
D13
D14
D15
D16
D17
D18
D19
D20
D21
D22
D23
D24
D25
D26
D27
D28
D29
D30
D31
D32
D33
D34
D35
D36
D37
D38
D39
D40
D41
D42
D43
D44
D45
D46
D47
D48
D49
D50
D51
D52
D53
D54
D55
D56
D57
D58
D59
D60
D61
D62
D63
D64
D65
D66
D67
D68
D69
D70
D71
D72
D73
D74
D75
D76
D77
D78
D79
D80
D81
D82
5V_3
GND_17
3.3V_8
ELE_PS_SENSE_2
GND_18
GND_19
SPI2_CLK
SPI2_CS1
SPI2_CS0
SPI2_MOSI
SPI2_MISO
5V_4
GND_25
3.3V_11
3.3V_12
GND_26
GND_27
I2C2_SCL
I2C2_SDA
GPIO25
ULPI_STOP
ULPI_CLK
ETH_COL_2
GPIO26
ETH_RXER_2
ETH_MDC_2
ETH_TXCLK_2
ETH_MDIO_2
ETH_TXEN_2
ETH_RXCLK_2
GPIO18
ETH_RXDV_2
GPIO19/SDHC_D4
GPIO27/SDHC_D6
GPIO20/SDHC_D5
GPIO28/SDHC_D7
ETH_TXD1_2
ETH_RXD1_2
ETH_TXD0_2
ETH_RXD0_2
ULPI_NEXT/USB_HS_DM
ULPI_DATA0/I2S1_MCLK
ULPI_DIR/USB_HS_DP
ULPI_DATA1/I2S1_DOUT_SCK
UPLI_DATA5/USB_HS_VBUS
ULPI_DATA2/I2S1_DOUT_WS
ULPI_DATA6/USB_HS_ID
ULPI_DATA3/I2S1_DIN0
ULPI_DATA7
ULPI_DATA4/I2S1_DOUT0
GND_20
GND_28
LCD_HSYNC/LCD_P24
AN11
LCD_VSYNC/LCD_P25
AN10
AN13
AN9
AN12
AN8
GND_21
GND_29
LCD_CLK/LCD_P26
GPIO29/UART2_DCD
TMR11
TMR9
TMR10
TMR8
GPIO21
GPIO30/UART3_DCD
3.3V_9
3.3V_13
PWM15
PWM11
PWM14
PWM10
PWM13
PWM9
PWM12
PWM8
CAN2_RX
UART2_RXD/TSI0
CAN2_TX
UART2_TXD/TSI1
LCD_CONTRAST
UART2_RTS/TSI2
LCD_OE/LCD_P27
UART2_CTS/TSI3
LCD_D0/LCD_P0
UART3_RXD/TSI4
LCD_D1/LCD_P1
UART3_TXD/TSI5
LCD_D2/LCD_P2
UART3_RTS/CAN3_RX
LCD_D3/LCD_P3
UART3_CTS/CAN3_TX
GND_22
GND_30
GPIO23
LCD_D4/LCD_P4
GPIO24
LCD_D5/LCD_P5
LCD_D12/LCD_P12
LCD_D6/LCD_P6
LCD_D13/LCD_P13
LCD_D7/LCD_P7
LCD_D14/LCD_P14
LCD_D8/LCD_P8
IRQ_P/SPI2_CS2
LCD_D9/LCD_P9
IRQ_O/SPI2_CS3
LCD_D10/LCD_P10
IRQ_N
LCD_D11/LCD_P11
IRQ_M
I2S1_DIN_SCK
IRQ_L
I2S1_DIN_WS
IRQ_K
I2S1_DIN1
IRQ_J
I2S1_DOUT1
IRQ_I
LCD_D15/LCD_P15
LCD_D18/LCD_P18/SD_RX_0+
LCD_D16/LCD_P16/SD_GND
LCD_D19/LCD_P19/SD_RX_0LCD_D17/LCD_P17/SD_GND
GND_23
GND_31
EBI_AD20/LCD_P42/SD_GND EBI_BE_32_24/LCD_P28/SD_TX_0+
EBI_AD21/LCD_P43/SD_GND EBI_BE_23_16/LCD_P29/SD_TX_0EBI_AD22/LCD_P44/SD_RX_1+ EBI_BE_15_8/LCD_P30/SD_GND
EBI_AD23/LCD_P45/SD_RX_1EBI_BE_7_0/LCD_P31/SD_GND
EBI_AD24/LCD_P46/SD_GND
EBI_TSIZE0/LCD_P32/SD_TX_1+
EBI_AD25/LCD_P47/SD_GND
EBI_TSIZE1/LCD_P33/SD_TX_1EBI_AD26/LCD_P48/SD_RX_2+
EBI_TS/LCD_P34/SD_GND
EBI_AD27/LCD_P49/SD_RX_2EBI_TBST/LCD_P35/SD_GND
EBI_AD28/LCD_P50/SD_GND
EBI_TA/LCD_P36/SD_TX_2+
EBI_AD29/LCD_P51/SD_GND
EBI_CS4/LCD_P37/SD_TX_2EBI_AD30/LCD_P52/SD_RX_3+
EBI_CS3/LCD_P38/SD_GND
EBI_AD31/LCD_P53/SD_RX_3EBI_CS2/LCD_P39/SD_GND
LCD_D20/LCD_P20/SD_GND
EBI_CS1/LCD_P40/SD_TX_3+
LCD_D21/LCD_P21/SD_REFCLK+
GPIO31/LCD_P41/SD_TX_3LCD_D22/LCD_P22/SD_REFCLKLCD_D23/LCD_P23/SD_GND
GND_24
GND_32
3.3V_10
3.3V_14
PCI EXPRESS TOWER SYSTEM
C1
C2
C3
C4
C5
C6
C7
C8
C9
C10
C11
C12
C13
C14
C15
C16
C17
C18
C19
C20
C21
C22
C23
C24
C25
C26
C27
C28
C29
C30
C31
C32
C33
C34
C35
C36
C37
C38
C39
C40
C41
C42
C43
C44
C45
C46
C47
C48
C49
C50
C51
C52
C53
C54
C55
C56
C57
C58
C59
C60
C61
C62
C63
C64
C65
C66
C67
C68
C69
C70
C71
C72
C73
C74
C75
C76
C77
C78
C79
C80
C81
C82
SECONDARY
Figure 46. Evaluation Board Schematic, Part 3
KTTWRMCMVHB1EVBUG Rev. 2.0
46
Freescale Semiconductor, Inc.
Board Layout
8
Board Layout
8.1
Silkscreen
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
47
Board Bill of Materials
9
Board Bill of Materials
Table 12. Bill of Materials (3)
Item
Qty
Schematic Label
Value
Description
Part Number
Assy
Opt
Freescale Components
1
1
U1
IC THROTTLE CONTROL DUAL
H-BRIDGE 8-28 V SOIC54-EP
MC33932EK
2
1
U2
IC THROTTLE CONTROL H-BRIDGE
8.0-28 V PQFN32
MC33926PNB
LED RED CLEAR SGL 30MA 0805
LTST-C170EKT
DIODE TVS UNIDIR 600 W 24 V
AEC-Q101 SMB
SMBJ24AHE3/52
LED GRN SGL 30MA SMT 0805
LTST-C171KGKT
MBR130LSFT1G
Diodes & Transistors
3
3
D1,D2,D11
4
2
D4,D7
5
3
D5,D8,D10
RED
GREEN
6
1
D9
DIODE SCH PWR RECT 1 A 30 V
SOD-123
7
3
Q1-Q3
TRAN PNP GEN AMP 200 mA 40 V
AEC-Q101 SC70
MMBT3906WT1G
0.1 μF
CAP CER 0.1 μF 50 V 10% X7R 0805
CC0805KRX7R9BB104
GCM21BR71H105KA03
Capacitors
8
7
C1,C3,C13,C16,C21,C24,C26
9
3
C11,C12,C27
1 μF
CAP CER 1 μF 50 V 10% X7R
AEC-Q200 0805
10
2
C15,C20
220 μF
CAP ALUM 220 μF 50 V 20% SMD
12.5MMX13MM
MAL214099111E3
11
3
C17,C22,C25
10 μF
CAP CER 10 μF 50 V 10% X7S
AEC-Q200 1210
GCM32EC71H106KA03
12
3
C2,C4,C14
47 μF
CAP ALEL 47 μF 50 V 20% AEC-Q200
SMD
MAL214699101E3
13
3
C5,C6,C23
0.033 μF
CAP CER 0.033 μF 50 V 10% X7R 0805
08055C333KAT2A
14
6
C7-C10,C18,C19
0.01 μF
CAP CER 0.01 μF 50 V 10% X8R 0603
C1608X8R1H103K
Resistors
15
3
R1,R2,R11
10 KΩ
RES MF 10 KΩ 1/10 W 5% AEC-Q200
0603
ERJ-3GEYJ103V
16
28
R16-R21,R27-R29,R34-R50,R52,
R54
0Ω
RES MF ZERO Ω 1/10 W -- 0603
CRCW06030000Z0EA
17
3
R3,R5,R14
100 Ω
RES MF 100 Ω 1/10 W 1% 0603
RC0603FR-07100RL
18
3
R4,R6,R13
43 KΩ
RES MF 43 KΩ 1/10 W 1% 0603
RK73H1JTTD4302F
19
4
R7,R8,R12,R15
1 KΩ
RES MF 1 KΩ 1/10 W 1% 0603
AR03FTNX1001
10 KΩ
RES MF 10 KΩ 1/10 W 5% AEC-Q200
0603
ERJ-3GEYJ103V
FUSE CERAMIC FAST 20 A 32 V 1206
0501020.WRS
1923869
20
2
R9,R10
(4)
Switches, Connectors, Jumpers and Test Points
21
2
F1,F2
20 A
22
5
J1-J5
CON 1X2 SHRD RA TH 5.08 MM 16A
SP 339H SN 137L
23
1
J6
HDR 1X3 TH 100 MIL SP 339H AU 100L TSW-103-07-G-S
24
1
J7
CON DUAL 2X82 Edge PCI Express
SMT 1MM SP 591H FOR TOWER SYSTEM NOT A PART TO ORDER
EDGE PCI EXPRESS 164
25
1
J8
HDR 2X4 TH 100 MIL CTR 330H AU
100L
TSW-104-07-G-D
(4)
26
27
TP1-TP24,TP27-TP29
TEST POINT PAD 40 MIL DIA SMT, NO
PART TO ORDER
27
2
TP25,TP26
TEST POINT BLK 70X220 MIL TH
5006
(4)
Notes
3. Freescale does not assume liability, endorse, or warrant components from external manufacturers are referenced in circuit drawings or tables.
While Freescale offers component recommendations in this configuration, it is the customer’s responsibility to validate their application.
4. Do not populate
KTTWRMCMVHB1EVBUG Rev. 2.0
48
Freescale Semiconductor, Inc.
References
10
References
Freescale.com Support
Pages
Description
URL
www.freescale.com/TWR-MC-MVHB1EVB
TWR-MC-MVHB1EVB
Tool Summary Page
MC33932
Product Summary Page
www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MC33932
MC33926
Product Summary Page
www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MC33926
Processor Expert
Tool Summary Page
www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MVHBRIDGE-PEXPERT
CodeWarrior
Tool Summary Page
www.freescale.com/webapp/sps/site/homepage.jsp?code=CW_HOME&tid=vanCODEWARRI
OR
Processor Expert Code
Model
Code Walkthrough Video
www.freescale.com/video/processor-expert-code-model-codewarrior-code-walkthrough:PROE
XPCODMODCW_VID
10.1
Support
Visit www.freescale.com/support for a list of phone numbers within your region.
10.2
Warranty
Visit www.freescale.com/warranty to submit a request for tool warranty.
KTTWRMCMVHB1EVBUG Rev. 2.0
Freescale Semiconductor, Inc.
49
Revision History
11
Revision History
Revision
Date
1.0
7/2015
•
Initial Release
9/2015
•
Added Processor Expert section
9/2015
•
•
Fixed invalid Section reference
Added Processor Expert, CodeWarrior, Kinetis to tradmark citations in last page
2.0
Description of Changes
KTTWRMCMVHB1EVBUG Rev. 2.0
50
Freescale Semiconductor, Inc.
How to Reach Us:
Information in this document is provided solely to enable system and software implementers to use Freescale products.
Home Page:
freescale.com
There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits based
Web Support:
freescale.com/support
Freescale reserves the right to make changes without further notice to any products herein. Freescale makes no
on the information in this document.
warranty, representation, or guarantee regarding the suitability of its products for any particular purpose, nor does
Freescale 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 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 does not convey any license under its patent rights nor the rights of others.
Freescale sells products pursuant to standard terms and conditions of sale, which can be found at the following address:
freescale.com/SalesTermsandConditions.
Freescale, the Freescale logo, Processor Expert, CodeWarrior, and Kinetis are trademarks of Freescale Semiconductor,
Inc., Reg. U.S. Pat. & Tm. Off. SMARTMOS is a trademark of Freescale Semiconductor, Inc. All other product or service
names are the property of their respective owners.
© 2015 Freescale Semiconductor, Inc
Document Number: KTTWRMCMVHB1EVBUG
Rev. 2.0
9/2015