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

SN8P1602BV12 参数 Datasheet PDF下载

SN8P1602BV12图片预览
型号: SN8P1602BV12
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 76 页 / 432 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8P1602BV12的Datasheet PDF文件第55页浏览型号SN8P1602BV12的Datasheet PDF文件第56页浏览型号SN8P1602BV12的Datasheet PDF文件第57页浏览型号SN8P1602BV12的Datasheet PDF文件第58页浏览型号SN8P1602BV12的Datasheet PDF文件第60页浏览型号SN8P1602BV12的Datasheet PDF文件第61页浏览型号SN8P1602BV12的Datasheet PDF文件第62页浏览型号SN8P1602BV12的Datasheet PDF文件第63页  
SN8P1602B  
8-Bit Micro-Controller  
MULTI-INTERRUPT OPERATION  
Under certain condition, the software designer uses more than one interrupt requests. Processing multi-interrupt  
request requires setting the priority of the interrupt requests. The IRQ flags of interrupts are controlled by the interrupt  
event. Nevertheless, the IRQ flag “1” doesn’t mean the system will execute the interrupt vector. And which means the  
IRQ flags can be set “1” by the events without enable the interrupt. Once the event occurs, the IRQ will be logic “1”.  
The IRQ and its trigger event relationship is as the below table.  
Interrupt Name  
P00IRQ  
Trigger Event Description  
P0.0 trigger controlled by PEDGE  
TC0C overflow  
TC0IRQ  
For multi-interrupt conditions, two things need to be taking care of. One is to set the priority for these interrupt requests.  
Two is using IEN and IRQ flags to decide which interrupt to be executed. Users have to check interrupt control bit and  
interrupt request flag in interrupt routine.  
Example: Check the interrupt request under multi-interrupt operation  
ORG  
8
; Interrupt vector  
B0XCH  
B0MOV  
B0MOV  
A, ACCBUF  
A, PFLAG  
PFLAGBUF,A  
; Store ACC value.  
; Store PFLAG value  
INTP00CHK:  
INTTC0CHK:  
INT_EXIT:  
; Check INT0 interrupt request  
; Check P00IEN  
; Jump check to next interrupt  
; Check P00IRQ  
; Jump to INT0 interrupt service routine  
; Check TC0 interrupt request  
; Check TC0IEN  
; Jump to exit of IRQ  
; Check TC0IRQ  
; Jump to TC0 interrupt service routine  
B0BTS1  
JMP  
B0BTS0  
JMP  
FP00IEN  
INTTC0CHK  
FP00IRQ  
INTP00  
B0BTS1  
JMP  
B0BTS0  
JMP  
FTC0IEN  
INT_EXIT  
FTC0IRQ  
INTTC0  
B0MOV  
B0MOV  
B0XCH  
A, PFLAGBUF  
PFLAG,A  
A, ACCBUF  
; Restore PFLAG value  
; Restore ACC value.  
; Exit interrupt vector  
RETI  
SONiX TECHNOLOGY CO., LTD  
Page 59  
Version 1.2  
 复制成功!