background image

C M L 1 2 S D P 2 5 6

0 1 / 3 0 / 0 4

3

GETTING STARTED

The Axiom CML12S-DP256 single board computer is a fully assembled, fully functional
development system for the Motorola MC9S12DP256 microcontroller. Provided with wall plug
power supply and serial cable.  Support software for this development board is provided for
Windows 95/98/NT/2000/XP operating systems.

This development board applies option selection jumpers.  Terminology for application of the
option jumpers is as follows:

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
idled by installing on 1 pin so they will not be lost.

Development board users should also be familiar with the hardware and software operation of
the target HCS12 device, refer to the Motorola User Guide for the device and the CPU12
Reference Manual for details.  The development board purpose is to assist the user in quickly
developing an application with a known working environment or to provide an evaluation
platform for the target HCS12.  Users should be familiar with memory mapping, memory types,
and embedded software design for the fastest successful application development.

Application development maybe performed by applying the embedded MON12 (

default

) or

NOICE firmware monitors, or by applying a BDM cable with supporting host software. The
MON12 monitor provides an effective debug method for assembly level software, but has
limitations in C code developments.  For C/C++ code development it is recommended that
source code or symbolic debug capability be provided in the debugging environment.  The
NOICE monitor or BDM interface with supporting software tools should be applied for C/C++
code development so the host PC can provide the symbolic support needed.  User should
verify the NOICE or BDM development environment supports the C compiler to be applied, not
all development environments support all compilers.

The MON12 and NOICE monitors are provided in the development board HCS12 internal flash
memory and apply some HCS12 resources for operation.  See the respective chapter for each
monitor for details on operation and resources applied. User should note both monitors apply
operation of the HCS12 expanded wide mode data and address bus on HCS12 I/O ports A, B,
E, and K for access to the external Ram.  The external ram provides a development memory
where code to be debugged can be loaded or modified quickly and software breakpoints
applied.  After the application is tested, the code can be relocated to the internal flash memory
space of the HCS12 and programmed into the flash memory for dedicated operation.

User applications developed by applying MON12 or NOICE monitors can be modified and
relocated for operation as a stand-alone application.  By applying the MON12 Autostart
feature, the user application will operate from Reset or Power on conditions to provide a
dedicated operation of the application. See the Autostart section in this manual for more
information.

Follow the steps in this section to get started quickly and verify everything is working correctly.

Summary of Contents for CML-9S12DP256

Page 1: ... Axiom Manufacturing 2813 Industrial Lane Garland TX 75041 Email Sales axman com Web http www axman com CML12S DP256 Development Board for Motorola MC9S12DP256 ...

Page 2: ...and NOICE Memory Map 11 NOICE OPERATION 11 BDM OPERATION 12 AUTOSTART 12 OPTIONS AND JUMPERS 13 MEM_EN 13 ECS 13 MODC 13 AUTO OFF spare 14 MODE 14 OSC_SEL 14 ROM_OFF 14 JP1 and JP2 14 CUT AWAY OPTIONS 1 6 15 PORTS AND CONNECTORS 15 TB1 and J1 Power 15 MCU_PORT 16 ANALOG PORT 16 BUS_PORT 17 KEYPAD PORT H 17 P_COM1 and P_COM2 17 CAN PORT 18 P1 P4 HCS12 Header Ring 19 LCD_PORT 19 BDM PORT 20 TEST POI...

Page 3: ...tware The MON12 monitor provides an effective debug method for assembly level software but has limitations in C code developments For C C code development it is recommended that source code or symbolic debug capability be provided in the debugging environment The NOICE monitor or BDM interface with supporting software tools should be applied for C C code development so the host PC can provide the ...

Page 4: ... Set the CML12Sxxx board Option jumpers to default positions MEM EN IN ECS IN JP1 IN NOAUTO SPARE IN MODC Out JP2 do not care see COM Ports 2 Connect one end of the supplied 9 pin serial cable to an available serial COM port on your PC Connect the other end of the cable to the P COM port on the CML12Sxxx board 3 Apply power to the board by plugging in the power adapter that came with the system 4 ...

Page 5: ...ration running under a debugger your program can be written to Internal Flash Memory using the included programming utilities The Mon12 firmware in the MCU flash provides the interrupt vectors in Ram memory and an Autostart feature to launch your application Your program may then run automatically whenever the board is powered on or RESET is applied TUTORIAL This section was written to help you ge...

Page 6: ...y have the capability to erase and program the flash memory If this is the case you may develop code in the external ram memory or internal flash without applying the monitor resources The MON12 S record is provided on the support CD to program into the flash if desired The BDM will allow locating programs in memory and applying resources reserved for the monitors A look at the example programs on...

Page 7: ...After creating a Motorola S Record file you can upload it to the development board for a test run The provided example HELLO ASM was created to run from external RAM so you can use the MON12 Monitor to test it without programming it into Flash If you haven t done so already verify that the CML12Sxxx board is connected and operating properly by following the steps under GETTING STARTED until you se...

Page 8: ...opy of HELLO ASM then use a text editor to modify it 2 Remove the comment character before one of the following lines to initialize the stack pointer which is necessary when running outside of a debugger LDS 3F80 initialize stack location 3 Re Assemble HELLO ASM as described in the Assembling Source Code section 4 Select Program from the AxIDE menu and follow the message prompts When prompted for ...

Page 9: ...application provides for redirection of interrupt vectors through the ram based interrupt table initialization of SCI0 serial port initialization of HCS12 flash and EEprom programming clock rates initialization of 8 MHz E clock from 4Mhz reference crystal and detection of auto start enabled operation The HCS12 memory map is fixed under monitor operation The monitor provides for interrupt vectors i...

Page 10: ...nt instructions MON12 Interrupt Support All interrupt services under MON12 are provided through the ram vector table see Table 2 Each location in the table is initialized to a value of 0000 to cause the trap of an unscheduled interrupt Any nonzero value will allow the interrupt to proceed to the user s service routine that should be located at the provided address value Interrupt service delay is ...

Page 11: ...software provided by www NOICEdebugger com NOICE provides a development environment that is supported by the NOICE host PC software This development environment has the capability to provide symbolic debug for C source codes and compilers for a low cost A fully functional software version is available on the support CD that will operate in demonstration mode The user should register the software a...

Page 12: ...an apply the actual HCS12 interrupt vector table located at 0xFF8C 0xFFFF AUTOSTART The MON12 Monitor allows an Autostart operation to launch user applications programmed into the HCS12 internal flash fixed page 3E addresses 0x4000 0x7FFF from Reset The Autostart mask and vector are stored in the nonvolatile internal EEprom at addresses FEC FEF The monitor provides special commands AUTO and NOAUTO...

Page 13: ...cess to the external ram can be performed Use CML12S asm file for an example and locate the PEAR MODE Register write in internal ram space 0x1000 0x3F80 Program pages 20 2D should be applied Code must be loaded and tested without powering down the development board use Reset Switch OPTIONS and JUMPERS MEM_EN The MEM_EN option jumper is installed by default and enables the external ram memory on th...

Page 14: ... external memory in this mode OSC_SEL The OSC_SEL option jumper is not installed on the CML12S DP256 board The default configuration is for the provided 4MHz reference crystal to provide the HCS12 oscillator If the user requires an external clock to be applied two header pins and shunt jumper can be applied to select the alternate clock source User should refer to the HCS12 User Guide and CML12S b...

Page 15: ...le connection to ground This connection enables the CAN Port transceiver output to the CAN bus at all times If the user wants to apply output enable or slew rate control to the transceiver this option should be cut and 1206 size resistor applied for slew rate or a HCS12 I O port applied for output enable control See the PCA82C250 data sheet for application information PORTS AND CONNECTORS TB1 and ...

Page 16: ...ata on the expanded HCS12 PK0 5 XA14 XA19 provide high order paged address lines on the expanded HCS12 PM0 1 CAN RXD0 TXD0 CAN channel 0 to CAN Port transceiver PS0 1 COM Port RXD0 TXD0 PS2 3 JP3 Port RXD1 TXD2 PS4 7 SPI Port provides LCD_PORT serial interface ANALOG PORT PAD0 AN0 1 2 PAD8 AN8 PAD1 AN1 3 4 PAD9 AN9 PAD2 AN2 5 6 PAD10 AN10 PAD3 AN3 7 8 PAD11 AN11 PAD4 AN4 9 10 PAD12 AN12 PAD5 AN5 1...

Page 17: ...2 active low RESET signal KEYPAD PORT H The KEYPAD PORT H connector provides interface for the HCS12 port H or applying a keypad such as the Axiom Mfg HC KP When applied as a KEYPAD connector the interface is for a passive 4 x 4 matrix 16 key keypad device 1 PH0 2 PH1 3 PH2 4 PH3 5 PH4 6 PH5 7 PH6 8 PH7 This interface is implemented as a software key scan Pins PH0 3 are used as column drivers whic...

Page 18: ... a CAN Transceiver Philips PCA82C250 capable of up to 1M Baud data rate The user may isolate the HCS12 CAN channel 0 from the transceiver by CUT AWAY option 5 CAN Port Connections 1 GND 2 CAN H 3 CAN L 4 5V The CAN Port connector provides an interface to the MSCAN12 channel 0 in the HCS12 microcontroller CAN BUS TRANSMIT ENABLE The CAN port transceiver transmit driver is enabled for maximum drive ...

Page 19: ...nected to the HCS12 SPI 0 port and applies a serial shift register to convert the data to parallel interface for LCD input This is required due to the fast timing characteristics of the HCS12 data bus and the slow timing of the standard LCD Modules Example LCD Port assembly language driver software is provided on the support CD to demonstrate typical LCD module operation using this technique The i...

Page 20: ...eader compatible with the Motorola Background Debug Mode BDM Pod This allows the connection of a background debugger for software development programming and debugging in real time without using HC12 I O resources BGND 1 2 GND 3 4 RESET 5 6 5V See the HC12 Technical Reference Manual for complete documentation of the BDM A Background Debug Module is available from the manufacturer TEST POINTS The f...

Page 21: ... performing a BULK command or disable the Autostart by following the procedure in the Autostart chapter 4 Verify the power source You should measure a minimum of 9 volts between the GND and VIN connections on the TB1 power connector with the standard power supply provided 5 If no voltage is found verify the wall plug connections to 115VAC outlet and the power connector 6 Verify the logic power sou...

Page 22: ...e the Memory Map if you re not sure The MEM_EN and ECS options change the memory map If debugging under Mon12 make sure you re not over writing internal RAM used by it If you re running in a multi tasking environment such as Windows close all programs in the background to be certain no serial conflict occurs Code Execution Under Mon12 breakpoints may not be acknowledged if you use the CALL command...

Page 23: ... and Cursor Blink off 08 40us Display on Cursor and Cursor Blink off 0C 40us Display and Cursor on Cursor Blink off 0E 40us Display Cursor and Cursor Blink on 0F 40us Cursor Display Shift nondestructive move Cursor shift left 10 40us Cursor shift right 14 40us Display shift left 18 40us Display shift right 1C 40us Display Function default 2x40 size 3C 40us Character Generator Ram Address set 40 7F...

Page 24: ...4 JMP CHKABRT check for abort from terminal ff37 JMP UPCASE convert to upper case ff3a JMP WCHEK check for white space ff3d JMP DCHEK check for delimeter ff40 JMP ONSCI0 initialize i o device ff43 JMP INPUT low level input routine ff46 JMP OUTPUT low level output routine ff49 JMP OUTLHLF display top 4 bits as hex digit ff4c JMP OUTRHLF display bottom 4 bits as hex digit ff4f JMP OUTA output ascii ...

Page 25: ... 26 C0TX 3FB2 FFB2 28 C0RX 3FB4 FFB4 2A C0ERR 3FB6 FFB6 2C C0WU 3FB8 FFB8 2E FEPRG 3FBA FFBA 30 EEPRG 3FBC FFBC 32 SPI2 3FBE FFBE 34 SPI1 3FC0 FFC0 36 I2C 3FC2 FFC2 38 BDLC 3FC4 FFC4 3A CRGC 3FC6 FFC6 3C CRGL 3FC8 FFC8 3E PACBO 3FCA FFCA 40 MCNT 3FCC FFCC 42 PTHI 3FCE FFCE 44 PTJI 3FD0 FFD0 46 ADC1 3FD2 FFD2 48 ADC0 3FD4 FFD4 4A SCI1 3FD6 FFD6 4C SCI0 3FD8 FFD8 4E SPI0 3FDA FFDA 50 PACAI 3FDC FFDC...

Reviews: