Port 6 Data Direction Register (P6Ddr); Port 6 Data Register (P6Dr) - Renesas H8S/2158 User Manual

16-bit single-chip microcomputer h8s family/h8s/2100 series
Table of Contents

Advertisement

9.6.1

Port 6 Data Direction Register (P6DDR)

The individual bits of P6DDR specify input or output for the pins of port 6.
Bit
Bit Name
7
P67DDR
6
P66DDR
5
P65DDR
4
P64DDR
3
P63DDR
2
P62DDR
1
P61DDR
0
P60DDR
9.6.2

Port 6 Data Register (P6DR)

P6DR stores output data for the port 6 pins.
Bit
Bit Name
7
P67DR
6
P66DR
5
P65DR
4
P64DR
3
P63DR
2
P62DR
1
P61DR
0
P60DR
Initial Value
R/W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
Initial Value
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
Description
Extended mode (16-bit data bus):
The port functions as the data bus regardless of
the values in these bits.
Single-chip mode/extended mode (8-bit data bus):
If port 6 pins are specified for use as the general
I/O port, the corresponding port 6 pins are output
ports when the P6DDR bits are set to 1, and input
ports when cleared to 0.
Description
Extended mode (16-bit data bus):
If a port 6 read is performed while the P6DDR bits
are set to 1, the P6DR values are read. If a port 6
read is performed while the P6DDR bits are
cleared to 0, 1 is read.
Single-chip mode/extended mode (8-bit data bus):
P6DR stores output data for the port 6 pins that
are used as the general output port.
If a port 6 read is performed while the P6DDR bits
are set to 1, the P6DR values are read. If a port 6
read is performed while the P6DDR bits are
cleared to 0, the pin states are read.
Rev. 3.00 Jan 25, 2006 page 233 of 872
Section 9 I/O Ports
REJ09B0286-0300

Advertisement

Table of Contents
loading

Table of Contents