<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>The Bio Highway – Exploring ADC with Cypress ModusToolbox and Device Configurator</title><link>/challenges-projects/design-challenges/connected-cloud-challenge-with-cypress-and-aws-iot/b/blog/posts/the-bio-highway-exploring-adc-with-cypress-modustoolbox-and-device-configurator</link><description>Plan for The Week My plan for this week was pretty simple - enable reading of analog data from on-board thermistor using ModusToolbox. It is an important step to convert Arduinio code for heart beat sensor to PSoC 6 and specifically to my board ...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: The Bio Highway – Exploring ADC with Cypress ModusToolbox and Device Configurator</title><link>https://community.element14.com/challenges-projects/design-challenges/connected-cloud-challenge-with-cypress-and-aws-iot/b/blog/posts/the-bio-highway-exploring-adc-with-cypress-modustoolbox-and-device-configurator</link><pubDate>Mon, 20 Apr 2020 14:47:06 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f4a3825e-2242-4199-b134-9cbc10add112</guid><dc:creator>saicheong</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;The photo under element14 community seen currently out of order......so i don&amp;#39;t know what wrong with your config.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Under Device Configurator you need config the ARef, Clock, GPIO and connect together under Peripherals&amp;gt;Programmable Analog&amp;gt;12-bit SAR ADC.&lt;/p&gt;&lt;p&gt;After that you need to call Cy_SAR_Init and Cy_SAR_Enable ..... which may sophisticate.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;As for simple Analog Input,&amp;nbsp; just use &lt;a class="jive-link-external-small" href="https://cypresssemiconductorco.github.io/psoc6hal/html/group__group__hal__adc.html" rel="nofollow ugc noopener" target="_blank" title="https://cypresssemiconductorco.github.io/psoc6hal/html/group__group__hal__adc.html"&gt;https://cypresssemiconductorco.github.io/psoc6hal/html/group__group__hal__adc.html&lt;/a&gt; ,&lt;/p&gt;&lt;p&gt;as the description said this is High level interface, so leave the Device Configurator default (no Analog port tick, SAR no tick, Aref no tick, all close).&lt;/p&gt;&lt;p&gt;following the instruction and just change the P10_0 to your analog input. The code should work.&lt;/p&gt;&lt;p&gt;If you study the code inside, the cy_hal_dac accuracy build, setup and init all of relative SAR,clock,ARef....., if you config those under Device Configurator, they will conflict and not work.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The Device Configurator give you more flexible but it harder to setup, as cy_hal_adc easy of use and most case it should work.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=9131&amp;AppID=253&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>