Datasheet

Section 8 I/O Ports
Rev. 2.00 Sep. 28, 2009 Page 188 of 870
REJ09B0429-0200
8.2.2 Port 2 Data Register (P2DR)
P2DR stores output data for the port 2 pins.
Bit Bit Name Initial Value R/W Description
7 P27DR 0 R/W
6 P26DR 0 R/W
5 P25DR 0 R/W
4 P24DR 0 R/W
3 P23DR 0 R/W
2 P22DR 0 R/W
1 P21DR 0 R/W
P2DR stores output data for the port 2 pins that are
used as the general output port.
If this register is read, the P2DR values are read
for the bits with the corresponding P2DDR bits set
to 1. For the bits with the corresponding P2DDR
bits cleared to 0, the pin states are read.
0 P20DR 0 R/W
8.2.3 Port 2 Pull-Up MOS Control Register (P2PCR)
P2PCR controls the port 2 built-in input pull-up MOSs.
Bit Bit Name Initial Value R/W Description
7 P27PCR 0 R/W
6 P26PCR 0 R/W
5 P25PCR 0 R/W
4 P24PCR 0 R/W
3 P23PCR 0 R/W
2 P22PCR 0 R/W
1 P21PCR 0 R/W
When the pins are in the input state, the
corresponding input pull-up MOS is turned on
when a P2PCR bit is set to 1.
Do not change the initial value when using the
address-data multiplex extended mos mode.
0 P20PCR 0 R/W