Program Downloads

EMICROS - Embedded Micro Software, Last Update: 11/08/08

Files Required
The following files are required;
  • COM11.BAS: QuickBasic source code to download to CANTEC11
  • COM11.EXE: Executable (DOS)
  • BOOT.S19: Code that is downloaded to HC11 RAM and executed
  • BOOT.SRC: Source code for HC11 download
  • AS11.EXE: Freeware assembler to assemble boot.src into boot.s19.
Downloading Programs to the CANTEC11 Board
The CANTEC11 board contains 32kbytes of Flash memory for program storage.  Programs can be developed on a PC, downloaded into the Flash memory, and executed quickly. The 68HC11 is placed into a special mode known as the Bootloader Mode. In this mode, a small program (boot.s19) can be downloaded into the RAM and executed. The program downloaded into the RAM provides the Flash programming capabilty.
Bootloader
The 68HC11 has 4 modes of operation as defined by the MODA and MODB pins. Bootloader mode and Normal Expanded mode are used to download the The CANTEC11 board uses the bootstrap mode for downloading programs to the Flash and uses Normal Expanded mode when running programs fro the Flash.

Switch S1 selects the mode. Slide switch S1 towards the reset button to select bootloader mode. Press the RESET switch and the 68HC11 enters Bootloader mode. Now the small bootloader code can be downloaded into the 68HC11 RAM.

Boot Program
The source for the program that is downloaded into the RAM is boot.src. Assemble the source file into the S19 file using DOS command;

as11 boot.src -l cre s >boot.lst

PC Download Program
COM11.BAS is aQuickBasic program used to download the boot.s19 file to the 68HC11 and then program the application into the Flash memory. COM11.EXE runs under DOS. Programs written for the 68HC11 CANTEC11 board are downloaded using this program.

The COM11.EXE file can be either in the current directory or in a directory specified in the search path. The BOOT.S19 file is used by COM11.EXE and must be in the current directory.

COM11 gives the user the option to download programs to portions of the FLASH. For small programs, locate the starting address at E000 and use the appropriate option in COM11. For larger programs, the entire 32k can be used. Using the smaller options reduce download time.