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

SN8F2250B 参数 Datasheet PDF下载

SN8F2250B图片预览
型号: SN8F2250B
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 133 页 / 1554 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8F2250B的Datasheet PDF文件第55页浏览型号SN8F2250B的Datasheet PDF文件第56页浏览型号SN8F2250B的Datasheet PDF文件第57页浏览型号SN8F2250B的Datasheet PDF文件第58页浏览型号SN8F2250B的Datasheet PDF文件第60页浏览型号SN8F2250B的Datasheet PDF文件第61页浏览型号SN8F2250B的Datasheet PDF文件第62页浏览型号SN8F2250B的Datasheet PDF文件第63页  
SN8F2250B Series  
USB 2.0 Full-Speed 8-Bit Micro-Controller  
6.4 GIE GLOBAL INTERRUPT OPERATION  
GIE is the global interrupt control bit. All interrupts start work after the GIE = 1 It is necessary for interrupt service  
request. One of the interrupt requests occurs, and the program counter (PC) points to the interrupt vector (ORG 8) and  
the stack add 1 level.  
0DFH  
STKP  
Read/Write  
After reset  
Bit 7  
GIE  
R/W  
0
Bit 6  
Bit 5  
Bit 4  
Bit 3  
Bit 2  
STKPB2  
R/W  
Bit 1  
STKPB1  
R/W  
Bit 0  
STKPB0  
R/W  
-
-
-
-
-
-
-
-
-
-
-
-
1
1
1
Bit 7  
GIE: Global interrupt control bit.  
0 = Disable global interrupt.  
1 = Enable global interrupt.  
Example: Set global interrupt control bit (GIE).  
B0BSET FGIE  
; Enable GIE  
’
Note: The GIE bit must enable during all interrupt operation.  
6.5 PUSH, POP ROUTINE  
When any interrupt occurs, system will jump to ORG 8 and execute interrupt service routine. It is necessary to save  
ACC, PFLAG data. The chip includes “PUSH”, “POP” for in/out interrupt service routine. The two instructions save and  
load ACC, PFLAG data into buffers and avoid main routine error after interrupt service routine finishing.  
’
Note: ”PUSH”, “POP” instructions save and load ACC/PFLAG without (NT0, NPD). PUSH/POP buffer is  
an unique buffer and only one level.  
¾
Example: Store ACC and PAFLG data by PUSH, POP instructions when interrupt service routine  
executed.  
ORG  
JMP  
0
START  
ORG  
JMP  
8
INT_SERVICE  
ORG  
10H  
START:  
INT_SERVICE:  
PUSH  
; Save ACC and PFLAG to buffers.  
POP  
; Load ACC and PFLAG from buffers.  
RETI  
; Exit interrupt service vector  
ENDP  
SONiX TECHNOLOGY CO., LTD  
Page 59  
Version 1.1  
 
 复制成功!