MS51
Dec. 17, 2019
Page
40
of 316
Rev 1.01
M
S51
SE
RIES
TE
CHNICA
L REF
ERE
N
CE MA
NU
A
L
P0 / P1
Bit
Name
Description
7:0
P0[7:0]
Port 0
Port 0 is an maximum 8-bit general purpose I/O port.
P2
Bit
Name
Description
0
P2.0
Port 2 bit 0
P2.0 is an input-only pin when RPD (CONFIG0.2) is programmed as 0. When leaving RPD un-
programmed, P2.0 is always read as 0.
P3
Bit
Name
Description
0
P3.0
Port 3 bit 0
P3.0 is available only when the internal oscillator is used as the system clock. At this moment, P3.0
functions as a general purpose I/O.
If the system clock is not selected as the internal oscillator, P3.0 pin functions as OSCIN. A write to
P3.0 is invalid and P3.0 is always read as 0.