pcbugr3.pdf

(281 KB) Pobierz
272420398 UNPDF
M68PCBUG11/D
REV 3
December 1996
M68HC11 PCbug11
USER'S MANUAL
© 1991, 1992, by MOTOROLA, INC.
272420398.005.png
Motorola reserves the right to make changes without further notice to any products 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 nor the rights of others. Motorola products are not designed, intended, or
authorized for use as components in systems intended for surgical implant into the body, or other
applications intended to support or sustain life, or for any other application in which the failure of
the Motorola product could create a situation where personal injury or death could occur. Should
Buyer purchase or use Motorola products for any such unintended or unauthorized application,
Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and
distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney
fees arising out of, directly or indirectly, any claim of personal injury or death associated with
such unintended or unauthorized use, even if such claim alleges that Motorola was negligent
regarding the design or manufacture of the part. Motorola is a registered trademark of Motorola,
Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer.
IBM is a trademark of International Business Machines Corp.
MS-DOS is a trademark of Microsoft Corporation.
272420398.006.png
CONTENTS
CONTENTS
CHAPTER 1
GENERAL INFORMATION
1.1 INTRODUCTION............................................................................................................. 1-1
1.2 MCU SETUP FOR PCBUG11 .......................................................................................... 1-1
1.2.1 Hard Disk Installation ............................................................................................... 1-2
1.2.2 Flexible Disk Installation ........................................................................................... 1-2
1.3 STARTING PCBUG11 ..................................................................................................... 1-3
1.3.1 Running the Software................................................................................................ 1-3
1.3.2 Monitor Screen Windows.......................................................................................... 1-4
1.3.3 Fixing Simple Problems............................................................................................. 1-5
1.3.4 Trying Simple Commands ......................................................................................... 1-6
1.4 HOW PCBUG11 WORKS ................................................................................................ 1-7
CHAPTER 2
USING PCBUG11 SOFTWARE
2.1 INTRODUCTION............................................................................................................. 2-1
2.2 PCBUG11 RUNTIME COMMAND STRUCTURE.......................................................... 2-1
2.2.1 The <baudrate> Parameter ........................................................................................ 2-1
2.2.2 Runtime Command Examples.................................................................................... 2-3
2.3 USES OF THE SOFTWARE ............................................................................................ 2-3
2.4 PITFALLS TO AVOID..................................................................................................... 2-4
M68PCBUG11/D
iii
272420398.007.png 272420398.008.png
CONTENTS
CHAPTER 3
USING PCBUG11 COMMANDS
3.1 INTRODUCTION............................................................................................................. 3-1
3.2 COMMAND-LINE EDITING........................................................................................... 3-1
3.3 PCBUG11 COMMANDS.................................................................................................. 3-2
ASM addr [mne|dir]........................................................................................................... 3-5
BAUD [rate]...................................................................................................................... 3-7
BF addr1 [addr2] byte|word............................................................................................... 3-8
BL..................................................................................................................................... 3-9
BR [addr [macroname]] ................................................................................................... 3-10
CALL addr ...................................................................................................................... 3-11
CLRM ............................................................................................................................. 3-12
CLS................................................................................................................................. 3-13
CONTROL [parameter]................................................................................................... 3-14
DASM addr1 [addr2]....................................................................................................... 3-15
DB startaddr [endaddr] .................................................................................................... 3-16
DEBUG........................................................................................................................... 3-17
DEFINE symbol value|address ......................................................................................... 3-18
DEFM macrnam|TRACE|AUTOSTART ......................................................................... 3-19
DELM macrnam|TRACE|AUTOSTART ......................................................................... 3-21
DIR [mask]...................................................................................................................... 3-22
DOS [command].............................................................................................................. 3-23
EDITM macrnam............................................................................................................. 3-24
EEPROM [startaddr [endaddr]] ....................................................................................... 3-25
EEPROM DELAY option ............................................................................................... 3-26
EEPROM ERASE [option] [addr] ................................................................................... 3-27
EPROM [startaddr [endaddr]] ......................................................................................... 3-28
EPROM DELAY option.................................................................................................. 3-29
FIND byte|word addr1 addr2 ........................................................................................... 3-30
FIND mnemonic addr1 addr2........................................................................................... 3-31
G [addr]........................................................................................................................... 3-32
HELP [command]............................................................................................................ 3-33
KLE ................................................................................................................................ 3-34
LOADM [filename [macroname]] .................................................................................... 3-35
LOADS filename [loadaddr] ............................................................................................ 3-36
LS symbol ....................................................................................................................... 3-37
LSTM [mname|TRACE|AUTOSTART] .......................................................................... 3-38
MD startaddr [endaddr] ................................................................................................... 3-39
MM addr ......................................................................................................................... 3-40
MOVE addr1 addr2 addr3 ............................................................................................... 3-41
MS addr byte|word [byte|word] ....................................................................................... 3-42
iv
M68PCBUG11/D
272420398.001.png 272420398.002.png
CONTENTS
CHAPTER 3
USING PCBUG11 COMMANDS (continued)
MSG [string] ................................................................................................................... 3-43
NOBR [address] .............................................................................................................. 3-44
PAUSE [mS] ................................................................................................................... 3-45
PRINT............................................................................................................................. 3-46
PROTECT [startaddr [endaddr]] ..................................................................................... 3-47
QUIT [Y] ........................................................................................................................ 3-48
RD [T] ............................................................................................................................ 3-49
RESET [addr] ................................................................................................................. 3-50
RESTART [option] ......................................................................................................... 3-52
RM.................................................................................................................................. 3-53
RS register value.............................................................................................................. 3-54
S...................................................................................................................................... 3-55
SAVEM [filename] .......................................................................................................... 3-56
SHELL [command] ......................................................................................................... 3-57
T [addr] ........................................................................................................................... 3-58
TERM [X1 Y1 X2 Y2].................................................................................................... 3-59
TYPE filename ................................................................................................................ 3-60
UNDEF symbol ............................................................................................................... 3-61
VER ................................................................................................................................ 3-62
VERF filename [memaddr] .............................................................................................. 3-63
VERF ERASE addr1 [addr2]........................................................................................... 3-64
VERF SET addr1 addr2 value ......................................................................................... 3-65
WAIT [mS] ..................................................................................................................... 3-66
CHAPTER 4
ADVANCED TOPICS
4.1 INTRODUCTION............................................................................................................. 4-1
4.2 MACROS.......................................................................................................................... 4-1
4.2.1 Defining Macros ....................................................................................................... 4-2
4.2.1.1 Autostart Macros ............................................................................................. 4-3
4.2.1.2 Null Macros ..................................................................................................... 4-3
4.2.2 Editing Macros ......................................................................................................... 4-3
4.2.3 Listing and Clearing Macros...................................................................................... 4-4
4.3 USING TRACE AND BREAKPOINTS............................................................................ 4-4
4.3.1 Breakpoints............................................................................................................... 4-4
4.3.2 Tracing ..................................................................................................................... 4-6
4.4 TALKERS IN EEPROM OR EXTERNAL MEMORY ..................................................... 4-6
4.5 PROGRAMMING EPROM (711) PARTS ........................................................................ 4-8
4.6 DESIGNING NEW TALKERS......................................................................................... 4-9
M68PCBUG11/D
v
272420398.003.png 272420398.004.png
Zgłoś jeśli naruszono regulamin