SN8P2501D
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD Page 64 Version 1.5
7.4 I/O OPEN-DRAIN REGISTER
P1.0 is built-in open-drain function. P1.0 must be set as output mode when enable P1.0 open-drain function.
Open-drain external circuit is as following.
U
MCU2
U
VCC
Open-drain pin Open-drain pin
MCU1
Pull-up Resistor
The pull-up resistor is necessary. Open-drain output high is driven by pull-up resistor. Output low is sunken by MCU’s
pin.
Bit 0 P10OC: P1.0 open-drain control bit
0 = Disable open-drain mode
1 = Enable open-drain mode
Example: Enable P1.0 to open-drain mode and output high.
; Enable P1.0 output mode.
; Enable P1.0 open-drain function.
Note: P1OC is write only register. Setting P10OC must be used “MOV” instructions.
Example: Disable P1.0 to open-drain mode and output low.
; Disable P1.0 open-drain function.
Note: After disable P1.0 open-drain function, P1.0 mode returns to last I/O mode.