Quick Start Guide TRK-S12ZVH128 S12 MagniV MCU for Automotive Instrument Cluster Applications Quick Start Guide Get to Know the TRK-S12ZVH128 Potentiometer Enable Potentiometer I2C Header User Buttons SPI Header Power Connector S12ZVH128 MCU Power Switch Stepper Motor Headers USB Program/Debug User LEDs Reset Button SCI Interface OSBDM Bootloader Mode Enable 2 LIN Interface Speaker CAN Interface 3 Quick Start Quick Start Guide Guide for TWRPI-MMA845xQ TRK-S12ZVH128 Introduction and Default Settings The TRK-S12ZVH128 features the S12ZVH128 MCU, an automotive 16-bit MCU for instrument cluster applications. The S12ZVH128 MCU integrates an S12Z CPU, a CAN physical interface, a 5 V regulator system to supply the MCU, four low-power stepper motor drivers and an LCD controller on-chip. This guide will show how to quickly connect the board to a host PC and execute a demonstration application preloaded in to the flash memory. Default jumper positions of the TRK-S12ZVH128 board are shown in the figure. The TRK-S12ZVH128 board includes an on-board OSBDM programmer, a custom 160-segment LCD, CAN connector (attached to the internal CAN transceiver), a LIN physical transceiver as well as an SCI physical transceiver. The board also features a speaker and dedicated headers for four low-power stepper motors. 4 5 Quick Start Guide TRK-S12ZVH128 Software Tools Installation 1 Install CodeWarrior Development Studio Freescale's CodeWarrior for MCUs integrates the development tools for several architectures, including the S12Z architecture, into a single product based on the Eclipse open development platform. Eclipse offers an excellent framework for building software development environments and is a standard framework used by many embedded software vendors. The latest version of CodeWarrior for MCUs (Eclipse IDE) can be downloaded from freescale.com/CodeWarrior. 6 2 Jumper Default Configuration Launch the Demo Program The DVD contains a CodeWarrior project to exercise the different modules of the S12ZVH MCU family, including the ADC, TIM, LCD, key interrupts, SCI and CAN modules. Jumper J2 J8 J10 J11 J12 J14 J15 J16 J17 J18 J19 J20 J22 J24 J26 J28 J33 J34 J35 J36 J37 J38 J39 J41 J42 J43 J44 Setting 1-2 1-2 1-2 2-3 1-2 1-2 1-2 1-2 1-2 1-2 1-2 1-2 1-2 1-2 1-2 1-2 1-2 1-2 2-3 1-2 2-3 1-2 1-2 1-2 1-2 1-2 1-2 Description Potentiometer enabled Switch 1 enabled Switch 2 enabled Switch signals high when pressed (5 V) Switch signals pulled down Switch 3 enabled Switch 4 enabled Connect VDDX to its ballast transistor output Connect VDDX to VDDA Connect VSUP to VBATT Connect the SPLIT pin to the CAN bus Connect VDDX to VDDM Connect VDDX to VDD5V (5 V supply for the rest of the board peripherals) Connect the CAN termination resistors to the CAN bus Connect VDDX to VLCD Connect VDDC to its ballast transistor output Power the speaker amplification circuit LED PP3 enabled Speaker amplitude controlled by SGT pin SCI physical transceiver enable MCU SCI module connected to SCI transceiver MCU SCI module connected to SCI transceiver LED PP2 enabled Speaker tone control enabled LED PP1 enabled LIN transceiver enabled LED PP0 enabled 7 Quick Start Quick Start Guide Guide for TWRPI-MMA845xQ Jumper List and Description Jumper Description J2 J8 J10 J11 J12 J14 J15 J16 J17 J18 J19 J20 J22 J24 Potentiometer enable Closing this jumper connects the potentiometer signal to an ADC channel Switch 1 enable Closing this jumper connects the SW to the MCU Switch 2 enable Closing this jumper connects the SW to the MCU Switch supply selector Pins 1-2 closed: Switches connect to GND when pressed Pins 2-3 closed: Switches connect to 5 V when pressed Switch pull direction selector Pins 1-2 closed: Switches have pull-down resistors Pins 2-3 closed: Switches have pull-up resistors Switch 3 enable Closing this jumper connects the SW to the MCU Switch 4 enable Closing this jumper connects the SW to the MCU VDDX ballast transistor to VDDX Closing this jumper connects the VDDX ballast transistor output to the VDDX power bus Connect VDDX to VDDA Closing this jumper connects VDDX to VDDA Connect VSUP to VBATT Closing this jumper connects the 12 V input (VBATT) to the MCU (VSUP) SPLIT Closing this jumper connects the SPLIT pin to the CAN bus Connect VDDX to VDDM Closing this jumper connects VDDX to VDDM Connect VDDX to VDD5V Closing this jumper connects VDDX to VDD5V (5 V power supply to other on-board peripherals) CAN termination Closing this jumper connects the CAN termination resistors to the CAN bus TRK-S12ZVH128 Jumper List and Description, cont. Jumper Description J26 J28 J33 J34 J35 J36 J37 J38 J39 J40 J41 J42 J43 J44 8 Connect VDDX to VLCD Closing this jumper connects VDDX to VLCD VDDC ballast transistor to VDDC Closing this jumper connects the VDDC ballast transistor output to the VDDC power bus Speaker power Closing this jumper powers the speaker amplification circuit LED PP3 enable Closing this jumper connects the LED to the MCU Speaker amplitude control selector Pins 1-2 closed: Speaker amplitude controlled by SGA pin Pins 2-3 closed: Speaker amplitude is fixed to 5 V (volume is controlled by SGT pin) SCI transceiver power Closing this jumper powers the SCI transceiver circuit SCI TX Selector Pins 1-2 closed: MCU SCI TX pin is connected to the virtual SCI module (via OSBDM) Pins 2-3 closed: MCU SCI TX pin is connected to SCI transceiver SCI RX Selector Pins 1-2 closed: MCU SCI RX pin is connected to SCI transceiver Pins 2-3 closed: MCU SCI RX pin is connected to the virtual SCI module (via OSBDM) LED PP2 enable Closing this jumper connects the LED to the MCU OSBDM operating mode selector Pins 1-2 open: OSBDM in normal mode, programming and debugging capable Pins 1-2 closed: OSBDM on bootloader mode, only used for firmware update Speaker tone control enable Closing this jumper connects speaker amplifier to the MCU LED PP1 enable Closing this jumper connects the LED to the MCU LIN transceiver power Closing this jumper powers the LIN transceiver LED PP0 enable Closing this jumper connects the LED to the MCU 9 Quick Start Quick Start Guide Guide for TWRPI-MMA845xQ Headers and Connectors List Header/ Connector Description J1 J3 J4 J5 J6 J7 J9 J13 J21 J23 J25 J27 J29 J30 J31 J32 J45 J46 J47 J48 10 GPIO header (LCD replacement option), ports A, D and F GPIO header, port AD I2C header GPIO header (LCD replacement option), ports B, H, G and F Extended debug lines GPIO header, ports T and S SPI header Main power barrel connector (up to 18 V) Stepper motor 0 header Stepper motor 1 header GPIO header, ports P and C Stepper motor 2 header Stepper motor 3 header S12ZVH128 BDM port (external program and debug interface)--Main MCU S08JM60 BDM port (external program and debug interface)--OSBDM MCU OSBDM USB port for programming and debugging the main MCU LIN connector (not populated) LIN connector CAN connector SCI connector TRK-S12ZVH128 Peripheral List Peripheral ID MCU Port Potentiometer R3 D9 D8 D7 D6 D1 AD0 P0 P1 P2 P3 - D3 - LED Button D4 - SW1 SW2 SW3 SW4 SW6 T3 T2 T1 T0 - Description Potentiometer connected to ADC channel 0 Blue LED connected to port P0 Blue LED connected to port P1 Blue LED connected to port P2 Blue LED connected to port P3 VBATT LED, ON when voltage is applied to the board MCU PWR LED, ON when the MCU is regulating the input voltage to 5 V OSBDM PWR LED, ON when OSBDM is successfully enumerated as USB device Switch connected to port T3 Switch connected to port T2 Switch connected to port T1 Switch connected to port T0 Reset switch 11 Quick Start Guide Quick Quick Start Start Guide Guide Support Visit freescale.com/support for a list of phone numbers within your region. Warranty Visit freescale.com/warranty for complete warranty information. For more information, visit freescale.com/TRK-S12ZVH128 Freescale, the Freescale logo and Qorivva are trademarks of Freescale semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. MagniV is a trademark of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. (c) 2012, 2013 Freescale Semiconductor, Inc. Doc Number: TRKS12ZVH128QSG REV 0 Agile Number: 926-78789 REV 0