h8s-2161b Renesas Electronics Corporation., h8s-2161b Datasheet - Page 258

no-image

h8s-2161b

Manufacturer Part Number
h8s-2161b
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 8 I/O Ports
Note:
8.11
Port A is an 8-bit I/O port. Port A pins also function as keyboard buffer controller I/O pins, key-
sense interrupt input pins, expansion A/D converter input pins, and address output pins. Port A pin
functions change according to the operating mode. Port A input/output operates by VccB power
independent from the Vcc power. Up to 5 V can be applied to port A pins if VccB power is 5 V.
Port A has the following registers. PADDR and PAPIN have the same address.
Rev. 3.00 Mar 21, 2006 page 204 of 788
REJ09B0300-0300
Operating
Mode
ABW
HI12E
FGA20E
CS2E
P90DDR
Pin Function
P90/LWR/IRQ2/ADTRG/ECS2
The pin function is switched as shown below according to the combination of operating mode,
the ABW bit in WSCR, the HI12E and CS2E bits in SYSCR2, the FGA20E bit in HICR, and
the P90DDR bit.
Port A data direction register (PADDR)
Port A output data register (PAODR)
Port A input data register (PAPIN)
* When the IRQ2E bit in IER is set to 1 in mode 1, 2, or 3 (EXPE = 1) with the ABW bit in
Port A
WSCR set to 1, or in mode 2 and 3 (EXPE = 0), this pin is used as the IRQ2 input pin.
When TRGS1 and TRGS0 in ADCR of the A/D converter are both set to 1, this pin is
used as the ADTRG input pin.
LWR output
pin
0
Modes 1, 2, 3 (EXPE = 1)
input pin
P90
0
1
P90 output
IRQ2 input pin, ADTRG input pin *
pin
1
input pin
P90
0
Any one 0
Modes 2, 3 (EXPE = 0)
P90 output
pin
1
ECS2 input
pin
1
1
1

Related parts for h8s-2161b