27 On-ChiP DeBuGGeR (DBG)
27-4
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
iRaM Size
Select Register
(MiSC_iRaMSZ)
(S1C17622)
0x5326
(16 bits)
D15–9 –
reserved
–
–
–
0 when being read.
D8
DBaDR
Debug base address select
1 0x0
0 0xfffc00
0
R/W
D7
–
reserved
–
–
–
0 when being read.
D6–4 –
reserved
–
–
–
0x1 when being read.
D3
–
reserved
–
–
–
0 when being read.
D2–0 iRaMSZ[2:0] IRAM size select
IRAMSZ[2:0]
Size
0x1 R/W
0x3
0x2
Other
2KB
4KB
reserved
iRaM Size
Select Register
(MiSC_iRaMSZ)
(S1C17602)
0x5326
(16 bits)
D15–9 –
reserved
–
–
–
0 when being read.
D8
DBaDR
Debug base address select
1 0x0
0 0xfffc00
0
R/W
D7
–
reserved
–
–
–
0 when being read.
D6–4 –
reserved
–
–
–
0x2 when being read.
D3
–
reserved
–
–
–
0 when being read.
D2–0 iRaMSZ[2:0] IRAM size select
IRAMSZ[2:0]
Size
0x2 R/W
0x7–0x0
reserved
iRaM Size
Select Register
(MiSC_iRaMSZ)
(S1C17621)
0x5326
(16 bits)
D15–9 –
reserved
–
–
–
0 when being read.
D8
DBaDR
Debug base address select
1 0x0
0 0xfffc00
0
R/W
D7
–
reserved
–
–
–
0 when being read.
D6–4 –
reserved
–
–
–
0x2 when being read.
D3
–
reserved
–
–
–
0 when being read.
D2–0 iRaMSZ[2:0] IRAM size select
IRAMSZ[2:0]
Size
0x2 R/W
0x7–0x0
reserved
D[15:9] Reserved
D8
DBaDR: Debug Base address Select Bit
Selects the branching destination address when a debug interrupt occurs.
1(R/W): 0x0
0(R/W): 0xfffc00 (default)
D[7:3]
Reserved
D[2:0]
iRaMSZ[2:0]: iRaM Size Select Bits
Selects the size of the internal RAM to be used.
4.2 Internal RAM Size Selection
Table 27.
iRaMSZ[2:0]
internal RaM size
S1C17624/604
S1C17622
S1C17602
S1C17621
0x3
2KB
2KB
Reserved
Reserved
0x2
4KB
4KB
Reserved (default) Reserved (default)
0x1
8KB (default)
Reserved (default)
Reserved
Reserved
Other
Reserved
Reserved
Reserved
Reserved
note: The MISC_IRAMSZ register is write-protected. To alter this register settings, you must override
this write-protection by writing 0x96 to the MISC_PROT register. Normally, the MISC_PROT reg-
ister should be set to a value other than 0x96, except when altering the MISC_IRAMSZ register.
Unnecessary rewriting of the MISC_IRAMSZ register may result in system malfunctions.
Debug RaM Base Register (DBRaM)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
Debug RaM
Base Register
(DBRaM)
(S1C17624/604/
602)
0xffff90
(32 bits)
D31–24 –
Unused (fixed at 0)
0x0
0x0
R
D23–0 DBRaM[23:0] Debug RAM base address
S1C17624/604: 0x1fc0
S1C17602: 0x0fc0
←
R
D[31:24] not used (Fixed at 0)
D[23:0] DBRaM[23:0]: Debug RaM Base address Bits (S1C17624/604/602)
Read-only register containing the beginning address of the debugging work area (64 bytes).
D[23:0] not used (undefined) (S1C17622/621)