![background image](http://html.mh-extra.com/html/epson/s1c17602/s1c17602_technical-manual_107783102.webp)
9 i/O PORTS (P)
9-12
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
P0 Port Key-entry Reset Configuration Register (P0_KRST)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
P0 Port Key-
entry Reset
Configuration
Register
(P0_KRST)
0x5209
(8 bits)
D7–2 –
reserved
–
–
–
0 when being read.
D1–0 P0KRST[1:0] P0 port key-entry reset
configuration
P0KRST[1:0]
Configuration 0x0 R/W
0x3
0x2
0x1
0x0
P0[3:0]
P0[2:0]
P0[1:0]
Disable
D[7:2]
Reserved
D[1:0]
P0KRST[1:0]: P0 Port Key-entry Reset Configuration Bits
Selects the port combination used for P0 port key-entry reset.
9.3 P0 Port Key-Entry Reset Settings
Table 9.
P0KRST[1:0]
Ports used for resetting
0x3
P00, P01, P02, P03
0x2
P00, P01, P02
0x1
P00, P01
0x0
Not used
(Default: 0x0)
The key-entry reset function performs an initial reset by inputting Low level simultaneously to the ports
selected here. For example, if P0KRST[1:0] is set to 0x3, an initial reset is performed when the four
ports P00 to P03 are simultaneously set to Low level.
Set P0KRST[1:0] to 0x0 when this reset function is not used.
note: The P0 port key-entry reset function is disabled at initial reset and cannot be used for power-
on reset.
P
x
Port input enable Registers (P
x
_ien)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
P
x
Port input
enable Register
(P
x
_ien)
0x520a
0x521a
0x522a
0x523a
0x524a
0x525a
(8 bits)
D7–0 P
x
ien[7:0] P
x
[7:0] port input enable
1 Enable
0 Disable
1
(0xff)
R/W
note: The P
x
IEN
y
bits for unavailable ports are reserved and always read as 0.
D[7:0]
P
x
ien[7:0]: P
x
[7:0] Port input enable Bits
Enables or disables port inputs.
1 (R/W): Enable (default)
0 (R/W): disable
P
x
IEN
y
is the input enable bit that corresponds directly to the P
xy
port. Setting to 1 enables input and
the corresponding port pin input or output signal level can be read out from the P
x
_IN register. Setting
to 0 disables input.
Refer to Table 9.3.1 for more information on port input/output status, including settings other than for
the P
x
_IEN register.