HomePACESearch
ProjectsForumsSite Map

Current:
Level Down:

Programing your MC68HC912B32


A good resource is to take a look at what ECE store has on it's HC912 Module. This is a summary of the MiniIDE User's Guide found on that page.

You'll first need to download the MiniIDE program.

this program will
  • communicate with the HC912 Module
  • Assemble your programs
  • Download your programs to the module

To communicate with the HC912

After installing MiniIDE, you can run the communication program by going to
  • Start => Programs => MiniIDE
1. First set the Terminal options
  • Terminal->Options
  • then set
    • COMport = the communications port the serial cable is connected to
    • Baud = 9600
    • Data Bits = 8
    • Stop Bits = 1
    • Parity = None
2. Show the Terminal Window
  • Terminal => Show Terminal Window (Ctrl+3)
3. Connect to the microprocessor
  • Terminal => Connected
4. Turn on the HC912 +5VDC or "RESET" pin#32, as described in "How to wire your MC68HC912B32"
  • The HC912 module should then respond with:
    • Debug-12 v2.0.0
    • Copyright 1996-1997 Motorola Semiconductor
    • For Cammands Type "Help"
    • < (note that a "<" should appear everytime you execute a command by pressing enter.)

It's time to download programs!!
You have two options of downloading a program on to the HC912 module
  • assembling *.ASM files and placing them in the 1-Kbyte RAM
  • downloading *.S19 files to the EEPROM
For Programings in the 1-Kbyte RAM
you may want to use one of the ECE Shop provided Test Programs to practice this before you do it with your program. Test programs can be found here.

1. Run MiniIDE
  • Start -> Programs -> MiniIDE
2. Download file
  • Terminal->Download File...
  • push enter a few times till you get the ">"
3. Start the program
  • Type "G 0810" to start the program, that is assuming that your program has the code ORG $0810
Just in case you need to restore the D-Bug12 in the EEPROM
The ECE Store webpage has directions to storing programs in the HC912 Flash EEPROM. Restoring the D-Bug12 in the EEPROM is a similar process. That is shown here.

Download the D-Bug12.s19 file here.

1. Load your file
  • File->Open
2. Build your file
  • Build->Build "yourfile.asm"
3. establish boot mode
  • connect a 10K resistor from +5DC to pin #51
  • and connect a 10K resistor from +5DC to pin #52
4. turn on the HC912 power
  • Apply +12Volts DC to pin # 69. - the HC912 will repsond with "(E)rase, (P)rogram, or (L)oadEE"
5. Download file to EEPROM
  • push "E" - the HC912 will respond with "Erased", or "VFP not presetn" if there is no +12V applied to pin 69
  • push "P" - for program
  • Terminal -> Download File to EEPROM...
6. reset the bootmode
  • reconect pin#51 and 52 to GND
7. run your program
  • push reset.
*note that D-Bug12 takes about 20 minutes to load.*
This document created by: CJ Osterand Joe Ngai

Last Modified: April 20, 2003
Please contact Professor Gary Swenson (swenson1@uiuc.edu) to learn more about the course, or contact the webmaster (wiegert@uiuc.edu) with questions or comments about the web site.  Web Site designed by Purvesh Thakker.