Electronic Components Datasheet Search
  English  ▼

X  

18F2420 Datasheet(PDF) 12 Page - Microchip Technology

Part # 18F2420
Description  28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
PDF  16 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

18F2420 Datasheet(HTML) 12 Page - Microchip Technology

Back Button 18F2420 Datasheet HTML 8Page - Microchip Technology 18F2420 Datasheet HTML 9Page - Microchip Technology 18F2420 Datasheet HTML 10Page - Microchip Technology 18F2420 Datasheet HTML 11Page - Microchip Technology 18F2420 Datasheet HTML 12Page - Microchip Technology 18F2420 Datasheet HTML 13Page - Microchip Technology 18F2420 Datasheet HTML 14Page - Microchip Technology 18F2420 Datasheet HTML 15Page - Microchip Technology 18F2420 Datasheet HTML 16Page - Microchip Technology  
Zoom Inzoom in Zoom Outzoom out
 12 / 16 page
background image
PIC18F2420/2520/4420/4520
DS80209D-page 12
© 2005 Microchip Technology Inc.
EXAMPLE 6:
PIC18 LOW PRIORITY INTERRUPT SERVICE ROUTINE
Note:
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.
ISR @ 0x0018
; (3-4Tcy), fixed interrupt latency
MOVFF
STATUS, STATUS_TEMP
; (2Tcy), save STATUS register
MOVFF
WREG, WREG_TEMP
; (2Tcy), save working register, refer to note 1
MOVFF
BSR, BSR_TEMP
; (2Tcy), save BSR register, refer to note 1
BTFSS
PIR1, TMR1IF
; (2Tcy), did a Timer1 overflow occur?
BRA
EXIT
; No
BSF
TMR1H, 7
; (1Tcy) Yes, reload for a 1 second overflow
EXIT
MOVFF
BSR_TEMP, BSR
;restore BSR register, refer to note 1
MOVFF
WREG_TEMP, WREG
;restore working register, refer to note 1
MOVFF
STATUS_TEMP, STATUS
;restore STATUS register
RETFIE
Total = 12-13 TCY (if Timer1 overflow occurred)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com