PIC12F519 Microchip Technology, PIC12F519 Datasheet - Page 33

no-image

PIC12F519

Manufacturer Part Number
PIC12F519
Description
8-Bit Flash Microcontroller
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12F519-I/MC
Manufacturer:
SST
Quantity:
101
Part Number:
PIC12F519-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12F519-I/SN
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12F519-I/SN
0
Part Number:
PIC12F519T-I/MC
Manufacturer:
MICROCHIP
Quantity:
1 001
www.DataSheet4U.com
7.1
When an external clock input is used for Timer0, it must
meet certain requirements. The external clock require-
ment is due to internal phase clock (T
tion. Also, there is a delay in the actual incrementing of
Timer0 after synchronization.
7.1.1
When no prescaler is used, the external clock input is
the same as the prescaler output. The synchronization
of T0CKI with the internal phase clocks is accom-
plished by sampling the prescaler output on the Q2 and
Q4 cycles of the internal phase clocks (Figure 7-4).
Therefore, it is necessary for T0CKI to be high for at
least 2 T
for at least 2 T
Refer to the electrical specification of the desired
device.
FIGURE 7-4:
© 2007 Microchip Technology Inc.
Note 1: Delay from clock input change to Timer0 increment is 3 T
External Clock/Prescaler
OSC
External Clock Input or
Using Timer0 with an External
Clock
Increment Timer0 (Q4)
Output After Sampling
2: External clock if no prescaler selected; prescaler output otherwise.
3: The arrows indicate the points in time where sampling occurs.
Prescaler Output
EXTERNAL CLOCK
SYNCHRONIZATION
(and a small RC delay of 2 Tt0H) and low
in measuring the interval between two edges on Timer0 input = ±4 T
OSC
(and a small RC delay of 2 Tt0H).
TIMER0 TIMING WITH EXTERNAL CLOCK
Timer0
(2)
Q1 Q2 Q3 Q4
(3)
OSC
) synchroniza-
(1)
Preliminary
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
T0
When a prescaler is used, the external clock input is
divided by the asynchronous ripple counter-type
prescaler, so that the prescaler output is symmetrical.
For the external clock to meet the sampling require-
ment, the ripple counter must be taken into account.
Therefore, it is necessary for T0CKI to have a period of
at least 4 T
by the prescaler value. The only requirement on T0CKI
high and low time is that they do not violate the
minimum pulse width requirement of Tt0H. Refer to
parameters 40, 41 and 42 in the electrical specification
of the desired device.
7.1.2
Since the prescaler output is synchronized with the
internal clocks, there is a small delay from the time the
external clock edge occurs to the time the Timer0
module is actually incremented. Figure 7-4 shows the
delay from the external clock edge to the timer
incrementing.
OSC
to 7 T
OSC
OSC
T0 + 1
OSC
TIMER0 INCREMENT DELAY
. (Duration of Q = T
(and a small RC delay of 4 Tt0H) divided
max.
PIC12F519
OSC
T0 + 2
Small pulse
misses sampling
). Therefore, the error
DS41319A-page 31

Related parts for PIC12F519