Axiom Manufacturing TWR-S12G128 User guide

D O C - 0 508- 0 1 0 , R E V A
Demonstration Board for Freescale MC9S12G128

TWR-S12G128

Microcontroller
Web Site: www.axman.com Support: support@axman.com
T WR- 9 S 1 2 G 1 2 8 J U N E 2 , 2 0 1 0 U S E R G U I D E
CONTENTS
CAUTIONARY NOTES .............................................................................................................. 4
TERMINOLOGY ......................................................................................................................... 4
FEATURES ................................................................................................................................ 5
MEMORY MAP .......................................................................................................................... 6
SOFTWARE DEVELOPMENT ................................................................................................... 7
DEVELOPMENT SUPPORT ...................................................................................................... 7
OSBDM BOOTLOADER........................................................................................................ 8
BDM_PORT HEADER ........................................................................................................... 8
POWER ...................................................................................................................................... 8
POWER SELECT .................................................................................................................. 9
RESET SWITCH ........................................................................................................................ 9
LOW VOLTAGE RESET ............................................................................................................ 9
TIMING ..................................................................................................................................... 10
COMMUNICATIONS ................................................................................................................ 10
RS-232 ................................................................................................................................ 10
COM CONNECTCOR ..................................................................................................... 11
COM_EN ......................................................................................................................... 11
LIN PORT ............................................................................................................................ 11
LIN ENABLE .................................................................................................................... 12
LIN COM INPUT .............................................................................................................. 12
LIN_PWR OPTION .......................................................................................................... 12
MSTR OPTION................................................................................................................ 12
LIN-J1 CONNECTOR ...................................................................................................... 13
CAN PORT .......................................................................................................................... 13
CAN TERMINATION ENABLE ................................ ........................................................ 14
STANDBY MODE ............................................................................................................ 14
USER PERIPHERALS ............................................................................................................. 14
POTENTIOMETER .............................................................................................................. 14
USER LED’S ....................................................................................................................... 15
PUSHBUTTON SWITCHES ................................................................................................ 15
EDGE CONNECTOR PINOUT ................................................................................................ . 16
2
T WR- 9 S 1 2 G 1 2 8 J U N E 2 , 2 0 1 0
Date
Rev
Comments
June 2, 2010
A
Initial Release
U S E R G U I D E
FIGURES
Figure 1: Memory Map................................................................................................................ 6
Figure 2: BDM_PORT Header .................................................................................................... 8
Figure 3: PWR_SEL Option Header ........................................................................................... 9
Figure 4: Serial Connections .................................................................................................... 10
Figure 5: COM1 Connector ....................................................................................................... 11
Figure 6: COM_EN Option Header ........................................................................................... 11
Figure 7: LIN Block Diagram ..................................................................................................... 11
Figure 8: JP6 Option Header ................................................................................................... 13
Figure 9: LIN Connector ........................................................................................................... 13
Figure 10: CAN_PORT ............................................................................................................. 13
Figure 11: CAN Termination Enable ......................................................................................... 14
Figure 12: JP1 Option Header .................................................................................................. 15
Figure 13: Primary Edge Connector ......................................................................................... 16
Figure 14: Secondary Edge Connector .................................................................................... 18
REVISION
3
T WR- 9 S 1 2 G 1 2 8 J U N E 2 , 2 0 1 0 U S E R G U I D E

CAUTIONARY NOTES

1) Electrostatic Discharge (ESD) prevention measures should be used when handling this product. ESD damage is not a warranty repair item.
2) Axiom Manufacturing does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under patent rights or the rights of others.
3) EMC Information on the TWR-S12G128 board: a) This product as shipped from the factory with associated power supplies and cables,
has been verified to meet with requirements of CE and the FCC as a CLASS A product.
b) This product is designed and intended for use as a development platform for hardware
or software in an educational or professional laboratory.
c) In a domestic environment, this product may cause radio interference in which case the
user may be required to take adequate prevention measures.
d) Attaching additional wiring to this product or modifying the products operation from the
factory default as shipped may effect its performance and cause interference with nearby electronic equipment. If such interference is detected, suitable mitigating measures should be taken.

TERMINOLOGY

This development module utilizes option select jumpers to configure default board operation. Terminology for application of the option jumpers is as follows:
Jumper – a plastic shunt that connects 2 terminals electrically Jumper on, in, or installed = jumper is a plastic shunt that fits across 2 pins and the shunt is
installed so that the 2 pins are connected with the shunt. Jumper off, out, or idle = jumper or shunt is installed so that only 1 pin holds the shunt, no 2
pins are connected, or jumper is removed. It is recommended that the jumpers be placed idle by installing on 1 pin so they will not be lost.
Cut-Trace – a circuit trace connection between component pads. The circuit trace may be cut using a knife to break the default connection. To reconnect the circuit, simply install a suitably sized 0-ohm resistor or attach a wire across the pads.
Signal names followed by an asterisk (*) denote active-low signals.
4
T WR- 9 S 1 2 G 1 2 8 J U N E 2 , 2 0 1 0 U S E R G U I D E

FEATURES

The TWR-S12G128 is a demonstration board for the MC9S12G128 microcontroller; an automotive, 16-bit microcontroller focused on low-cost, high-performance in a low pin-count device. The MC9S12G128 provides16-bit wide accesses, without wait states, for all peripherals and memories. The MC9S12G128 targets automotive applications requiring CAN or LIN/J2602 communications. Examples include body controllers, occupant detection, etc…
The board is designed to interface to the Freescale Tower System, a modular development platform which aids in rapid prototyping and tool-reuse. An integrated Open-Source BDM, software tools, and examples provided with the development board make application development and debug quick and easy. All MCU signals are available on one or both edge connectors.
MC9S12G128, 100 LQFP
128K Bytes Flash  4096 Bytes EEPROM  8192 Bytes RAM  25MHz Bus Frequency  Internal Oscillator  SCI, SPI, MSCAN
Integrated Open Source BDM (OSBDM)  BDM_PORT header for external BDM cable support  1 ea. High-Speed CAN Physical Layer Transceiver  1 ea, Enhanced LIN Physical Layer Transceiver  RS-232 Serial Data Physical Layer Transceiver  On-board +5V regulator  Power input from OSBDM, Tower System, or input
vias at E1/E2
Power Input Selection Jumpers
Power input from USB-BDM  Power input from on-board regulator  Power input from Tower System edge connector
User Peripherals
4 User Push Button Switches  4 User LED Indicators  5K ohm POT w /LP Filter
User Option Jumpers to disconnect Peripherals  Connectors
BDM_PORT Connector for External BDM Cable  USB mini-AB Connector  2x5, 0.1” ctr, RS-232 Header  1x4, 4.2mm, Molex CAN Cable Connector  2x2, 4.2mm, Molex LIN Cable Connector
Specifications:
Board Size 3.55” x 3.20” overall Power Input: +5V from USB connector or from Tower System NOTE: LIN functionality requires +12V on LIN +V input or +12V at E1/E2 input.
5
T WR- 9 S 1 2 G 1 2 8 J U N E 2 , 2 0 1 0
Address
Module
Size
(Bytes)
0x0000–0x0009
PIM (port integration module)
10
0x000A–0x000B
MMC (memory map control)
2
0x000C–0x000D
PIM (port integration module)
2
0x000E–0x000F
Reserved
2
0x0010–0x0017
MMC (memory map control)
8
0x0018–0x0019
Reserved
2
0x001A–0x001B
Device ID register
2
0x001C–0x001F
PIM (port integration module)
4
0x0020–0x002F
DBG (debug module)
16
0x0030–0x0033
Reserved
4
0x0034–0x003F
CPMU (clock and power management)
12
0x0040–0x006F
TIM0 (timer module)
48
0x0070–0x009F
ATD (analog-to-digital converter, 10 bit, 8-channel)
48
0x00A0–0x00C7
PWM (pulse-width modulator)
40
0x00C8–0x00CF
SCI0 (serial communications interface)
8
0x00D0–0x00D7
8
0x00D8–0x00DF
8
0x00E0–0x00E7
Reserved
8
0x00E8–0x00EF
SCI2 (serial communications interface)
8
0x00F0–0x00F7F
SPI1 (serial peripheral interface)
8
0x00F8–0x00FF
SPI1 (serial peripheral interface)
8
0x0100–0x0113
FTMRC control registers
20
0x0114–0x011F
Reserved
12
0x0120
INT (interrupt module)
1
0x0121–0x013F
Reserved
31
0x0140–0x017F
CAN
64
0x0180–0x023F
Reserved
192
0x0240–0x027F
PIM (port integration module)
64
0x0280–0x02EF
Reserved
112
0x02F0–0x02FF
CPMU (clock and power management)
16
0x0300–0x03BF
Reserved
192
0x03C0–0x03C7
DAC0 (digital to analog converter)
8
0x03C8–0x03CF
DAC1 (digital to analog converter)
8
0x03D0–0x03FF
Reserved
48
U S E R G U I D E

MEMORY MAP

Figure 1 below shows the target device memory map. Refer to the MC9S12G128 Reference Manual (RM) for further information.
Figure 1: Memory Map
6
Loading...
+ 13 hidden pages