PCBUG11.DOC

(124 KB) Pobierz
Û¥-'@-€4¿‚ð´½ì$ì$$ì$ì$ì$ì$ì2ì4fîfîfîfîfî‚îpfîòî(ïïïïïïïïïïïï;ïÀûïûïð4Mð5ð$ìððàäPCbug11 User's Manual (V3.2)
The information in this document has been carefully checked and is believed to be entirely reliable. However, no responsibility is assumed for inaccuracies. Furthermore, Motorola reserves the right to make changes to the product herein to improve reliability, function, or design. Motorola does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights or the rights of others. Motorola products are not authorised for use as components in life support devices or systems intended for surgical implant into the body or intended to support or sustain life. Buyer agrees to notify Motorola of such intended end use whereupon Motorola shall determine the availability and suitability of its products for the use intended

                         Copyright (c) Motorola Ltd 1990

Contents


Title      						    Page

1. Introduction to PCbug11        		                2

2. Setting up your M68HC11 for use with PCbug11             3

3. Starting PCbug11 with your hardware                      	  4
     3.1 Running the software                            		  4
     3.2 The PCbug11 monitor screen                		  5
     3.3 Fixing simple problems and trying simple commands  6

4. How PCbug11 works                                        8

5. Using the Software                                       10
     5.1 PCbug11 Runtime Command Structure                  10
     5.2 Uses of the Software                               12
     5.3 Pitfalls to avoid                                  12

6. PCbug11 Commands                                         14
     6.1 Command line editing                               14
     6.2 Monitor  Commands                                  14
          6.2.1 PCbug11 Command Summary                     15
          6.2.2 PCbug11 Command Description                 17

7 Advanced Topics                                           43
     7.1 Macros                                             43
          7.1.1 Defining Macros                             44
          7.1.2 Editing Macros                              45
          7.1.3 Listing and Clearing Macros                 46
     7.2 Using Trace and Breakpoints                        46
     7.3 Talkers in EEPROM or External Memory               47
     7.4 Programming EPROM (711) parts                      49
     7.5 Designing new talkers                              50
     

Appendices                                                  51
A - Circuit Diagram and Components List                     51
     A.1 Components List                                    51
     A.2 Circuit Diagram                                    52

B - PCbug11 Error messages                                  53
     B.1 Operation Errors                                   53
     B.2 Communications Errors and other Fatal Errors       53
     B.3 Command Errors                                     55

C - PCbug11 Disk Contents                                   56

D - Software Version Information                            57





1. Introduction to PCbug11

PCbug11 is a software package designed to allow easy access to and simple experimentation with M68HC11 family members.

The package allows users to program the 68HC11 of interest and also to examine the behaviour of internal peripherals under specific conditions. In addition user programs may be run on the part with breakpoint and trace processing available.

This manual provides information on installing and running the program and on common problems encountered. The user is advised to review any attached version information note before proceeding with the code.

Terminology:
M68HC11, HC11       Any member of the 68HC11 family of processors
A8, E9, D3 etc.     A particular family member - normally preceded by MC68HC(7)11..
The following are trademarks:
     MS-DOS is a registered trademark of Microsoft Corporation  IBM is a registered trademark of International Business Machines  Corporation  Motorola and (batwing) are registered trademarks
2. Setting up your 68HC11 for use with PCbug11

There are two steps in preparing your 68HC11 for use with PCbug11. Firstly the hardware support components must be prepared and secondly the software must be run on your IBM or compatible PC. Appendix A deals with the hardware construction and lists the components required.

The software may be installed on to a hard disk as follows:
1) PCbug11 is supplied on a single 360KB disk.
2) Insert disk into floppy drive of the PC.
3) Create a new directory to contain PCbug11 files - say PCBUG11
4) Copy all the files on the disk onto the hard disk directory using the COPY or XCOPY commands.
5) Once successfully installed the monitor may be run from anywhere in the PC directory structure if the DOS PATH command is correctly set up.
6) Note that the software may be run from the floppy drive assuming all the appropriate files are available.

3. Starting PCbug11 with your hardware

Using the software package is simply a case of setting up the hardware, connecting it  to the PC communications port, and running the monitor program PCbug11.

3.1 Running the software

PCbug11 is a highly sophisticated piece of software which may take many options depending on the 68HC11 family member, PC port used, crystal used and if any macros are to be used on startup. However, in the simplest case the command to startup the software is as follows:

     PCBUG11 -XA
 This will start up a 68HC11A8/1/0 with the XIRQ pin connected to the PD0 pin.

It is also possible to use other 68HC11 family members. To use other family members the two characters after the -X in the command line is altered. This character is associated with the type of bootloader used on the chip. Most HC11s use the E9 type bootloader so that the -XE option will suit most family members. The following table highlights the current possibilities :

Device    PCbug11 startup command

68HC11A8) 
68HC11A1 )     PCBUG11 -XA
68HC11A0)

68HC11E9)
68HC11E1 )     PCBUG11 -XE
68HC11E0)

68HC811A2      PCBUG11 -XE

68HC811A8      PCBUG11 -88

68HC(7)11D3    PCBUG11 -D

68HC711E9      PCBUG11 -E

68HC11F1       PCBUG11 -XE

68HC(7)11K4    PCBUG11 -K

Type the command shown above which corresponds to the device which you have installed on your hardware. Note that if the X option is indicated then the XIRQ pin should be connected to the PD0/Rx pin.
3.2 The PCbug11 monitor screen

The status of the hardware is displayed on the screen of the PC. There are four major areas or "windows" which make up this screen.

     1) The command window is situated at the bottom left of the PC screen. On colour screens it has a black background and white text. It is in this window that commands to the package are entered and
displayed. The command cursor which is part of this window appears on the bottom line of the screen and is indicated by a ¯ character. When commands are typed in they will appear after this cursor. The rest of the window is used to display previous commands and indicate last error messages.

     2) The status window is situated to the middle right of the screen. On colour screens this is shown with a purple background and white text. This shows the current 68HC11 processor being used, its state (running,stopped,tracing), the status of the RS232 RTS line and the current user set interrupt vectors.

     3) The register window is displayed in the middle of the screen. It is shown with a red background and white or yellow text. This window displays the last recorded contents of the processor registers. It is important to note that this window is only updated on startup and when requested by the user. The contents of the registers may be modified by using PCbug11 commands.

     4) The main window occupies the upper half of the screen and has a blue background with white text. This window is used to display most information about the package. It shows the results of commands, memory contents, assembly opcodes, macros and many other items concerned with the operation of the package.

In addition to the above windows a temporary window is used to indicate any errors and whether the communications to the HC11 are operating normally. This is displayed on top of the main window contents and on a colour screen is shown as red characters on a black background. This error window is cleared by hitting any key or after a timeout of around 5 seconds.

If the screen as described above does not appear then the program has not run properly. A DOS or a PCbug11 error message (in the error window) will describe what the problem is. Please correct this error before proceeding. The following section gives some help if errors occur.

3.3 Fixing simple problems and trying simple commands

If the software did not start up properly then errors will be displayed on the command screen and the register window will show  a series of XX's where the register values should be. A detailed description of the meaning of these errors is contained in Appendix B, however, it is likely that for an initial start up that the errors are due to either the communications link or some incorrect setting on the hardware. Check the following:

     1. 5...
Zgłoś jeśli naruszono regulamin