| 数据搜索系统,热门电子元器件搜索 |
|
UPSD3233 数据表(PDF) 39 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UPSD3233 数据表(HTML) 39 Page - STMicroelectronics |
|
39 / 170 page ![]() 39/170 uPSD3234A, uPSD3234BV, uPSD3233B, uPSD3233BV How Interrupts are Handled The interrupt flags are sampled at S5P2 of every machine cycle. The samples are polled during fol- lowing machine cycle. If one of the flags was in a set condition at S5P2 of the preceding cycle, the polling cycle will find it and the interrupt system will generate an LCALL to the appropriate service rou- tine, provided this H/W generated LCALL is not blocked by any of the following conditions: – An interrupt of equal priority or higher priority level is already in progress. – The current machine cycle is not the final cycle in the execution of the instruction in progress. – The instruction in progress is RETI or any access to the interrupt priority or interrupt enable registers. The polling cycle is repeated with each machine cycle, and the values polled are the values that were present at S5P2 of the previous machine cy- cle. Note: If an interrupt flag is active but being re- sponded to for one of the above mentioned condi- tions, if the flag is still inactive when the blocking condition is removed, the denied interrupt will not be serviced. In other words, the fact that the inter- rupt flag was once active but not serviced is not re- membered. Every polling cycle is new. The processor acknowledges an interrupt request by executing a hardware generated LCALL to the appropriate service routine. The hardware gener- ated LCALL pushes the contents of the Program Counter on to the stack (but it does not save the PSW) and reloads the PC with an address that de- pends on the source of the interrupt being vec- tored to as shown in Table 24. Execution proceeds from that location until the RETI instruction is encountered. The RETI instruc- tion informs the processor that the interrupt routine is no longer in progress, then pops the top two bytes from the stack and reloads the Program Counter. Execution of the interrupted program continues from where it left off. Note: A simple RET instruction would also return execution to the interrupted program, but it would have left the interrupt control system thinking an interrupt was still in progress, making future inter- rupts impossible. Table 24. Vector Addresses Source Vector Address Int0 0003h 2nd USART 004Bh Timer 0 000Bh I²C 0043h Int1 0013h DDC 003Bh Timer 1 001Bh USB 0033h 1st USART 0023h Timer 2+EXF2 002Bh |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |