Datasheet
Section 10 I/O Ports
Page 630 of 1408 R01UH0309EJ0500 Rev. 5.00
Sep 24, 2012
H8S/2456, H8S/2456R, H8S/2454 Group
10.11 Port C
Port C is an 8-bit I/O port that also has other functions. Port C has the following registers.
• Port C data direction register (PCDDR)
• Port C data register (PCDR)
• Port C register (PORTC)
• Port C pull-up MOS control register (PCPCR)
• Port C open drain control register (PCODR)
10.11.1 Port C Data Direction Register (PCDDR)
The individual bits of PCDDR specify input or output for the pins of port C. PCDDR cannot be
read; if it is, an undefined value will be read.
Bit Bit Name Initial Value R/W Description
7 PC7DDR 0 W
6 PC6DDR 0 W
5 PC5DDR 0 W
4 PC4DDR 0 W
3 PC3DDR 0 W
2 PC2DDR 0 W
1 PC1DDR 0 W
0 PC0DDR 0 W
• Modes 1 and 2
Port C pins are address outputs regardless of
the PCDDR settings.
• Mode 4 Modes 3 and 7(EXPE = 1)
Setting a PCDDR bit to 1 makes the
corresponding pin an address output, while
clearing a PCDDR to 0 makes the corresponding
pin an input port.
• Modes 3 and 7 (EXPE = 0)
Port C is an I/O port, and its pin functions can be
switched with PCDDR.