CPLD based Pierce oscillator





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2












$begingroup$


I want to make a clock generator for Altera EPM240T100C5N using the CPLD itself as a Pierce oscillator. This CPLD has Schmitt trigger inputs so I guess this should be possible. What I`m not sure about is the reliability of this approach. Can I use a CPLD inverter to build an oscillator? If yes, how much influence will the supplied voltage have on the resulting jitter? Will there be much difference between 2.5V and 1.8V at 48 MHz?



enter image description here










share|improve this question









$endgroup$












  • $begingroup$
    not possible................ You can't design it, if you don't know how it works ( which is easy to search) Hysteresis is used for RC relaxation Oscillators only
    $endgroup$
    – Sunnyskyguy EE75
    May 12 at 15:15












  • $begingroup$
    I'm curious. Why not just use a crystal to provide a clock for the CPLD? You'd probably save a lot of space on your PCA.
    $endgroup$
    – KingDuken
    May 12 at 15:20








  • 2




    $begingroup$
    If you look at similar oscillators, you'll generally see they specify "unbuffered" inverters (such as the 74HCU04 - an unbuffered version of the 74HC04 - sold for precisely such purposes. If your CPLD doesn't advertise a pair of dedicated pins with an unbuffered inverter between them, it really isn't worth trying this approach.
    $endgroup$
    – Brian Drummond
    May 12 at 15:27






  • 4




    $begingroup$
    @KingDuken "Why not just use a crystal to provide a clock..." because a crystal is a passive component, and needs a correct amplifier circuit to make an oscillator. Perhaps you're thinking of a crystal oscillator in a can?
    $endgroup$
    – TimWescott
    May 12 at 16:17










  • $begingroup$
    @TimWescott I think KingDuken meant a passive crystal going to XTAL(TOSC) pins, I'm not a CPLD guru, but so far the CPLD's I've worked with has those pins.
    $endgroup$
    – Harry Svensson
    May 12 at 18:06




















2












$begingroup$


I want to make a clock generator for Altera EPM240T100C5N using the CPLD itself as a Pierce oscillator. This CPLD has Schmitt trigger inputs so I guess this should be possible. What I`m not sure about is the reliability of this approach. Can I use a CPLD inverter to build an oscillator? If yes, how much influence will the supplied voltage have on the resulting jitter? Will there be much difference between 2.5V and 1.8V at 48 MHz?



enter image description here










share|improve this question









$endgroup$












  • $begingroup$
    not possible................ You can't design it, if you don't know how it works ( which is easy to search) Hysteresis is used for RC relaxation Oscillators only
    $endgroup$
    – Sunnyskyguy EE75
    May 12 at 15:15












  • $begingroup$
    I'm curious. Why not just use a crystal to provide a clock for the CPLD? You'd probably save a lot of space on your PCA.
    $endgroup$
    – KingDuken
    May 12 at 15:20








  • 2




    $begingroup$
    If you look at similar oscillators, you'll generally see they specify "unbuffered" inverters (such as the 74HCU04 - an unbuffered version of the 74HC04 - sold for precisely such purposes. If your CPLD doesn't advertise a pair of dedicated pins with an unbuffered inverter between them, it really isn't worth trying this approach.
    $endgroup$
    – Brian Drummond
    May 12 at 15:27






  • 4




    $begingroup$
    @KingDuken "Why not just use a crystal to provide a clock..." because a crystal is a passive component, and needs a correct amplifier circuit to make an oscillator. Perhaps you're thinking of a crystal oscillator in a can?
    $endgroup$
    – TimWescott
    May 12 at 16:17










  • $begingroup$
    @TimWescott I think KingDuken meant a passive crystal going to XTAL(TOSC) pins, I'm not a CPLD guru, but so far the CPLD's I've worked with has those pins.
    $endgroup$
    – Harry Svensson
    May 12 at 18:06
















2












2








2





$begingroup$


I want to make a clock generator for Altera EPM240T100C5N using the CPLD itself as a Pierce oscillator. This CPLD has Schmitt trigger inputs so I guess this should be possible. What I`m not sure about is the reliability of this approach. Can I use a CPLD inverter to build an oscillator? If yes, how much influence will the supplied voltage have on the resulting jitter? Will there be much difference between 2.5V and 1.8V at 48 MHz?



enter image description here










share|improve this question









$endgroup$




I want to make a clock generator for Altera EPM240T100C5N using the CPLD itself as a Pierce oscillator. This CPLD has Schmitt trigger inputs so I guess this should be possible. What I`m not sure about is the reliability of this approach. Can I use a CPLD inverter to build an oscillator? If yes, how much influence will the supplied voltage have on the resulting jitter? Will there be much difference between 2.5V and 1.8V at 48 MHz?



enter image description here







oscillator programmable-logic schmitt-trigger jitter






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 12 at 15:06









hidefromkgbhidefromkgb

17212




17212












  • $begingroup$
    not possible................ You can't design it, if you don't know how it works ( which is easy to search) Hysteresis is used for RC relaxation Oscillators only
    $endgroup$
    – Sunnyskyguy EE75
    May 12 at 15:15












  • $begingroup$
    I'm curious. Why not just use a crystal to provide a clock for the CPLD? You'd probably save a lot of space on your PCA.
    $endgroup$
    – KingDuken
    May 12 at 15:20








  • 2




    $begingroup$
    If you look at similar oscillators, you'll generally see they specify "unbuffered" inverters (such as the 74HCU04 - an unbuffered version of the 74HC04 - sold for precisely such purposes. If your CPLD doesn't advertise a pair of dedicated pins with an unbuffered inverter between them, it really isn't worth trying this approach.
    $endgroup$
    – Brian Drummond
    May 12 at 15:27






  • 4




    $begingroup$
    @KingDuken "Why not just use a crystal to provide a clock..." because a crystal is a passive component, and needs a correct amplifier circuit to make an oscillator. Perhaps you're thinking of a crystal oscillator in a can?
    $endgroup$
    – TimWescott
    May 12 at 16:17










  • $begingroup$
    @TimWescott I think KingDuken meant a passive crystal going to XTAL(TOSC) pins, I'm not a CPLD guru, but so far the CPLD's I've worked with has those pins.
    $endgroup$
    – Harry Svensson
    May 12 at 18:06




















  • $begingroup$
    not possible................ You can't design it, if you don't know how it works ( which is easy to search) Hysteresis is used for RC relaxation Oscillators only
    $endgroup$
    – Sunnyskyguy EE75
    May 12 at 15:15












  • $begingroup$
    I'm curious. Why not just use a crystal to provide a clock for the CPLD? You'd probably save a lot of space on your PCA.
    $endgroup$
    – KingDuken
    May 12 at 15:20








  • 2




    $begingroup$
    If you look at similar oscillators, you'll generally see they specify "unbuffered" inverters (such as the 74HCU04 - an unbuffered version of the 74HC04 - sold for precisely such purposes. If your CPLD doesn't advertise a pair of dedicated pins with an unbuffered inverter between them, it really isn't worth trying this approach.
    $endgroup$
    – Brian Drummond
    May 12 at 15:27






  • 4




    $begingroup$
    @KingDuken "Why not just use a crystal to provide a clock..." because a crystal is a passive component, and needs a correct amplifier circuit to make an oscillator. Perhaps you're thinking of a crystal oscillator in a can?
    $endgroup$
    – TimWescott
    May 12 at 16:17










  • $begingroup$
    @TimWescott I think KingDuken meant a passive crystal going to XTAL(TOSC) pins, I'm not a CPLD guru, but so far the CPLD's I've worked with has those pins.
    $endgroup$
    – Harry Svensson
    May 12 at 18:06


















$begingroup$
not possible................ You can't design it, if you don't know how it works ( which is easy to search) Hysteresis is used for RC relaxation Oscillators only
$endgroup$
– Sunnyskyguy EE75
May 12 at 15:15






$begingroup$
not possible................ You can't design it, if you don't know how it works ( which is easy to search) Hysteresis is used for RC relaxation Oscillators only
$endgroup$
– Sunnyskyguy EE75
May 12 at 15:15














$begingroup$
I'm curious. Why not just use a crystal to provide a clock for the CPLD? You'd probably save a lot of space on your PCA.
$endgroup$
– KingDuken
May 12 at 15:20






$begingroup$
I'm curious. Why not just use a crystal to provide a clock for the CPLD? You'd probably save a lot of space on your PCA.
$endgroup$
– KingDuken
May 12 at 15:20






2




2




$begingroup$
If you look at similar oscillators, you'll generally see they specify "unbuffered" inverters (such as the 74HCU04 - an unbuffered version of the 74HC04 - sold for precisely such purposes. If your CPLD doesn't advertise a pair of dedicated pins with an unbuffered inverter between them, it really isn't worth trying this approach.
$endgroup$
– Brian Drummond
May 12 at 15:27




$begingroup$
If you look at similar oscillators, you'll generally see they specify "unbuffered" inverters (such as the 74HCU04 - an unbuffered version of the 74HC04 - sold for precisely such purposes. If your CPLD doesn't advertise a pair of dedicated pins with an unbuffered inverter between them, it really isn't worth trying this approach.
$endgroup$
– Brian Drummond
May 12 at 15:27




4




4




$begingroup$
@KingDuken "Why not just use a crystal to provide a clock..." because a crystal is a passive component, and needs a correct amplifier circuit to make an oscillator. Perhaps you're thinking of a crystal oscillator in a can?
$endgroup$
– TimWescott
May 12 at 16:17




$begingroup$
@KingDuken "Why not just use a crystal to provide a clock..." because a crystal is a passive component, and needs a correct amplifier circuit to make an oscillator. Perhaps you're thinking of a crystal oscillator in a can?
$endgroup$
– TimWescott
May 12 at 16:17












$begingroup$
@TimWescott I think KingDuken meant a passive crystal going to XTAL(TOSC) pins, I'm not a CPLD guru, but so far the CPLD's I've worked with has those pins.
$endgroup$
– Harry Svensson
May 12 at 18:06






$begingroup$
@TimWescott I think KingDuken meant a passive crystal going to XTAL(TOSC) pins, I'm not a CPLD guru, but so far the CPLD's I've worked with has those pins.
$endgroup$
– Harry Svensson
May 12 at 18:06












2 Answers
2






active

oldest

votes


















6












$begingroup$

I do not recommend this approach. You may get some circuit to oscillate under some conditions but you may very well have problems with jitter, unreliable startup and off frequency operation.



You should instead use a ready made crystal oscillator part. These days these are very small parts and can be placed near to the FPGA. The oscillator application only requires a bypass capacitor across its power pins and for some applications a small value series termination resistor at the oscillator may be required.






share|improve this answer









$endgroup$





















    7












    $begingroup$


    This CPLD has Schmitt trigger inputs so I guess this should be possible.




    Actually, if it has Schmitt trigger inputs it makes it impossible. A Schmitt trigger would just about guarantee that the oscillator would start up in a mode that excites the RC components of the circuits and bypasses the crystal altogether.






    share|improve this answer









    $endgroup$














      Your Answer






      StackExchange.ifUsing("editor", function () {
      return StackExchange.using("schematics", function () {
      StackExchange.schematics.init();
      });
      }, "cicuitlab");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "135"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f438115%2fcpld-based-pierce-oscillator%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      6












      $begingroup$

      I do not recommend this approach. You may get some circuit to oscillate under some conditions but you may very well have problems with jitter, unreliable startup and off frequency operation.



      You should instead use a ready made crystal oscillator part. These days these are very small parts and can be placed near to the FPGA. The oscillator application only requires a bypass capacitor across its power pins and for some applications a small value series termination resistor at the oscillator may be required.






      share|improve this answer









      $endgroup$


















        6












        $begingroup$

        I do not recommend this approach. You may get some circuit to oscillate under some conditions but you may very well have problems with jitter, unreliable startup and off frequency operation.



        You should instead use a ready made crystal oscillator part. These days these are very small parts and can be placed near to the FPGA. The oscillator application only requires a bypass capacitor across its power pins and for some applications a small value series termination resistor at the oscillator may be required.






        share|improve this answer









        $endgroup$
















          6












          6








          6





          $begingroup$

          I do not recommend this approach. You may get some circuit to oscillate under some conditions but you may very well have problems with jitter, unreliable startup and off frequency operation.



          You should instead use a ready made crystal oscillator part. These days these are very small parts and can be placed near to the FPGA. The oscillator application only requires a bypass capacitor across its power pins and for some applications a small value series termination resistor at the oscillator may be required.






          share|improve this answer









          $endgroup$



          I do not recommend this approach. You may get some circuit to oscillate under some conditions but you may very well have problems with jitter, unreliable startup and off frequency operation.



          You should instead use a ready made crystal oscillator part. These days these are very small parts and can be placed near to the FPGA. The oscillator application only requires a bypass capacitor across its power pins and for some applications a small value series termination resistor at the oscillator may be required.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 12 at 15:21









          Michael KarasMichael Karas

          45.9k349107




          45.9k349107

























              7












              $begingroup$


              This CPLD has Schmitt trigger inputs so I guess this should be possible.




              Actually, if it has Schmitt trigger inputs it makes it impossible. A Schmitt trigger would just about guarantee that the oscillator would start up in a mode that excites the RC components of the circuits and bypasses the crystal altogether.






              share|improve this answer









              $endgroup$


















                7












                $begingroup$


                This CPLD has Schmitt trigger inputs so I guess this should be possible.




                Actually, if it has Schmitt trigger inputs it makes it impossible. A Schmitt trigger would just about guarantee that the oscillator would start up in a mode that excites the RC components of the circuits and bypasses the crystal altogether.






                share|improve this answer









                $endgroup$
















                  7












                  7








                  7





                  $begingroup$


                  This CPLD has Schmitt trigger inputs so I guess this should be possible.




                  Actually, if it has Schmitt trigger inputs it makes it impossible. A Schmitt trigger would just about guarantee that the oscillator would start up in a mode that excites the RC components of the circuits and bypasses the crystal altogether.






                  share|improve this answer









                  $endgroup$




                  This CPLD has Schmitt trigger inputs so I guess this should be possible.




                  Actually, if it has Schmitt trigger inputs it makes it impossible. A Schmitt trigger would just about guarantee that the oscillator would start up in a mode that excites the RC components of the circuits and bypasses the crystal altogether.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 12 at 16:19









                  TimWescottTimWescott

                  8,6601719




                  8,6601719






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Electrical Engineering Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      Use MathJax to format equations. MathJax reference.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f438115%2fcpld-based-pierce-oscillator%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      He _____ here since 1970 . Answer needed [closed]What does “since he was so high” mean?Meaning of “catch birds for”?How do I ensure “since” takes the meaning I want?“Who cares here” meaningWhat does “right round toward” mean?the time tense (had now been detected)What does the phrase “ring around the roses” mean here?Correct usage of “visited upon”Meaning of “foiled rail sabotage bid”It was the third time I had gone to Rome or It is the third time I had been to Rome

                      Bunad

                      Færeyskur hestur Heimild | Tengill | Tilvísanir | LeiðsagnarvalRossið - síða um færeyska hrossið á færeyskuGott ár hjá færeyska hestinum