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

SN8P26042A 参数 Datasheet PDF下载

SN8P26042A图片预览
型号: SN8P26042A
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 101 页 / 733 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8P26042A的Datasheet PDF文件第60页浏览型号SN8P26042A的Datasheet PDF文件第61页浏览型号SN8P26042A的Datasheet PDF文件第62页浏览型号SN8P26042A的Datasheet PDF文件第63页浏览型号SN8P26042A的Datasheet PDF文件第65页浏览型号SN8P26042A的Datasheet PDF文件第66页浏览型号SN8P26042A的Datasheet PDF文件第67页浏览型号SN8P26042A的Datasheet PDF文件第68页  
SN8P2604A  
8-Bit Micro-Controller  
6.7INT1 (P0.1) INTERRUPT OPERATION  
When the INT1 trigger occurs, the P01IRQ will be set to “1” no matter the P01IEN is enable or disable. If the P01IEN =  
1 and the trigger event P01IRQ is also set to be “1”. As the result, the system will execute the interrupt vector (ORG  
8). If the P01IEN = 0 and the trigger event P01IRQ is still set to be “1”. Moreover, the system won’t execute interrupt  
vector even when the P01IRQ is set to be “1”. Users need to be cautious with the operation under multi-interrupt  
situation.  
’
Note: The interrupt trigger direction of P0.1 is falling edge.  
Example: INT1 interrupt request setup.  
B0BSET  
B0BCLR  
B0BSET  
FP01IEN  
FP01IRQ  
FGIE  
; Enable INT1 interrupt service  
; Clear INT1 interrupt request flag  
; Enable GIE  
Example: INT1 interrupt service routine.  
ORG  
JMP  
8
; Interrupt vector  
INT_SERVICE  
INT_SERVICE:  
; Push routine to save ACC and PFLAG to buffers.  
B0BTS1  
JMP  
FP01IRQ  
EXIT_INT  
; Check P01IRQ  
; P01IRQ = 0, exit interrupt vector  
B0BCLR  
FP01IRQ  
; Reset P01IRQ  
; INT1 interrupt service routine  
EXIT_INT:  
; Pop routine to load ACC and PFLAG from buffers.  
; Exit interrupt vector  
RETI  
SONiX TECHNOLOGY CO., LTD  
Page 64  
Version 0.2  
 复制成功!