              *************************************
              *      HCload  1.2a    20/12/92     *
              *          by Ron Eirich            *
              *************************************

Introduction:

This program loads Motorola S record files into the EPROM,
EEPROM or ram of an MC68HC11 type micro-processor. The micro-
processor must have it's serial port connected to the Amiga's
serial port and the micro-processor must be reset into the
bootstrap mode.

HCload, when first run, downloads a bootstrap program to the
MC68HC11 processor. The bootstrap program can be either one of
the built in bootloaders or an external one custom made for the
processor. This bootstrap program then in turn will load
a S record file into the appropriate EPROM, EEPROM or RAM. As
the program runs a byte counter is displayed to give an
indication of progress. If for some reason the MC68HC11 cannot
load the data sent to it, HCload will time out and notify the
operator.

The bootloader for the 711k4 processor will automatically
determine what type of memory is being addressed by the S record
and automatically switch to the proper programming algorithm for
that memory. This allows RAM, EEPROM and EPROM to be programmed
with the same utility.

Program Operation

   HCload is used with the following template:

     HCload -ssrecord_data [-options]

where:


-ssrecord_data    a mandatory data file containing S records

-options          are any of the following:

   -fx.xxx	  Where x.xxx is the MC68HC11 xtal frequency in
                  MHz. Default is 8.00. This option is used to
                  adjust the Amiga baud rates to that of the
                  MC68HC11 when using xtals other than 8.00 MHz

   -p#            The Amiga serial port number. Port 0 is the
                  default.

   -hxxxxx        Where hxxxxx is the MC68HC11 processor type.
                  Depending on the processor type different
                  bootloaders are used. These are the current
                  built in bootloader selection options:

                                -hc711k4
                                -hc811e2
                                -hc11f1

                  The default is -hc811e2

   -bfile	  Where file is the name of a binary file to be
                  used instead of the built in bootloaders. This
                  allows a user to create a bootloader for newly
                  released processor types or to have a custom
                  bootloader. The file must contain the starting
                  character and the correct number of data bytes
                  as specified by Motorola.


example:  HCload -stest.srec -f4.95 -p3 -hc711k4

The example will first upload the built in hc711k4 bootloader.
Serial port 3 will be used (for those lucky enough to have a
multi-serial card) and the Amiga baud rates will be adjusted by a
ratio of 4.95/8.00. When the bootloader is finished, the file
"test.srec" which contains Motorola S records will be uploaded.
If a transfer address was specified in the file then execution
will begin at this address.
