Download Table of Contents Print this page

Motorola 68HC12B32 User Manual

For motorola 68hc12b32 and 68hc12bc32 microcontrollers


Development Board for Motorola
68HC12B32 and 68HC12BC32 Microcontrollers
2813 Industrial Ln.
Garland, TX 75041
(972) 926-9303 FAX (972) 926-6063


Table of Contents

Summary of Contents for Motorola 68HC12B32

  • Page 1 CME-12B/BC Development Board for Motorola 68HC12B32 and 68HC12BC32 Microcontrollers xiom anufacturing 2000 2813 Industrial Ln. Garland, TX 75041 (972) 926-9303 FAX (972) 926-6063 email: web:
  • 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 MEMORY MAP ...9 CONFIG SWITCH...10 MEM-SEL JUMPERS ...10 PORTS AND CONNECTORS ...11...
  • Page 3: Getting Started

    The Axiom CME-12B/BC single board computer is a fully assembled, fully functional development system for the Motorola 68HC12B32 and BC32 microcontrollers, complete with wall plug power supply and serial cable. Support software for this development board is provided for Windows 95 and NT operating systems and DOS.
  • Page 4: Support Software

    Support Software There are many useful programs and documents on the included HC12 support disk that can make developing projects on the CME-12B/BC easier. You should browse the disk and copy anything you want to your hard drive. See the README.TXT file for a description of what is included.
  • Page 5: Tutorial

    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 to be programmed into the CME-12B/BC 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 an 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 D- Bug12 Monitor to test it without programming it into EEPROM. If you haven’t done so already, verify that the CME-12B/BC board is connected and operating properly by following the steps under “GETTING STARTED”...
  • Page 8: Programming Flash Eeprom

    You can program your application into EEPROM 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. Change the start of the program to $8000 which is the beginning of the EEPROM. Do this by changing the ”ORG $1000”...
  • Page 9: Memory Map

    Following is the default memory map for this development board. Consult the HC12 technical reference manual on the support disk for details of the internal memory map for the processor. FFFF FFFE CONFIG SWITCH 1 8000 7FFF 1000 Unused = 280-3FF LCD / CS7 = 270-27F CS6 = 260-26F RESET Vector Address...
  • Page 10: Config Switch

    The CME-12B/BC board is shipped from the manufacturer with the following default CONFIG SWITCH settings: The 8 position CONFIG SWITCH provides an easy method of configuring the CME-12B/BC32 board operation. Following are the configuration switch descriptions and HC12 I/O port usage: CONFIG OPERATION when in ON position...
  • Page 11: Ports And Connectors

    LCD_PORT The LCD_PORT interface is connected to the data bus and memory mapped to locations 270 – 27F hex assigned to CS7. For the standard display, address 270 is the Command register, address 271 is the Data register. The interface supports all OPTREX characters and provides the most common pinout for a dual row rear mounted display connector.
  • Page 12: Mcu_Port

    The MCU_PORT provides access to the peripheral features and I/O lines of the HC12 as follows: 9 10 D7 /XIRQ 11 12 /DBE VFP 13 14 /LSTRB VRH 15 16 VRL +5V 17 18 GND PAD0 19 20 PAD1 PAD2 21 22 PAD3 PAD4 23 24 PAD5 PAD6 25 26 PAD7 PS0 / RXD...
  • Page 13: Com1 Serial Port

    The COM-1 port has a Female DB9 connector that interfaces to TXD0 2 6 the HC12 internal SCI0 serial port. It uses a simple 2 wire RXD0 3 7 asynchronous serial interface. GND 5 9 Pins 1, 4, and 6 are connected for default handshake standards. Pins 7 and 8 are connected for default handshake standards.
  • Page 14: Bdm-In

    The BDM-IN port is a 6 pin header compatible in pinout 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, since the BDM control logic does not reside in the CPU.
  • Page 15: Troubleshooting

    The CME-12B/BC 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 16: Code Execution

    Following are a number of tips, suggestions and answers to common questions that will solve many problems users have with the CME-12B/BC development system. You can download the latest software from the Support section of our web page at: Utilities If you’re trying to program memory or start the HC12 Utilities, make sure all jumpers and CONFIG SWITCH settings are correct.
  • Page 17: 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 18 ASM <Address> <CR> <.> BAUD <baudrate> BF <StartAddress> <EndAddress> [<data>] BR [<Address>] BULK CALL [<Address>] DEVICE [<DevName> [<Address>...<Address>]] EEBASE <Address> FBULK FLOAD [<AddressOffset>] G [<Address>] GT <Address> HELP LOAD [<AddressOffset>] MD <StartAddress> [<EndAddress>] MDW <StartAddress> [<EndAddress>] Memory Display Words MM <StartAddress> <CR>...

This manual is also suitable for:


Table of Contents