Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

recogicion of a cristal

Status
Not open for further replies.

bloody-orc

New Member
Hi there

Is there any way and what way to mesure a cristal with a pic. i connect a lets say 27MHz cristal to some pins and then it puls high out 1 but if i put 433MHz cristal to the same pins then it will pull high out nr 2
 
bloody-orc said:
Hi there

Is there any way and what way to mesure a cristal with a pic. i connect a lets say 27MHz cristal to some pins and then it puls high out 1 but if i put 433MHz cristal to the same pins then it will pull high out nr 2

You build an oscillator round the crystal, and use a PIC as a frequency counter to measure the frequency - there are a number of PIC based frequency counter designs (including a very old MicroChip application note).

BTW, you don't get crystals anywhere near as high as 433MHz.
 
nono this 433MHz was an example not a plan to use one.

maybe something from **broken link removed**

or could i use something like that?
 

Attachments

  • xtal_165.jpg
    xtal_165.jpg
    7.8 KB · Views: 409
bloody-orc said:

Yes, that's all you need - you could add a buffer from the emitter of T1 to feed a frequency counter (a PIC one would be good enough). Bear in mind though that this circuit only oscillates at the crystals fundamental frequency, so a 27MHz crsytal might run at only 9MHz (for a third overtone crystal).
 
no thats no problem at all. all i need to do is tu understand that it is a 27MHz cristal.
 
You could compare frequencies.

write your code so that one output pin is pulsed throughout your program, or better yet, try to take the pulses directly from the crystal itself.

Once you get a pulse, make yourself another oscillator. Both of these oscillators make an input of a digital PLL.

I think the simplest way to go with the PLL design is to connect one input to one input of an xor and xnor gate, and the other input to the other input of an xor and xnor gate.

connect the outputs of these gates to separate indicators. Two LED's with current limiting resistors will do.

The reason why I say use xnor and xor is because 1 LED will tell you when the frequency is the same and both oscillators are outputting different polarities, and the other LED will tell you when both oscillators are outputting the exact same signal.

both LED's cannot be on at the same time.
 
well as i use 8 different crystals to make high 8 different outputs then i guess i really cant use that
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top