<?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 false reading on RIgado BMD300eval kit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19132/saadc-false-reading-on-rigado-bmd300eval-kit</link><description>Hi, 
 I am using BMD300 to develop my projects. I am working on SAADC sample example in SDK12.0.0. I am sampling the SAADC at a rate og 1000 sps. following is the saadc_ini() function: 
 void saadc_init(void)
{
 ret_code_t err_code;
 
 //###########################################ANI0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Jan 2017 14:50:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19132/saadc-false-reading-on-rigado-bmd300eval-kit" /><item><title>RE: SAADC false reading on RIgado BMD300eval kit</title><link>https://devzone.nordicsemi.com/thread/74043?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 14:50:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:788116a9-a33c-491f-bf05-8d3883f759d5</guid><dc:creator>Ankush</dc:creator><description>&lt;p&gt;Hi Jørgen,&lt;/p&gt;
&lt;p&gt;Actually, Gain of the front End is fixed to which I am applying bio potential signal, which is 1100. Hence if input signal amplitude if increases it goes beyond the range that I can apply to ADC. Hence I am getting clipped output. I tried giving proper 3.3 volt so I got 4095 as digital output.&lt;/p&gt;
&lt;p&gt;So from this I can summarize following things,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;input to the ADC should lie in the range of 0 to VDD (in my case 3.3 volt)&lt;/li&gt;
&lt;li&gt;Selection of ADC Gain should be proper to set range for the input voltage.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thanks for timely support..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC false reading on RIgado BMD300eval kit</title><link>https://devzone.nordicsemi.com/thread/74041?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2017 15:05:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e8c46c3-56c5-4a55-bdf6-ebce3f86dfdc</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure I understand what you mean. Can you try to describe in some more detail and give an example? How is the output of the SAADC distorted? Is the SAADC input higher than the supply voltage?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC false reading on RIgado BMD300eval kit</title><link>https://devzone.nordicsemi.com/thread/74042?ContentTypeID=1</link><pubDate>Sat, 21 Jan 2017 06:57:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f158645-4c0b-4dc7-a965-1934993b5525</guid><dc:creator>Ankush</dc:creator><description>&lt;p&gt;Hi Jørgen,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. It helped to re-evaluate the things related to ADC.I was wondering about why I am not getting maximum value of 12 bit resolution as 4095(I was getting around 3000), even when I am applying maximum input.&lt;/p&gt;
&lt;p&gt;So from the formula if I want to get 4095 as digital output, with VDD=3.3 volts, I have to apply input as 3.3 volts and gain of ADC should be 1/4 (instead of 1/6). Setting gain as 1/6 means I am increasing the dynamic range of the   input to SAADC(maximum input to be applied to ADC), but here VDD should also be increased(I was not doing this).&lt;/p&gt;
&lt;p&gt;Now I am getting maximum digital output as 4095 for input of 3.3 volts with gain 1/4 and 12bit resolution.&lt;/p&gt;
&lt;p&gt;Can you suggest one more thing. My input signal is a bio potential signal with some fixed gain of analog front end. So if signal strength increases suddenly then again it will distort the ADC output. So what is the remedy to avoid this. Can I put one voltage divider for the incoming signal. Does it will increase the noise coming at input to ADC?&lt;/p&gt;
&lt;p&gt;Thanks once again!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC false reading on RIgado BMD300eval kit</title><link>https://devzone.nordicsemi.com/thread/74040?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2017 14:28:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54ef903c-4f43-4123-ad1a-ca9332276bba</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The digital output is given by &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=2_2_0_36_2#saadc_digital_output"&gt;this formula&lt;/a&gt;. From the settings you posted, you are using 1/6 Gain, VDD/4 as reference, 12-bit resolution, and single-ended mode (PSELN will be ignored).&lt;/li&gt;
&lt;li&gt;What is your supply voltage? Notice that the ADC is a &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=2_2_0_36#saadc_frontpage"&gt;full scale input range ADC&lt;/a&gt;, it cannot measure voltages outside the area of 0 to VDD.&lt;/li&gt;
&lt;li&gt;You can select between &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/group__nrf__saadc__hal.html#ggad540c22a2e06a7828a5ce6c71bc8a5d4aac8f8c9c960da2c5edba27c84b776d45"&gt;VDD/4&lt;/a&gt; and &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/group__nrf__saadc__hal.html#ggad540c22a2e06a7828a5ce6c71bc8a5d4a45e4751bab9abc4fb0e8cf281f2010fc"&gt;internal reference voltage&lt;/a&gt; (0.6V).&lt;/li&gt;
&lt;li&gt;You need to periodically run the offset calibration task whenever there is major temperature change. The simple way is to just do this periodicall, e.g. every few seconds. Another way is to measure temperature on the die with the TEMP peripheral sensor and calibrate only if there is major temperature change. Gain error as result of temperature change is given in the SAADC &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=2_2_0_36_11_0#unique_978991381"&gt;electrical specificaiton&lt;/a&gt; as parameter C_EG.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>