{"id":27,"date":"2012-05-10T22:13:14","date_gmt":"2012-05-11T03:13:14","guid":{"rendered":"http:\/\/monopoly.foxtailsoftware.com\/?p=27"},"modified":"2013-07-14T16:26:51","modified_gmt":"2013-07-14T21:26:51","slug":"going-back-and-forth-on-this","status":"publish","type":"post","link":"http:\/\/monopoly.furdaze.com\/?p=27","title":{"rendered":"Going Back and Forth on This"},"content":{"rendered":"<p>So, crystals came in.\u00a0 Because I failed to actually check the Amazon listings very carefully, I just ordered the first crystals I saw, which were marked as 16.0 MHz.\u00a0 After the order was placed and on the way, I see that the chip I&#8217;m using may not be happy with anything more than 3.0 MHz.\u00a0 Oops.\u00a0 Well, may as well try it anyway.<\/p>\n<p>Hooked up the crystal in the circuit as demonstrated in <a href=\"http:\/\/www.doctronics.co.uk\/4060.htm\">the previously discussed page<\/a>, and was pleasantly surprised to see the timing LED firing much more quickly than with the RC circuit.\u00a0 Not only that, but the fact that it was firing at all was a positive sign!\u00a0 Maybe it&#8217;d work with this frequency after all!\u00a0 Well, let&#8217;s just connect the rest of the circuit back up and see what happens.<\/p>\n<p>Well, better results, but far from acceptable.\u00a0 I can see the PWM beginning to occur, but it&#8217;s not really working, so much as turning the LEDs on and off&#8230; very&#8230; slowly&#8230;\u00a0 Drat.\u00a0 Well, I can play around with some resistor and capacitor values to see what I can do, but that&#8217;s just not going to cut it.\u00a0 I hooked up a logic analyzer and saw some interesting results.\u00a0 The analyzer can only sample at 24 MHz, so I can&#8217;t expect to get a regular 16 MHz signal fully captured, but I should be able to see something.\u00a0 And something I did see.\u00a0 A very erratic signal, with a short burst of regular pulses that measured around 7 kHz, followed by long stretches of no pulses whatsoever, then another burst.<\/p>\n<p>This means one of two things the way I figure.\u00a0 Possibility A is that I&#8217;m really just not reading it well, and the signal is fine, and I&#8217;m just missing 95% of the pulses.\u00a0 Possibility B is that something is still very wonky with the circuit, possibly due to the load of the other chip, and it&#8217;s just too fragile and sensitive to be reliable in the current configuration.\u00a0 Considering that I also was tracing one of the higher count lines, and its pulses only seemed to occur when the bursts I did record occurred, I&#8217;m thinking option A is far more likely.<\/p>\n<p>So, another timing option come and gone.\u00a0 I could go ahead and order another batch of 50 crystals for a different frequency, but instead I&#8217;m going to turn to <a href=\"http:\/\/www.digikey.com\/\">Digi-Key<\/a>, who a coworker conveniently pointed out is willing to ship USPS first class mail for cheap.\u00a0 I&#8217;ve got three different frequencies of actual oscillator chips on order, which I&#8217;m hoping will be far more resilient to the vagaries of my circuit that these RC and crystal configurations have been.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, crystals came in.\u00a0 Because I failed to actually check the Amazon listings very carefully, I just ordered the first crystals I saw, which were marked as 16.0 MHz.\u00a0 After the order was placed and on the way, I see that the chip I&#8217;m using may not be happy with anything more than 3.0 MHz.\u00a0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-electronics"],"_links":{"self":[{"href":"http:\/\/monopoly.furdaze.com\/index.php?rest_route=\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/monopoly.furdaze.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/monopoly.furdaze.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/monopoly.furdaze.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/monopoly.furdaze.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27"}],"version-history":[{"count":1,"href":"http:\/\/monopoly.furdaze.com\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":139,"href":"http:\/\/monopoly.furdaze.com\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions\/139"}],"wp:attachment":[{"href":"http:\/\/monopoly.furdaze.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/monopoly.furdaze.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/monopoly.furdaze.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}