echo) - Display characters
III. MICRO CONTROLLER 8051MICRO CONTROLLER 8051
5. IN INT TER ERRU RUP PTS TS::
5. ININTTERERRURUPPTSTS::
EXT
EXTERNERNAL: AL: INT is INT is usused for ed for impimplemlemententing singing single stepple stepping and user’ing and user’s s brebreakak switching is available to user.
switching is available to user.
INTERNAL:
INTERNAL: Internal Internal timer timer and and serial serial interrupts interrupts are are used used by by the the system system monitor.monitor.
COMMANDS:
COMMANDS:
A
A Assembler:Assembler:
ESA 5E provides the powerful, PROM resident one-line assembler to ESA 5E provides the powerful, PROM resident one-line assembler to en
enhahancnce e dedevvelelopopmement nt wworork. k. ThThis is asasssememblbler er susuppppororts ts ththe e enentitire re ststanandadardrd mnemonics and addressing modes of Intel /5
mnemonics and addressing modes of Intel /5 microcontrollers.microcontrollers.
FUNCTION
FUNCTION: The assembler generates the actual machine and stores them in: The assembler generates the actual machine and stores them in the memory locations defined by the program.Also, the system will display the the memory locations defined by the program.Also, the system will display the codes generated as well as the
codes generated as well as the source statements.source statements.
Any error detected is also display
Any error detected is also displayed on the screen.ed on the screen.
C
C Compare Compare a ba block lock of memory of memory with with destination destination blockblock
Function: Compare command can be used to compare the contents of one Function: Compare command can be used to compare the contents of one memory block with
memory block with
The content of another memory block.
The content of another memory block.
F
F Fill Fill memorymemory
Fill a block of memory with a constant or search a string of data in Fill a block of memory with a constant or search a string of data in program memory, external data memory and
program memory, external data memory and internal data memory.internal data memory.
Function: This command is used to fill a block of memory with specified Function: This command is used to fill a block of memory with specified constant.
constant.
G
G Go Go commandcommand
Transfer the processor control from the monitor to user program.
Transfer the processor control from the monitor to user program.
The GO command is used to transfer the control of the system from The GO command is used to transfer the control of the system from monitor to the users
monitor to the users Program.
Program.
H
H Help Help commandcommand
List all the commands supported by serial monitor.
List all the commands supported by serial monitor.
Function:
Function:
The help command is used to list all the commands supported by The help command is used to list all the commands supported by the monitor.
the monitor.
J
J Jump Jump to to address:address:
Function: The J command is used to change the program counter value Function: The J command is used to change the program counter value to the desired address
to the desired address
Before executing a program by either
Before executing a program by either GO command or SINGLE STEP GO command or SINGLE STEP command.command.
M
M Modify/Display/Move Modify/Display/Move memorymemory
Modify/Display/Move memory contents in program memory, external Modify/Display/Move memory contents in program memory, external data memory ands internal
data memory ands internal
Data memory with all combinations Data memory with all combinations Function:
Function:
The M Modify memory command is used to examine the The M Modify memory command is used to examine the contents of specified memory locations. Further if location are in RAM their contents contents of specified memory locations. Further if location are in RAM their contents can be altered if desired and block move contents of memory from program, data or can be altered if desired and block move contents of memory from program, data or internal memory to program or data or internal memory for
internal memory to program or data or internal memory for all combinations.all combinations.
The M Display memory command is used to display the The M Display memory command is used to display the contents of the program memory, external or internal data memory.
contents of the program memory, external or internal data memory.
The M Move memory command is used to move a block of The M Move memory command is used to move a block of data from one area of the memory to another area.
data from one area of the memory to another area.
P Programmer:
P Programmer:
S
S Single Single step step command:command:
The command is used to execute a program one instruction at a time.
The command is used to execute a program one instruction at a time.
With each instruction With each instruction
Executed, control is returned to the monitor. Thus this command is an extremely Executed, control is returned to the monitor. Thus this command is an extremely us
usefeful ul dedebubuggggining g totoolol. . PrProvovisisioion n hahas s bebeen en mamade de fofor r sisingngle le ststepeppiping ng wwitithh disassembly.
disassembly.
S Single step command with
S Single step command with disassembly:disassembly:
Function: This command is used to single step a program with Function: This command is used to single step a program with disassembly. The register content
disassembly. The register content Will not be displayed.
Will not be displayed.
Z Disassemble: Disassembly is an extremely useful feature, often employed Z Disassemble: Disassembly is an extremely useful feature, often employed during debugging
during debugging
Function: A disassemble converts machine language codes in to assembly Function: A disassemble converts machine language codes in to assembly language mnemonics, making it easy for user
language mnemonics, making it easy for user to understand the/verify the program.to understand the/verify the program.
PORT0 PORT0 DRIVER DRIVER
PORT2 PORT2 DRIVER DRIVER
RAM RAM ADDR ADDR REGISTER REGISTER
RAM
RAM PORT0PORT0 LATCH LATCH
PORT2 PORT2 LATCH
LATCH ROMROM
B B
REGISTER REGISTER
ACC ACC
C C
T
TMMPP11 TTMMPP22
STACK STACK POINTER POINTER
BUFFER BUFFER
PC PC
INCREMENT INCREMENT ALU
ALU
INTERRUPT, INTERRUPT, SERIEL SERIEL PORTAND PORTAND TIMER BLOCKS TIMER BLOCKS
TIMING AND TIMING AND CONTROL CONTROL
INSTRUCTIO INSTRUCTIO N REGISTER N REGISTER
PORT1 PORT1 DRIVERS DRIVERS
DRIVER DRIVER
PORT3 PORT3 LATCH LATCH OSCILLAT
OSCILLAT OR
OR
PSW PSW
PROGRAM PROGRAM ADDR ADDR REGISTER REGISTER
PROGRAM PROGRAM COUNTER COUNTER
PORT1 PORT1
PORT3 PORT3 DRIVERS DRIVERS
DPTR DPTR