参数资料
型号: SN8P1603S
厂商: SONIX Technology Co., Ltd.
英文描述: 8-Bit Micro-Controller
中文描述: 8位微控制器
文件页数: 73/94页
文件大小: 540K
代理商: SN8P1603S
SN8P1600
8-bit micro-controller
SONiX TECHNOLOGY CO., LTD
Page 73
Revision 1.94
I/O PORT MODE
The port direction is programmed by PnM register. Port 0 is always input mode. Port 1 and Port 2 can select input or
output direction. The each bit of PnM is set to “0”, the I/O pin is input mode. The each bit of PnM is set to “1”, the I/O
pin is output mode.
SN8P1602/1603
0C1H
Bit 7
Bit 6
Bit 5
Bit 4
P1M
0
0
0
P14M
Read/Write
-
-
-
R/W
After reset
-
-
-
0
SN8P1604
0C1H
Bit 7
Bit 6
Bit 5
Bit 4
P1M
P17M
P16M
P15M
P14M
Read/Write
R/W
R/W
R/W
R/W
After reset
0
0
0
0
SN8P1602/1603/1604
0C2H
Bit 7
Bit 6
Bit 5
Bit 4
P2M
P27M
P26M
P25M
P24M
Read/Write
R/W
R/W
R/W
R/W
After reset
0
0
0
0
SN8P1604
0C5H
Bit 7
Bit 6
Bit 5
Bit 4
P5M
0
0
0
0
Read/Write
-
-
-
-
After reset
-
-
-
-
The PnM registers are read/write bi-direction registers. Users can program them by bit control
instructions (B0BSET, B0BCLR).
Example: I/O mode selecting.
CLR
P1M
; Set all ports to be input mode.
CLR
P2M
MOV
A, #0FFH
; Set all ports to be output mode.
B0MOV
P1M, A
B0MOV
P2M, A
B0BCLR
P1M.2
; Set P1.2 to be input mode.
B0BSET
P1M.2
; Set P1.2 to be output mode.
Bit 3
P13M
R/W
0
Bit 2
P12M
R/W
0
Bit 1
P11M
R/W
0
Bit 0
P10M
R/W
0
Bit 3
P13M
R/W
0
Bit 2
P12M
R/W
0
Bit 1
P11M
R/W
0
Bit 0
P10M
R/W
0
Bit 3
P23M
R/W
0
Bit 2
P22M
R/W
0
Bit 1
P21M
R/W
0
Bit 0
P20M
R/W
0
Bit 3
P53M
R/W
0
Bit 2
P52M
R/W
0
Bit 1
P51M
R/W
0
Bit 0
P50M
R/W
0
相关PDF资料
PDF描述
SN8P1603X 8-Bit Micro-Controller
SN8P1604 8-Bit Micro-Controller
SN8P1604AK 8-Bit Micro-Controller
SN8P1604AP 8-Bit Micro-Controller
SN8P1604AQ 8-Bit Micro-Controller
相关代理商/技术参数
参数描述
SN8P1603X 制造商:SONIX 制造商全称:SONIX 功能描述:8-Bit Micro-Controller
SN8P1604 制造商:SONIX 制造商全称:SONIX 功能描述:8-Bit Micro-Controller
SN8P1604AK 制造商:SONIX 制造商全称:SONIX 功能描述:8-Bit Micro-Controller
SN8P1604AP 制造商:SONIX 制造商全称:SONIX 功能描述:8-Bit Micro-Controller
SN8P1604AQ 制造商:SONIX 制造商全称:SONIX 功能描述:8-Bit Micro-Controller