Motorola DT128, DG128, 68HC912D60, CMD912x manual Support Software, Software Development

Page 4

5.Apply power to the board by plugging in the power adapter that came with the system.

6.If everything is working properly, you should see a message to “PRESS KEY TO START MONITOR…” in your terminal window. Press the ENTER key and you should see:

Axiom MON12 - HC12 Monitor / Debugger > _

7.Your board is now ready to use! If you do not see this message prompt, or if the text is garbage, see the TROUBLESHOOTING section at the end of this manual.

Support Software

There are many programs and documents on the included HC12 support CD you can use with the CMD912X board. You should install what you want from the main menu then browse the disk and copy what you like to your hard drive.

At minimum, you should install the AxIDE program. This flash programming utility communicates with the board via its COM1 port and the supplied serial cable. This program also includes a simple terminal for interfacing with other programs running on the CMD912X and information from your own programs that send output to the serial port.

Also on the disk are free assemblers, the GNU C/C++ compiler tools for HC12, example source code, and other useful software. The introductory tutorial in this manual uses the free 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.

Software Development

Software development on the CMD912x can be performed using either the Mon12 monitor utility installed in EPROM (sockets U6/U7), a third party debugger (NoICE, CodeWarrior, etc.) or a Background Debug Module (BDM) connected to the PM12xx Module BDM PORT connector. Any of these tools can be used to assist in creating and debugging your program stored in RAM (see Memory Map).

After satisfactory operation running under a debugger, your program can be written to Internal Flash Memory by changing the PM12xx Module MODE SWITCH settings and programming it using one of the included programming utilities. Your program may l then run automatically whenever the board is powered on or RESET is applied.

Option switches on the board allow for easy transition from operating monitor or debugger and user code.

4

Image 4
Contents CMD912x Contents Getting Started Installing the SoftwareBoard Startup Support Software Software DevelopmentTutorial Creating source codeAssembling source code AS12 HELLO.ASM -LHELLORunning your application Programming Flash Eeprom #$7FEBDM Operation Memory Maps PM12DP256 Memory MapPM12DG128 / PM12DT128 Memory Map Peripheral AreaPM12D60 Memory Map Peripheral Area see note 2 belowConfig Switch Option SwitchesCOM Switch Mode Switch PM12D60Ports and Connectors PRU PortPRU Port Connector McuportBusport COM1 Analog PortCOM2 CAN1 4 Ports Can 1 4 Port ConnectionsLcdport KeypadTB1 and J6 Power BDM PortTroubleshooting Tips and Suggestions UtilitiesTables LCD Command CodesLCD Character Codes Mon12 Monitor Commands BulkO Signal Connection Reference OtherPS4/MIOS