Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC18F2520 Datasheet(PDF) 11 Page - Microchip Technology

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

PIC18F2520 Datasheet(HTML) 11 Page - Microchip Technology

Back Button PIC18F2520 Datasheet HTML 7Page - Microchip Technology PIC18F2520 Datasheet HTML 8Page - Microchip Technology PIC18F2520 Datasheet HTML 9Page - Microchip Technology PIC18F2520 Datasheet HTML 10Page - Microchip Technology PIC18F2520 Datasheet HTML 11Page - Microchip Technology PIC18F2520 Datasheet HTML 12Page - Microchip Technology PIC18F2520 Datasheet HTML 13Page - Microchip Technology PIC18F2520 Datasheet HTML 14Page - Microchip Technology PIC18F2520 Datasheet HTML 15Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 11 / 16 page
background image
© 2005 Microchip Technology Inc.
DS80209D-page 11
PIC18F2420/2520/4420/4520
33. Module: Timer1 (Asynchronous Counter)
When writing to the TMR1H register, under
specific conditions, it is possible that the TMR1L
register will miss a count while connected to the
external oscillator via the T1OSO and T1OSI pins.
When Timer1 is started, the circuitry looks for a
falling edge before a rising edge can increment the
counter. Writing to the TMR1H register is similar to
starting Timer1; therefore, the former logic stated
applies any time the TMR1H register is written. If
the TMR1H register is not completely written to
during the high pulse of the external clock, then the
TMR1L register will miss a count due to the circuit
operation stated previously. The high pulse of a
32.768 kHz external clock crystal yields a 15.25
μs
window for the write to TMR1H to occur. The
amount of instructions that can be executed within
this window is frequency dependent, as shown in
Table 4 below.
Work around
Operating Conditions: FOSC
≥ 4 MHz, no wake-ups
from Sleep, Timer1 interrupt enabled, global
interrupts enabled.
The code excerpts in Example 5 and Example 6
show how the TMR1H register can be updated
while the external clock (32.768 kHz) is still on its
high pulse.
The importance of the code examples is that the
bold instructions are executed within the first
15.25
μs high pulse on the external clock after the
Timer1 overflow occurs. This will allow the TMR1L
register to increment correctly.
TABLE 4:
FREQUENCY DEPENDENT INSTRUCTION EXECUTION AMOUNTS
EXAMPLE 5:
PIC18 HIGH PRIORITY INTERRUPT SERVICE ROUTINE
FOSC
TCY (
μs)
TCY within 15.25
μs
1MHz
4
3.81
2MHz
2
7.63
4 MHz
1
15.25
8 MHz
0.5
30.5
16 MHz
0.25
61
20 MHz
0.2
76.25
40 MHz
0.1
152.5
ISR @ 0x0008
; (3-4Tcy), fixed interrupt latency
BRA
HIGHINT
; (2Tcy), go to high priority interrupt routine
HIGHINT
BTFSC
PIR1, TMR1IF
; (1Tcy), did a Timer1 overflow occur?
BSF
TMR1H, 7
; (1Tcy) Yes, reload for a 1 second overflow
RETFIE
FAST
Total = 7-8 TCY (if Timer1 overflow occurred)


Similar Part No. - PIC18F2520

ManufacturerPart #DatasheetDescription
logo
Microchip Technology
PIC18F2520 MICROCHIP-PIC18F2520 Datasheet
6Mb / 390P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2004
PIC18F2520 MICROCHIP-PIC18F2520 Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2008
PIC18F2520-E/ML MICROCHIP-PIC18F2520-E/ML Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2008
PIC18F2520-E/P MICROCHIP-PIC18F2520-E/P Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2008
PIC18F2520-E/PT MICROCHIP-PIC18F2520-E/PT Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2008
More results

Similar Description - PIC18F2520

ManufacturerPart #DatasheetDescription
logo
Microchip Technology
PIC18F2420 MICROCHIP-PIC18F2420 Datasheet
6Mb / 390P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2004
PIC18F2420 MICROCHIP-PIC18F2420_08 Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2008
PIC18F2620-ISO MICROCHIP-PIC18F2620-ISO Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
01/02/08
PIC18F2525 MICROCHIP-PIC18F2525 Datasheet
6Mb / 390P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2004
PIC18F2525 MICROCHIP-PIC18F2525_08 Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
01/02/08
PIC18F4525-I MICROCHIP-PIC18F4525-I Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
01/02/08
PIC18F4525-I MICROCHIP-PIC18F4525-I Datasheet
4Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
01/02/08
PIC18F4321 MICROCHIP-PIC18F4321 Datasheet
6Mb / 396P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2007
PIC18LF4620-I MICROCHIP-PIC18LF4620-I Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
01/02/08
PIC18LF4520-IPT MICROCHIP-PIC18LF4520-IPT Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
01/02/08
More results


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




Privacy Policy
ALLDATASHEET.NET
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   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