home *** CD-ROM | disk | FTP | other *** search
/ World of A1200 / World_Of_A1200.iso / programs / develop / hc11dev / talkers / talkerf1.hlp < prev    next >
Text File  |  1995-02-27  |  8KB  |  136 lines

  1. ************************************************************************
  2. *                             TALKERF1.HLP                             *
  3. *  This file gives information on how to use PCBUG11 with Motorola's   *
  4. *  68HC11F1 MCU. The basic method of setting up the system, and a      *
  5. *  description of how to install the macro utilities F1UTILS is given. *
  6. *  Some common problems are also discussed. These relate to the PC's   *
  7. *  serial port and the restriction on the different operating modes of *
  8. *  the 68HC11F1 MCU. A summary of the way to use PCBUG11 to program    *
  9. *  the CONFIG register is given near the end of this file.             *
  10. ************************************************************************
  11.  
  12. 1. Installing PCBUG11.
  13. ----------------------
  14. Copy all the files off the supplied floppy disc in to a sub-directory - a
  15. suitable name for the sub-directory might be PCBUG11.
  16. Add the path name of the sub-directory to the MSDOS path list, using the PATH
  17. command. (Your AUTOEXEC file may already contain the path command, which you
  18. should modify.)
  19. Using a suitable cable, connect the PC's COM1 serial port to the 68HC11F1's
  20. SCI TX and RX pins through a level shifter, such as the MAX232 IC.
  21. The supplied board has a MAX232 fitted.
  22.  
  23.                             IMPORTANT NOTE
  24.                             --------------
  25.       The PC's COM1 signals CTS,DSR,DCD and DTR must all be shorted
  26.       together. On a 25 pin serial connector, these are pins 5,6,8 and 20,
  27.       and on a 9 pin serial connector these are pins 8,6,1 and 4.
  28.  
  29.       The RTS line (pin 4) must be left unconnected at all points.
  30.       On the 25 pin connector this is pin 4, and on the 9 pin connector,
  31.       it is pin 7.
  32.  
  33.       A common fault is caused by the TX and RX lines being the wrong
  34.       way round. Make sure that all the above points are checked.
  35.       Also, ensure the 68HC11F1 MCU is in BOOTSTRAP mode, and driven from
  36.       an 8MHz crystal. The MCU's XIRQ pin must be wired to the SCI RX line,
  37.       and a pull-up resistor may have to be added between the pins and Vdd.
  38.       (The MAX232 has an internal pull-up)
  39.       Failure to carry out the above instructions will almost certainly
  40.       result in a 'Talker communication failure' message if PCBUG11 is run,
  41.       or a complete hang up after the 'Downloading Talker code' is displayed.
  42.  
  43. 2. Running PCBUG11
  44. ------------------
  45. Once the serial lines have been connected, from the MSDOS command line,
  46. type in: PCBUG11 BOOTF1 F1UTILS
  47.  
  48. This will start up PCBUG11, which will then download the code TALKERF1.BOO
  49. to the MCU's internal RAM, between addresses 0 and $FF. The download is
  50. performed at 7680 baud, by directly accessing the COM1 hardware.
  51. If your PC is not IBM compatible at the hardware level, then the download
  52. should default to 1200 baud.
  53. Then the macro library, F1UTILS will be automatically loaded.
  54. The source code for TALKERF1.BOO is given in the file TALKERF1.ASC - it has
  55. been supplied for your reference only.
  56. The macro library F1UTILS actually consists of 2 disc files:F1UTILS.DEF and
  57. F1UTILS.NAM - refer to the DEFM.HLP,LOADM.HLP and SAVEM.HLP files for more
  58. detail on these.
  59.  
  60. Once the download is complete, the most reliable method of determining if
  61. PCBUG11 is connected properly, is to examine the value of the stack pointer
  62. (SP) displayed on the screen. Its value should be $1FF. If so, you should be
  63. able to perform basic memory display and modify operations, including
  64. programming EEPROM and the CONFIG register. The main command line for PCBUG11
  65. is at the bottom of the screen.
  66.  
  67.                            IMPORTANT NOTE
  68.                            --------------
  69. Because the MCU is running in bootstrap mode, most bits of the CONFIG
  70. register appear to be fixed to '1'. This is caused by the fact that certain
  71. defaults take precedence over the actual programmed value in the CONFIG
  72. EEPROM bits - however, these bits can be programmed in the normal manner -
  73. it's just that the programmed values cannot be read back in this mode.
  74. The exception is bit 1 - it is permanently set to '1'.
  75.  
  76. 3. Programming the CONFIG register
  77. ----------------------------------
  78.  
  79. To program the CONFIG register to $0D, from PCBUG11, type in: CONFIG 0D
  80.  
  81. Note 1: This will only work if the F1UTILS file has been loaded, otherwise
  82.         a command error will be displayed at the bottom of the screen.
  83.  
  84. With the supplied 68HC11F1 board, it is possible to partially check that
  85. the CONFIG register has been properly programmed - this involves switching
  86. the MCU into special test mode, without disconnecting the power supply.
  87. To do this first remove link LK1 (MODA). Then press the reset button.
  88.  
  89. Now type in the PCBUG11 command: CONFIG?
  90.  
  91. This should display the exact value of the CONFIG register, with the exception
  92. that the EEON bit will be clear.
  93.  
  94. *****************************************************************************
  95. * To summarise:                                                             *
  96. * ~~~~~~~~~~~~~                                                             *
  97. * a) Make sure the serial connections are correct, and the MCU is powered   *
  98. *    up, and reset in Bootstrap mode.                                       *
  99. *                                                                           *
  100. * b) From MSDOS, type in: PCBUG11 BOOTF1 F1UTILS                            *
  101. *                                                                           *
  102. * c) Once PCBUG11 starts, from its command line type in: CONFIG 0D          *
  103. *                                                                           *
  104. * ------------------------------------------------------------------------- *
  105. * If you wish to partially confirm the value in the CONFIG register, now    *
  106. * execute instructions g) to i), otherwise execute d) to f)                 *
  107. * ------------------------------------------------------------------------- *
  108. *                                                                           *
  109. * d) The MCU can now be powered down and another one installed.             *
  110. *                                                                           *
  111. * e) Power up and reset the new MCU in Bootstrap mode, and then type in     *
  112. *    the PCBUG11 command: RESTART                                           *
  113. *                                                                           *
  114. * f) Then proceed to c) above.                                              *
  115. *                                                                           *
  116. * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
  117. * g) Without powering off the MCU, remove link LK1 (MODA) from the board    *
  118. *    and press the RESET button.                                            *
  119. *                                                                           *
  120. * h) Enter the PCBUG11 command: CONFIG?                                     *
  121. *                                                                           *
  122. * i) Check the value displayed on the screen                                *
  123. *                                                                           *
  124. *****************************************************************************
  125.  
  126. 4. Autostarting PCBUG11 commands
  127. --------------------------------
  128. The whole process of starting PCBUG11, programming the CONFIG register, then
  129. quitting PCBUG11 can be handled automatically by a command macro with the
  130. name AUTOSTART. An example library containing the AUTOSTART macro is supplied.
  131. It will automatically program the CONFIG register to $0D, and then return to
  132. MSDOS. This means the programming operation can be performed by an MSDOS batch
  133. file.
  134.  
  135. To run PCBUG11 in this mode, simply type in, from MSDOS: PCBUG11 BOOTF1 0D
  136.