Datasheet

Rev.6.00 Oct.28.2004 page 297 of 1016
REJ09B0138-0600H
9.7 Port 6
9.7.1 Overview
Port 6 is an 8-bit I/O port. Port 6 pins also function as interrupt input pins (IRQ0 to IRQ3), DMAC I/O pins (DREQ0,
TEND0, DREQ1, and TEND1), and bus control output pins (CS4 to CS7). The functions of pins P6
5
to P6
2
are the same in
all operating modes, while the functions of pins P6
7
, P6
6
, P6
1
, and P6
0
change according to the operating mode. Pins P6
7
to
P6
4
are schmitt-triggered inputs. Figure 9-6 shows the port 6 pin configuration.
P6
7
/IRQ3/CS7
P6
6
/IRQ2/CS6
P6
5
/IRQ1
P6
4
/IRQ0
P6
3
/TEND1
P6
2
/DREQ1
P6
1
/TEND0/CS5
P6
0
/DREQ0/CS4
P6
7
(I/O)/IRQ3 (input)
P6
6
(I/O)/IRQ2 (input)
P6
5
(I/O)/IRQ1 (input)
P6
4
(I/O)/IRQ0 (input)
P6
3
(I/O)/TEND1 (output)
P6
2
(I/O)/DREQ1 (input)
P6
1
(I/O)/TEND0 (output)
P6
0
(I/O)/DREQ0 (input)
Port 6 pins Pin functions in mode 7*
P6
7
(input)/IRQ3 (input)/CS7 (output)
P6
6
(input)/IRQ2 (input)/CS6 (output)
P6
5
(I/O)/IRQ1 (input)
P6
4
(I/O)/IRQ0 (input)
P6
3
(I/O)/TEND1 (output)
P6
2
(I/O)/DREQ1 (input)
P6
1
(input)/TEND0 (output)/CS5 (output)
P6
0
(input)/DREQ0 (input)/CS4 (output)
Note: * Modes 6 and 7 are provided in the on-chip ROM version only.
Pin functions in modes 4 to 6*
Port 6
Figure 9-6 Port 6 Pin Functions
9.7.2 Register Configuration
Table 9-11 shows the port 6 register configuration.
Table 9-11 Port 6 Registers
Name Abbreviation R/W Initial Value Address*
Port 6 data direction register P6DDR W H'00 H'FEB5
Port 6 data register P6DR R/W H'00 H'FF65
Port 6 register PORT6 R Undefined H'FF55
Note: * Lower 16 bits of the address.