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

SN8P1604AK 参数 Datasheet PDF下载

SN8P1604AK图片预览
型号: SN8P1604AK
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 94 页 / 531 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8P1604AK的Datasheet PDF文件第57页浏览型号SN8P1604AK的Datasheet PDF文件第58页浏览型号SN8P1604AK的Datasheet PDF文件第59页浏览型号SN8P1604AK的Datasheet PDF文件第60页浏览型号SN8P1604AK的Datasheet PDF文件第62页浏览型号SN8P1604AK的Datasheet PDF文件第63页浏览型号SN8P1604AK的Datasheet PDF文件第64页浏览型号SN8P1604AK的Datasheet PDF文件第65页  
SN8P1600  
8-bit micro-controller  
Example: TC1 interrupt service routine without auto-reload function.  
ORG  
JMP  
8
; Interrupt vector  
INT_SERVICE  
INT_SERVICE:  
B0XCH  
B0MOV  
B0MOV  
A, ACCBUF  
A, PFLAG  
PFLAGBUF, A  
; B0XCH doesn’t change C, Z flag  
; Save PFLAG register in a buffer  
B0BTS1  
JMP  
FTC1IRQ  
EXIT_INT  
; Check TC1IRQ  
; TC1IRQ = 0, exit interrupt vector  
B0BCLR  
MOV  
B0MOV  
.
FTC1IRQ  
A,#74H  
TC1C,A  
.
; Reset TC1IRQ  
; Reload TC1C  
; TC1 interrupt service routine  
.
.
JMP  
EXIT_INT  
; End of TC1 interrupt service routine and exit interrupt  
vector  
.
.
.
.
EXIT_INT:  
B0MOV  
B0MOV  
B0XCH  
A, PFLAGBUF  
PFLAG, A  
A, ACCBUF  
; Restore PFLAG register from buffer  
; B0XCH doesn’t change C, Z flag  
RETI  
; Exit interrupt vector  
Example: TC1 interrupt service routine with auto-reload.  
ORG  
JMP  
8
; Interrupt vector  
INT_SERVICE  
INT_SERVICE:  
B0XCH  
B0MOV  
B0MOV  
A, ACCBUF  
A, PFLAG  
PFLAGBUF, A  
; B0XCH doesn’t change C, Z flag  
; Save PFLAG register in a buffer  
B0BTS1  
JMP  
FTC1IRQ  
EXIT_INT  
; Check TC1IRQ  
; TC1IRQ = 0, exit interrupt vector  
B0BCLR  
FTC1IRQ  
; Reset TC1IRQ  
.
.
; TC1 interrupt service routine  
.
.
JMP  
EXIT_INT  
; End of TC1 interrupt service routine and exit interrupt  
vector  
.
.
.
.
EXIT_INT:  
B0MOV  
B0MOV  
B0XCH  
A, PFLAGBUF  
PFLAG, A  
A, ACCBUF  
; Restore PFLAG register from buffer  
; B0XCH doesn’t change C, Z flag  
RETI  
; Exit interrupt vector  
SONiX TECHNOLOGY CO., LTD  
Page 61  
Revision 1.94  
 复制成功!