Programming instructions for loading the ABC firmware into
68HC711E9 microprocessor.

created: December 2, 1999 - first www posting


You will need to obtain and install the Motorola free debugger
package, PCBUG11. There are PC and Mac versions. All the following
remarks apply at least to the PC version, I have not used the Mac
version.

1. Move the files abc_11.s19 and eepimg.s19 into the same directory
   as PCBUG11.

2. Put ABC processor in boot mode by installing jumpers to make MODA
   and MODB both 0 H1 4-3, and 5-6,

   Power-on the processor (or generate reset by shorting jumper 1-2
   on H1 - the mode jumpers are only looked at just after reset.


3. Start PCBUG11:

   >PCBUG11 -E [port=1]

The port option may be ommitted if com1 is used as that's the default,
but it is needed if another com port is used.

PCBUG11 software is fairly old, a DOS program, relies on serial
communication that is poorly handled by newer Windows (NT, 98, ...).
I've found it OK in a DOS window under win95 with timing adjustment
CONTROL TIMEOUT 3000...your mileage may vary. There is no problem
if it's run from DOS, although the documentation says you may need
the timing adjustment for 'faster' machines.

The program needs to start with no error messages (red boxes in top
frame) which it will do when there's no communication problem. This
successful start is actually a pretty good indication that the processor
is mainly operational.

4. Prepare for programming:

   >CONTROL BASE HEX
   >CONTROL TIMEOUT 3000  (or whatever works)
   >EEPROM b600 b7ff
   >EPROM d000 ffff
   >MS 1035 0

5. Make sure reliable communication is still happening...try a memory
   examine operation:
   >MD B600 B6ff ...gives a top screenfull of FFs if eeprom unprogrammed.
   
   At this point, it may be a good idea to become more familiar with
   PCBUG11. An hour or so of trying out various commands, working
   with the processor a little, before programming the on board
   eprom. This step is especially important if you're using the plastic,
   one-time-programmable part...a mistake in programming means that
   the part is unusable with it's on-board memory.
   
6. Connect the 12.25V programming voltage to H2 pin 4 BE CAREFUL!!!
   This voltage touched even momentarily to almost anything else will
   cause serious loss-of-smoke type problems. The programming voltage is
   specified as 12.25V +/- 0.25V. This voltage is available from a 12V
   Gel Cell battery at about its half-discharged state...or from a well
   regulated bench supply that can be trimmed to 12.25V.

7. Move the jumper on H2 (2 to 3) to connect the programming voltage.

8. Download and verify the files:
   >LOADS abc_11.s19
   >VERF abc_11.s19
   >LOADS eepimg.s19
   >VERF eepimg.s19

9. Move the programming jumper back to disconnect the 12.25 V. H2 1-2
   is a good place to store the jumper. Remove the 12.25V from the board.

10. Move the mode jumpers back

11. Put PCBUG11 into terminal mode:
    >TERM 1 1 50 11  ...makes the upper window a terminal screen

11. RESET (H1 1 to 2, momentarily)

12. See the ABC herald and the menu starts.

