•CD912J637 - Contains CodeWarrior Code Template and CodeWarrior software
2Freescale
KIT912J637EVME, Rev. 1.0
Page 3
2Important 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 EVB 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 EVB 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. D ue 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 mini mize 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 applicati on
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 crea te a situation where
personal injury or death may occur.
Freescale Semiconductor’s KIT912J637EVME is a system solution that gives the user the capability to easily
evaluate most of the features provided by the MM912J637 - Xtrinsic Battery Sensor. The 912J637 feature s two
die in a single package. The 16-bit core and the analog die are connected via the die to die interface that
provides direct address access to the registers on the analog die. The analog die contains three 16-bit sigma
delta converters and enables simultaneous sampling of battery volt age and current, timer module, SCI module,
LIN physical interface, and other general registers. All external signals are accessible via header connectors,
and most of the signals can also be checked via test points. The evaluation module board also includes the
TBDML programming/debugging interface, so n o exte rnal interface is neede d. The board is powere d fr om two
4.0 mm banana connectors. For quick familiarization with the device, a CodeWarrior Template is provided
together with the EVB.
3.1MM912J637 Features
•Battery voltage measurement
•Battery current measurement in up to eight ranges
•On-chip temperature measurement
•Normal and two low-power modes
•Current threshold detection and current averaging in standby => wake-up from low-power mode
•Triggered wake-up from LIN and periodic wake-up
•Signal low pass filtering (current, voltage)
•PGA (programmable low-noise gain amplifier) with automatic gain control feature
•Accurate internal oscillator (an external quartz oscillator may be used for extended accuracy)
•Communication via a LIN 2.1, LIN 2.0 bus interface
•S12 microcontroller with 128 kByte flash, 6.0 kByte RAM, 4.0 kByte data flash
•Background debug module
•External temperature sensor option (T
•Optional 2nd external voltage sense input (VOPT)
•4 x 5.0 V GPIO including one wake-up capable high voltage input (PTB3/L0)
•8 x MCU general purpose I/O including SPI functionality
•Industry standard EMC compliance
SUP
, V
TEMP
)
3.2Warnings
When working with the kit, always use an isolated laboratory power supply.
Keep in mind all ESD rules when handling the board. Avoid touching the connector pins. They are directly
connected to the device pins. Even though the device pins are ESD protected, this protection has its limits.
Some ESD events can destroy or damage the device, or cause its malfun ction.
4Freescale
KIT912J637EVME, Rev. 1.0
Page 5
KIT912J637EVME Introduction
3.3Acronyms
Table 1. Acronyms
AcronymExplanationAcronymExplanation
D2DDie to Die bus interfaceMCUMicrocontroller Unit
EVBEvaluation BoardLSLow Side (switch)
ESDElectrostatic Discharge, Electrostatic Sensitive DeviceSCISerial Communication Interface
GNDIn the document: main supply groundTBDMLTurbo BDM Lite
GPIOGeneral Purpose Input/Output
GUIGraphical User Interface
ADCAnalog to Digital Conversion
Freescale 5
KT912J637UG, Rev. 1.0
Page 6
Required Equipment
4Required Equipment
• PC Computer running Windows XP or higher
•12 V Power Supply
• USB Cable (supplied)
6Freescale
KIT912J637EVME, Rev. 1.0
Page 7
Setup Guide
5Setup Guide
5.1Hardware Setup
Setup and connections for the KIT912J637EVME are straightforward.
The KIT912J637EVME requires a connection to the power sup
the USB cable. Figure
Follow these steps to set up the board:
1. Plug the USB cable into the connector CON13 and connect the othe
2. Connect a laboratory power supply via banana connectors to the board, using CON5 (VBATT supply) and
N6 (GND). The supply voltage has to be in the range of 8.0 to 18 V.
CO
2 depicts a complete setup.
ply and a connection to the PC or notebook via
r end of the cable to the PC or notebook.
Figure 2. KIT912J637EVME Basic Hardware Setup
Freescale 7
KT912J637UG, Rev. 1.0
Page 8
Hardware Description
6Hardware Description
6.1Board Description
Figure 3is a snapshot of the EVB with key co mponent and conn ector locations. Th e following list cor responds
6. BDM connector for external programming/debugging BDM interface
7. MM912J637CV1AE
The board is protected against reverse battery volt ag
current. The board operation is straightforward. As well as the TDBML interface (3), the board contains the
active and passive components required for pro per operation of the 912J637. Connectors and test points
ovide access to the device for important signals.
pr
e by diode D1, which can withstand up to 3.0 A continuous
Figure 3. KIT912J637EVME Evaluation Module Board
8Freescale
KIT912J637EVME, Rev. 1.0
Page 9
Hardware Description
6.1.1MCU
The MM912J637 enables precision measurement of key battery parameters in automotive and other
applications.
The device integrates an HCS12 microcontroller and a SMARTMOS analog control IC into a single package
solution. The analog die combines system basis and application specific functions, including a Local
Interconnect Network (LIN) transceiver, and 3 dedicated16-bit sigma delta analog to digital converters (ADC)
for synchronous measurement of battery voltage, current, and temperature.
An integrated temperature sensor combined with battery mounting allows for measurement of battery
temperature. Control of the analog die is via a n ew high performa nce internal die-to-die interface (D2D), which
seamlessly integrates the analog IC registers into the MCU register map, providing faster access than
SPI-based systems. The MM912J637 also includes an internal oscillator, 128 k Bytes of Flash memory, and
6.0
k bytes of RAM. An optional external temperature sensor is also supported.
The 912J637 has three main operating modes: Normal (all functions available) ; Sleep (VDD off, Wake-up via:
the LIN bus, PTB3/L0 input, current threshold, current averaging, calibration request, lifetime counter, internal
timer, or external reset), and Stop (V
input, current threshold, current averaging, calibration request, life time counter , internal timer , or external reset).
on with limited current capability, Wake-up via: the LIN bus, PTB3/L0
DD
6.1.2TBDML
The Turbo BDM Light interface is a programming and debugging tool, and constitutes an interface between a
PC and the BDM debugging port of Freescale microcontr ollers. It enables the debugger and other soft ware tools
to communicate with the microcontroller, and download code into its on-chip flash, etc. Among the benefits of
using the TBDML on the EVB is a much higher communicatio n speed than other USB/BDM interfaces. It is also
unnecessary to connect external devices to the EVB when programming/debugging is needed.
A BDM connector (CON9) is placed on the EVB to allow the connection of another BDM tool, such as the P&E USB BDM Multilink. In this case, DIP switches S2-1 and S2-2 should be set to “OFF”, to disable the TBDML
interface.
In either case, S2-3 should be set to “OFF” during programming to disconnect RESET from RESET_A.
6.1.2.1Switch Settings
Figure 4 summarizes the location of all DIP switches and settings.
Freescale 9
KT912J637UG, Rev. 1.0
Page 10
Hardware Description
Figure 4. Position of DIP Switches on the EVB
Table 2. DIP Switch Settings
meSwitch #FunctionONOFF
Na
S11-5Analog Die Test SPI connect to USBConnectedDisconnected
S21-2On Board TBDML Connected to
MM912J637
3Analog Die and MCU Reset connectionResets ConnectedResets Disconnected
S31VSENSE connected to VBATConnectedDisconnected
2Reverse Battery Diode ShortShorted (V
S41-2Current Sense Inputs short to GNDShort to GNDNot shorted to GND
KIT912J637EVME, Rev. 1.0
10Freescale
ConnectedDisconnected (External BDM)
BAT=VSUP
)Diode in path
(V
= V
SUP
BAT
- V
DIODE
)
Page 11
Hardware Description
6.2Connector Description
There are 13 connectors on the EVB. A list of the connector and pin assignments is in the following paragraphs.
6.2.1Connectors
Figure 5. Connectors
Table 3. Connectors
Name
CON1VOPTOptional Voltage Sense Input
CON2ISENSEHHigh Level Current Sense Input
CON3ISENSELLow Level Current Sense Input
CON4LINLIN Physical Layer I/O
CON5VBATBattery Level Supply
CON6GNDDevice Ground
CON7ETEMPExternal Temperature Sensor
CON8PTA/EMCU Port A and E
CON9BDM_EXTExternal BDM for MM912J637
CON10BDM_JM60External BDM for JM60 (not used in this application)
CON1 1PTBAnalog Die Port B
CON12TESTTEST SPI USB Interface
CON13TBDMLTBDML USB Interface
Freescale 11
SymbolFunction
KT912J637UG, Rev. 1.0
Page 12
Hardware Description
6.2.2Voltage Sense Input (Optional) CON1
Connector CON1 is a socket for a 4.0 mm banana jack. It enables connection of an optional voltage sense input
to pin 34.
6.2.3High Level Current Sense Input H/L CON 2 & Con3
Connectors CON2 (red) and CON3 (black) are sockets for 4.0 mm banana jacks.
6.2.4LIN Connector CON4
Connector CON4 (green) is a socket for a 4.0 mm banana jack. It enables con nection of the LIN bus to pin 22.
6.2.5Power Connectors CON5 and CON6
Power connectors CON5 (positive supply - red) and CON6 (ground - black) are sockets for 4.0 mm banana
jacks.
12Freescale
KIT912J637EVME, Rev. 1.0
Page 13
Hardware Description
6.2.6External Temperature Sensor CON 7
Connector CON1 is a header type 3 X 1, 2.54 mm (0.1”) pitch. It enables connection of an optional temperature
sense input.
Connector CON 8 is a header type 6 x 2, 2.54 mm (0.1”) pitch.Table 5 shows the pin assignments.
Table 5. MCU Port A & E CON8
Pin #Description
1GND
25V
3PA0
4PA1
5PA2
6PA3
7PA4
8PA5
9PA6
10PA7
11PE0
12PE1
Freescale 13
KT912J637UG, Rev. 1.0
Page 14
Hardware Description
6.2.8External BDM for MM912J637 CON 9
A standard BDM Connector (hea der 2 X 3 , 2.54 mm (0.1”) pitch) is placed on the EVB to provide the user with
an external BDM programming/debugging interface connection. The pin assignment is listed in
Table 6.
Table 6. Signal Connector CON9
Pin #Description
1BKGD
2GND
3
4/RESET
5
6+5.0V
6.2.9External BDM for JM60 (TEST_SPI USB MCU) CON 10
A standard BDM Connector (hea der 2 X 3 , 2.54 mm (0.1”) pitch) is p laced on the EVB to p rovide the user with
an external BDM programming/debugging interface connection. This conn ector is not supported by the included
software. The pin assignments are listed in
Table 7.
Table 7. Signal Connector CON10
Pin #Description
1BKGD
2GND
3
4/RESET
5
6+5.0V
6.2.10ANALOG DIE PORT B CON 11
The J8 connector is header type 2x2, 0.1” (2.54 mm) pitch. The pin assignments are listed inTable 8.
Table 8. Signal Connector CON 11
Pin #Description
1PTB0
2PTB1
3PTB2
4L0
14Freescale
KIT912J637EVME, Rev. 1.0
Page 15
Hardware Description
6.2.11Test SPI USB Interface CON12
Connector CON12 is a standard USB connector type B. The pin assignments are listed in Table 9.
.
Table 9. USB Connector J9
Pin #Description
1+5.0 V
2USBDM
3USBDP
4GND
6.2.12TBDML USB Interface CON13
Connector CON13 is a standard USB connector type B. It enables connection of the EVB to a PC or notebook.
Table 10. USB Connector J9
Pin #Description
1+5.0 V
2USBDM
3USBDP
4GND
6.3Test Points
There are 22 test points on the EVB, allowin g easy monitoring of the key pins on the MM912J637. The test point
reference numbers indicate the corresponding pins on the MM912J637. The schematic and board are marked
with both reference numbers and signal names.
Reference designatorSignal nameReference designatorSignal name
7.1Important Notes on Programming and Debugging of the Board
7.1.1Hardware Considerations
During device programming the switch configuration for S2 should conform to the settings in Table 2 for either
TBDML or BDM programming respectively. The minimum supply voltage during the programming and
debugging is 8.0 V.
In normal operation, RESET and RESET_A must be connected by setting S2-3 “ON”.
NOTE: While the EVB is being programmed, if TBDML is not used for debug, it is recommended to switch off
TBDML.
7.1.2Programming and Debugging Via the TBDML Interface
A TBDML interface is placed on the kit board for programming/d ebugging of the board. It is necessa ry to install
TBDML supporting files (USB driver , interface DLL, GDI DLL plug-in for the Fre escale’s Hi-wave debugger) and
implement modifications in the settings of the CodeW arrior Hi-wave debugger , to be able to prog ram/debug the
board. The enclosed CD contains documentation an d complete sour ce files to this open source tool. Read th e
tbdml_manual_15.pdf (user’s manual), especially the 3.2 Installing Windows Drivers section, and follow the
listed instructions. Omit the jumper J2 settings. This refers to another board. Installation is easy and does not
require any special skills.
7.1.3Software Included on the CD
A basic template is included on the CD in the MM912J637 folder. It initializes the MM912J637 and provides a
framework for evaluation. CodeWarrior must be installed on your system before open ing this template.
To install, copy and paste the subfolder KIT912J637_Template onto your desktop or other other appropriate
local location. Open the subfolder and double click on the CodeWarrior project file titled
"KIT912J637_template.mcp." This will open the template in the CodeWarrior environment.
The code may be downloaded to the EVB using TBDML or a programmer such as the PE Micro Cyclone Pro.
CON2ISENSEHDELTRON - Red
CON3ISENSELDELTRON - Black
CON4LINDELTRON - Green (opt. Red)
CON5VBATDELTRON - Red
CON6GNDDELTRON - Black
CON7ETEMP1X03 (3 of 40)
CON8PTA,E2X06 (6 of 40)
CON9BDM_EXT2X03 (3 of 40)
CON10BDM_JM602X03 (3 of 40)
CON11PTBx2X02 (2 of 40)
CON12TESTUSB REC R/A TYPE B 4POS
CON13TBDMLUSB REC R/A TYPE B 4POS
TP0VBATTESTPOINT-BLK,1.4 mm drl
TP16GNDTESTPOINT-BLK,1.4 mm drl
TP17VDDXTESTPOINT-BLK,1.4 mm drl
TP19VDDHTESTPOINT-BLK,1.4 mm drl
TP20GNDTESTPOINT-BLK,1.4 mm drl
TP21VSUPTESTPOINT-BLK,1.4 mm drl
TP22LINTESTPOINT-BLK,1.4 mm drl
TP26VDDATESTPOINT-BLK,1.4 mm drl
TP28VTEMPTESTPOINT-BLK,1.4 mm drl
TP29TSUPTESTPOINT-BLK,1.4 mm drl
TP30GNDTESTPOINT-BLK,1.4 mm drl
TP31ISENSELTESTPOINT-BLK,1.4 mm drl
TP32ISENSEHTESTPOINT-BLK,1.4 mm drl
TP34VSENSETESTPOINT-BLK,1.4 mm drl
TP35VOPTTESTPOINT-BLK,1.4 mm drl
TP36L0TESTPOINT-BLK,1.4 mm drl
TP37PTB2TESTPOINT-BLK,1.4 mm drl
TP38PTB1TESTPOINT-BLK,1.4 mm drl
TP39PTB0TESTPOINT-BLK,1.4 mm drl
TP41GNDTESTPOINT-BLK,1.4 mm drl
TP42VDDLTESTPOINT-BLK,1.4 mm drl
TP45RST_ATESTPOINT-BLK,1.4 mm drl
TP46RSTTESTPOINT-BLK,1.4 mm drl
Table 13 provides URLs where you can obtain information on other Freescale products and application
solutions.
Table 13. References
ProductsLinks
Data Sheet MM912_637www.freescale.com/files/analog/doc/data_sheet/MM912_637D1.pdf
Freescale’s Web Sitewww.freescale.com
Freescale’s Analog Web Sitewww.freescale.com/analog
Freescale’s Power Management Web Sitewww.freescale.com/powermanagement
References
Freescale 25
KT912J637UG, Rev. 1.0
Page 26
Revision History
12Revision History
RevisionDetails
1.0First Release.
Table 14. Revision History
26Freescale
KIT912J637EVME, Rev. 1.0
Page 27
Revision History
Freescale 27
KT912J637UG, Rev. 1.0
Page 28
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
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
For Literature Requests Only:
Freescale Semiconductor Literature Distribution Center
P.O. Box 5405
Denver, Colorado 80217
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 Semi conductor prod ucts. 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 m ake changes without furt her
to products herein. Freescale Semiconductor makes no warranty,
representation or regarding the suitability of its products for any particular
purpose, nor does Freescale Semiconductor assume any liability arising out
of the or use of any product or circuit, and specifically disclaims any and all
liability, including without limitation consequential or incidental damages.
“Typical” param eters that may be provid ed in Freescal e Semicond uctor dat a
sheets and/or specifications can and do vary in different applications and
actual performance may vary over time. All operating parameters, including
“Typicals”, be validated for each customer application by technical experts.
Freescale Semiconductor does not convey any licens e under its paten t rights
nor the rights of others. Freescale Semiconductor products are des i gned,
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 harmless against all claims, costs, da mages, and
expenses, and reasonable attorney fees arising out of, directly or indirectly,
any claim of personal injury or death associated with such uninten ded or
unauthorized use, even if such claim alleges that Freescale Semiconductor
was negligent regarding the design or manufacture of the part.