Datasheet

Table Of Contents
Section 9 I/O Ports
REJ09B0140-0900 Rev. 9.00 Page 259 of 846
Sep 16, 2010
H8S/2215 Group
9.8.1 Port C Data Direction Register (PCDDR)
The individual bits of PCDDR specify input or output for the pins of port C. Since this is a write-
only register, bit manipulation instructions should not be used to write to it. For details, see section
2.9.4, Accessing Registers Containing Write-Only Bits.
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 4 and 5
Port C pins are address outputs regardless of the PCDDR
settings.
Mode 6
Setting a PCDDR bit to 1 makes the corresponding port C
pin an address output, while clearing the bit to 0 makes
the pin an input port.
Mode 7
Setting a PCDDR bit to 1 makes the corresponding port C
pin an output port, while clearing the bit to 0 makes the
pin an input port.
9.8.2 Port C Data Register (PCDR)
PCDR stores output data for the port C pins.
Bit Bit Name Initial Value R/W Description
7 PC7DR 0 R/W
6 PC6DR 0 R/W
5 PC5DR 0 R/W
4 PC4DR 0 R/W
3 PC3DR 0 R/W
2 PC2DR 0 R/W
1 PC1DR 0 R/W
An output data for a pin is stored when the pin function is
specified to a general purpose output port.
0 PC0DR 0 R/W