Datasheet
Section 10 I/O Ports
Rev.7.00 Mar. 18, 2009 page 540 of 1136
REJ09B0109-0700
• PG1/CS1, PG0/CS0
The pin function is switched as shown below according to the operating mode, bit EXPE, bit
CSnE, and bit PGnDDR.
Operating
mode
1, 2, 4
7
EXPE ⎯ 0 1
CSnE 0 1 ⎯ 0 1
PGnDDR 0 1 0 1 0 1 0 1 0 1
Pin function PG2
input
PG2
output
PG2
input
CSn
output
PG2
input
PG2
output
PG2
input
PG2
output
PG2
input
CSn
output
(n =1 or 0)
10.16 Port H
Port H is a 4-bit I/O port that also has other functions. The port H has the following registers. For
details on the port function control register 0, refer to section 10.15.4, Port Function Control
Register 0 (PFCR0), and for details on the port function control register 2, refer to section 10.3.5,
Port Function Control Register 2 (PFCR2).
• Port H data direction register (PHDDR)
• Port H data register (PHDR)
• Port H register (PORTH)
• Port Function Control Register 0 (PFCR0)
• Port Function Control Register 2 (PFCR2)
10.16.1 Port H Data Direction Register (PHDDR)
The individual bits of PHDDR specify input or output for the pins of port H.
PHDDR cannot be read; if it is, an undefined value will be read.










