Table of Contents
Previous topic Next topic
Breakpoints->Using Breakpoints
Breakpoints can be set to halt program execution when certain conditions occur. These conditions are:
- the address of the next instruction to be executed has been set as an execution breakpoint
- a byte has just been read from program memory at an address that has been set as a program memory read breakpoint
- a byte has just been read from or written to external data memory at an address that has been set as an external memory read and/or write breakpoint
- a byte has just been read from or written to internal data memory at an address that has been set as an internal memory read and/or write breakpoint
- a byte has just been read from or written to SFR memory at an address that has been set as an SFR memory read and/or write breakpoint
- a byte has just been read from or written to BIT memory at an address that has been set as an BIT memory read and/or write breakpoint
- the stack pointer falls outside of the range that has been set as stack out of limits breakpoint.
Breakpoints can be set using the breakpoints dialog box or using the set breakpoint at cursor command.
The breakpoints that you set are unique to a particular 8051 program and so if you have more than one program loaded into the simulator then both will have their own separate breakpoints.
When a program is closed, its breakpoints are saved in its program status file and so will be restored when the same program is opened again.