SN8P2740 Series
ADC, OP-amp, Comparator 8-Bit Micro-Controller
7.3 I/O PULL UP REGISTER
The I/O pins build in internal pull-up resistors and only support I/O input mode. The port internal pull-up resistor is
programmed by PnUR register. When the bit of PnUR register is “0”, the I/O pin‟s pull-up is disabled. When the bit of
PnUR register is “1”, the I/O pin‟s pull-up is enabled.
0E0H
P0UR
Read/Write
After reset
Bit 7
Bit 6
P06R
W
Bit 5
P05R
W
Bit 4
Bit 3
P03R
W
Bit 2
P02R
W
Bit 1
Bit 0
P00R
W
-
-
-
-
-
-
-
-
-
0
0
0
0
0
0E1H
P1UR
Read/Write
After reset
Bit 7
Bit 6
P16R
W
Bit 5
P15R
W
Bit 4
P14R
W
Bit 3
P14R
W
Bit 2
P12R
W
Bit 1
P11R
W
Bit 0
P10R
W
-
-
-
0
0
0
0
0
0
0
0E4H
P4UR
Read/Write
After reset
Bit 7
P47R
W
Bit 6
P46R
W
Bit 5
P45R
W
Bit 4
P44R
W
Bit 3
P43R
W
Bit 2
P42R
W
Bit 1
P41R
W
Bit 0
P40R
W
0
0
0
0
0
0
0
0
Note:P0.4 is input only pin and without pull-up resister. The P0UR.4 is undefined.
Example: I/O Pull up Register
MOV
B0MOV
B0MOV
A, #0FFH
P0UR, A
P4UR,A
; Enable Port0, 4 Pull-up register,
;
SONiX TECHNOLOGY CO., LTD
Page 70
Version 2.0