Discussion in "8051 Discussion Forum" started by    colloshi    Jul 23, 2011.
Sat Jul 23 2011, 11:41 pm
#1
hey guyz how can i connect a 4 pin crystal oscillator to the XTAL1, XTAL2 ie which pin of the oscillator goes to XTAL1 and which one goes to XTAL2...
Sun Jul 24 2011, 01:02 am
#2
Is this a self contained oscillator, that has power connections and generates a clock output
or just a crystal in a four pin package ?

If a self contained oscillator connect the output to Xtal1 or Xtal2 (not both), check the data sheet to see which is the "input".
Leave the other unconnected.



Sun Jul 24 2011, 08:27 am
#3
It is a self contained oscillator that has power connection and as u say generates a clock output....the data sheet does not provide much,...there is the no connect pin, VDD pin, GND pin and the output pin. so which of the remaining 3 should be connected to the XTAL2, leave alone the output pin which is connected to XTAL1
Sun Jul 24 2011, 04:50 pm
#4
Actually you are connecting an external oscillator so only XTAL1 is used in that case. and external oscillators are only 3 pin 4th is not connected as far as i know. It would be better if you tell us part number you're using.
Mon Jul 25 2011, 08:53 am
#5
yes i agree with Ajay Bhargav
it is an external oscillator having 4 pins
vcc,gnd,xtal0 and nc pin
so xtal0 is used only
Wed Jul 27 2011, 12:12 am
#6
I have this 4-pin crystal oscillator, and my circuit diagram has the xtal1 and xtal2 connected to the oscillator then through 33pF capacitors to the ground. Am confused how to connect the xtal1 & xtal2 to the 4 pin oscillator, and if so should i power the oscillator? Or is this type of oscillator external as you've said and should be connected to xtal1 only? Another question is if power the oscillator directly from the Vcc will the max rating of the input current be breached since the datasheets says its 30mA? Your help will greately be appreciated...
Wed Jul 27 2011, 01:05 am
#7


I have this 4-pin crystal oscillator, and my circuit diagram has the xtal1 and xtal2 connected to the oscillator then through 33pF capacitors to the ground. Am confused how to connect the xtal1 & xtal2 to the 4 pin oscillator, and if so should i power the oscillator? Or is this type of oscillator external as you've said and should be connected to xtal1 only? Another question is if power the oscillator directly from the Vcc will the max rating of the input current be breached since the datasheets says its 30mA? Your help will greately be appreciated...

colloshi


Your circuit diagram is for a crystal, you have an oscillator module.
Either get a crystal and follow the diagram *OR* use the module and follow our advice.

To use the module, connect the module pin marked Vdd to 5 volts and the pin
marked gnd to ground.
Connect the module "output" to the XTAL1 pin of the micro.
Don't connect anything else.


[ Edited Wed Jul 27 2011, 01:37 am ]
Wed Jul 27 2011, 09:48 pm
#8
thanks guys for your support.......
Wed Jul 27 2011, 11:21 pm
#9
crystal modules are look like this having 4 pins
2 for power supplies and 1 for output
last one is NC not use it
output is connected to XTAL1




crystal oscillator has only two pins or 3 pins
in case of 2 pins it is connected in between XTAL1 and XTAL2
in case of 3 pins mid is connected to ground and other two are connected in between XTAL1 and XTAL2






[ Edited Wed Jul 27 2011, 11:22 pm ]
Thu Jul 28 2011, 11:45 pm
#10
really appreciate your assistance guys...

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Richardgar
Sat Apr 20 2024, 11:05 am
AntoniaRoons
Fri Apr 19 2024, 09:59 pm
carpinteyrowrl
Fri Apr 19 2024, 02:51 pm
DonaldJAX
Fri Apr 19 2024, 01:08 pm
Lewisuhakeply
Thu Apr 18 2024, 06:00 pm
Darrellciz
Thu Apr 18 2024, 11:07 am
Charlessber
Thu Apr 18 2024, 09:29 am
BartonSem
Thu Apr 18 2024, 04:56 am