Epson S5U1C63000A User Manual

Page 164

Advertising
background image

CHAPTER 8: DEBUGGER

150

EPSON

S5U1C63000A MANUAL

(S1C63 FAMILY ASSEMBLER PACKAGE)

(3) Register break

This break function causes a break when the A, B, F, X, and Y register reach a specified value. Each
register can be masked (so they are not included in break conditions). The F register can be masked in
bit units. A break occurs when the above registers are modified to satisfy all set conditions.

Table 8.8.5.3 Commands/menu item to set register break

Function

Command

Menu

Set register break conditions

br

[Break | Register Break...]

Clear register break conditions

brc

[Break | Register Break...]

For example, if the program is executed after setting 0 for the data of the A register and "

∗∗

1

" for the

data of the F register (C flag = 1) and masking all others, the program breaks when the A register is
cleared to 0 and the C flag is set to 1.

(4) Sequential break

This break function allows settings of up to three break addresses and the number of times the
instructions of the last address to be executed. While passing through all addresses sequentially in the
order set, the program executes instructions at the final specified address the directed number of
times, and then fetches the instruction at that address one more time before it breaks.

Table 8.8.5.4 Commands/menu item to set sequential break

Function

Command

Menu

Set sequential break conditions

bs

[Break | Sequential Break...]

Clear sequential break conditions

bsc

[Break | Sequential Break...]

For example, if you execute the program after first setting a break address in two locations at ad-
dresses 0x1000 and 0x2000 and specifying 3 for the execution count using the bs command, the
program executes address 0x2000 three times after executing address 0x1000 more than one time, and
when the PC reaches 0x2000, it breaks before performing the 4th execution.
The execution count can be set up to 4,095.

(5) Accessing outside stack area

In this case, a break occurs when a location outside the stack area is accessed by stack pointer SP1 or
SP2.
Before this function can be used, the SP1 and SP2 areas must be set by the bsp command. The initial
value is 0x0 to 0x3ff for SP1, and 0x0 to 0xff for SP2. The address of SP1 must be specified in units of 4
words.

Table 8.8.5.5 Command/menu item to set stack break

Forced break by the [Key Break] button or the [Esc] key

The [Key Break] button or the [Esc] key can be used to forcibly terminate the program under execu-
tion when the program has fallen into an endless loop or cannot exit a standby (HALT or SLEEP)
state.

[Key Break] button

Pulling ICE BRKIN pin low

The program is made to break by pulling the ICE BRKIN pin low (by applying a low-level pulse
for more than 20 ns).

Function

Command

Menu

Set stack break conditions

bsp

[Break | Stack Break...]

Advertising