| Electronic Components Datasheet Search |
|
C164SL Datasheet(PDF) 108 Page - Infineon Technologies AG |
|
|
|||||||||||||||||||||||||||||
C164SL Datasheet(HTML) 108 Page - Infineon Technologies AG |
|
108 / 484 page ![]() C164CI/C164SI Derivatives Interrupt and Trap Functions User’s Manual 5-17 V3.1, 2002-02 5.4 Saving Status during Interrupt Service Before an interrupt request that has been arbitrated is actually serviced, the status of the current task is automatically saved on the system stack. The CPU status (PSW) is saved together with the location at which execution of the interrupted task is to be resumed after returning from the service routine. This return location is specified through the Instruction Pointer (IP) and, in the case of a segmented memory model, the Code Segment Pointer (CSP). Bit SGTDIS in register SYSCON controls how the return location is stored. The system stack receives the PSW first, followed by the IP (unsegmented), or followed by CSP and then IP (segmented mode). This optimizes the usage of the system stack if segmentation is disabled. The CPU priority field (ILVL in PSW) is updated with the priority of the interrupt request to be serviced, so the CPU now executes on the new level. If a multiplication or division was in progress at the time the interrupt request was acknowledged, bit MULIP in register PSW is set to ‘1’. In this case, the return location saved on the stack is not the next instruction in the instruction flow, but rather the multiply or divide instruction itself, as this instruction has been interrupted and will be completed after returning from the service routine. Figure 5-3 Task Status Saved on the System Stack The interrupt request flag of the source being serviced is cleared. The IP is loaded with the vector associated with the requesting source (CSP is cleared in the case of segmentation), and the first instruction of the service routine is fetched from the vector location which is expected to branch to the service routine itself. The data page pointers and the context pointer are not affected. (Unsegmented) PSW System Stack after Interrupt Entry Interrupt Entry System Stack before a) b) SP High Addresses Low Addresses -- -- -- SP IP -- MCD02226 b) Interrupt Entry System Stack after (Segmented) Task Interrupted Status of CSP PSW IP SP |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |