{"id":40,"date":"2010-10-07T21:42:12","date_gmt":"2010-10-07T10:42:12","guid":{"rendered":"http:\/\/www.vk1zdj.net\/?p=40"},"modified":"2018-03-02T15:39:30","modified_gmt":"2018-03-02T04:39:30","slug":"arduino-atmega326-using-the-oscillator-pin","status":"publish","type":"post","link":"http:\/\/www.vk1zdj.net\/?p=40","title":{"rendered":"Arduino ATMega326 Using the Oscillator pin"},"content":{"rendered":"<p>I just figured out how to use the oscillator pin of the AtMega328 chip to drive an additional component. I am working on a project that requires a 16Mhz clock to drive other electronics, and figured that the AtMega328 chip there has a 16Mhz crystal connected to it. Sadly the default fuse programming that the Arduino world uses is a &#8216;low power&#8217; mode where the voltage on the oscillator pin is only about 200mV. If you re-program the fuses, you can put the oscillator into &#8216;full swing&#8217; mode. Neat!!<\/p>\n<p>The command line I used was:<\/p>\n<p>avrdude -p m328p -c usbtiny -U lfuse:w:0xf7:m -U hfuse:w:0xda:m<\/p>\n<p>Neat!!! Now I can see a beautiful full voltage sinewave on the Oscillator pin.<a href=\"http:\/\/www.vk1zdj.net\/wp-content\/uploads\/2010\/09\/AtMega368-fullswing.bmp\"><img decoding=\"async\" class=\"alignnone size-full wp-image-45\" title=\"AtMega368-fullswing\" src=\"http:\/\/www.vk1zdj.net\/wp-content\/uploads\/2010\/09\/AtMega368-fullswing.bmp\" alt=\"CRO display of new full swing waveform\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just figured out how to use the oscillator pin of the AtMega328 chip to drive an additional component. I am working on a project that requires a 16Mhz clock to drive other electronics, and figured that the&#8230; <\/p>\n","protected":false},"author":1,"featured_media":45,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[5],"tags":[],"jetpack_featured_media_url":"http:\/\/www.vk1zdj.net\/wp-content\/uploads\/2010\/09\/AtMega368-fullswing.bmp","_links":{"self":[{"href":"http:\/\/www.vk1zdj.net\/index.php?rest_route=\/wp\/v2\/posts\/40"}],"collection":[{"href":"http:\/\/www.vk1zdj.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.vk1zdj.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.vk1zdj.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.vk1zdj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":4,"href":"http:\/\/www.vk1zdj.net\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":472,"href":"http:\/\/www.vk1zdj.net\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/472"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.vk1zdj.net\/index.php?rest_route=\/wp\/v2\/media\/45"}],"wp:attachment":[{"href":"http:\/\/www.vk1zdj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.vk1zdj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.vk1zdj.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}