<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF52 &amp;amp; SAADC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72119/nrf52-saadc</link><description>I started developing a project on nRF52. My task is to read the value from the light sensor (phototransistor). 
 The sensor is connected in this way: 
 
 
 my code: 
 init: 
 
 reading: 
 
 but it doesn&amp;#39;t work .. The chip is reset every time I try to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Mar 2021 14:14:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72119/nrf52-saadc" /><item><title>RE: nRF52 &amp; SAADC</title><link>https://devzone.nordicsemi.com/thread/296881?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 14:14:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:868c1c6f-9ed0-4050-baac-4e3de7ae7f4e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You are mixing the first parameter used in&amp;nbsp;nrf_drv_saadc_channel_init() and&amp;nbsp;nrf_drv_saadc_sample_convert() with the analog input that is configured. There is no dependency between the two. So if you only want to sample NRF_SAADC_INPUT_AIN7 input, then you use &lt;span&gt;nrf_drv_saadc_channel_init(0,&amp;amp;cfg),&amp;nbsp;but make sure that&amp;nbsp;cfg is using&amp;nbsp;NRF_SAADC_INPUT_AIN7.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I suggest to take a look at the \examples\peripheral\saadc in the nRF5 SDK.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>