Datasheet

Section 9 I/O Ports
Rev.6.00 Sep. 27, 2007 Page 414 of 1268
REJ09B0220-0600
Mode 6: In mode 6, port C pins function as address outputs or input ports. Input or output can be
specified on an individual bit basis. 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.
Port C pin functions in mode 6 are shown in figure 9.14.
A
7
(output)
A
6
(output)
A
5
(output)
A
4
(output)
A
3
(output)
A
2
(output)
A
1
(output)
A
0
(output)
Port C
PC
7
(input)
PC
6
(input)
PC
5
(input)
PC
4
(input)
PC
3
(input)
PC
2
(input)
PC
1
(input)
PC
0
(input)
When PCDDR = 1 When PCDDR = 0
Figure 9.14 Port C Pin Functions (Mode 6)
Mode 7: In mode 7, port C pins function as I/O ports. Input or output can be specified for each pin
on an individual bit basis. 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.
Port C pin functions in mode 7 are shown in figure 9.15.
PC
7
(I/O)
PC
6
(I/O)
PC
5
(I/O)
PC
4
(I/O)
PC
3
(I/O)
PC
2
(I/O)
PC
1
(I/O)
PC
0
(I/O)
Port C
Figure 9.15 Port C Pin Functions (Mode 7)