{"id":835,"date":"2018-10-18T12:34:21","date_gmt":"2018-10-18T12:34:21","guid":{"rendered":"https:\/\/ibex.tech\/embedded\/?p=835"},"modified":"2022-02-18T15:37:48","modified_gmt":"2022-02-18T15:37:48","slug":"ad1pcfg-or-ansel","status":"publish","type":"post","link":"https:\/\/ibex.tech\/embedded\/microchip\/pic32\/xc32-v2-old\/atod-xc32\/ad1pcfg-or-ansel","title":{"rendered":"AD1PCFG or ANSEL"},"content":{"rendered":"<p>\nMost PIC32&#39;s use&nbsp;AD1PCFG&nbsp;to define pins as analog or digital, but not all.&nbsp; If your device doesn&#39;t have that register:\n<\/p>\n<p style=\"margin-left: 40px;\">\nLook in the datasheet for ANSELx registers (ANSELA,&nbsp;ANSELB, etc)\n<\/p>\n<p style=\"margin-left: 40px;\">\nCheck your&nbsp;OpenADC10() call if you use it isnt&#39; based on&nbsp;ENABLE_AN0_ANA etc for the final&nbsp;AD1CSSL register parameter as these will be wrong for&nbsp;ANSELA etc based devices\n<\/p>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Most PIC32&#39;s use&nbsp;AD1PCFG&nbsp;to define pins as analog or digital, but not all.&nbsp; If your device doesn&#39;t have that register: Look in the datasheet for ANSELx registers (ANSELA,&nbsp;ANSELB, etc) Check your&nbsp;OpenADC10() call if you use it isnt&#39; based on&nbsp;ENABLE_AN0_ANA etc for the final&nbsp;AD1CSSL register parameter as these will be wrong for&nbsp;ANSELA etc based devices &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-835","post","type-post","status-publish","format-standard","hentry","category-atod-xc32"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/835","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=835"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/835\/revisions"}],"predecessor-version":[{"id":846,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/835\/revisions\/846"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/media?parent=835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/categories?post=835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/tags?post=835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}