PIC16C432-E/SS Microchip Technology, PIC16C432-E/SS Datasheet - Page 57

IC MCU CMOS 8BIT 20MHZ 2K 20SSOP

PIC16C432-E/SS

Manufacturer Part Number
PIC16C432-E/SS
Description
IC MCU CMOS 8BIT 20MHZ 2K 20SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets

Specifications of PIC16C432-E/SS

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
LIN (Local Interconnect Network)
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
12
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
20-SSOP
For Use With
XLT20SS-1 - SOCKET TRANSITION 18DIP 20SSOPAC164307 - MODULE SKT FOR PM3 28SSOPAC164029 - MODULE SKT PROMATEII 20DIP/SSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
9.6
During an interrupt, only the return PC value is saved
on the stack. Typically, users may wish to save key reg-
isters during an interrupt (i.e., W register and STATUS
register). This will have to be implemented in software.
Example 9-7 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 0x70 in Bank 0 and it must also be defined at 0xF0
in Bank 1). The user register, STATUS_TEMP, must be
defined in Bank 0. The Example 9-7:
• 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-7:
MOVW
F
SWAP
F
BCF
MOVW
F
:
:
:
SWAP
F
MOVW
F
SWAP
F
SWAP
F
register)
2002 Microchip Technology Inc.
Context Saving During Interrupts
W_TEMP
STATUS,W
STATUS,RP0
STATUS_TEMP ;save status to bank 0
(ISR)
STATUS_TEMP
,W
STATUS
W_TEMP,F
W_TEMP,W
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 regard-
less
;of current bank
;register
;swap STATUS_TEMP regis-
ter
;into W, sets bank to
original
;state
;move W into STATUS regis-
ter
;swap W_TEMP
;swap W_TEMP into W
Preliminary
PIC16C432
DS41140B-page 55

Related parts for PIC16C432-E/SS