h8s-2649 Renesas Electronics Corporation., h8s-2649 Datasheet - Page 235

no-image

h8s-2649

Manufacturer Part Number
h8s-2649
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2600 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
9.7
Port A is an 8-bit I/O port. Port A pins also function as address bus outputs and LCD driver output
pins. The pin functions change according to the operating mode.
Port A has a built-in MOS input pull-up function that can be controlled by software.
• Port A data direction register (PADDR)
• Port A data register (PADR)
• Port A register (PORTA)
• Port A pull-up MOS control register (PAPCR)
• Port A open-drain control register (PAODR)
9.7.1
PADDR is a register, the individual bits of which specify input or output for the pins of port A.
PADDR cannot be read; if it is, an undefined value will be read.
Bit
7
6
5
4
3
2
1
0
Port A
Port A Data Direction Register (PADDR)
Bit Name
PA7DDR
PA6DDR
PA5DDR
PA4DDR
PA3DDR
PA2DDR
PA1DDR
PA0DDR
Initial
Value
0
0
0
0
0
0
0
0
R/W
W
W
W
W
W
W
W
W
Description
Mode 7:
These function as segment pins if the values of bits
SGS in LPCR are other than B'0000. If the values of
bits SGS are B'0000, setting a PADDR bit to 1 makes
the corresponding port A pin an output port, and
clearing a bit to 0 makes the corresponding pin an input
port.
Modes 4 to 6:
These function as segment pins if the values of bits
SGS in LPCR, the LCD driver, are other than B'0000. If
the values of bits SGS are B'0000, the port A pins
function as address outputs as specified by the setting
of bits AE3 to AE0 of PFCR, regardless of the values of
bits PA7DDR to PA0DDR. Also, when the pins are not
used as address outputs, setting a PADDR bit to 1
makes the corresponding port A pin an output port, and
clearing a bit to 0 makes the corresponding pin an input
port.
Rev. 2.00 Dec. 05, 2005 Page 197 of 724
Section 9 I/O Ports
REJ09B0200-0200

Related parts for h8s-2649