| поискавой системы для электроныых деталей |
|
MCP19124 датащи(PDF) 98 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP19124 датащи(HTML) 98 Page - Microchip Technology |
|
98 / 236 page ![]() MCP19124/5 DS20005619A-page 98 2016 Microchip Technology Inc. 13.4 Context Saving During Interrupts During an interrupt, only the return PC value is saved on the stack. Typically, users may wish to save key registers during an interrupt (e.g., W and STATUS registers). This must be implemented in software. Temporary holding registers W_TEMP and STATUS_TEMP should be placed in the last 16 bytes of GPR. These 16 locations are common to all banks and do not require banking. This makes context save and restore operations simpler. The code shown in Example 13-1 can be used to: • Store the W register • Store the STATUS register • Execute the ISR code • Restore the Status (and Bank Select Bit) register • Restore the W register bit 0 UVLOIF: VIN Undervoltage Lockout Interrupt Flag bit With UVLOINTP bit set: 1 = A VIN Not Undervoltage to VIN Undervoltage edge has been detected 0 = A VIN Not Undervoltage to VIN Undervoltage edge has not been detected With UVLOINTN bit set: 1 = A VIN Undervoltage to VIN Not Undervoltage edge has been detected 0 = A VIN Undervoltage to VIN Not Undervoltage edge has not been detected TABLE 13-1: SUMMARY OF REGISTERS ASSOCIATED WITH INTERRUPTS Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Register on Page INTCON GIE PEIE T0IE INTE IOCE T0IF INTF IOCF 93 OPTION_REG RAPU INTEDG T0CS T0SE PSA PS2 PS1 PS0 78 PIE1 TXIE RCIE BCLIE SSPIE CC2IE CC1IE TMR2IE TMR1IE 94 PIE2 CDSIE ADIE — OTIE OVIE DRUVIE OVLOIE UVLOIE 95 PIR1 TXIF RCIF BCLIF SSPIF — — TMR2IF TMR1IF 96 PIR2 CDSIF ADIF — OTIF OVIF DRUVIF OVLOIF UVLOIF 97 Legend: — = unimplemented locations, read as ‘0’. Shaded cells are not used by Interrupts. REGISTER 13-5: PIR2: PERIPHERAL INTERRUPT FLAG REGISTER 2 (CONTINUED) Note: The MCP19124/5 do not require saving the PCLATH. However, if computed GOTO s are used in both the ISR and the main code, the PCLATH must be saved and restored in the ISR. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |