R
Richard Harris
Guest
Hi,
Im play with a PIC 16F627 and have it wired up with a 4MHz cystal with
two 18pF Caps,
my question is, do the caps affect the acuracy of the oscillation of the
crystal, and I cant find any
data on the acuracy of the crystals, I cant check them as I dont have an
oscilloscope.
Im running at 4MHz and have created a dealy routine that does exactly
1000000 cycles and does some output
have included the output routine cylces to. Im 100% sure the code is correct
and that it should produce exactly 1 second time intervals. But when I run
the chip for 3 hours I lose 1 second. Im using a watch to check the timing
and im sure the watch is very acurate as it cost like $400 and know it keeps
good time.
What could be the cause of the lost time, do i need better quality crystals
or could it be the caps that
are affecting it.
Thanks.
Im play with a PIC 16F627 and have it wired up with a 4MHz cystal with
two 18pF Caps,
my question is, do the caps affect the acuracy of the oscillation of the
crystal, and I cant find any
data on the acuracy of the crystals, I cant check them as I dont have an
oscilloscope.
Im running at 4MHz and have created a dealy routine that does exactly
1000000 cycles and does some output
have included the output routine cylces to. Im 100% sure the code is correct
and that it should produce exactly 1 second time intervals. But when I run
the chip for 3 hours I lose 1 second. Im using a watch to check the timing
and im sure the watch is very acurate as it cost like $400 and know it keeps
good time.
What could be the cause of the lost time, do i need better quality crystals
or could it be the caps that
are affecting it.
Thanks.