Input Buffer Control Register (Pnicr) (N = 1 To 3, 5, 6, A, B, D To F, H, And I) - Renesas H8SX/1650 Hardware Manual

Renesas 32-bit cisc microcomputer h8sx family / h8sx/1600 series
Table of Contents

Advertisement

Section 8 I/O Ports
8.1.4

Input Buffer Control Register (PnICR) (n = 1 to 3, 5, 6, A, B, D to F, H, and I)

ICR is an 8-bit readable/writable register that controls the port input buffers.
For bits in ICR set to 1, the input buffers of the corresponding pins are valid. For bits in ICR
cleared to 0, the input buffers of the corresponding pins are invalid and the input signals are fixed
high.
When the pin functions as an input for the peripheral modules, the corresponding bits should be
set to 1. The initial value should be written to a bit whose corresponding pin is not used as an input
or is used as an analog input/output pin.
If the bits in ICR have been cleared to 0, the pin state is not reflected to the peripheral modules.
When PORT is read, the pin status is always read regardless of the ICR value.
If ICR is modified, an internal edge may occur depending on the pin status. Accordingly, ICR
should be modified when the corresponding input pins are not used. For example, in IRQ input,
modify ICR while the corresponding interrupt is disabled, clear the IRQF flag in ISR of the
interrupt controller to 0, and then enable the corresponding interrupt. If an edge occurs after the
ICR setting, the edge should be cancelled.
The initial value of ICR is H'00.
Bit
7
Bit Name
Pn7ICR
Initial Value
0
R/W
R/W
Note: The lower six bits are valid and the upper two bits are reserved for port 6 registers.
The lower four bits are valid and the upper four bits are reserved for port B registers.
Rev.2.00 Jun. 28, 2007 Page 260 of 666
REJ09B0311-0200
6
5
Pn6ICR
Pn5ICR
0
0
R/W
R/W
4
3
Pn4ICR
Pn3ICR
0
0
R/W
R/W
2
1
Pn2ICR
Pn1ICR
0
0
R/W
R/W
0
Pn0ICR
0
R/W

Advertisement

Table of Contents
loading

This manual is also suitable for:

R5s61650cH8sx/1650c

Table of Contents