4 pin oscillator and PIC clk pins

Discussion in 'General Electronics Chat' started by hunterage2000, Nov 6, 2012.

  1. hunterage2000

    Thread Starter Active Member

    May 2, 2010
    400
    0
    Can anyone tell me how a 4 pin oscillator is connected to the clkin and clkout pins? I have attached the circuit layout. It is a 20MHZ EPSON oscillator with pins Vdd, GND, Out and OE or ST.
     
    • PIC.jpg
      PIC.jpg
      File size:
      47.4 KB
      Views:
      75
  2. Ron H

    AAC Fanatic!

    Apr 14, 2005
    7,050
    657
    Oscillator OUT to PIC pin 13.
    PIC pin 14 no connection.
     
  3. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
  4. ScottWang

    Moderator

    Aug 23, 2012
    4,856
    767
    You can see the datasheet of crystal module as below.
    I always just used three pins, Vcc,Gnd,Out, and ignore the output Enable/Disable.

    http://www.pletronics.com/uploads/datasheets/p1145-hcm.pdf

    The datasheet as t06afre linked page 54:
    The output of crystal module connecting to RC1/T1OSI/CCP2(2) of Pic16F877.
     
    Last edited: Nov 6, 2012
  5. Ron H

    AAC Fanatic!

    Apr 14, 2005
    7,050
    657
    The pinout may be the same, but that is definitely not an Epson 20MHz oscillator, as specified by the OP.
    Here is one, but it still may not be the OP's choice.
     
  6. ScottWang

    Moderator

    Aug 23, 2012
    4,856
    767
    You are right, but if the OP know the meaning of pin of crystal, then he still can connect to the right pin.
     
  7. takao21203

    Distinguished Member

    Apr 28, 2012
    3,577
    463
    the pins for these are normally the same
     
  8. hunterage2000

    Thread Starter Active Member

    May 2, 2010
    400
    0
    So in the diagram what are the pins either side of the oscillator? In my tutorial book it says pins 13 and 14 must always be connected and doesnt really go into anything else about the oscillator.
     
  9. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Then your tutorial are wrong. In your case you need to connect the out pin to pin 13 on the PIC. And at the same time select HS, XT ORLP OSC CONFIGURATION
     
Loading...