<?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 pulls too much current</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93319/saadc-pulls-too-much-current</link><description>I&amp;#39;m using embedded rust for a project on the 9160. If i configure any of the AIN0-AIN7 pins with the SAADC, my sleep current is 850 uA. Default config is resistor bypass, 1/6 gain, 10 us time, no N channel. I&amp;#39;ve tried different gains and pull up/downs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Nov 2022 14:33:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93319/saadc-pulls-too-much-current" /><item><title>RE: SAADC pulls too much current</title><link>https://devzone.nordicsemi.com/thread/394745?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 14:33:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be2ac2d8-5980-4561-bdc8-20d15511162c</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Great that you have found the cause. Could you please share this briefly with the community?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC pulls too much current</title><link>https://devzone.nordicsemi.com/thread/394665?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 11:59:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3824fff0-1e05-43ab-bcdd-8b21e8672327</guid><dc:creator>dkhayes117</dc:creator><description>&lt;p&gt;After further inspection, I believe the dev board I&amp;#39;m using has a design flaw with their battery measurement circuit which is causing the power discrepancy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC pulls too much current</title><link>https://devzone.nordicsemi.com/thread/393276?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2022 14:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5120def7-916b-493e-bfe1-051f6469a85c</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We do not support RUST.&lt;/p&gt;
&lt;p&gt;You have your own ADC drivers, so we require much more information as it seems there are hardware issues.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;I have an off-board hall effect sensor that I will sample on one channel.&amp;nbsp; When that sensor is connected to an AIN pin, the sleep current drops to 115 uA.&amp;nbsp; I don&amp;#39;t understand why this happens, even when the sensor isn&amp;#39;t powered on.&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;If the current consumption drops when you connect a signal to an analog pin, there must have something wrong with the HW. Are you using our DK? If it is not our DK, can send us the schematics and layout.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You&amp;nbsp;can read out the state of the SAADC registers after init and deinit and send us.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC pulls too much current</title><link>https://devzone.nordicsemi.com/thread/393068?ContentTypeID=1</link><pubDate>Fri, 28 Oct 2022 14:25:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:128b6f74-8239-4b08-9012-efaacbcb58c7</guid><dc:creator>dkhayes117</dc:creator><description>&lt;p&gt;Below is the API&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/embassy-rs/embassy/blob/master/embassy-nrf/src/saadc.rs"&gt;https://github.com/embassy-rs/embassy/blob/master/embassy-nrf/src/saadc.rs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My code&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// Configuration of ADC, over sample to reduce noise (8x)
let mut adc_config = Config::default();

//Oversampling only works for a single channel configuration
// adc_config.oversample = Oversample::OVER8X;

let sensor_channel = ChannelConfig::single_ended(&amp;amp;mut p.P0_14);
let bat_channel = ChannelConfig::single_ended(&amp;amp;mut p.P0_20);
let mut adc = Saadc::new(
    p.SAADC,
    interrupt::take!(SAADC),
    adc_config,
    [sensor_channel, bat_channel],
);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC pulls too much current</title><link>https://devzone.nordicsemi.com/thread/393064?ContentTypeID=1</link><pubDate>Fri, 28 Oct 2022 14:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5a170fe-1b0b-4c6a-be20-436f7fd5fc49</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We need few information about your code showing how you are using the SAADC, what function you are calling and what API you are using.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>