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

SN8A1702AP 参数 Datasheet PDF下载

SN8A1702AP图片预览
型号: SN8A1702AP
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 145 页 / 774 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8A1702AP的Datasheet PDF文件第23页浏览型号SN8A1702AP的Datasheet PDF文件第24页浏览型号SN8A1702AP的Datasheet PDF文件第25页浏览型号SN8A1702AP的Datasheet PDF文件第26页浏览型号SN8A1702AP的Datasheet PDF文件第28页浏览型号SN8A1702AP的Datasheet PDF文件第29页浏览型号SN8A1702AP的Datasheet PDF文件第30页浏览型号SN8A1702AP的Datasheet PDF文件第31页  
SN8P1700  
8-bit micro-controller build-in 12-bit ADC  
Example 2: The demo program includes interrupt service routine and the address of interrupt service  
routine is in a special address of general-purpose area.  
CHIP SN8P1708  
ORG  
JMP  
.
0
; 0000H  
START  
; Jump to user program address.  
; 0001H ~ 0007H are reserved  
ORG  
JMP  
08  
MY_IRQ  
; 0008H, Jump to interrupt service routine address  
ORG  
10H  
START:  
; 0010H, The head of user program.  
.
; User program  
.
.
.
; End of user program  
JMP  
START  
MY_IRQ:  
;The head of interrupt service routine  
; B0XCH doesn’t change C, Z flag  
; Push 80H ~ 87H system registers  
B0XCH  
A, ACCBUF  
PUSH  
.
.
.
; Pop 80H ~ 87H system registers  
; End of interrupt service routine  
; End of program  
POP  
B0XCH  
RETI  
A, ACCBUF  
ENDP  
Remark: It is easy to get the rules of SONIX program from demo programs given above. These points are  
as following.  
1. The address 0000H is a “JMP” instruction to make the program go to general-purpose ROM area. The  
0004H~0007H are reserved. Users have to skip 0004H~0007H addresses. It is very important and  
necessary.  
2. The interrupt service starts from 0008H. Users can put the whole interrupt service routine from 0008H  
(Example1) or to put a “JMP” instruction in 0008H then place the interrupt service routine in other  
general-purpose ROM area (Example2) to get more modularized coding style.  
SONiX TECHNOLOGY CO., LTD  
Page 27  
Revision 1.94  
 复制成功!