RX610 Group
14. I/O Ports
R01UH0032EJ0120 Rev.1.20
Page 381 of 1006
Feb 20, 2013
14.2.4
Input Buffer Control Register (ICR)
Addresses: P0.ICR 0008 C060h, P1.ICR 0008 C061h, P2.ICR 0008 C062h, P3.ICR 0008 C063h,
P4.ICR 0008 C064h, P5.ICR 0008 C065h, P6.ICR 0008 C066h, P7.ICR 0008 C067h,
P8.ICR 0008 C068h, P9.ICR 0008 C069h, PA.ICR 0008 C06Ah, PB.ICR 0008 C06Bh,
PC.ICR 0008 C06Ch, PD.ICR 0008 C06Dh, PE.ICR 0008 C06Eh, PF.ICR 0008 C06Fh,
PG.ICR 0008 C070h, PH.ICR 0008 C071h
b7
b6
b5
b4
b3
b2
b1
b0
Value after reset:
0
0
0
0
0
0
0
0
B7
B6
B5
B4
B3
B2
B1
B0
Note:
The lower six bits are valid and the upper two bits are reserved in P0.ICR.
The lower seven bits are valid and the upper one bit is reserved in P8.ICR.
The lower seven bits are valid and the upper one bit is reserved in PF.ICR.
The reserved bits are read as 0. The write value should be 0.
Bit
Symbol Bit Name
Description
R/W
b0
B0
*
Pm0 Input Buffer Control (m = 0 to 9 and A to E)
0: The input buffer for the corresponding
pin is disabled, and the input signal is
fixed to high level.
1: The input buffer for the corresponding
pin is enabled.
R/W
b1
B1
*
Pm1 Input Buffer Control
R/W
b2
B2
*
Pm2 Input Buffer Control
R/W
b3
B3
*
Pm3 Input Buffer Control
R/W
b4
B4
*
Pm4 Input Buffer Control
R/W
b5
B5
*
Pm5 Input Buffer Control
R/W
b6
B6
*
Pm6 Input Buffer Control
R/W
b7
B7
*
Pm7 Input Buffer Control
R/W
Note:
*
For pins being used as input pins for peripheral modules, set the corresponding bits to 1. Set the bits
corresponding to pins that are not being used for their input functions or are being used as analog I/O pins
to 0.
Each ICR controls the input buffers for the individual pins of the corresponding port.
Each bit of a Pm.ICR (m = 0 to 9 and A to E) corresponds to a pin of Pm, and the settings can change from bit to bit.
When a Pm.PORT register is read, the pin states of the corresponding port are read out regardless of the values in
Pm.ICR. For bits where the value in Pm.ICR is 0, however, the value may not reflect the pin state on the corresponding
peripheral module side.
Changes in the settings of a Pm.ICR may generate edges internally, depending on the pin state. For this reason, change
the settings of Pm.ICR while the corresponding input pins are not in use. For example, in the case of IRQn (n = 0 to 15)
inputs, change settings of the corresponding Pm.ICR with interrupts disabled by clearing the IR flag in IRi (i = 64 to79
("i" shows an interrupt vector number)) of the interrupt control unit (ICU) to 0, and then enable the corresponding
interrupts. If a change to a Pm.ICR setting does generate an edge, negate the edge.