{"id":859,"date":"2018-10-31T10:12:15","date_gmt":"2018-10-31T10:12:15","guid":{"rendered":"https:\/\/ibex.tech\/embedded\/?p=859"},"modified":"2022-02-18T15:37:48","modified_gmt":"2022-02-18T15:37:48","slug":"using-internal-oscillator","status":"publish","type":"post","link":"https:\/\/ibex.tech\/embedded\/microchip\/pic32\/xc32-v2-old\/oscillator\/using-internal-oscillator","title":{"rendered":"Using Internal Oscillator"},"content":{"rendered":"<h4>\nUsing Internal Oscillator<br \/>\n<\/h4>\n<p>\nJust change this config option to select the Fast RC oscillator instead of PRIPLL.&nbsp;\n<\/p>\n<pre>\r\n<code>\r\n&nbsp;&nbsp; &nbsp;#pragma config FNOSC = FRCPLL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ Oscillator Selection Bits (Fast RC Osc w\/PLL)\r\n<\/code><\/pre>\n<p>\nThe Fast RC oscillator is 8MHz&nbsp;so same other setup as using an 8MHz&nbsp;crystal, apart from the accuracy not being as good.\n<\/p>\n<p>\nThe&nbsp;POSCMOD&nbsp;setting is supposed to have&nbsp;no effect when FRC is selected &#8211; its value is don&#39;t care.&nbsp; However we have found on some devices that if it is not set to off as below then the RA2 and RA3 pins often shared with the OSC1 and OSC2 pins won&#39;t work as IO:\n<\/p>\n<pre>\r\n<code>\r\n\t#pragma config POSCMOD = OFF\r\n<\/code><\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using Internal Oscillator Just change this config option to select the Fast RC oscillator instead of PRIPLL.&nbsp; &nbsp;&nbsp; &nbsp;#pragma config FNOSC = FRCPLL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ Oscillator Selection Bits (Fast RC Osc w\/PLL) The Fast RC oscillator is 8MHz&nbsp;so same other setup as using an 8MHz&nbsp;crystal, apart from the accuracy not being [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[],"class_list":["post-859","post","type-post","status-publish","format-standard","hentry","category-oscillator"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/comments?post=859"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/859\/revisions"}],"predecessor-version":[{"id":860,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/859\/revisions\/860"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/media?parent=859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/categories?post=859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/tags?post=859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}