Can anyone tell me why some crystals work and not others. I have a PIC16F877 and a PIC16F873 and both behave the same when using three crystals I have. Both PICs are set to use HS oscillator, and have 22pf capacitors to ground off each crystal pin.
Each crystal is your box standard shape, but the text on them is as follows:
Crystal 1 - This one works on both pics.
XT05360
4.000MHz
ECM 11E
Crystal 2 - This doesn't work on either - ie the PIC appears to not be receiving a clock signal.
AQ
10.000MHz
Crystal 3 - This doesn't work on either as the above.
10.0000
IQD CK
d8
Thanks in advance.
Jim
Crystal Selection
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: Crystal Selection
Hi,
Quoting from the PIC16F87X data sheet: "The PIC16F87X oscillator design requires the use of a parallel cut crystal."
So the non working crystals might be of a wrong type.
For a nice for a bit of background reading (quoting from the 18F14K50 data sheet):
• AN826, β€Crystal Oscillator Basics and Crystal Selection for rfPICΒ® and PICΒ® Devicesβ€ (DS00826)
• AN849, β€Basic PICΒ® Oscillator Designβ€ (DS00849)
• AN943, β€Practical PICΒ® Oscillator Analysis and Designβ€ (DS00943)
• AN949, β€Making Your Oscillator Workβ€ (DS00949)
Regards,
Jac
Quoting from the PIC16F87X data sheet: "The PIC16F87X oscillator design requires the use of a parallel cut crystal."
So the non working crystals might be of a wrong type.
For a nice for a bit of background reading (quoting from the 18F14K50 data sheet):
• AN826, β€Crystal Oscillator Basics and Crystal Selection for rfPICΒ® and PICΒ® Devicesβ€ (DS00826)
• AN849, β€Basic PICΒ® Oscillator Designβ€ (DS00849)
• AN943, β€Practical PICΒ® Oscillator Analysis and Designβ€ (DS00943)
• AN949, β€Making Your Oscillator Workβ€ (DS00949)
Regards,
Jac
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Crystal Selection
Hello
There are figures assigned to crystals such as load capacatance and shunt capacitance. If these are too high then they can cause the device to fail. I've only ever had problems using the smaller surface mount types of crystals combined with the ARM processors as the tolerances on these seem to be much worse.
These crystals or similar should work fine with PIC, AVR and ARM processors.
http://www.rapidonline.com/Electronic-C ... ACT)/29219
I have however come across damaged or faulty crystals so this could be why you have one that wont work with anything.
There are figures assigned to crystals such as load capacatance and shunt capacitance. If these are too high then they can cause the device to fail. I've only ever had problems using the smaller surface mount types of crystals combined with the ARM processors as the tolerances on these seem to be much worse.
These crystals or similar should work fine with PIC, AVR and ARM processors.
http://www.rapidonline.com/Electronic-C ... ACT)/29219
I have however come across damaged or faulty crystals so this could be why you have one that wont work with anything.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel