User`s Guide - NXP Semiconductors

User`s Guide - NXP Semiconductors
Freescale Semiconductor
Users Guide
Document Number:
Rev. 0, 10/2010
16-bit MCU: S12XHY256
Automotive Cluster Demo
Jose M. Cisneros
Steven McLaughlin
Applications Engineer
Microcontroller Solutions Group, Scotland
S12XHY Dashboard
Cluster Demo Board
The dashboard is run with the S12XHY 16-bit MCU,
which is responsible for driving all the board
functionality. The hardware comes complete with four
VID-23 shaft illuminated motors, a 160 segment LCD
display, Molex CAN and LIN connections, a
piezoelectric speaker to demonstrate sound capability,
and a series of switches and LEDs to emulate standard
dashboard functionality.
© Freescale Semiconductor, Inc., 2010. All rights reserved.
• Preliminary—Subject to Change Without Notice
S12XHY Dashboard Cluster Demo Board. . . . . . . . . . . .
How to setup and operate the demo board . . . . . . . . . . .
FAQs and Talking Points. . . . . . . . . . . . . . . . . . . . . . . . .
Additional Resources and Materials . . . . . . . . . . . . . . . .
How to setup and operate the demo board
Figure 1. S12XHY dashboard cluster demo board
How to setup and operate the demo board
The demo is very straightforward to setup. It requires a 12 volt DC supply, which is connected at the
bottom right side of the board as shown in Figure 1. Switch 5 should be set to the on position (This demo
does not use switch 4, ignition switch, so it can be in any state). The demo will then start automatically in
the initiation phase, as described below, and all motors will return-to-zero all at once.
16-bit MCU: S12XHY256 Automotive Cluster Demo, Rev. 0
Preliminary—Subject to Change Without Notice
Freescale Semiconductor
How to setup and operate the demo board
Figure 2. Flow diagram with images of demo operation
Besides driving the motors and LCD, the demo incorporates some software solutions to enhance its
• Pressing switch 9 activates a horn sound and pressing switch 8 toggles the cruise control on and off.
• The MENU switch, allows the user to scroll through the odometer, trip A meter, and trip B meter.
This is indicated clearly on the LCD and the user will notice the digits change.
• By pressing the indicator switches simultaneously, the demo will enter a hazard mode and will
shutdown operation and begin to flash and display ‘hazard’ on the LCD. Normal operation is
commenced by letting go of the switches.
• The piezoelectric speaker plays a continuous indicator relay clicking sound. Turning the
“VOLUME” potentiometer varies the amplitude of the PWM signal that is fed to the piezoelectric
• The four motor indicators light are controlled as follows:
— MENU, switch 7, controls MPH indicator light. Pressing the MENU switch for a second will
turn off MPH indicator for 10s.
— SELECT, switch 6, controls FUEL indicator light. Pressing the SELECT switch for a second
will turn off FUEL indicator for 10s.
16-bit MCU: S12XHY256 Automotive Cluster Demo, Rev. 0
Freescale Semiconductor
Preliminary—Subject to Change Without Notice
FAQs and Talking Points
— LEFT TURN, switch 9, controls TEMP indicator light. Pressing the LEFT TURN switch for a
few second (after the horn sound has passed), will turn off TEMP indicator for 10s.
— RIGHT TURN, switch 8, controls RPM indicator light. Pressing the RIGHT TURN switch for
a second will turn off RPM indicator for 10s.
This demo is capable of identifying RTZ (return-to-zero) position either by SSD (Stepper Stall
Detection) hardware module or by SSD software logic at demo power up. This is configured at
project compilation time, the current SSD implementation is displayed while the four stepper
motors are calibrating the zero position at power up:
— SSd-h- for SSD HW RTZ implementation.
— SSd-S- for SSD SW RTZ implementation.
For this S12XHY demo you will see SSd-h- message.
SSD is only active during startup at RTZ calibration. After RTZ position has
been determined the motors deactivate this logic and start moving CW and
The odometer value displayed on the LCD is also of importance. The user will notice that on switching on
or switching off the demo, the odometer value is maintained despite the S12XHY device having no
EEPROM. The demo uses an emulated EEPROM software driver, available freely on the Freescale
website, which uses the device’s D-flash to read and write the odometer values.
FAQs and Talking Points
1. Is the SSD software available for general use?
— An application note, AN4024 has been released explaining the SSD software technique and is
available with demo software.
2. Only the odometer value is restored upon POR, why isn’t the other values restored?
— This is for demonstration purposes and as such only the odometer value has been programmed
with the EEE driver. Other values such as the trip A/B meter can be implemented in the same
3. How is the shaft pointers illuminated?
— The motors include an integrated white LED, which is connected directly to a GPIO. It should
be pointed out that these require a GPIO each. So, controlling the GPIO in a general manner
for initiating LEDs is how it’s done.
4. The demo board contains a CAN and LIN Molex connector, do these work?
— Yes, they work; but have not been enabled on this demo.
5. Where can I find the schematics of the demoboard? Is the demo code available?
— When you purchase the board, Axiom provides a CD with both schematics and software. The
firmware for this demo is not openly available.
6. I don’t like the piezoelectric speaker sound, can I change it?
16-bit MCU: S12XHY256 Automotive Cluster Demo, Rev. 0
Preliminary—Subject to Change Without Notice
Freescale Semiconductor
Additional Resources and Materials
— Yes, you can. Since a PWM signal being fed via an amplifier to the piezoelectric speaker, it is
possible to alter the PWM signal, and be more creative with it.
Additional Resources and Materials
Application Notes:
These application notes are available at
• Introduction to the Stepper Stall Detector Module (document AN3330).
• Migrating Applications from S12HY64 to S12XHY256 16-bit Automotive Cluster Migration
(document AN4201)
• High Speed Stall Detection on the S12HY and S12XHY Family (document AN4024)
Useful websites:
• For software examples, VID motor documentation, cluster demo schematics, and LCD glass
documentation visit
• For EEE driver software visit
16-bit MCU: S12XHY256 Automotive Cluster Demo, Rev. 0
Freescale Semiconductor
Preliminary—Subject to Change Without Notice
Information in this document is provided solely to enable system and software
implementers to use Freescale Semiconductor products. There are no express or
implied copyright licenses granted hereunder to design or fabricate any integrated
circuits or integrated circuits based on the information in this document.
How to Reach Us:
Home Page:
Web Support:
Freescale Semiconductor reserves the right to make changes without further notice to
any products herein. Freescale Semiconductor makes no warranty, representation or
guarantee regarding the suitability of its products for any particular purpose, nor does
Freescale Semiconductor assume any liability arising out of the application or use of any
product or circuit, and specifically disclaims any and all liability, including without
limitation consequential or incidental damages. “Typical” parameters that may be
provided in Freescale Semiconductor data sheets and/or specifications can and do vary
in different applications and actual performance may vary over time. All operating
parameters, including “Typicals”, must be validated for each customer application by
customer’s technical experts. Freescale Semiconductor does not convey any license
under its patent rights nor the rights of others. Freescale Semiconductor products are
not designed, intended, or authorized for use as components in systems intended for
surgical implant into the body, or other applications intended to support or sustain life,
or for any other application in which the failure of the Freescale Semiconductor product
could create a situation where personal injury or death may occur. Should Buyer
purchase or use Freescale Semiconductor products for any such unintended or
unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and
its officers, employees, subsidiaries, affiliates, and distributors harmless against all
claims, costs, damages, and expenses, and reasonable attorney fees arising out of,
directly or indirectly, any claim of personal injury or death associated with such
unintended or unauthorized use, even if such claim alleges that Freescale
Semiconductor was negligent regarding the design or manufacture of the part.
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
Europe, Middle East, and Africa:
Freescale Halbleiter Deutschland GmbH
Technical Information Center
Schatzbogen 7
81829 Muenchen, Germany
+44 1296 380 456 (English)
+46 8 52200080 (English)
+49 89 92103 559 (German)
+33 1 69 35 48 48 (French)
Freescale Semiconductor Japan Ltd.
ARCO Tower 15F
1-8-1, Shimo-Meguro, Meguro-ku,
Tokyo 153-0064
0120 191014 or +81 3 5437 9125
[email protected]
RoHS-compliant and/or Pb-free versions of Freescale products have the functionality
and electrical characteristics as their non-RoHS-compliant and/or non-Pb-free
counterparts. For further information, see or contact your
Freescale sales representative.
Freescale Semiconductor China Ltd.
Exchange Building 23F
No. 118 Jianguo Road
Chaoyang District
Beijing 100022
+86 10 5879 8000
[email protected]
For information on Freescale’s Environmental Products program, go to
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. 2010. All rights reserved.
For Literature Requests Only:
Freescale Semiconductor Literature Distribution Center
1-800-441-2447 or 303-675-2140
Fax: 303-675-2150
[email protected]
Document Number: S12XHY256ACDUG
Rev. 0
Preliminary—Subject to Change Without Notice
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF