MCP1726T-ADJZEMF Microchip Technology, MCP1726T-ADJZEMF Datasheet - Page 92

no-image

MCP1726T-ADJZEMF

Manufacturer Part Number
MCP1726T-ADJZEMF
Description
Regulator, Extended Industrial, HVSON, 8-Pin|
Manufacturer
Microchip Technology
Datasheet
PIC12F683
TABLE 12-7:
12.5
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 register and
Status Register). This must be implemented in
software.
Since the lower 16 bytes of all banks are common in
the PIC12F683 (See Figure 2-2), temporary holding
registers
PCLATH_TEMP should be placed in here.
EXAMPLE 12-1:
DS41211A-page 90
0Bh, 8Bh INTCON
0Ch
8Ch
Legend:
Address
MOVWF
SWAPF
CLRF
MOVWF
:
:(ISR)
:
SWAPF
MOVWF
SWAPF
SWAPF
Context Saving During Interrupts
PIR1
PIE1
x = unknown, u = unchanged, — = unimplemented read as ‘0’, q = value depends upon condition.
Shaded cells are not used by the Interrupt module.
Name
W_TEMP,
W_TEMP
STATUS,W
STATUS
STATUS_TEMP
STATUS_TEMP,W
STATUS
W_TEMP,F
W_TEMP,W
SUMMARY OF INTERRUPT REGISTERS
EEIF
EEIE
Bit 7
GIE
SAVING STATUS AND W REGISTERS IN RAM
STATUS_TEMP,
PEIE
ADIF
ADIE
Bit 6
;Copy W to TEMP register
;Swap status to be saved into W
;bank 0, regardless of current bank, Clears IRP,RP1,RP0
;Save status to bank zero STATUS_TEMP register
;Insert user code here
;Swap STATUS_TEMP register into W
;(sets bank to original state)
;Move W into Status register
;Swap W_TEMP
;Swap W_TEMP into W
CCP1IE
CCP1IF
Bit 5
T0IE
Advance Information
INTE
Bit 4
and
GPIE
CMIF
CMIE
Bit 3
These 16 locations don’t require banking and there-
fore, make it easier for context save and restore. The
same code shown in Example 12-1 can be used.
• Stores the W register
• Stores the Status Register
• Executes the ISR code
• Restores the Status (and bank select bit register)
• Restores the W register
OSFIE
OSFIF
Bit 2
T0IF
TMR2IF TMR1IF 000- 0000 000- 0000
TMR2IE TMR1IE 000- 0000 000- 0000
INTF
Bit 1
GPIF
Bit 0
 2003 Microchip Technology Inc.
0000 0000 0000 0000
POR, BOD
Value on
Value on all
Resets
other

Related parts for MCP1726T-ADJZEMF