8. I/O Ports
Rev.3.00 Jul. 19, 2007 page 198 of 532
REJ09B0397-0300
8.6.2
Register Configuration and Description
Table 8.14 shows the port 5 register configuration.
Table 8.14 Port 5 Registers
Name Abbr.
R/W
Initial
Value
Address
Port data register 5
PDR5
R/W
H'00
H'FFD8
Port control register 5
PCR5
W
H'00
H'FFE8
Port pull-up control register 5
PUCR5
R/W
H'00
H'FFE2
Port mode register 5
PMR5
R/W
H'00
H'FFCC
Port Data Register 5 (PDR5)
Bit
7 6 5 4 3 2 1 0
P5
7
P5
6
P5
5
P5
4
P5
3
P5
2
P5
1
P5
0
Initial
value 0 0 0 0 0 0 0 0
Read/Write R/W
R/W
R/W
R/W R/W R/W R/W R/W
PDR5 is an 8-bit register that stores data for port 5 pins P5
7
to P5
0
. If port 5 is read while PCR5
bits are set to 1, the values stored in PDR5 are read, regardless of the actual pin states. If port 5 is
read while PCR5 bits are cleared to 0, the pin states are read.
Upon reset, PDR5 is initialized to H'00.
Port Control Register 5 (PCR5)
Bit
7 6 5 4 3 2 1 0
PCR5
7
PCR5
6
PCR5
5
PCR5
4
PCR5
3
PCR5
2
PCR5
1
PCR5
0
Initial
value 0 0 0 0 0 0 0 0
Read/Write W W W W W W W W
PCR5 is an 8-bit register for controlling whether each of the port 5 pins P5
7
to P5
0
functions as an
input pin or output pin. Setting a PCR5 bit to 1 makes the corresponding pin an output pin, while
clearing the bit to 0 makes the pin an input pin.
Upon reset, PCR5 is initialized to H'00.
PCR5 is a write-only register. All bits are read as 1.
Содержание F-ZTAT H8 Series
Страница 6: ...Rev 3 00 Jul 19 2007 page iv of xxiv REJ09B0397 0300...
Страница 194: ...7 RAM Rev 3 00 Jul 19 2007 page 168 of 532 REJ09B0397 0300...
Страница 234: ...8 I O Ports Rev 3 00 Jul 19 2007 page 208 of 532 REJ09B0397 0300...
Страница 274: ...9 Timers Rev 3 00 Jul 19 2007 page 248 of 532 REJ09B0397 0300...
Страница 352: ...12 A D Converter Rev 3 00 Jul 19 2007 page 326 of 532 REJ09B0397 0300...
Страница 466: ...16 Electrical Characteristics H8 3854 Group Rev 3 00 Jul 19 2007 page 440 of 532 REJ09B0397 0300...
Страница 561: ......