27 On-ChiP DeBuGGeR (DBG)
S1C17624/604/622/602/621 TeChniCal Manual
Seiko epson Corporation
27-3
Setting PRUND to 1 enables the peripheral circuits that operate with PCLK to run even in debug mode.
Setting it to 0 will stop them when the S1C17 Core enters debug mode. Set PRUND to 1 to maintain
running status for these peripheral circuits in debug mode.
D0
PRun: Prescaler Run/Stop Control Bit
Runs/stops the prescaler.
1 (R/W): Run
0 (R/W): Stop (default)
Write 1 to PRUN to run the prescaler for the peripheral circuit shown below and write 0 to stop the pr-
escaler.
• 16-bit timer (T16)
• Fine mode 8-bit timer (T8F)
• 16-bit PWM timer (T16E)
• IR remote controller (REMC)
• I/O port (P)
• UART
• SPI
• I
2
C master (I2CM)
• A/D converter (ADC10)
OSC1 Peripheral Control Register (MiSC_OSC1)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
OSC1 Peripheral
Control Register
(MiSC_OSC1)
0x5322
(16 bits)
D15–1 –
reserved
–
–
–
0 when being read.
D0
O1DBG
Run/stop select in debug mode
(except PCLK peripheral circuits)
1 Run
0 Stop
0
R/W
D[15:1] Reserved
D0
O1DBG: Run/Stop Select Bit in Debug Mode (except PClK peripheral circuits)
Selects the operating status of the peripheral circuits that operate with a clock other than PCLK in debug
mode.
1 (R/W): Run
0 (R/W): Stop (default)
Setting O1DBG to 1 enables the peripheral circuits that operate with a clock other than PCLK to run
even in debug mode. Setting it to 0 will stop them when the S1C17 Core enters debug mode. Set O1DBG
to 1 to maintain running status for these peripheral circuits in debug mode.
Some peripheral circuits, such as SPI, I2CS, and T16A2, that run with an external input clock will not
stop operating even if the S1C17 Core enters debug mode.
The LCD driver continues the operating status at occurrence of the debug interrupt.
iRaM Size Select Register (MiSC_iRaMSZ)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
iRaM Size
Select Register
(MiSC_iRaMSZ)
(S1C17624/604)
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
0x1
Other
2KB
4KB
8KB
reserved