Axiom MCU 68HC912 User Manual

For motorola 68hc912 mcu’s 68hc912d60/ dg128/ dt128 and mc9s12dp256

Advertisement

Quick Links

CMD912x
Development Board for Motorola 68HC912 MCU's
68HC912D60/ DG128/ DT128 and MC9S12DP256
xiom
anufacturing
2000
2813 Industrial Ln.
Garland, TX 75041
(972) 926-9303 FAX (972) 926-6063
email: Sales@axman.com
web: http://www.axman.com

Advertisement

Table of Contents
loading

Summary of Contents for Axiom MCU 68HC912

  • Page 1 CMD912x Development Board for Motorola 68HC912 MCU’s 68HC912D60/ DG128/ DT128 and MC9S12DP256 xiom anufacturing 2000 2813 Industrial Ln. Garland, TX 75041 (972) 926-9303 FAX (972) 926-6063 email: Sales@axman.com web: http://www.axman.com...
  • Page 2: Table Of Contents

    GETTING STARTED ...3 Installing the Software ... 3 Board Startup ... 3 Support Software... 4 Software Development ... 4 TUTORIAL...5 Creating source code... 5 Assembling source code... 6 Running your application ... 7 Programming Flash EEPROM ... 8 BDM OPERATION...9 MEMORY MAPS...10 PM12DP256 Memory Map...
  • Page 3: Getting Started

    GETTING STARTED The Axiom CMD912X single board computer is a fully assembled, fully functional development system for the Motorola 68HC912D60/ DG128/ DT128 and MC9S12DP256 microcontrollers, complete with wall plug power supply and serial cable. Support software for this development board is provided for Windows 95/98 and NT operating systems.
  • Page 4: Support Software

    AS12 assembler integrated into the AxIDE program. This is a simple assembler with limited capability. For a more powerful assembly tool, install the Motorola MCUez program from the CD. This will allow you to used PAGED memory in your application.
  • Page 5: Tutorial

    NOTEPAD programs that come with your computer. Once your source code is written and saved to a file, you can assemble or compile it to a Motorola S-Record (hex) format. This type of output file usually has a .MOT, .HEX or .S19 file extension and is in a format that can be read by the programming utilities and programmed into the CMD912X board.
  • Page 6: Assembling Source Code

    If you prefer a windows integrated programming environment, try the Motorola MCU-EZ tools. Refer to the MCU-EZ documentation on the disk for more information.
  • Page 7: Running Your Application

    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 RAM so you can use the Mon12 Monitor to test it without programming it into Flash.
  • Page 8: Programming Flash Eeprom

    After debugging, you can program your application into Flash Memory so it executes automatically when you apply power to the board as follows: 1. Make a backup copy of HELLO.ASM then use a text editor to modify it. 2. Change the ORG location for the program start to the internal flash if needed. 3.
  • Page 9: Bdm Operation

    The CMD912X board will emulate supported HC12 device internal flash memory in external ram. This feature allows BDM (Background Debug Modules) such as the AX-BDM12 to load and control the execution of code being developed without the necessity of the internal flash memory being programmed many times during the development process.
  • Page 10: Memory Maps

    MEMORY MAPS Following is the memory map for the CMD912X development board and the various Microcontroller PM Modules that it supports. Consult your MCU technical reference manual on the CD for internal memory map details for the processor. PM12DP256 Memory Map FFFF Expanded Wide Mode CONFIG...
  • Page 11: Pm12Dg128 / Pm12Dt128 Memory Map

    FFFF Expanded Wide Mode CONFIG MODE External EPROM U5/6 (Mon12) C000 BFFF External RAM 8000 U3/4 4000 3FFF 2000 1FFF 1000 Unused = 400-7BF LCD / CS7 = 7F0-7FF CS6 = 7E0-7EF The Peripheral Area (A00-BFF) is set to Narrow (8-bit) data width by the debug utilities. If using this memory, you must also do this in your software when booting from flash as follows: MOVW...
  • Page 12: Pm12D60 Memory Map

    FFFF Expanded Wide Mode CONFIG MODE External EPROM U5/6 (Mon12) C000 BFFF External RAM U3/4 1000 Unused = A00-B7F LCD / CS7 = BF0-BFF CS6 = BE0-BEF The Internal Register base address is relocated from $000 to $800 on startup by the debug utilities (Mon12 and NoICE).
  • Page 13: Option Switches

    CONFIG SWITCH The CMD912X board is shipped from the manufacturer with the following default CONFIG SWITCH settings: The 5 position CONFIG SWITCH provides an easy method of configuring the CMD912X board memory operation. Following are the configuration switch descriptions: CONFIG SWITCH EXT –...
  • Page 14: Mode Switch

    MODE SWITCH The 3 to 5 position MODE SWITCH on the PM12xxx Module provides an easy method of configuring the HC12 operating Mode and Options from RESET. NOTE: Expanded Narrow Mode is not available on this board, Expanded Wide operation is required due to the memory application and that any expanded bus operation requires both HC12 I/O ports A and B in any case.
  • Page 15: Ports And Connectors

    PRU PORT The Port Replacement Unit (PRU) provides simulation of the HC12 bus and control ports A, B, E, and K so expanded memory can be used for single-chip application development. PRU operation is enabled with external memory by CONFIG Switch 1 ON. The PRU also provides control of the external memories and peripherals on the CMD912x board.
  • Page 16: Pru Port Connector

    XPB6 XPB7 XPB4 XPB5 XPB2 XPB3 XPB0 9 10 XPB1 XPA6 11 12 XPA7 XPA4 13 14 XPA5 XPA2 15 16 XPA3 XPA0 17 18 XPA1 XPE6 19 20 XPE7 XPE4 21 22 XPE5 XPE2 23 24 XPE3 PE0 25 26 PE1 XPK4 27 28 XPK7 XPK2 29 30 XPK5 XPK0 31 32 XPK3...
  • Page 17: Mcu_Port 2

    PB0/D0 PK7/ECS PB2/D2 9 10 PB1/D1 PB4/D4 11 12 PB3/D3 PB6/D6 13 14 PB5/D5 PE0/XIRQ* 15 16 PB7/D7 PE6/MODB 17 18 PE3/LSTRB* A14 19 20 PE5/MODA A15 21 22 PE7 A16 23 24 A18 A17 25 26 A19 BUS_PORT 9 10 D15 A1 11 12 A2 A10 13 14 A3 / OE 15 16 A4...
  • Page 18: Analog Port

    PAD0 PAD8 PAD1 PAD9 PAD2 PAD10 PAD3 PAD11 PAD4 9 10 PAD12 PAD5 11 12 PAD13 PAD6 13 14 PAD14 PAD7 15 16 PAD15 VRL0 17 18 VRH0 VRL1 19 20 VRH1 COM1 The COM-1 port has a Female DB9 connector that interfaces to TXD0 2 6 the HC12 internal SCI0 serial port.
  • Page 19: Can1 - 4 Ports

    These ports provide the CAN Bus input and output. Each port has a CAN Transceiver (Philips PCA82C250) capable of up to 1M Baud data rate. Not all HC12 devices support all of the channels, refer to the device data for capability. Each transceiver receive output has a COM Switch position associated with it.
  • Page 20: Lcd_Port

    The LCD_PORT interface is connected to the data bus and memory mapped into the Register Following memory area of the HC12. Note that the DP256 does not support the LCD Port due to no Register following area is available. Refer to the PM12xxx board memory map for LCd Port address location.
  • Page 21: Tb1 And J6 Power

    CMD912x board could be damaged. BDM PORT The BDM port on the PM12xxx module is a 6 pin header 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.
  • Page 22: Troubleshooting

    TROUBLESHOOTING TROUBLESHOOTING The CMD912X board is fully tested and operational before shipping. If it fails to function properly, inspect the board for obvious physical damage first. Ensure that all IC devices in sockets are properly seated. Verify the communications setup as described under GETTING STARTED and see the Tips and Suggestions sections following for more information.
  • Page 23 Following are a number of tips, suggestions and answers to common questions that will solve many problems users have with the CMD912X development system. You can download the latest software from the Support section of our web page at: www.axman.com Utilities If you’re trying to program memory or start the utilities, make sure all jumpers and CONFIG SWITCH settings are correct.
  • Page 24: Tables

    TABLE 1. LCD Command Codes Command codes are used for LCD setup and control of character and cursor position. All command codes are written to LCD panel address $B5F0. The BUSY flag (bit 7) should be tested before any command updates to verify that any previous command is completed. A read of the command address $B5F0 will return the BUSY flag status and the current display character location address.
  • Page 25 BF <StartAddress> <EndAddress> [<data>] BR [<Address>] BULK CALL [<Address>] G [<Address>] HELP LOAD [P] MD <StartAddress> [<EndAddress>] MM <StartAddress> <CR> </> or <=> <^> or <-> <.> MOVE <StartAddress> <EndAddress> <DestAddress> STOPAT <Address> [<count>] 1. Mon12 uses internal RAM space from $600 - $7FF for the D60 and $3E00 - $3FFF for the DG128 and DP256.
  • Page 26 PM12D60 PM12DG/DT128 PA0 / D8 PA0 / D8 PA1 / D9 PA1 / D9 PA2 / D10 PA2 / D10 PA3 / D11 PA3 / D11 PA4 / D12 PA4 / D12 PA5 / D13 PA5 / D13 PA6 / D14 PA6 / D14 PA7 / D15 PA7 / D15...
  • Page 27 PM12D60 PM12DG/DT128 PS4/MIOS PS4/MIOS PS5/MOIS PS5/MOIS PS6/SCK PS6/SCK PS7/SS* PS7/SS* RXCAN0 RXCAN0 TXCAN0 TXCAN0 PCAN2 RXCAN1 PCAN3 TXCAN1 PCAN4 PIB4 PCAN5 PIB5 PCAN6 PIB6 PCAN7 PIB7 PP0/PWM0 PP0/PWM0 PP1/PWM1 PP1/PWM1 PP2/PWM2 PP2/PWM2 PP3/PWM3 PP3/PWM3 BGND BGND RESET* RESET* PAD0 / AN0 PAD0 / AN0 PAD1 / AN1 PAD1 / AN1...

This manual is also suitable for:

Mcu dt128Mcu 68hc912d60Mcu dg128Cmd912x

Table of Contents