поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

PIC16C71 датащи(PDF) 73 Page - Microchip Technology

номер детали PIC16C71
подробное описание детали  8-Bit CMOS Microcontrollers
PDF  337 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  MICROCHIP [Microchip Technology]
домашняя страница  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16C71 датащи(HTML) 73 Page - Microchip Technology

Back Button PIC16C71 Datasheet HTML 69Page - Microchip Technology PIC16C71 Datasheet HTML 70Page - Microchip Technology PIC16C71 Datasheet HTML 71Page - Microchip Technology PIC16C71 Datasheet HTML 72Page - Microchip Technology PIC16C71 Datasheet HTML 73Page - Microchip Technology PIC16C71 Datasheet HTML 74Page - Microchip Technology PIC16C71 Datasheet HTML 75Page - Microchip Technology PIC16C71 Datasheet HTML 76Page - Microchip Technology PIC16C71 Datasheet HTML 77Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 73 / 337 page
background image
© 1997 Microchip Technology Inc.
DS30234D-page 73
PIC16C6X
8.3
Timer1 Operation in Asynchronous
Counter Mode
If control bit T1SYNC (T1CON<2>) is set, the external
clock input is not synchronized. The timer continues to
increment asynchronous to the internal phase clocks.
The timer will continue to run during SLEEP and gener-
ate an interrupt on overflow which will wake the proces-
sor. However, special precautions in software are
needed to read-from or write-to the Timer1 register
pair, TMR1L and TMR1H (Section 8.3.2).
In asynchronous counter mode, Timer1 cannot be used
as a time-base for capture or compare operations.
8.3.1
EXTERNAL CLOCK INPUT TIMING WITH
UNSYNCHRONIZED CLOCK
If control bit T1SYNC is set, the timer will increment
completely asynchronously. The input clock must meet
certain minimum high time and low time requirements,
as specified in timing parameters (45 - 47).
8.3.2
READING AND WRITING TMR1 IN
ASYNCHRONOUS COUNTER MODE
Reading TMR1H or TMR1L, while the timer is running
from an external asynchronous clock, will ensure a
valid read (taken care of in hardware). However, the
user should keep in mind that reading the 16-bit timer
in two 8-bit values itself poses certain problems since
the timer may overflow between the reads.
For writes, it is recommended that the user simply stop
the timer and write the desired values. A write conten-
tion may occur by writing to the timer registers while the
register is incrementing. This may produce an unpre-
dictable value in the timer register.
Reading
the
16-bit
value
requires
some
care.
Example 8-1 is an example routine to read the 16-bit
timer value. This is useful if the timer cannot be
stopped.
Applicable Devices
61 62 62A R62 63 R63 64 64A R64 65 65A R65 66 67
EXAMPLE 8-1:
READING A 16-BIT
FREE-RUNNING TIMER
;
All Interrupts are disabled
MOVF
TMR1H,
W
;Read high byte
MOVWF
TMPH
;
MOVF
TMR1L,
W
;Read low byte
MOVWF
TMPL
;
MOVF
TMR1H,
W
;Read high byte
SUBWF
TMPH,
W
;Sub 1st read
;with 2nd read
BTFSC
STATUS,Z
;is result = 0
GOTO
CONTINUE
;Good 16-bit read
; TMR1L may have rolled over between the read
; of the high and low bytes. Reading the high
; and low bytes now will read a good value.
MOVF
TMR1H,
W
;Read high byte
MOVWF
TMPH
;
MOVF
TMR1L,
W
;Read low byte
MOVWF
TMPL
;
;
Re-enable Interrupt (if required)
CONTINUE
;Continue with
:
;your code
8.4
Timer1 Oscillator
A crystal oscillator circuit is built in-between pins T1OSI
(input) and T1OSO (amplifier output). It is enabled by
setting control bit T1OSCEN (T1CON<3>). The oscilla-
tor is a low power oscillator rated up to 200 kHz. It will
continue to run during SLEEP. It is primarily intended
for a 32 kHz crystal. Table 8-1 shows the capacitor
selection for the Timer1 oscillator.
The Timer1 oscillator is identical to the LP oscillator.
The user must allow a software time delay to ensure
proper oscillator start-up.
TABLE 8-1:
CAPACITOR SELECTION
FOR THE TIMER1
OSCILLATOR
Applicable Devices
61 62 62A R62 63 R63 64 64A R64 65 65A R65 66 67
Osc Type
Freq
C1
C2
LP
32 kHz
33 pF
33 pF
100 kHz
15 pF
15 pF
200 kHz
15 pF
15 pF
These values are for design guidance only.
Crystals Tested:
32.768 kHz
Epson C-001R32.768K-A
± 20 PPM
100 kHz
Epson C-2 100.00 KC-P
± 20 PPM
200 kHz
STD XTL 200.000 kHz
± 20 PPM
Note 1: Higher capacitance increases the stability
of oscillator but also increases the start-up
time.
2: Since each resonator/crystal has its own
characteristics, the user should consult the
resonator/crystal manufacturer for appropri-
ate values of external components.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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