Renesas Hitachi H8S/2194 Series Hardware Manual page 284

16-bit single-chip microcomputer
Table of Contents

Advertisement

(2) Port Control Register 3 (PCR3)
Bit :
7
PCR37
Initial value :
0
R/W :
W
Port control register 3 (PCR3) controls the I/Os of pins P37 to P30 of port 3 in a unit of bit.
When PCR3 is set to 1, the corresponding P37 to P30 pins become output pins, and when it is set
to 0, they become input pins. When the relevant pin is set to a general I/O by PMR3, settings of
PCR3 and PDR3 become valid.
PCR3 is an 8-bit write-only register. When PCR3 is read, 1 is read. When reset, PCR3 is
initialized to H'00.
Bit n
PCR3n
Description
0
The P3n pin functions as an input pin
1
The P3n pin functions as an output pin
(3) Port Data Register 3 (PDR3)
7
Bit :
PDR37
Initial value :
0
R/W :
R/W
Port data register 3 (PDR3) stores the data for the pins P37 to P30 of port 3. When PCR3 is 1
(output), the PDR3 values are directly read if port 3 is read. Accordingly, the pin states are not
affected. When PCR3 is 0 (input), the pin states are read if port 3 is read.
PDR3 is an 8-bit read/write enable register. When reset, PDR3 is initialized to H'00.
6
5
PCR36
PCR35
PCR34
0
0
W
W
6
5
PDR36
PDR35
PDR34
0
0
R/W
R/W
4
3
PCR33
PCR32
0
0
W
W
W
4
3
PDR33
PDR32
0
0
R/W
R/W
R/W
Rev. 2.0, 11/00, page 257 of 1037
2
1
0
PCR31
PCR30
0
0
0
W
W
(Initial value)
(n = 7 to 0)
2
1
0
PDR31
PDR30
0
0
0
R/W
R/W

Advertisement

Table of Contents
loading

Table of Contents