PIC10F222 Microchip Technology Inc., PIC10F222 Datasheet - Page 28

no-image

PIC10F222

Manufacturer Part Number
PIC10F222
Description
High-performance Microcontrollers With 8-bit A/d
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC10F222-I/MC
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC10F222-I/P
Manufacturer:
Microchip
Quantity:
1 297
Part Number:
PIC10F222-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC10F222T-E/OT
Manufacturer:
NEC
Quantity:
6 000
Part Number:
PIC10F222T-E/OTVAO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC10F222T-I/OT
Manufacturer:
Microchip Technology
Quantity:
26 846
Part Number:
PIC10F222T-I/OT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC10F222T-I/OT
0
PIC10F220/222
FIGURE 6-3:
TABLE 6-1:
6.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.
DS41270E-page 26
01h
N/A
N/A
Legend:
Address
PC
(Program
Counter)
Instruction
Timer0
Instruction
Executed
Fetch
Note 1: The TRIS of the T0CKI pin is overridden when T0CS = 1
Using Timer0 With An External
Clock
Shaded cells not used by Timer0, – = unimplemented, x = unknown, u = unchanged.
TMR0
OPTION
TRISGPIO
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
T0
PC-1
Name
REGISTERS ASSOCIATED WITH TIMER0
(1)
TIMER0 TIMING: INTERNAL CLOCK/PRESCALE 1:2
MOVWF TMR0 MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W
Timer0 – 8-Bit Real-Time Clock/Counter
T0 + 1
GPWU
PC
Bit 7
OSC
GPPU
Bit 6
Write TMR0
executed
) synchroniza-
PC + 1
T0CS
Bit 5
Read TMR0
reads NT0
PC + 2
T0SE
Bit 4
I/O Control Register
Bit 3
PSA
6.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 6-4).
Therefore, it is necessary for T0CKI to be high for at
least 2T
for at least 2T
Refer to the electrical specification of the desired
device.
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 4T
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.
Read TMR0
reads NT0
NT0
PC + 3
Bit 2
PS2
OSC
OSC
EXTERNAL CLOCK
SYNCHRONIZATION
(and a small RC delay of 2Tt0H) and low
Bit 1
Read TMR0
reads NT0
PS1
OSC
(and a small RC delay of 4Tt0H) divided
PC + 4
(and a small RC delay of 2Tt0H).
Bit 0
PS0
© 2007 Microchip Technology Inc.
Read TMR0
reads NT0 + 1
xxxx xxxx
1111 1111
---- 1111
Power-On
PC + 5
Value on
Reset
Read TMR0
reads NT0 + 2
NT0 + 1
uuuu uuuu
1111 1111
---- 1111
PC + 6
All Other
Value on
Resets

Related parts for PIC10F222