PIC16C620-04I/SO Microchip Technology, PIC16C620-04I/SO Datasheet - Page 59

IC MCU OTP 512X14 COMP 18SOIC

PIC16C620-04I/SO

Manufacturer Part Number
PIC16C620-04I/SO
Description
IC MCU OTP 512X14 COMP 18SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets

Specifications of PIC16C620-04I/SO

Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
13
Program Memory Size
896B (512 x 14)
Program Memory Type
OTP
Ram Size
80 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 6 V
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
18-SOIC (7.5mm Width)
For Use With
XLT18SO-1 - SOCKET TRANSITION 18SOIC 300MILISPICR1 - ADAPTER IN-CIRCUIT PROGRAMMING309-1075 - ADAPTER 18-SOIC TO 18-SOICAC164010 - MODULE SKT PROMATEII DIP/SOIC
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Connectivity
-
TABLE 9-6:
9.6
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 will have to be implemented in
software.
Example 9-3 stores and restores the STATUS and W
registers. The user register, W_TEMP, must be defined
in both banks and must be defined at the same offset
from the bank base address (i.e., W_TEMP is defined
at 0x20 in Bank 0 and it must also be defined at 0xA0
in Bank 1). The user register, STATUS_TEMP, must be
defined in Bank 0. The Example 9-3:
• Stores the W register
• Stores the STATUS register in Bank 0
• Executes the ISR code
• Restores the STATUS (and bank select bit
• Restores the W register
EXAMPLE 9-3:
 2003 Microchip Technology Inc.
Address Name
0Bh
0Ch
8Ch
Note 1: Other (non Power-up) Resets include MCLR Reset, Brown-out Reset and Watchdog Timer Reset during normal
MOVWF
SWAPF
BCF
MOVWF
:
:
:
SWAPF
MOVWF
SWAPF
SWAPF
register)
Context Saving During Interrupts
W_TEMP
STATUS,W
STATUS,RP0
STATUS_TEMP
(ISR)
STATUS_TEMP,
W
STATUS
W_TEMP,F
W_TEMP,W
INTCON
PIR1
PIE1
operation.
SUMMARY OF INTERRUPT REGISTERS
GIE
Bit 7
SAVING THE STATUS
AND W REGISTERS IN
RAM
;copy W to temp register,
;could be in either bank
;swap status to be saved
into W
;change to bank 0 regardless
;of current bank
;save status to bank 0
;register
;swap STATUS_TEMP register
;into W, sets bank to origi-
nal
;state
;move W into STATUS register
;swap W_TEMP
;swap W_TEMP into W
PEIE
CMIF
CMIE
Bit 6
T0IE
Bit 5
INTE
Bit 4
RBIE
Bit 3
T0IF
Bit 2
INTF
Bit 1
RBIF
Bit 0
PIC16C62X
Value on POR
0000 000x
-0-- ----
-0-- ----
Reset
DS30235J-page 57
Value on all
0000 000u
-0-- ----
-0-- ----
RESETS
other
(1)

Related parts for PIC16C620-04I/SO