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

W77C032A40DL 参数 Datasheet PDF下载

W77C032A40DL图片预览
型号: W77C032A40DL
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-BIT MICROCONTROLLER]
分类和应用: 微控制器
文件页数/大小: 78 页 / 547 K
品牌: WINBOND [ WINBOND ]
 浏览型号W77C032A40DL的Datasheet PDF文件第45页浏览型号W77C032A40DL的Datasheet PDF文件第46页浏览型号W77C032A40DL的Datasheet PDF文件第47页浏览型号W77C032A40DL的Datasheet PDF文件第48页浏览型号W77C032A40DL的Datasheet PDF文件第50页浏览型号W77C032A40DL的Datasheet PDF文件第51页浏览型号W77C032A40DL的Datasheet PDF文件第52页浏览型号W77C032A40DL的Datasheet PDF文件第53页  
W77C32/W77C032A
The processor responds to a valid interrupt by executing an LCALL instruction to the appropriate
service routine. This may or may not clear the flag which caused the interrupt. In case of Timer
interrupts, the TF0 or TF1 flags are cleared by hardware whenever the processor vectors to the
appropriate timer service routine. In case of external interrupt, INT0 and INT1, the flags are cleared
only if they are edge triggered. In case of Serial interrupts, the flags are not cleared by hardware. In
the case of Timer 2 interrupt, the flags are not cleared by hardware. Watchdog timer interrupt flag
WDIF have to be cleared by software. The hardware LCALL behaves exactly like the software LCALL
instruction. This instruction saves the Program Counter contents onto the Stack, but does not save the
Program Status Word PSW. The PC is reloaded with the vector address of that interrupt which caused
the LCALL. These vector address for the different sources are as follows.
Table 8. Vector locations for interrupt sources
SOURCE
VECTOR ADDRESS
SOURCE
VECTOR ADDRESS
Timer 0 Overflow
Timer 1 Overflow
Timer 2 Interrupt
External Interrupt 2
External Interrupt 4
Watchdog Timer
000Bh
001Bh
002Bh
0043h
0053h
0063h
External Interrupt 0
External Interrupt 1
Serial Port
Serial Port 1
External Interrupt 3
External Interrupt 5
0003h
0013h
0023h
003Bh
004Bh
005Bh
The vector table is not evenly spaced; this is to accommodate future expansions to the device family.
Execution continues from the vectored address till an RETI instruction is executed. On execution of
the RETI instruction the processor pops the Stack and loads the PC with the contents at the top of the
stack. The user must take care that the status of the stack is restored to what is was after the
hardware LCALL, if the execution is to return to the interrupted program. The processor does not
notice anything if the stack contents are modified and will proceed with execution from the address put
back into PC. Note that a RET instruction would perform exactly the same process as a RETI
instruction, but it would not inform the Interrupt Controller that the interrupt service routine is
completed, and would leave the controller still thinking that the service routine is underway.
11.3 Interrupt Response Time
The response time for each interrupt source depends on several factors, such as the nature of the
interrupt and the instruction underway. In the case of external interrupts
INT0
to
INT5
, they are
sampled at C3 of every machine cycle and then their corresponding interrupt flags Iex will be set or
reset. The Timer 0 and 1 overflow flags are set at C3 of the machine cycle in which overflow has
occurred. These flag values are polled only in the next machine cycle. If a request is active and all
three conditions are met, then the hardware generated LCALL is executed. This LCALL itself takes
four machine cycles to be completed. Thus there is a minimum time of five machine cycles between
the interrupt flag being set and the interrupt service routine being executed.
- 49 -
Publication Release Date: February 1, 2007
Revision A8