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

X  

PIC16F627A датащи(PDF) 52 Page - Microchip Technology

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

PIC16F627A датащи(HTML) 52 Page - Microchip Technology

Back Button PIC16F627A Datasheet HTML 48Page - Microchip Technology PIC16F627A Datasheet HTML 49Page - Microchip Technology PIC16F627A Datasheet HTML 50Page - Microchip Technology PIC16F627A Datasheet HTML 51Page - Microchip Technology PIC16F627A Datasheet HTML 52Page - Microchip Technology PIC16F627A Datasheet HTML 53Page - Microchip Technology PIC16F627A Datasheet HTML 54Page - Microchip Technology PIC16F627A Datasheet HTML 55Page - Microchip Technology PIC16F627A Datasheet HTML 56Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 52 / 180 page
background image
PIC16F627A/628A/648A
DS40044D-page 50
© 2005 Microchip Technology Inc.
7.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 can
generate an interrupt on overflow, which will wake-up the
processor. However, special precautions in software are
needed to read/write the timer (Section 7.3.2 “Reading
and Writing Timer1 in Asynchronous Counter
Mode”).
7.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 and low time requirements. Refer
to Table 17-8 in the Electrical Specifications Section,
timing parameters 45, 46 and 47.
7.3.2
READING AND WRITING TIMER1 IN
ASYNCHRONOUS COUNTER
MODE
Reading the TMR1H or TMR1L register, while the timer
is running from an external asynchronous clock, will
produce 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
contention may occur by writing to the timer registers
while the register is incrementing. This may produce an
unpredictable value in the timer register.
Reading
the
16-bit
value
requires
some
care.
Example 7-1 is an example routine to read the 16-bit
timer value. This is useful if the timer cannot be
stopped.
EXAMPLE 7-1:
READING A 16-BIT FREE-
RUNNING TIMER
Note:
In Asynchronous Counter mode, Timer1
cannot be used as a time base for capture
or compare operations.
; 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 the Interrupts (if required)
CONTINUE
;Continue with your
;code



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