Download Print this page

Program Execution - Intel EV80Cl96KB User Manual

Microcontroller evaluation board

Advertisement

EV80C196KB Microcontroller Evaluation Board User's Manual -33-
NOTE: BR[O] and BR[l] can also be set by the GO command by using the TILL
clause; all of the breakpoints will be cleared by the GO command if the FOR-
EVER clause is used.
BR
This command will display all of the active breakpoints (i.e. those not set to zero).
You will also be informed if no breakpoints are active.
BR [ cbp-number>
]
This command will display the setting of the selected breakpoint and wait for input
from you. If you enter a carriage-return the command will terminate. If you enter an
ESC the next sequential breakpoint will be displayed. If you enter a numeric value
then the selected breakpoint will be loaded with the value and the iECM-96 will
again wait for input. At this point you can enter either a CARRIAGE-RETURN
or an
ESC. As before, the ESC will cause the iECM-96 to display the next breakpoint and
the CARRIAGE-RETURN
will terminate the command. This command will wrap
around from the last breakpoint (1%) to the first breakpoint (0).
BR [ cbp-number>
] = <code-addr>
This command sets the specific breakpoint specified by cbp-number>
to the value
<code-addr>.
Program Execution
These commands start and stop execution of user code. The commands provided
are:
2:
FOREVER
GO FROM <code-addr>
GO FROM <code-addr>
FOREVER
GO FROM <code addr> TILL <code-addr>
GO FROM ccodezaddr>
TILL <code-addr>
OR <code-addr>
GO TILL <code-addr>
;AqflLL
<code-addr>
OR <code-addr>
If a GO with breakpoint command is entered, the user code bytes at the breakpoints
will be saved and TRAPS will be installed. When a breakpoint is reached the user's
software will stop before the instruction which caused the breakpoint and the IECM-
96 software will restore the original user code. Note that this is different from the
operation of iSBE-
(and most ICE modules) which stop just afterthe instruction
executes. A problem associated with stopping before the break instruction executes
is that subsequent GO commands may run into the breakpoint before any user code
is executed. The iECM-96 avoids this problem by skipping the setting of any break-
points set on the instruction that the current PC points to. If this happens to remove
the last breakpoint set then you will be warned but the GO will still execute with no
breakpoints enabled.
IF this happens you can use the HALT command to stop the
program a

Advertisement

loading