Hitachi H8S/2199 Hardware Manual page 235

Single-chip microcomputer
Table of Contents

Advertisement

Port Control Register 6 (PCR6)
Bit :
PCR67
Initial value :
R/W :
Port control register 6 (PCR6) selects the general I/O of port 6 and controls the realtime output in
a unit of bit together with PMR6.
When PMR6 = 0, the corresponding P67 to P60 pins become general output pins if PCR6 is set to
1, and they become general input pins if it is set to 0.
When PMR6 = 1, PCR6 controls the corresponding RP7 to RP0 realtime output pins. For details,
see section 10.8.4, Operation.
PCR6 is an 8-bit write-only register. When PCR6 is read, 1 is read. When reset, PCR6 is
initialized to H'00.
PMR6
PCR6
Bit n
Bit n
PMR6n
PCR6n
0
0
1
1
*
Note: * Don't care
Port Data Register 6 (PDR6)
Bit :
PDR67
Initial value :
R/W :
R/W
Port data register 6 (PDR6) stores the data for the pins P67 to P60 of port 6.
For PMR6 = 0, when PCR6 is 1 (output), the PDR6 values are directly read if port 6 is read.
Accordingly, the pin states are not affected. When PCR6 is 0 (input), the pin states are read if port
6 is read.
For PMR6 = 1, port 6 becomes a realtime output pin. For details, see section 10.7.4, Operation.
PDR6 is an 8-bit read/write enable register. When reset, PDR6 is initialized to H'00.
7
6
PCR66
PCR65
0
0
W
W
Description
The P6n/RPn pin functions as a P6n general I/O input pin
The P6n/RPn pin functions as a P6n general output pin
The P6n/RPn pin functions as an RPn realtime output pin
7
6
PDR66
PDR65
0
0
R/W
R/W
5
4
PCR64
PCR63
0
0
W
W
5
4
PDR64
PDR63
0
0
R/W
R/W
3
2
PCR62
PCR61
0
0
W
W
3
2
PDR62
PDR61
0
0
R/W
R/W
Rev. 1.0, 02/00, page 221 of 1141
1
0
PCR60
0
0
W
W
(Initial value)
(n = 7 to 0)
1
0
PDR60
0
0
R/W

Advertisement

Table of Contents
loading

Table of Contents