Summary of the content on the page No. 1
xiom
anufacturing
2813 Industrial Ln. • Garland, TX 75041 • (972) 926-9303 FAX (972) 926-6063
email: Sales@axman.com • web: http://www.axman.com
2000
Development Board for Motorola MC9S12DP256
CML12S-DP256
Summary of the content on the page No. 2
CML12SDP256 07/17/02 CONTENTS GETTING STARTED ................................ ................................ ................................ ....... 3 ................................ ................................ ........................ 4 ................................ ................................ ................................ ..... 4 ................................ ................................ ................................ 4 Software Development .......................
Summary of the content on the page No. 3
CML12SDP256 07/17/02 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 plast
Summary of the content on the page No. 4
CML12SDP256 07/17/02 Follow the steps in this section to get started quickly and verify everything is working correctly. Installing the Software 1. Insert the Axiom 68HC12 support CD in your PC. If the setup program does not start, run the file called "SETUP.EXE" on the disk. 2. Follow the instructions on screen to install the support software onto your PC. You should at minimum install the AxIDE for Windows software. 3. The programming utility “AxIDE” requires you to specify your board. You s
Summary of the content on the page No. 5
CML12SDP256 07/17/02 At minimum, you should install the AxIDE program. This provides the flash programming utility and communication with the board via the COM port and the supplied serial cable. This program includes a simple terminal for interfacing with other programs running on the CML12Sxxx and information from your own programs that send output to the serial port. Also on the disk are free assemblers AS12 and MCU-EZ, the open source GNU C/C++ compiler tools for HC11/12, example source co
Summary of the content on the page No. 6
CML12SDP256 07/17/02 It is important to understand the development board's use of Memory and Addressing when writing source code so you can locate your code at valid addresses. For example, when in debug mode, you should put your program CODE in External RAM. In assembly language, you locate the code with ORG statements in your source code. Any lines following an ORG statement will begin at that ORG location, which is the first number following the word ORG, for example: ORG $4000 . You mus
Summary of the content on the page No. 7
CML12SDP256 07/17/02 DO NOT use long path or file names (> 8 characters). The free assembler is an older DOS based tool that does not recognize them. If there are no fatal errors in your source code, 2 output files will be created: HELLO.S19 a Motorola S-Record file that can be loaded or programmed into HELLO.LST a common listing file which provides physical address information with resulting opcode and operand information. Warnings and error messages are provided with a summary at the end of t
Summary of the content on the page No. 8
CML12SDP256 07/17/02 You can modify the hello program to display other strings or do anything you want. The procedures for assembling your code, uploading it to the board and executing it remain the same. MON12 has many features such as breakpoints, memory dump and modify and simple program trace (no redirect of the PC is followed). Type HELP at the MON12 prompt for a listing of commands or consult the Mon12 documentation on the disk for more information. For a more powerful debugger with man
Summary of the content on the page No. 9
CML12SDP256 07/17/02 Mon12 is an embedded monitor / debug utility that allows loading a compiled software program (S record) into Ram memory for testing and debug. The monitor may control the execution of the software by applying the SWI software interrupt service. Other features allow memory and register examination or modification. Communication with the monitor is provided on the HCS12 SCI0 serial port or COM port on the development board. Default settings are 9600 baud with 8/n/1 bit sett
Summary of the content on the page No. 10
CML12SDP256 07/17/02 A) Determine if Auto Start in enabled and proceed to vector if not a value of $FFFF. B) Set Stack, Initialize memory map and SCI0 port and send prompt. C) Receive first character from Console port and execute monitor if ASCII text / command, else start utility mode for programming services. Mon12 Monitor Commands AUTO [
] Enable Auto start, address is the vector NOAUTO Disable Auto start BF Fill memory with data [] BR [] Set
Summary of the content on the page No. 11
CML12SDP256 07/17/02 This vector initialization should remain after debug when auto start will be applied for launching the user's application. Note that the user interrupt service routines must be located in the $4000 - $7FFF address range for correct operation. See Autostart for more details. $C000 - MON12, NOICE, and Utility firmware located in internal $FFFF flash, Page $3F. $8000 - User Paged Program Memory space, pages $20 - $2E. $BFFF Note: Pages $30 - $3F reside in the internal flash.
Summary of the content on the page No. 12
CML12SDP256 07/17/02 The CML12S-DP256 provides the NOICE debug monitor kernel as a subset of the MON12 monitor in reserved flash memory. User may apply the NOICE development system by setting the MON12 Autostart for the $F800 vector, reset the board and launch the NOICE host software on the PC. The NOICE monitor kernel applies the same resources, memory map, and ram interrupt table as the MON12 monitor. NOICE operation notes: Baud Rate = 19.2K baud 8/n/1 E clock frequency The CML12S-DP256 bo
Summary of the content on the page No. 13
CML12SDP256 07/17/02 User application must perform all initialization including Stack setting, hardware startup, and external memory bus enable if needed, when the Autostart is applied. MON12 Ram Interrupt Vector table must also be applied in the same manner as under MON12 supervision or application interrupts will be trapped instead of serviced. See the CML12S.asm file for sample start-up initialization code. Developing an application under MON12 or NOICE for Autostart should follow these ste
Summary of the content on the page No. 14
CML12SDP256 07/17/02 The MODC option jumper provides Special Mode enable during Reset. This option must be open or idle when operating with the MON12 or NOICE monitors. If a BDM cable is applied to BDM port, the MODC option must be installed to enable Special Mode. Failure to install the MODC jumper during BDM application may cause communication problems with the host. The AUTO OFF (Spare on REV C. board) option jumper installed defeats the Autostart operation so the MON12 monitor will provide
Summary of the content on the page No. 15
CML12SDP256 07/17/02 JP1 and JP2 JP1 and 2 option jumpers provide an easy method of connecting or isolating the HCS12 SCI0 and SCI1 serial channel RXD pins respectfully from the provided on-board RS232 transceiver. To apply the RXD pins on the SCI channels for other user applications requires that the transceiver driver be removed from the HCS12 pin. User may then apply signals to the respective pins at the MCU PORT connector without driver conflict. Please note that the on- board monitor(s) r
Summary of the content on the page No. 16
CML12SDP256 07/17/02 The VDD supply is for reference or external 2.5V input only and should not be loaded by external circuitry or damage to the HCS12 device may occur. MCU_PORT +5V 60 59 The MCU_PORT provides access to the peripheral PT7 58 57 PT6 features and I/O lines of the HCS12. PT5 56 55 PT4 PT3 54 53 PT2 ** Note signals with alternate connections on the PT1 PT0 52 51 development board: ** PK0 50 49 PK1 ** ** PK2 PK3 ** 48 47 PB0 - 7 [D0 - 7] provide address / data on the ** PK4 46 45 PK5
Summary of the content on the page No. 17
CML12SDP256 07/17/02 D11/PA3 1 2 The BUS_PORT supports off-board memory devices PA2/D10 3 4 D12/PA4 while the HCS12 is in expanded mode. PA1/D9 5 6 D13/PA5 PA0/D8 7 8 D14/PA6 High Byte Data Bus in Wide A0 9 10 D15/PA7 Expanded Mode. Port A in Single Chip Mode. A1 11 12 A2 A10 13 14 A3 Latched Memory Addresses 0 to 15. OE* A4 15 16 Memory Output Enable signal, Active Low. Valid A11 17 18 A5 with ECLK and R/W high. A9 A6 19 20 A8 21 22 A7 Memory Write Enable signal, Active Low. Valid A12 23 24
Summary of the content on the page No. 18
CML12SDP256 07/17/02 JP1 will isolate the SCI0 RXD pin from the transceiver. The 1,4,6,7,8, and 9 pins provide RS232 flow control and status. These are connected on the on the bottom of the development board to provide NULL status to the host. User may isolate pins and provide flow control or status connection to the host by applying HCS12 I/O signals and P_COM2 P_COM2 P_COM2 is a 3 pin header that provides the HCS12 SCI1 serial port translated to RS232 signal levels. A solder cup DB9 style
Summary of the content on the page No. 19
CML12SDP256 07/17/02 The CAN port provides RC11,12, and 13 1206 SMT size termination resistors on the bottom of the CML12Sxxx board that are not installed at the factory. The termination resistors provide optional bias and termination impedance for the CAN bus connected to the CAN Port. Type of wire media, data rate, length of wire, and number of CAN bus nodes can all effect the requirement or value of the termination for the CAN bus. User should refer to particular application for terminatio
Summary of the content on the page No. 20
CML12SDP256 07/17/02 1) The LCD write requires 3 SPI transfers. Transfer 1 provides data 0 - 3 and RS (register select) value. Transfer 2 provides the same data with the EN (D7) bit set. Transfer 3 provides same data with the EN bit clear. 2) Resistor R25 can be removed to apply and external VEE potential. 3) CUT-AWAY 1 - 3 provide a means to isolate the LCD Port from the HCS12 SPI channel. BDM PORT The BDM port is a 6 pin header compatible with the Motorola Background Debug Mode (BDM) Pod.