Hitachi H8/329 Series Hardware Manual page 110

Single-chip microcomputer
Table of Contents

Advertisement

5.7 Port 6
Port 6 is an 8-bit input/output port that also provides input and output pins for the 16-bit free-
running timer and 8-bit timers. The pin functions depend on control bits in the control registers of
the timers. Pins not used by the timers are available for general-purpose input/output. Table 5-15
lists the pin functions, which are the same in both the expanded and single-chip modes.
Table 5-15. Port 6 Pin Functions (Modes 1 to 3)
Usage
Pin functions (Modes 1 to 3)
I/O port
P6
0
16-bit timer
FTCI
8-bit timer
TMCI
See section 6, "16-Bit Free-Running Timer," and section 7, "8-Bit Timers" for details of the timer
control bits.
Pins of port 6 can drive a single TTL load and a 90pF capacitive load when they are used as output
pins. They can also drive a Darlington pair.
Table 5-16 details the port 6 registers.
Table 5-16. Port 6 Registers
Name
Port 6 data direction register
Port 6 data register
Port 6 Data Direction Register (P6DDR)—H'FFB9
Bit
7
P6
DDR P6
7
Initial value
0
Read/Write
W
P6DDR is an 8-bit register that selects the direction of each pin in port 6. A pin functions as an
output pin if the corresponding bit in P6DDR is set to "1," and as an input pin if the bit is cleared to
"0."
P6
P6
P6
1
2
FTOA
FTIA
FTIB
TMRI
0
Abbreviation
P6DDR
P6DR
6
5
DDR P6
DDR P6
6
5
0
0
W
W
P6
P6
3
4
5
FTIC
FTID
TMO
TMCI
0
0
1
Read/Write
Initial value
W
H'00
R/W
H'00
4
3
2
DDR P6
DDR P6
DDR P6
4
3
2
0
0
0
W
W
W
101
P6
P6
6
7
FTOB
TMRI
TMO
1
1
Address
H'FFB9
H'FFBB
1
0
DDR P6
DDR
1
0
0
0
W
W

Advertisement

Table of Contents
loading

Table of Contents