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

68HC908RFRK2 参数 Datasheet PDF下载

68HC908RFRK2图片预览
型号: 68HC908RFRK2
PDF下载: 下载PDF文件 查看货源
内容描述: 超前信息 [Advance Information]
分类和应用:
文件页数/大小: 250 页 / 2075 K
品牌: FREESCALE [ Freescale ]
 浏览型号68HC908RFRK2的Datasheet PDF文件第93页浏览型号68HC908RFRK2的Datasheet PDF文件第94页浏览型号68HC908RFRK2的Datasheet PDF文件第95页浏览型号68HC908RFRK2的Datasheet PDF文件第96页浏览型号68HC908RFRK2的Datasheet PDF文件第98页浏览型号68HC908RFRK2的Datasheet PDF文件第99页浏览型号68HC908RFRK2的Datasheet PDF文件第100页浏览型号68HC908RFRK2的Datasheet PDF文件第101页  
Freescale Semiconductor, Inc.  
System Integration Module (SIM)  
SIM Registers  
6.8 SIM Registers  
The SIM has three memory mapped registers:  
SIM break status register, SBSR  
SIM reset status register, SRSR  
SIM break flag control register, SBFCR  
6.8.1 SIM Break Status Register  
The SIM break status register (SBSR) contains a flag to indicate that a  
break caused an exit from stop or wait mode.  
Address: $FE00  
Bit 7  
6
5
4
3
2
1
SBSW  
See Note  
0
Bit 0  
R
Read:  
Write:  
Reset:  
R
R
R
R
R
R
R
= Reserved  
Note: Writing a logic 0 clears SBSW.  
Figure 6-17. SIM Break Status Register (SBSR)  
SBSW — SIM Break Stop/Wait Bit  
This status bit is useful in applications requiring a return to wait or stop  
mode after exiting from a break interrupt. Clear SBSW by writing a  
logic 0 to it. Reset clears SBSW.  
1 = Stop mode or wait mode was exited by break interrupt.  
0 = Stop mode or wait mode was not exited by break interrupt.  
SBSW can be read within the break state SWI routine. The user can  
modify the return address on the stack by subtracting one from it.  
(See code example.) Writing 0 to the SBSW bit clears it.  
;This code works if the H register has been pushed onto the stack in the break  
;service routine software. This code should be executed at the end of the  
;break service routine software.  
HIBYTE  
LOBYTE  
;
EQU  
EQU  
5
6
If not SBSW, do RTI  
BRCLR  
SBSW, SBSR, RETURN  
;See if wait mode or stop mode was exited  
;by break.  
;If RETURNLO is not zero,  
;then just decrement low byte.  
;Else deal with high byte, too.  
;Point to WAIT/STOP opcode.  
TST  
BNE  
DEC  
DEC  
PULH  
RTI  
LOBYTE,SP  
DOLO  
HIBYTE,SP  
LOBYTE,SP  
DOLO  
RETURN  
;Restore H register.  
MC68HC908RFRK2  
MOTOROLA  
AdvanceInformation  
System Integration Module (SIM)  
For More Information On This Product,  
Go to: www.freescale.com  
97  
 复制成功!