| Motore di ricerca datesheet componenti elettronici |
|
DSPIC30F2012AT20E/ML Scheda tecnica(PDF) 69 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
DSPIC30F2012AT20E/ML Scheda tecnica(HTML) 69 Page - Microchip Technology |
|
69 / 205 page ![]() © 2006 Microchip Technology Inc. DS70139E-page 67 dsPIC30F2011/2012/3012/3013 FIGURE 8-1: TRAP VECTORS 8.4 Interrupt Sequence All interrupt event flags are sampled in the beginning of each instruction cycle by the IFSx registers. A pending Interrupt Request (IRQ) is indicated by the flag bit being equal to a ‘1’ in an IFSx register. The IRQ causes an interrupt to occur if the corresponding bit in the Inter- rupt Enable (IECx) register is set. For the remainder of the instruction cycle, the priorities of all pending inter- rupt requests are evaluated. If there is a pending IRQ with a priority level greater than the current processor priority level in the IPL bits, the processor is interrupted. The processor then stacks the current program counter and the low byte of the processor STATUS register (SRL), as shown in Figure 8-2. The low byte of the STATUS register contains the processor priority level at the time prior to the beginning of the interrupt cycle. The processor then loads the priority level for this inter- rupt into the STATUS register. This action disables all lower priority interrupts until the completion of the Interrupt Service Routine. FIGURE 8-2: INTERRUPT STACK FRAME The RETFIE (return from interrupt) instruction unstacks the program counter and STATUS registers to return the processor to its state prior to the interrupt sequence. 8.5 Alternate Vector Table In program memory, the Interrupt Vector Table (IVT) is followed by the Alternate Interrupt Vector Table (AIVT), as shown in Figure 8-1. Access to the alternate vector table is provided by the ALTIVT bit in the INTCON2 reg- ister. If the ALTIVT bit is set, all interrupt and exception processes use the alternate vectors instead of the default vectors. The alternate vectors are organized in the same manner as the default vectors. The AIVT sup- ports emulation and debugging efforts by providing a means to switch between an application and a support environment without requiring the interrupt vectors to be reprogrammed. This feature also enables switching between applications for evaluation of different software algorithms at run time. If the AIVT is not required, the program memory allo- cated to the AIVT may be used for other purposes. AIVT is not a protected section and may be freely programmed by the user. Address Error Trap Vector Oscillator Fail Trap Vector Stack Error Trap Vector Reserved Vector Math Error Trap Vector Reserved Oscillator Fail Trap Vector Address Error Trap Vector Reserved Vector Reserved Vector Interrupt 0 Vector Interrupt 1 Vector — — — Interrupt 52 Vector Interrupt 53 Vector Math Error Trap Vector 0x000000 0x000014 Reserved Stack Error Trap Vector Reserved Vector Reserved Vector Interrupt 0 Vector Interrupt 1 Vector — — — Interrupt 52 Vector Interrupt 53 Vector IVT AIVT 0x000080 0x00007E 0x0000FE Reserved 0x000094 Reset - GOTO Instruction Reset - GOTO Address 0x000002 Reserved 0x000082 0x000084 0x000004 Reserved Vector Note 1: The user can always lower the priority level by writing a new value into SR. The Interrupt Service Routine must clear the interrupt flag bits in the IFSx register before lowering the processor interrupt priority, in order to avoid recursive interrupts. 2: The IPL3 bit (CORCON<3>) is always clear when interrupts are being pro- cessed. It is set only during execution of traps. <Free Word> 0 15 W15 (before CALL) W15 (after CALL) 0x0000 PC<15:0> SRL IPL3 PC<22:16> POP : [--W15] PUSH : [W15++] |
|
Link URL |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore 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 |