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

COP8AME9EMW8 参数 Datasheet PDF下载

COP8AME9EMW8图片预览
型号: COP8AME9EMW8
PDF下载: 下载PDF文件 查看货源
内容描述: 8位CMOS闪存微控制器,具有8K内存,双通道运算放大器,虚拟EEROM ,温度传感器, 10位A / D和掉电复位 [8-Bit CMOS Flash Microcontroller with 8k Memory, Dual Op Amps, Virtual EEROM, Temperature Sensor,10-Bit A/D and Brownout Reset]
分类和应用: 闪存传感器温度传感器微控制器和处理器外围集成电路运算放大器光电二极管时钟
文件页数/大小: 83 页 / 908 K
品牌: NSC [ National Semiconductor ]
 浏览型号COP8AME9EMW8的Datasheet PDF文件第56页浏览型号COP8AME9EMW8的Datasheet PDF文件第57页浏览型号COP8AME9EMW8的Datasheet PDF文件第58页浏览型号COP8AME9EMW8的Datasheet PDF文件第59页浏览型号COP8AME9EMW8的Datasheet PDF文件第61页浏览型号COP8AME9EMW8的Datasheet PDF文件第62页浏览型号COP8AME9EMW8的Datasheet PDF文件第63页浏览型号COP8AME9EMW8的Datasheet PDF文件第64页  
18.0 Interrupts (Continued)  
20006333  
FIGURE 32. VIS Operation  
18.4 NON-MASKABLE INTERRUPT  
18.4.1 Pending Flag  
The Software Trap has the highest priority of all interrupts.  
When a Software Trap occurs, the STPND bit is set. The GIE  
bit is not affected and the pending bit (not accessible by the  
user) is used to inhibit other interrupts and to direct the  
program to the ST service routine with the VIS instruction.  
Nothing can interrupt a Software Trap service routine except  
for another Software Trap. The STPND can be reset only by  
the RPND instruction or a chip Reset.  
There is a pending flag bit associated with the non-maskable  
Software Trap interrupt, called STPND. This pending flag is  
not memory-mapped and cannot be accessed directly by the  
software.  
The pending flag is reset to zero when a device Reset  
occurs. When the non-maskable interrupt occurs, the asso-  
ciated pending bit is set to 1. The interrupt service routine  
should contain an RPND instruction to reset the pending flag  
to zero. The RPND instruction always resets the STPND  
flag.  
The Software Trap indicates an unusual or unknown error  
condition. Generally, returning to normal execution at the  
point where the Software Trap occurred cannot be done  
reliably. Therefore, the Software Trap service routine should  
re-initialize the stack pointer and perform a recovery proce-  
dure that re-starts the software at some known point, similar  
to a device Reset, but not necessarily performing all the  
same functions as a device Reset. The routine must also  
execute the RPND instruction to reset the STPND flag.  
Otherwise, all other interrupts will be locked out. To the  
extent possible, the interrupt routine should record or indi-  
cate the context of the device so that the cause of the  
Software Trap can be determined.  
18.4.2 Software Trap  
The Software Trap is a special kind of non-maskable inter-  
rupt which occurs when the INTR instruction (used to ac-  
knowledge interrupts) is fetched from program memory and  
placed in the instruction register. This can happen in a  
variety of ways, usually because of an error condition. Some  
examples of causes are listed below.  
If the user wishes to return to normal execution from the  
point at which the Software Trap was triggered, the user  
must first execute RPND, followed by RETSK rather than  
RETI or RET. This is because the return address stored on  
the stack is the address of the INTR instruction that triggered  
the interrupt. The program must skip that instruction in order  
to proceed with the next one. Otherwise, an infinite loop of  
Software Traps and returns will occur.  
If the program counter incorrectly points to a memory loca-  
tion beyond the programmed Flash memory space, the un-  
used memory location returns zeros which is interpreted as  
the INTR instruction.  
If the stack is popped beyond the allowed limit (address 06F  
Hex), a 7FFF will be loaded into the PC. Since the Option  
Register resides at this location, and to maintain the integrity  
of the stack overpop protection, the Flash memory will return  
a zero on an instruction fetch and a software trap will be  
triggered.  
Programming a return to normal execution requires careful  
consideration. If the Software Trap routine is interrupted by  
another Software Trap, the RPND instruction in the service  
routine for the second Software Trap will reset the STPND  
flag; upon return to the first Software Trap routine, the  
A Software Trap can be triggered by a temporary hardware  
condition such as a brownout or power supply glitch.  
www.national.com  
60  
 复制成功!