6 I/O PORTS (PPORT)
6-10
Seiko Epson Corporation
S1C17M12/M13 TECHNICAL MANUAL
(Rev. 1.2)
Bit 8
DBRUN
This bit sets whether the PPORT operating clock is supplied in DEBUG mode or not.
1 (R/WP): Clock supplied in DEBUG mode
0 (R/WP): No clock supplied in DEBUG mode
Bits 7–4
CLKDIV[3:0]
These bits select the division ratio of the PPORT operating clock (chattering filter clock).
Bits 3–2
KRSTCFG[1:0]
These bits configure the key-entry reset function.
Table 6.6.2 Key-Entry Reset Function Settings
PCLK.KRSTCFG[1:0] bits
key-entry reset
0x3
Reset when P0[3:0] inputs = all low
0x2
Reset when P0[2:0] inputs = all low
0x1
Reset when P0[1:0] inputs = all low
0x0
Disable
Bits 1–0
CLKSRC[1:0]
These bits select the clock source of PPORT (chattering filter).
The PPORT operating clock should be configured by selecting the clock source using the PCLK.
CLKSRC[1:0] bits and the clock division ratio using the PCLK.CLKDIV[3:0] bits as shown in Table
6.6.3. These settings determine the input sampling time of the chattering filter.
Table 6.6.3 Clock Source and Division Ratio Settings
PCLK.CLKDIV[3:0] bits
PCLK.CLKSRC[1:0] bits
0x0
0x1
0x2
0x3
IOSC
OSC1
OSC3
EXOSC
0xf
1/32,768
1/1
0xe
1/16,384
0xd
1/8,192
0xc
1/4,096
0xb
1/2,048
0xa
1/1,024
0x9
1/512
0x8
1/256
0x7
1/128
0x6
1/64
0x5
1/32
0x4
1/16
0x3
1/8
0x2
1/4
0x1
1/2
0x0
1/1
(Note) The oscillation circuits/external input that are not supported in this IC cannot be
selected as the clock source.