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.
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.
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.
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.
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.
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.
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...
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...
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 –...
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.
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.
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.
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.
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.
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.
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.
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.
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.