欢迎访问ic37.com |
会员登录 免费注册
发布采购

SN8P26042A 参数 Datasheet PDF下载

SN8P26042A图片预览
型号: SN8P26042A
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 101 页 / 733 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8P26042A的Datasheet PDF文件第66页浏览型号SN8P26042A的Datasheet PDF文件第67页浏览型号SN8P26042A的Datasheet PDF文件第68页浏览型号SN8P26042A的Datasheet PDF文件第69页浏览型号SN8P26042A的Datasheet PDF文件第71页浏览型号SN8P26042A的Datasheet PDF文件第72页浏览型号SN8P26042A的Datasheet PDF文件第73页浏览型号SN8P26042A的Datasheet PDF文件第74页  
SN8P2604A  
8-Bit Micro-Controller  
7.3 I/O OPEN-DRAIN REGISTER  
P1.0, P1.1 are built-in open-drain function. P1.0, P1.1 must be set as output mode when enable open-drain function.  
Open-drain external circuit is as following.  
MCU1  
U
MCU2  
U
VCC  
Pull-up Resistor  
Open-drain pin  
Open-drain pin  
The pull-up resistor is necessary. Open-drain output high is driven by pull-up resistor. Output low is sunken by MCU’s  
pin.  
0E9H  
P1OC  
Read/Write  
After reset  
Bit 7  
Bit 6  
Bit 5  
Bit 4  
Bit 3  
Bit 2  
Bit 1  
P11OC  
W
Bit 0  
P10OC  
W
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
0
0
Bit 0  
P10OC: P10 open-drain control bit  
0 = Disable open-drain mode  
1 = Enable open-drain mode  
Bit 1  
P11OC: P11 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.  
B0BSET  
P1.0  
; Set P1.0 buffer high.  
B0BSET  
MOV  
B0MOV  
P10M  
A, #01H  
P1OC, A  
; 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.  
MOV  
A, #0  
; Disable P1.0 open-drain function.  
B0MOV  
P1OC, A  
’
Note: After disable P1.0 open-drain function, P1.0 mode returns to last I/O mode.  
SONiX TECHNOLOGY CO., LTD  
Page 70  
Version 0.3  
 复制成功!