Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
PIC16F877
The external capacitor can be eliminated, but Microchip warns that the
frequency can vary widely and change often. They recommend at least
20pF of external capacitance for anything resembling stable operation.
CpE 112 : Klinkhachorn
Clock Oscillator: LP, XT, and HS
Use either a parallel-cut crystal or a ceramic resonator*
LP mode is generally used for low-power applications using watch-type crystals or
ceramic resonators in the 32kHz to 200kHz range
XT mode is used from typically 455kHz to 4MHz
HS mode is usually used above 4MHz
The 3 modes are very similar except for the amount of drive supplied to the
crystal
An external clock source can also be used instead of a crystal or
resonator
connect the external signal to the OSC1 pin and leave the OSC2 pin open
* http://www.botkin.org/dale/PICarch.htm
* http://www.mtron.com/applinf.htm
CpE 112 : Klinkhachorn
Quartz Crystal (X-TAL)
The frequency versus
temperature characteristics
of quartz crystal are
primarily determined by the
orientation angle at which
the quartz wafers are cut
from a given bar of quartz.
These properties are
dependent on the reference
directions within the
crystals.
AT and XT cut are the most
common use
* http://www.mtron.com/applinf.htm
CpE 112 : Klinkhachorn
Quartz Crystal (X-TAL)
X-tal equivalent circuit
* http://www.mtron.com/applinf.htm
CpE 112 : Klinkhachorn
Quartz Crystal OSCillator
Typical Pierce Oscillator circuit
use fundamental mode x-tal
the inverter is biased into a linear mode
by feedback resistor RF
inverter stage will provide a 1800 phase
shift between its input and output
the crystal and the two capacitors
provide additional1800 phase allowing
for in-phase energy to be applied to the
input of the inverter stage (completes the * http://www.mtron.com/applinf.htm
feedback loop)
oscillation can occur as long as the
inverter can provide a voltage gain that
is greater than 1
* http://www.botkin.org/dale/PICarch.htm
1.2-1.7V
10K 100
MCLR/
RES ET PIC
Address Bus
CS P
O
PIC
Decoder
RD R
T PSP ?
SMART I/O
WR E
Computer PORTD
Control Bus
CpE 112 : Klinkhachorn