Brk - Epson S1C17 Series Manual

Cmos 16-bit single chip microcontroller
Hide thumbs Also See for S1C17 Series:
Table of Contents

Advertisement

brk

Function
Debugging interrupt
Standard)
Extension 1) Unusable
Extension 2) Unusable
15 14 13 12 11 10
Code
0
0
0
|
|
IL
IE
C
Flag
|
|
0
Mode
CLK
Four cycles
Description
Calls a debugging handler routine.
The brk instruction stores the address (PC + 2) that follows this instruction, the contents of the
PSR, and the contents of the R0 register into the work area for debugging (DBRAM), then sets the
mini-monitor start address (0xfffc00) to the PC. Thus the program branches to the debug-handler
routine. Furthermore the processor enters the debug mode.
The retd instruction must be used for return from the debug-handler routine.
This instruction is provided for debug firmware. Do not use it in the user program.
Example
brk
S1C17 CORE MANUAL
(Rev. 1.2)
A[DBRAM ] ← {psr, pc + 2}, A[DBRAM + 0x4] ← r0, pc ← 0xfffc00
9
8
7
6
|
0
0
0
0
1
0
1
|
|
|
|
|
|
V
Z
N
|
|
|
; Executes the debug-handler routine
Seiko Epson Corporation
5
4
3
2
1
0
1
0
0
0
0
0
|
|
|
|
|
|
7 DETAILS OF INSTRUCTIONS
7-13

Advertisement

Table of Contents
loading

Table of Contents