PIC16C62A-04E/SO Microchip Technology, PIC16C62A-04E/SO Datasheet - Page 4

IC MCU OTP 2KX14 PWM 28SOIC

PIC16C62A-04E/SO

Manufacturer Part Number
PIC16C62A-04E/SO
Description
IC MCU OTP 2KX14 PWM 28SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr

Specifications of PIC16C62A-04E/SO

Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
22
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
28-SOIC (7.5mm Width)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
TIMER1 MODULE
EXAMPLE 1:
EXAMPLE 2:
EXAMPLE 3:
DS80233C-page 4
Note:
ISR @ 0x004
RELOAD
EXIT
ISR @ 0x0008
HIGHINT
ISR @ 0x0018
RELOAD
EXIT
MOVWF
MOVF
MOVWF
BANKSEL PIR
BTFSS
GOTO
BSF
MOVF
MOVWF
SWAPF
SWAPF
RETFIE
BRA
BTFSC
BSF
RETFIE FAST
MOVFF
MOVFF
MOVFF
BTFSS
BRA
BSF
MOVFF
MOVFF
MOVFF
RETFIE
These instructions are required based on the function of the ISR. If the only code in the ISR is to reload
Timer1, then they are not required, but may be required if additional code is added.
HIGHINT
PIR,TMRIF
TMR1H,7
STATUS,STATUS_TEMP
WREG,WREG_TEMP
BSR,BSR_TEMP
PIR,TMRIF
EXIT
TMR1H,7
BSR_TEMP,BSR
WREG_TEMP,WREG
STATUS_TEMP,STATUS
PIC12/PIC14/PIC16 INTERRUPT SERVICE ROUTINE
w_temp
STATUS,w
status_temp
PIR,TMRIF
EXIT
TMR1H,7
status_temp,w
STATUS
w_temp,f
w_temp,w
PIC18 HIGH PRIORITY INTERRUPT SERVICE ROUTINE
PIC18 LOW PRIORITY INTERRUPT SERVICE ROUTINE
; (3-4Tcy), fixed interrupt latency
; (1Tcy), save off current W register contents
; (1Tcy), move status register into W register
; (1Tcy), save off contents of STATUS register
; (2Tcy), choose correct SFR bank
; (2Tcy), did a Timer1 overflow occur?
; No
; (1Tcy) Yes, reload for a 1 second overflow
; retrieve copy of STATUS register
; restore pre-isr STATUS register contents
; restore pre-isr W register contents
Total = 11-12 T
; (3-4Tcy), fixed interrupt latency
; (2Tcy), go to high priority interrupt routine
; (1Tcy), did a Timer1 overflow occur?
; (1Tcy) Yes, reload for a 1 second overflow
Total = 7-8 T
; (3-4Tcy), fixed interrupt latency
; (2Tcy), save STATUS register
; (2Tcy), save working register, refer to note 1
; (2Tcy), save BSR register, refer to note 1
; (2Tcy), did a Timer1 overflow occur?
; No
; (1Tcy) Yes, reload for a 1 second overflow
;restore BSR register, refer to note 1
;restore working register, refer to note 1
;restore STATUS register
Total = 12-13 T
CY
CY
CY
(if Timer1 overflow occurred)
(if Timer1 overflow occurred)
(if Timer1 overflow occurred)
© 2007 Microchip Technology Inc.

Related parts for PIC16C62A-04E/SO