Section 8 I/O Ports
Rev. 6.00 Aug 04, 2006 page 245 of 680
REJ09B0145-0600
1. Port Data Register 9 (PDR9)
Bit
Initial value
Read/Write
7
P9
7
0
R/W
6
P9
6
0
R/W
5
P9
5
0
R/W
4
P9
4
0
R/W
3
P9
3
0
R/W
0
P9
0
0
R/W
2
P9
2
0
R/W
1
P9
1
0
R/W
PDR9 is an 8-bit register that stores data for port 9 pins P9
7
to P9
0
. If port 9 is read while PCR9
bits are set to 1, the values stored in PDR9 are read, regardless of the actual pin states. If port 9 is
read while PCR9 bits are cleared to 0, the pin states are read.
Upon reset, PDR9 is initialized to H'00.
2. Port Control Register 9 (PCR9)
Bit
Initial value
Read/Write
7
PCR9
7
0
W
6
PCR9
6
0
W
5
PCR9
5
0
W
4
PCR9
4
0
W
3
PCR9
3
0
W
0
PCR9
0
0
W
2
PCR9
2
0
W
1
PCR9
1
0
W
PCR9 is an 8-bit register for controlling whether each of the port 9 pins P9
7
to P9
0
functions as an
input pin or output pin. Setting a PCR9 bit to 1 makes the corresponding pin an output pin, while
clearing the bit to 0 makes the pin an input pin. The settings in PCR9 and PDR9 are valid only
when the corresponding pin is designated by bits SGS3 to SGS0 in LPCR as a general I/O pin.
Upon reset, PCR9 is initialized to H'00.
PCR9 is a write-only register, which is always read as all 1s.
Содержание H8/38342
Страница 8: ...Rev 6 00 Aug 04 2006 page vi of xxxvi...
Страница 12: ...Rev 6 00 Aug 04 2006 page x of xxxvi...
Страница 38: ...Rev 6 00 Aug 04 2006 page xxxvi of xxxvi...
Страница 76: ...Section 1 Overview Rev 6 00 Aug 04 2006 page 38 of 680 REJ09B0145 0600...
Страница 240: ...Section 7 RAM Rev 6 00 Aug 04 2006 page 202 of 680 REJ09B0145 0600...
Страница 468: ...Section 12 A D Converter Rev 6 00 Aug 04 2006 page 430 of 680 REJ09B0145 0600...
Страница 580: ...Section 15 Electrical Characteristics Rev 6 00 Aug 04 2006 page 542 of 680 REJ09B0145 0600...