
655
19.4.2
Port C Data Register (PCDR)
PCDR is a 16-bit read/write register that stores data for port C. The bits PC15DR–PC0DR
correspond to the PC15/A15–PC0/A0 pins. When the pins are used as ordinary outputs, they will
output whatever value is written in the PCDR; when PCDR is read, the register value will be read
regardless of the pin status. When the pins are used as ordinary inputs, the pin status rather than
the register value is read directly when PCDR is read. When a value is written to PCDR, that value
can be written into PCDR, but it will not affect the pin status. Table 19.10 shows the read/write
operations of the port C data register.
PCDR is initialized by an external power-on reset. However, PCDR is not initialized for a manual
reset, reset by WDT, standby mode, or sleep mode.
Bit:
15
14
13
12
11
10
9
8
PC15DR PC14DR PC13DR PC12DR PC11DR PC10DR PC9DR
PC8DR
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
PC7DR
PC6DR
PC5DR
PC4DR
PC3DR
PC2DR
PC1DR
PC0DR
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
Table 19.10 Read/Write Operation of the Port C Data Register (PCDR)
PCIOR
Pin Status
Read
Write
0
Ordinary input
Pin status
Can write to PCDR, but it has no effect on pin status
Other function
Pin status
Can write to PCDR, but it has no effect on pin status
1
Ordinary output
PCDR value
Value written is output by pin
Other function
PCDR value
Can write to PCDR, but it has no effect on pin status
Summary of Contents for SH7041 Series
Page 2: ......
Page 6: ......
Page 38: ...xvi ...
Page 44: ...6 ...
Page 46: ...8 ...
Page 48: ...10 ...
Page 82: ...44 ...
Page 114: ...76 ...
Page 118: ...80 ...
Page 124: ...86 ...
Page 170: ...132 ...
Page 250: ...212 ...
Page 492: ...454 ...
Page 506: ...468 ...
Page 604: ...566 ...
Page 684: ...646 ...
Page 706: ...668 ...
Page 778: ...740 ...
Page 780: ...742 ...
Page 818: ...780 ...
Page 850: ...812 ...
Page 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...