Datasheet

622
18.3.7 Port C I/O Register (PCIOR)
The port C I/O register (PCIOR) is a 16-bit read/write register that selects input or output for the
16 port C pins. Bits PC15IOR–PC0IOR correspond to pins PC15/A15 to PC0/A0. PCIOR is
enabled when the port C pins function as general input/outputs (PC15–PC0). For other functions,
it is disabled.
When the port C pin functions are as PC15–PC0, a given pin in port C is an output pin if its
corresponding PCIOR bit is set to 1, and an input pin if the bit is cleared to 0.
PCIOR is initialized to H'0000 by external power-on reset; however, it is not initialized for manual
resets, reset by WDT, standby mode, or sleep mode, so the previous values are maintained.
Bit: 15 14 13 12 11 10 9 8
PC15
IOR
PC14
IOR
PC13
IOR
PC12
IOR
PC11
IOR
PC10
IOR
PC9
IOR
PC8
IOR
Initial value: 0 0 0 0 0 0 0 0
R/W: R/W R/W R/W R/W R/W R/W R/W R/W
Bit: 7 6 5 4 3 2 1 0
PC7
IOR
PC6
IOR
PC5
IOR
PC4
IOR
PC3
IOR
PC2
IOR
PC1
IOR
PC0
IOR
Initial value: 0 0 0 0 0 0 0 0
R/W: R/W R/W R/W R/W R/W R/W R/W R/W