130
Port Mode Register 2 (PMR2)
Bit
7
6
5
4
3
2
1
0
IRQ0
—
POF1
NCS
SO1
SI1
SCK1
IRQ4
Initial value
0
1
0
0
0
0
0
0
Read/Write
R/W
—
R/W
R/W
R/W
R/W
R/W
R/W
PMR2 is an 8-bit read/write register for controlling the selection of pin functions for pins P2
0
to
P2
3
and P2
7
, controlling the PMOS on/off option for pin P2
3
/SO
1
, and controlling the TMIG input
noise canceller.
Upon reset, PMR2 is initialized to H'40.
Bits 7—P2
7
/
IRQ
0
Pin Function Switch (IRQ0): This bit selects whether pin P2
7
/
IRQ
0
is used as
P2
7
or as
IRQ
0
.
Bit 7: IRQ0
Description
0
Functions as P2
7
input pin
(initial value)
1
Functions as
IRQ
0
input pin
Bit 6—Reserved Bit: Bit 6 is reserved: it is always read as 1, and cannot be modified.
Bit 5—P2
3
/SO
1
pin PMOS control (POF1): This bit turns on and off the PMOS transistor in the
P2
3
/SO
1
pin output buffer.
Bit 5: POF1
Description
0
CMOS output
(initial value)
1
NMOS open-drain output
Bit 4—TMIG noise canceller select (NCS): This bit controls the noise canceller circuit for input
capture at pin TMIG.
Bit 4: NCS
Description
0
Noise canceller function not selected
(initial value)
1
Noise canceller function selected