PIC16C65A-04E/L Microchip Technology, PIC16C65A-04E/L Datasheet - Page 139
![IC MCU OTP 4KX14 PWM 44PLCC](/photos/6/63/66325/150-44-plcc_sml.jpg)
PIC16C65A-04E/L
Manufacturer Part Number
PIC16C65A-04E/L
Description
IC MCU OTP 4KX14 PWM 44PLCC
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F818-ISO.pdf
(6 pages)
3.PIC16LC62A-04SP.pdf
(337 pages)
4.PIC16C65A-20P.pdf
(8 pages)
5.PIC16C65A-20P.pdf
(4 pages)
Specifications of PIC16C65A-04E/L
Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
33
Program Memory Size
7KB (4K x 14)
Program Memory Type
OTP
Ram Size
192 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
44-PLCC
For Use With
DVA16XL441 - ADAPTER DEVICE ICE 44PLCC
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16C65A-04E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
- PIC16F616T-ISL PDF datasheet
- PIC16F818-ISO PDF datasheet #2
- PIC16LC62A-04SP PDF datasheet #3
- PIC16C65A-20P PDF datasheet #4
- PIC16C65A-20P PDF datasheet #5
- Current page: 139 of 337
- Download datasheet (3Mb)
13.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 13-1 stores and restores the STATUS and W
registers. Example 13-2 stores and restores the
STATUS, W, and PCLATH registers (Devices with
paged program memory). For all PIC16C6X devices
with greater than 1K of program memory (all devices
except PIC16C61), the register, W_TEMP, must be
EXAMPLE 13-1: SAVING STATUS AND W REGISTERS IN RAM (PIC16C61)
EXAMPLE 13-2: SAVING STATUS, W, AND PCLATH REGISTERS IN RAM
Applicable Devices
61 62 62A R62 63 R63 64 64A R64 65 65A R65 66 67
1997 Microchip Technology Inc.
MOVWF
SWAPF
MOVWF
:
:(ISR)
:
SWAPF
MOVWF
SWAPF
SWAPF
MOVWF
SWAPF
CLRF
MOVWF
MOVF
MOVWF
CLRF
BCF
MOVF
MOVWF
:(ISR)
:
MOVF
MOVWF
SWAPF
MOVWF
SWAPF
SWAPF
Context Saving During Interrupts
W_TEMP
STATUS,W
STATUS_TEMP
STATUS_TEMP,W
STATUS
W_TEMP,F
W_TEMP,W
W_TEMP
STATUS,W
STATUS
STATUS_TEMP
PCLATH, W
PCLATH_TEMP
PCLATH
STATUS, IRP
FSR, W
FSR_TEMP
PCLATH_TEMP, W
PCLATH
STATUS_TEMP,W
STATUS
W_TEMP,F
W_TEMP,W
(ALL OTHER PIC16C6X DEVICES)
;Copy W to TEMP register, could be bank one or zero
;Swap status to be saved into W
;Save status to bank zero STATUS_TEMP register
;Swap STATUS_TEMP register into W
;(sets bank to original state)
;Move W into STATUS register
;Swap W_TEMP
;Swap W_TEMP into W
;Copy W to TEMP register, could be bank one or zero
;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
;Only required if using pages 1, 2 and/or 3
;Save PCLATH into W
;Page zero, regardless of current page
;Return to Bank 0
;Copy FSR to W
;Copy FSR from W to FSR_TEMP
;Restore PCLATH
;Move W into PCLATH
;Swap STATUS_TEMP register into W
;(sets bank to original state)
;Move W into STATUS register
;Swap W_TEMP
;Swap W_TEMP into W
defined in
offset from the bank base address (i.e., if W_TEMP is
defined at 0x20 in bank 0, it must also be defined at
0xA0 in bank 1, 0x120 in bank 2, and 0x1A0 in bank 3).
The examples:
a)
b)
c)
d)
e)
f)
g)
Stores the W register
Stores the STATUS register in bank 0
Stores PCLATH
Executes ISR code
Restores PCLATH
Restores STATUS register (and bank select bit)
Restores W register
all
banks and must be defined at the same
PIC16C6X
DS30234D-page 139
Related parts for PIC16C65A-04E/L
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC16C65A-10/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 PWM 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C65A-20/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 PWM 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C65A-04I/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 PWM 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C65A-04/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 PWM 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C65A-04/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 PWM 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C65A-20/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 PWM 44-MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C65A-20I/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 PWM 44-MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C65A](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
8-Bit CMOS Microcontrollers
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C65A-20I/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 PWM 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C65A-20I/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 PWM 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C65A-20/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 PWM 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C65A-04/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 PWM 44-MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C65A-04I/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 PWM 44-MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C65A-10I/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 PWM 44-MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C65A/JW](/photos/6/63/66338/150-40-cdip_tmb.jpg)
Part Number:
Description:
IC MCU EPROM 4KX14 PWM 40CDIP
Manufacturer:
Microchip Technology
Datasheet: