Elmicro S12compact Manuale utente

S12compact
Hardware Version 1.10
User Manual
July 4 2008

Copyright (C)2002-2008 by
ELMICRO Computer GmbH & Co. KG
Hohe Str. 9-13 D-04107 Leipzig, Germany
Tel.: +49-(0)341-9104810
Fax: +49-(0)341-9104818
Email: [email protected]
Web: http://elmicro.com
This manual and the product described herein were designed
carefully by the manufacturer. We have made every effort to avoid
mistakes but we cannot guarantee that it is 100% free of errors.
The manufacturer's entire liability and your exclusive remedy shall
be, at the manufacturer's option, return of the price paid or repair or
replacement of the product. The manufacturer disclaims all other
warranties, either expressed or implied, including but not limited to
implied warranties of merchantability and fitness for a particular purpo-
se, with respect to the product including accompanying written material,
hardware, and firmware.
In no event shall the manufacturer or its supplier be liable for any
damages whatsoever (including, without limitation, damages for loss of
business profits, business interruption, loss of business information, or
other pecuniary loss) arising out of the use of or inability to use the
product, even if the manufacturer has been advised of the possibility of
such damages. The product is not designed, intended or authorized for
use in applications in which the failure of the product could create a
situation where personal injury or death may occur. Should you use the
product for any such unintended or unauthorized application, you shall
indemnify and hold the manufacturer and its suppliers harmless against
all claims, even if such claim alleges that the manufacturer was negli-
gent regarding the design or implementation of the product.
Product features and prices may change without notice.
All trademarks are property of their respective holders.
S12compact

Contents
27Real Time Clock (RTC) ............................... 26Extra Ports PARIN and PAROUT ........................ 25SPI Subsystem ...................................... 23USB Interface ....................................... 23IF-Module Connection ................................. 22RS232 Interface ..................................... 20Buzzer ............................................. 20Indicator-LED ....................................... 18Integrated EEPROM .................................. 16Integrated A/D-Converter .............................. 15Operating Modes, BDM Support ......................... 14Clock Generation and PLL ............................. 13Reset Generation .................................... 12Controller Core, Power Supply .......................... 12Schematic Diagram ..................................
12
6. Circuit Description .................................
11
5. Mechanical Dimensions ............................
9Solder Bridges ....................................... 9Jumpers ............................................
9
4. Jumpers and Solder Bridges .........................
7
3. Parts Location Diagram .............................
6
2. Quick Start .........................................
5Package Contents .................................... 4Optional Components .................................. 3Technical Data .......................................
3
1. Overview ...........................................
User Manual
1

45
9. Memory Map ......................................
41Monitor Commands .................................. 41Usage ............................................. 39Redirected Interrupt Vectors ............................ 38Write Access to Flash and EEPROM ..................... 38Autostart Function .................................... 38Serial Communication .................................
38
8. TwinPEEKs Monitor ................................
37Additional Information on the Web ....................... 37Startup Code ........................................ 37Behaviour after Reset .................................
37
7. Application Hints ...................................
36Bus Interface ........................................ 34CAN Interface ...................................... 32IIC-Bus ............................................ 31Serial Data Flash (SDF) ............................... 30D/A-Converter (DAC) ................................. 29A/D-Converter (ADC) .................................
S12compact
2

1. Overview
The S12compact is a versatile controller module based on the
HCS12 16-bit microcontroller family from Motorola. It combines
compact size (Half-Euro form factor, 80mm x 100mm) with powerful
computing features and a rich set of peripherals. The controller module
can be used for a wide range of applications, e.g. industrial controllers,
measuring devices and data loggers.
The S12compact is equipped with a MC9S12DP512 microcontrol-
ler unit (MCU). It contains a 16-bit HCS12 CPU, 512KB of Flash
memory, 14KB RAM, 4KB EEPROM and a large amount of peripheral
function blocks, such as SCI, SPI, CAN, IIC, Timer, PWM, ADC and
General-Purpuse-I/Os. The MC9S12DP512 has full 16-bit data
paths throughout. An integrated PLL-circuit allows adjusting perfor-
mance vs. current consumption according to the needs of the user
application.
In addition to the on-chip controller functions, the S12compact
module provides a number of useful peripheral options: 16-bit
A/D-Converter and 16-bit D/A-Converter including precision voltage
reference, battery-backed Real Time Clock (RTC), USB-Interface and
2MB (16Mbit) extra memory using Serial Data Flash.
For the HCS12 microcontrollers, a wide range of software tools
(Monitors, C-Compilers, BDM-Debuggers) is available to accelerate the
development process.
Technical Data
wMCU MC9S12DP512 with LQFP112 package (SMD)
wHCS12 16-bit CPU, uses same programming model and
command set as the HC12
w16 MHz crystal clock, up to 25 MHz bus clock using PLL
w512KB Flash
w4KB EEPROM
w14KB RAM
User Manual
3

w2x SCI - asynch. serial Interface (e.g. RS232, LIN)
w3x SPI - synch. serial Interface
w1x IIC - Inter-IC-Bus
w5x msCAN-Module (CAN 2.0A/B-compatible)
w8x 16-Bit Timer (Input Capture/Output Compare)
w8x PWM (Pulse Width Modulator)
w16-channel 10-bit A/D-Converter
wBDM-Interface for Download and Debugging
wSpecial LVI-Circuit (Reset Controller)
wSerial Interface with RS232-Transceiver (for PC connection)
wSecond serial port for IF-Modules (RS232, RS485, LIN...)
wIndicator-LED
wSound Transducer (Buzzer)
wHigh-Speed phys. CAN-Interface
wReset Button
wup to 70 free General-Purpose-I/Os
weight additional digital inputs
weight additional digital outputs
wOperating voltage 5V, current consumption 70 mA typ.
wMech. Dimensions: 80mm x 100mm
Optional Components
wOption RTC: battery-backed Real Time Clock
wOption ADC: 8-channel 16-bit A/D-Converter (4096mV)
wOption DAC: 2-channel 16-bit D/A-Converter (4096mV)
wOption USB: Full-speed USB2.0 Interface (uses second SCI)
wOption SDF: 2MB (16Mbit) Serial Data Flash
S12compact
4

Package Contents
wController Module (with options as ordered)
wTwinPEEKs Monitor program (in the MCU's Flash Memory)
wRS232 Cable (Sub-D9)
wUSB Cable (only for option /USB)
wset of header connectors (two 72-pin male headers)
wUser Manual (this document)
wSchematic Diagrams
wCD-ROM: contains assembler software, data sheets, CPU12
Reference Manual, code examples, C-Compiler (evaluation
version), etc.
User Manual
5

2. Quick Start
As no one likes to read lengthy manuals, we will summarize the
most important things in the following section. If you need any additio-
nal information, please refer to the more detailed sections of this
manual.
Here is how you can start:
wPlease check the board for any damages due to transportation
wConnect the Controller Module via RS232 to a PC. The connec-
tion between S12compact (interface SCI0, connector X2) and
PC is simply made using the flat ribbon cable which is in the
box.
wOn the PC, start a Terminal Program. An easy to use Terminal
Program is OC-Console, which is available at no charge from
our Website!
wSelect a baudrate of 19200 Bd. Disable all hardware or software
protocols.
wConnect a (stabilized!) power supply, e.g. here:
wGround on X4 pin 70
w+5V on X4 pin 72
wCheck voltage and polarity before making the connection!
wOnce powered up, the Monitor program will start, display a
message and await your commands.
We hope you will enjoy working with the S12compact Controller
Module!
S12compact
6

3. Parts Location Diagram
Place Plan - Component Side
User Manual
7

Solder Bridges on the solder side of the PCB
S12compact
8
Indice

















