Port C Data Register (Pcdr) - Hitachi SH7709S Hardware Manual

Superh risc engine
Table of Contents

Advertisement

19.4.2

Port C Data Register (PCDR)

Bit:
PC7DT
Initial value:
R/W:
R/W
The port C data register (PCDR) is an 8-bit readable/writable register that stores data for pins
PTC7 to PTC0. Bits PC7DT to PC0DT correspond to pins PTC7 to PTC0. When the pin function
is general output port, if the port is read, the value of the corresponding PCDR bit is returned
directly. When the function is general input port, if the port is read, the corresponding pin level is
read. Table 19.6 shows the function of PCDR.
PCDR is initialized to H'00 by a power-on reset, after which the general input port function (pull-
up MOS on) is set as the initial pin function, and the corresponding pin levels are read.
PCDR retains its previous value in standby mode and sleep mode, and in a manual reset.
Table 19.6 Port C Data Register (PCDR) Read/Write Operations
PCnMD1 PCnMD0 Pin State
0
0
Other function
(See table 18.1)
1
Output
1
0
Input (Pull-up
MOS on)
1
Input (Pull-up
MOS off)
596
7
6
5
PC6DT
PC5DT
0
0
0
R/W
R/W
Read
PCDR value
PCDR value
Pin state
Pin state
4
3
2
PC4DT
PC3DT
PC2DT
0
0
0
R/W
R/W
R/W
Write
Value is written to PCDR, but does not affect
pin state.
Write value is output from pin.
Value is written to PCDR, but does not affect
pin state.
Value is written to PCDR, but does not affect
pin state.
1
0
PC1DT
PC0DT
0
0
R/W
R/W
(n = 7 to 0)

Advertisement

Table of Contents
loading

Table of Contents