<?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>SAADC differential input range?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36705/saadc-differential-input-range</link><description>Hi: 
 
 In the datasheet, there have a description 
 Input range = (+- 0.6 V or +-VDD/4)/Gain 
 
 for a example, if Gain = 2, reference = 0.6V, 
 input range = 0.6 / 2 = 0.3V = 300mV 
 
 so, this range is +/- 150mV or +/- 300mV?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Jul 2018 00:15:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36705/saadc-differential-input-range" /><item><title>RE: SAADC differential input range?</title><link>https://devzone.nordicsemi.com/thread/141222?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 00:15:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9926d36a-b3a8-4171-847a-b8c139641d9f</guid><dc:creator>Yi-Wei</dc:creator><description>&lt;p&gt;so, in the single ended input with a same calculate&lt;/p&gt;
&lt;p&gt;gain = 1/6&lt;/p&gt;
&lt;p&gt;Input range = &lt;span&gt;&amp;plusmn;&amp;nbsp;&lt;/span&gt;(0.6 V)/(1/6) = 3.6 V&lt;/p&gt;
&lt;p&gt;range is -3.6V to 3.6V?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but, I had tried a SAADC with nrf52832, only 0~3.6V&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I use those setting&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    {                                                  \
        .resistor_p = NRF_SAADC_RESISTOR_DISABLED,     \
        .resistor_n = NRF_SAADC_RESISTOR_DISABLED,     \
        .gain       = NRF_SAADC_GAIN1_6,               \
        .reference  = NRF_SAADC_REFERENCE_INTERNAL,    \
        .acq_time   = NRF_SAADC_ACQTIME_10US,          \
        .mode       = NRF_SAADC_MODE_SINGLE_ENDED,     \
        .burst      = NRF_SAADC_BURST_DISABLED,        \
        .pin_p      = (nrf_saadc_input_t)(PIN_P),      \
        .pin_n      = NRF_SAADC_INPUT_DISABLED         \
    }
    
    
    // and
    
    nrf_saadc_resolution_set(NRF_SAADC_RESOLUTION_12BIT);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and use this&amp;nbsp;&lt;span&gt;formula to calculate my input&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;float vf = p_event-&amp;gt;data.done.p_buffer[0] * 3.6f / 4096.0f; // 12bit resolution&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and I get a correct result, also it is means range only 0~3.6V&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC differential input range?</title><link>https://devzone.nordicsemi.com/thread/141163?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 13:38:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6a0bd0d-532a-41d8-9d0b-01a914c06ddc</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;input range of the ADC core is nominally ± (0.6 V / Gain) if you use the internal reference or&amp;nbsp;± ((VDD / 4) / Gain) if you use VDD as reference. So, with internal reference and Gain = 2, the input range is from -300 mV to +300 mV.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>