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

SN8P1702S 参数 Datasheet PDF下载

SN8P1702S图片预览
型号: SN8P1702S
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 145 页 / 774 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8P1702S的Datasheet PDF文件第93页浏览型号SN8P1702S的Datasheet PDF文件第94页浏览型号SN8P1702S的Datasheet PDF文件第95页浏览型号SN8P1702S的Datasheet PDF文件第96页浏览型号SN8P1702S的Datasheet PDF文件第98页浏览型号SN8P1702S的Datasheet PDF文件第99页浏览型号SN8P1702S的Datasheet PDF文件第100页浏览型号SN8P1702S的Datasheet PDF文件第101页  
SN8P1700  
8-bit micro-controller build-in 12-bit ADC  
TC1 INTERRUPT OPERATION  
When the TC1C counter occurs overflow, the TC1IRQ will be set to “1” however the TC1IEN is enable or disable. If the  
TC1IEN = 1, the trigger event will make the TC1IRQ to be “1” and the system enter interrupt vector. If the TC1IEN = 0,  
the trigger event will make the TC1IRQ to be “1” but the system will not enter interrupt vector. Users need to care for  
the operation under multi-interrupt situation.  
Example: TC1 interrupt request setup.  
B0BCLR  
B0BCLR  
MOV  
FTC1IEN  
FT C1ENB  
A, #20H  
; Disable TC1 interrupt service  
; Disable TC1 timer  
;
B0MOV  
MOV  
B0MOV  
TC1M, A  
A, #74H  
TC1C, A  
; Set TC1 clock = Fcpu / 64  
; Set TC1C initial value = 74H  
; Set TC1 interval = 10 ms  
B0BSET  
B0BCLR  
B0BSET  
FTC1IEN  
FTC1IRQ  
FTC1ENB  
; Enable TC1 interrupt service  
; Clear TC1 interrupt request flag  
; Enable TC1 timer  
B0BSET  
FGIE  
; Enable GIE  
Example: TC1 interrupt service routine.  
ORG  
JMP  
8
; Interrupt vector  
INT_SERVICE  
INT_SERVICE:  
B0XCH  
PUSH  
A, ACCBUF  
; B0XCH doesnt change C, Z flag  
; Push  
B0BTS1  
JMP  
FTC1IRQ  
EXIT_INT  
; Check TC1IRQ  
; TC1IRQ = 0, exit interrupt vector  
B0BCLR  
FTC1IRQ  
; Reset TC1IRQ  
MOV  
A, #74H  
B0MOV  
TC1C, A  
; Reset TC1C.  
.
.
.
.
; TC1 interrupt service routine  
EXIT_INT:  
POP  
; Pop  
B0XCH  
A, ACCBUF  
; Restore ACC value.  
RETI  
; Exit interrupt vector  
SONiX TECHNOLOGY CO., LTD  
Page 97  
Revision 1.94  
 复制成功!