HD64336901G Renesas Technology, HD64336901G Datasheet - Page 143

no-image

HD64336901G

Manufacturer Part Number
HD64336901G
Description
(HD64xxx Series) 16-BIT MICROCONTROLLER
Manufacturer
Renesas Technology
Datasheet
9.2
Port 2 is a general I/O port also functioning as a SCI3 I/O pin. Each pin of the port 2 is shown in
figure 9.2. The register settings of PMR1 and SCI3 have priority for functions of the pins for both
uses.
Port 2 has the following registers.
9.2.1
PCR2 selects inputs/outputs in bit units for pins to be used as general I/O ports of port 2.
Bit
7 to 3
2
1
0
Port control register 2 (PCR2)
Port data register 2 (PDR2)
Bit Name
PCR22
PCR21
PCR20
Port 2
Port Control Register 2 (PCR2)
Initial
Value
0
0
0
Figure 9.2 Port 2 Pin Configuration
R/W
W
W
W
Port 2
Description
Reserved
When each of the port 2 pins, P22 to P20, functions as an
general I/O port, setting a PCR2 bit to 1 makes the
corresponding pin an output port, while clearing the bit to
0 makes the pin an input port.
P22/TXD
P21/RXD
P20/SCK3
Rev. 1.00, 11/03, page 115 of 376

Related parts for HD64336901G