home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / sci / electron / 23300 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  3.0 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!swrinde!cs.utexas.edu!torn!news.ccs.queensu.ca!qucdn!leek
  2. Organization: Queen's University at Kingston
  3. Date: Sun, 24 Jan 1993 16:48:22 EST
  4. From: <LEEK@QUCDN.QueensU.CA>
  5. Message-ID: <93024.164822LEEK@QUCDN.QueensU.CA>
  6. Newsgroups: sci.electronics
  7. Subject: Re: Crystals!
  8. References: <1993Jan21.183404.1534@mnemosyne.cs.du.edu>
  9.  <C1Cx1r.MIv@ccu.umanitoba.ca>
  10. Lines: 54
  11.  
  12. >In article <1993Jan21.183404.1534@mnemosyne.cs.du.edu> rduta@nyx.cs.du.edu
  13. >(Radu) writes:
  14. >>Can someone please tell me some more info about crystals.  I need to make
  15. >>a electronic switch to select between two crystlas (2MHz, and 8MHz -about),I
  16. >>tried using a 4016 (IC switch), and it didn't work.  Can someople please
  17. >>give me another solution.  I'm desperate.
  18.  
  19. A quick hack to do it is to use the following Oscillator/Multiplexor
  20. circuit that I used to switch clock frequency on my pocket computer back
  21. in high school days...
  22.  
  23. Use 74HC00 as                      +------------------------------+  __
  24. the 4 nand               4.7M      |                  4.7M        +-|  \o
  25. gates.            +----/\/\/\/\----+           +----/\/\/\/\----+---|__/|
  26.                   |        _       |           |       _        |       |
  27. Xtal1             +------|| ||-----+           +-----|| ||------+       |
  28. Xtal2             |        -  Xtal1|           |       -   Xtal2|   Clock
  29. are the 2         |       __       |           |       __       |    out
  30. crystals          +------|  \o-----+           +------|  \o-----+
  31. 2, 8 MHz          |   +--|__/      |           |   +--|__/      |
  32.             20pF ===  |  nand     ===  20pF   ===  |           ===
  33.                   |   |  gate      |           |   |            |
  34.              __   V   |            V Gnd       V   |            V
  35. Select ---+-|  \o-----+                            |
  36.           +-|__/                                   |
  37.           +----------------------------------------+
  38.  
  39. (Some of you might want to add a series resistor to limit the current
  40. through the crystal and change the capacitor or whatever.) The circuit
  41. has the lowest components count because it combines the oscillator with
  42. the multiplexor circuit and it does work nicely and it might take
  43. a little bit of time for the oscillator circuit to start after you pull
  44. the select line high/low to select the clock source.  If you don't want
  45. that delay, you might want to build 2 oscillator circuits and feed the
  46. outputs to a 2-1 mulitplexor.  These days I would use a GAL16V8 to
  47. implement the whole thing.  The CMOS inputs works nicely for a simple
  48. oscillator.
  49.  
  50. In article <C1Cx1r.MIv@ccu.umanitoba.ca>, shad04@ccu.umanitoba.ca (Dan Fandrich)
  51. says:
  52. >
  53. >The 4016 can have a fairly high internal resistance (2k).  Why not use the
  54.  
  55. More likely the high capacitance is going to cause trouble.
  56.  
  57. >8 MHz crystal and selectively divide the output by 4 or use a PLL?
  58.  
  59. Could use the 8MHz and divide by 4 to get 2 MHz.  Less components than
  60. a PLL.  (Since your PLL needs a /4 circuit and a PLL chip)
  61.  
  62. >>>> Dan
  63.  
  64. K. C. Lee
  65. Elec. Eng. Grad. Student
  66.