VLG-MC9S12ZVC Board Quick Start Guide

Quick Start Guide
S12 MagniV Mixed-signal MCUs
S12ZVC Evaluation Board
Quick Start Guide
Introduction and default settings
This guide shows how to quickly connect the board to a host PC and
execute a demonstration application preloaded in to the flash memory.
The S12ZVC MCU integrates:
• S12Z CPU
• Power supply
PNP external ballast transistor for
VDDX, VDDA, and VDDC
LED power indicators
• Reset
• LEDs
• Buzzer
• ADC potentiometer
• Keyboard matrix
• High-voltage input
2
• Sensors
Temperature and humidity
Pressure sensor
Inertial sensor SPI X-Y axis
• SENT
• CAN
• LIN
Default jumper positions of the
VLG-S12ZVC board are shown in the
following section.
freescale.com/S12MagniV
Device overview S12ZVC family
The MC9S12ZVC family is a new member of the S12 MagniV product line integrating a
battery level (12 V) voltage regulator, supply voltage monitoring, high voltage inputs, and
a CAN physical interface. It’s primarily targeting at CAN nodes like sensors, switch panels,
or small actuators. It offers various low-power modes and wake-up management to
address state of the art power consumption requirements.
Some members of the MC9S12ZVC family are also offered for high temperature applications
requiring AEC-Q100 Grade 0 (-40°C to +150°C ambient operating temperature range) The
MC9S12ZVC family is based on the enhanced performance, linear address space S12Z
core and delivers an optimized solution with the integration of several key system components
into a single device, optimizing system architecture and achieving significant space savings.
3
Quick Start Guide
Jumper default configuration
This section describes about the jumper configuration.
S12ZVC architecture
CAN-PHY
MS-CAN
2 x SCI
2 SPI
Pierce Oscillator
Internal RC
Oscillator,
+/- 1.3%
PLL
with Frequency
Modulation option
S12ZCPU 32 MHz Bus
(25 MHZ @ >150°C Tj)
1 L1C
Up to 192 KB
Flash (ECC)
SENT
EEPROM
with ECC up to
2 K bytes)
RAM with ECC
up to 8 K bytes
1ch HSD (+20mA)
open drain
2-HVI
V-SUP
Voltage Supply
Monitor
Freescale Technology
Optional
4 ch LSD (+25mA)
open drain
Temp
Sense
12-bit
Analog-Digital
Converter
8-Bit
DAC
Analog
Comparator
Hi-Res-PWM 4ch 16-bit
Hi-Res-Timer 4ch 16-bit
PWM 4ch 16-bit
TIMER 4ch 16-bit
Real Time Interrupt
BDM/BDC
Vreg for CAN PHY
with ext. ballast (BCTLC)
Figure 1. S12ZVC architecture diagram1
Block Diagram shows the maximum configuration.
Not all pins or all peripherals are available on all devices and packages. Rerouting options are not shown.
4
freescale.com/S12MagniV
PRIMARY SIDE
Figure 2. Jumper configuration diagram
5
Quick Start Guide
Jumper default configuration
The following table lists the jumper default configuration.
Header
Reference position
Header
Reference position
J5
1-2
J16
1, 2
J8
1-2
J17
1, 2
J10
2-3
J18
1, 2
J11
1-2
J19
1, 2
J12
1-2
J22
1-2, 3-4, 5-6, 7-8
J13
2-3
J25
1, 2
J15
1-2
J26
1- 2
J14
1-2
J29
1- 2
J20
1-2, 3-4, 5-6, 7-8
J30
1- 2
J48
1,2
J31
1- 2
J50
1-2, 3-4, 5-6, 7-8, 9-10,
11-12, 13-14, 15-16
J35
1- 2
6
freescale.com/S12MagniV
Software tools installation
This section describes how to get started with the S12ZVC board by installing
CodeWarrior development studio and testing the demo program that comes
programmed with the board.
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.
7
Quick Start Guide
Software tools installation (cont.)
2
Launch the
demo program
The S12ZVC EVB board comes
preprogrammed with a small
demonstration application that
exercises the different modules
of the S12ZVC MCU family,
including the ADC, SCI, I2C,
and GPIO modules.
To see this demonstration:
• Connect a 12 V power source
to the EVB.
• Connect a USB cable to the
USB type B connector.
• Press the keys on the keypad
to hear tones on the buzzer.
8
• Tilt the EVB to observe changes
on the red and green LEDs.
• Rotate the potentiometer to
observe changes on the orange LED.
• Notice that the pressure sensor controls
the yellow LED.
The software for this application is
available on freescale.com.
freescale.com/S12MagniV
Jumper list and description
Jumper
Description
HVI Circuit –Reference Voltage Selector
J10
Pin 1-2
Closed
SW1 is connected to VBAT level. This provides a HIGH voltage
level when switch SW1 is pressed.
Pin 2-3
Closed
SW1 is connected to GND level. This provides a LOW voltage
level whenswitch SW1 is pressed.
HVI Circuit –Reference Voltage Selector
J11
Pin 1-2
Closed
SW2 is connected to VBAT level. This provides a HIGH voltage
level when switch SW2 is pressed.
Pin 2-3
Closed
SW2 is connected to GND level. This provides a LOW voltage
level when switch SW2 is pressed.
HVI Circuit –Reference Voltage Selector
J12
Pin 1-2
Closed
Enable VBAT level to pullup resistor. This provides a HIGH
voltage level when switch SW2 is open.
Pin 2-3
Closed
Enable GND level to pullup resistor. This provides a LOW voltage
level when switch SW2 is open.
Pin 1-2
Closed
Enable VBAT level to pullup resistor. This provides a HIGH
voltage level when switch SW2 is open.
Pin 2-3
Closed
Enable GND level to pullup resistor. This provide a LOW voltage
level when switch SW2 is open.
Buzzer Control
J13
J14
J15
Buzzer Power
Closing this jumper enables the Buzzer control by PP7 port.
HVI Circuit –Reference Voltage Selector
Closing this jumper powers the Buzzer circuit.
9
Quick Start Guide
Jumper list and description (cont.)
Jumper
J16
Description
VDDX External Ballast Transistor
With this jumper closed, the VSUP Voltage is connected to PNP external transistor
collector for the VDDX voltage regulation.
VDDX External Ballast Transistor
J17
J18
This jumper enables the signal control of the PNP external transistor collector for
the VDDX voltage regulation.
VDDC External Ballast Transistor
With this jumper closed, the VSUP Voltage is connected to PNP external transistor
VDDC External Ballast Transistor
J19
J2
This jumper enables the signal control of the PNP external transistor collector for
the VDDC voltage regulation.
Humidity and temperature sensor power
Closing this jumper powers the humidity and temperature sensor.
LEDs
J20
10
Pin 1-2
Closed
Red LED is connected to PP6 port
Pin 3-4
Closed
Green LED is connected to PP5 port
Pin 5-6
Closed
Yellow LED is connected to PP4 port
Pin 7-8
Closed
Orange LED is connected to PP0 port
freescale.com/S12MagniV
Jumper list and description (cont.)
Jumper
Description
Power Supply Voltages – LEDs Indicators
J22
Pin 1-2
Closed
Enable VDDC - LED indicator
Pin 3-4
Closed
Enable VDDA - LED indicator
Pin 5-6
Closed
Enable VDDX - LED indicator
Pin 7-8
Closed
Enable VSUP - LED indicator
VDDX External Ballast Transistor - Output
J25
Closing this jumper connects the external PNP ballast transistor output to
VDD_OUT line.
J26
Closing this jumper connects the external PNP ballast transistor output to
VDD_OUT line.
VDDX External Ballast Transistor - Output
J29
J3
J30
J31
VDDA Power
Closing this header connects VDDA to VDD_OUT line.
Humidity Temperature Sensor - Communication
Closing this jumper connects the SCL-line of the Humidity Temperature Sensor to PT1.
VDDX
Closing this jumper connects VDDX to VDD_OUT line.
VDDC
Closing this jumper connects VDDC to VDDC_OUT line.
11
Quick Start Guide
Jumper list and description (cont.)
Jumper
Description
SENT Transmitter Interface
J32
Closing this header connects the SENT_TX line to SENT transmitter interface circuit.
LIN Mode
J35
With this jumper, the user can configure the local and remote wake-up mode of
MC33662 - LIN transceiver.
LIN and SENT Communication
J38
Pin 1-2
Closed
PS4 is connected to LIN_RX
Pin 3-4
Closed
PS5 is connected to LIN_TX
Pin 5-6
Closed
J4
J41
J42
J44
J47
J48
12
PS7 is connected to SENT_TX
Humidity Temperature Sensor - Communication
Closing this jumper connects the SDA line of the humidity temperature sensor to PT0.
LIN – Master/Slave Mode
With this jumper, the user can configure as master or slave mode.
INERTIAL Sensor Power
Closing this jumper powers the INERTIAL sensor circuit.
CAN
Closing this jumper connects the SPLIT pin to the resistors termination of CAN.
Press Sensor Power
Closing this jumper powers the press sensor circuit.
Potentiometer Reference
Closing this jumper connects the potentiometer to VDDA.
freescale.com/S12MagniV
Jumper list and description (cont.)
Jumper
J5
Description
VBAT
Closing this jumper connects VBAT to all system.
LIN and SENT Communication
J50
Pin 1-2
Closed
Closing this jumper connects PAD8 port to the potentiometer.
Pin 3-4
Closed
Closing this jumper connects PAD9 port to Press Sensor –
Output.
Pin 5-6
Closed
Closing this jumper connects PAD10 port to the keyword matrix.
Pin 7-8
Closed
Closing this jumper connects PAD11 port to the keyword matrix..
Pin 9-10
Closed
Closing this jumper connects PAD12 port to the keyword matrix.
Pin 11-12
Closed
Closing this jumper connects PAD13 port to the keyword matrix.
Pin 13-14
Closed
Closing this jumper connects PAD14 port to the keyword matrix.
Pin 15-16
Closed
Closing this jumper connects PAD15 port to the keyword matrix.
VDDX shunt resistor
J51
Closing this jumper enables a shunt resistor on VDDX that can aid on current
measurements for the VDDX ballast transistor.
J52
Closing this jumper enables a shunt resistor on VDDC that can aid on current
measurements for the VDDC ballast transistor.
VDDC shunt resistor
J8
LEDs Power
Closing this jumper connects VDDX to D4, D6, D13, and D15.
13
Quick Start Guide
Headers and connectors list
The following table lists all of the connectors available in the S12ZVC evaluation board
and their corresponding signals.
Header /
Connector
Reference position
J1
Main power connector (up to 18 V)
J21
VBAT, VSUP, VDDX, VDDC, and VDDA are connected to this header.
HVI Header – External HVI signal
J23
This jumper allows a monitoring/measurement of the High voltage signal. If J13
and J10 are disabled, the user can apply an external signal. This jumper (pin 1-2)
should always be OPEN.
HVI Header – External HVI signal
J24
This jumper allows a monitoring/measurement of the High voltage signal. If J11
and J12 are disabled, the user can apply an external signal. This jumper (pin 1-2)
should always be OPEN.
J27
GPIO Header - Port T
J28
SENT transmitter header with GND
J33
GPIO Header - Port P
J34
BDM Connector
14
freescale.com/S12MagniV
Headers and connectors list (cont.)
Header /
Connector
Reference position
J37
LIN Connector
J39
GPIO Header - Port AD
J40
GPIO Header - Port S
J45
CAN main connector
J46
CAN main connector
J49
OSBDM USB port for programming and debugging the main MCU.
VDDX - PNP Ballast Transistor Terminals
J6
The header could be used for measurements/monitoring of all signals of the external
PNP ballast transistor: Base, Collector, and Emitter. Opening J16, J17, and J27 connects
the user to an additional transistor for validation.
VDDC – PNP Ballast Transistor Terminals
J7
The header could be used for measurements/monitoring of all signals of the external
PNP ballast transistor: Base, Collector, and Emitter. Opening J18, J19, and J25 connects
the user to an additional transistor for validation.
J9
Main power connector (up to 18 V)
15
Quick Start Guide
Peripheral list
The following table lists all the peripherals available in the S12ZVC evaluation board.
Peripheral
Potentiometer
LED – Voltage Indicator
Switch Panel
16
ID
MCU PORT
Description
R76
PAD8
Potentiometer connected to
ADC channel 8
D7
–
VSUP LED indicator
D10
–
VDDX LED indicator
D14
–
VDDA LED indicator
D16
–
VDDC LED indicator
SW4
–
SW5
–
SW6
–
SW7
–
SW8
–
SW9
–
SW10
–
SW11
–
SW12
–
Matrix keyboard switch
freescale.com/S12MagniV
Peripheral list (cont.)
Peripheral
ID
MCU PORT
Description
SW1
PL1
Switch connected to PL1
(with 10 kΩ resistor)
SW2
PL0
Switch connected to PL0
(with 10 kΩ resistor)
LS1
PP7
Buzzer controlled by PP7
D4
PP6
Red LED connected to port PP6
D6
PP5
Green LED connected to port PP5
D13
PP4
Yellow LED connected to port PP4
D15
PP0
Orange LED connected to port PP0
SW3
–
Reset switch
High Voltage Switch
Buzzer
LED – General purpose
Reset
17
References
For further reference, the following documents are available at freescale.com.
• AN4851: Using the High Resolution Timer and PWM in the S12ZVC (AN4851)
• AN4852: Using the SENT Transmitter Module in S12ZVC Devices (AN4852)
Revision history
Revision number
Date
Substantial changes
0
01/2014
Initial release
Information in this document is provided
solely to enable system and software
implementers to use Freescale products.
There are no express or implied copyright
licenses granted hereunder to design or
fabricate any integrated circuits based on
the information in this document. 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 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.
Get Started
Download installation software and documentation under
“Jump Start Your Design” at freescale.com/VLG-MC9S12ZVC.
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
Freescale, the Freescale logo, and CodeWarrior 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. © 2015 Freescale Semiconductor, Inc.
Doc Number: S12ZVCEBQSG REV 0
Agile Number: 926-28038 Rev A