<?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>ADC on nRF9160 DK - Differential Inputs and more inputs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45637/adc-on-nrf9160-dk---differential-inputs-and-more-inputs</link><description>Hi, 
 I have just got my SAADC up and running on my nrf9160, reading a single ended input. 
 Thanks for the support on this ticket, &amp;quot;ADC on nRF9160 DK - Example code problems&amp;quot; 
 I would like to expand this code in two ways. 
 1. Add additional channels</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Apr 2019 12:31:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45637/adc-on-nrf9160-dk---differential-inputs-and-more-inputs" /><item><title>RE: ADC on nRF9160 DK - Differential Inputs and more inputs</title><link>https://devzone.nordicsemi.com/thread/184072?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 12:31:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac586002-7d29-4ec7-ab70-0405b53bdb70</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Rod,&lt;/p&gt;
&lt;p&gt;No clue unfortunately. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt; I think the best idea is to send an e-mail to your nearest Regional Sales Manager. If you don&amp;#39;t know who that is, you can send me a private message on DevZone &amp;amp; I can forward you. Have a nice weekend!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC on nRF9160 DK - Differential Inputs and more inputs</title><link>https://devzone.nordicsemi.com/thread/183588?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2019 17:13:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e1519ec-aa89-4779-845b-db0ff89b2f69</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Bjorn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for this, yes that&amp;nbsp;makes&amp;nbsp;&lt;/span&gt;sense. So I can now select the single ended ADC inputs so all good.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In terms of getting differential inputs working, do you have an idea of when someone could have a look at this for me?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Rod&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC on nRF9160 DK - Differential Inputs and more inputs</title><link>https://devzone.nordicsemi.com/thread/183530?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2019 14:10:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e34a9a0a-2cec-48fe-9ad1-8b6a0e8e239b</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;I have asked the developer for help, but unfortunately he is busy with other tasks at the moment. I am not sure when differential ADC measurements will be available. As for this question:&lt;/p&gt;
&lt;p&gt;[quote user="RodWatt"][/quote]&lt;/p&gt;
&lt;p&gt;I can use &amp;nbsp;either AIN04 or 06 but can not seem to use the others. i.e. AIN0, 1, 2, 3, or 5 on the DK.&lt;/p&gt;
&lt;p&gt;I assume&amp;nbsp;these are pre-defined for other uses on the DK. Can I re-assign these?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This is most likely because not all GPIOs are accessible&amp;nbsp;in the nRF91. See &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf91_dk/UG/nrf91_DK/board_controller.html?cp=2_0_2_4_6_0"&gt;this list here&lt;/a&gt; for more info.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC on nRF9160 DK - Differential Inputs and more inputs</title><link>https://devzone.nordicsemi.com/thread/182342?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 10:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dbb6b6f-1e79-4c51-9bb0-ff22b4e5c50d</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Bjorn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for the update. In your previous reply, you said you would ask the developer to look at updating the code to support&amp;nbsp;differential inputs. If that is still the plan, Im happy to wait a few days&amp;nbsp;&lt;/span&gt;for that. Thanks,&lt;/p&gt;
&lt;p&gt;Rod&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC on nRF9160 DK - Differential Inputs and more inputs</title><link>https://devzone.nordicsemi.com/thread/182329?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 10:39:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a79eb95-c1d1-47b3-924b-9965126c0a41</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Sorry for the delayed response. I have been on a business trip last week &amp;amp; am now on vacation. Due to lower staffing over Easter, there may be some delays in answering questions. DevZone will be fully staffed on the 23rd of April. You can expect a response latest on the 24th of April. Sorry for any inconvenience caused.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC on nRF9160 DK - Differential Inputs and more inputs</title><link>https://devzone.nordicsemi.com/thread/180611?ContentTypeID=1</link><pubDate>Sun, 07 Apr 2019 11:13:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d650edda-b94c-4006-bbbe-cce35dfeb451</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Sorry forgot to mention, I can define the input pin in the lines&lt;/p&gt;
&lt;p&gt;#define ADC_1ST_CHANNEL_ID 4&lt;/p&gt;
&lt;p&gt;#define ADC_1ST_CHANNEL_INPUT NRF_SAADC_INPUT_AIN4&lt;/p&gt;
&lt;p&gt;I can use &amp;nbsp;either AIN04 or 06 but can not seem to use the others. i.e. AIN0, 1, 2, 3, or 5 on the DK.&lt;/p&gt;
&lt;p&gt;I assume&amp;nbsp;these are pre-defined for other uses on the DK. Can I re-assign these?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC on nRF9160 DK - Differential Inputs and more inputs</title><link>https://devzone.nordicsemi.com/thread/180511?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 13:13:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39c29c6f-86b4-4023-b1c2-1c09898664f6</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Bjorn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for the offer of help, I&amp;nbsp;will check out the link and see if that&amp;nbsp;helps, if the&amp;nbsp;original developer could help&amp;nbsp;that&amp;nbsp;would be great.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, sorry, I&amp;nbsp;realised&amp;nbsp;that I have been posting code in a&amp;nbsp;clumsy way,&amp;nbsp;thank you for the tip, I will do&amp;nbsp;this in future.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Rod&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC on nRF9160 DK - Differential Inputs and more inputs</title><link>https://devzone.nordicsemi.com/thread/180499?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 12:42:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ffd4d3a-07a2-4421-8fe7-0c6c95b4adb6</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Good to hear that you figured it out! The objective product specification documentation may be helpful regarding differential ADC, especially Chapter 6.12 SAADC. We do not have a direct example for this yet unfortunately. I can ask the developer who created the ADC example once he is back from vacation. He should be back on the 23rd of April.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/13689/commits/56f8e813799e200f7d612cbe0db565f1d63ee651"&gt;This link&lt;/a&gt; may also be helpful.&lt;/p&gt;
&lt;p&gt;Also, next time, could you please use the Insert -&amp;gt; Code option when pasting a lot of code. This makes it easier for everyone to read.&amp;nbsp;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC on nRF9160 DK - Differential Inputs and more inputs</title><link>https://devzone.nordicsemi.com/thread/180096?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 17:34:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfcb3692-eead-490b-93f4-09dbf4740876</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;Ok, that was the mistake, I should not have changed ADC_0 to ADC_2. So thats working.&lt;/p&gt;
&lt;p&gt;The second part of my question, how do I enable differential measurements?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Rod&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC on nRF9160 DK - Differential Inputs and more inputs</title><link>https://devzone.nordicsemi.com/thread/179968?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 11:38:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89cd45f1-622a-400d-9822-28b367a1b11f</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;Just had a look at this again, I did change the line&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;adc_dev = device_get_binding(&amp;quot;ADC_2&amp;quot;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;nbsp;guess&amp;nbsp;this should have&amp;nbsp;stayed ADC_0? I should only have updated the channel ID&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Rod&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC on nRF9160 DK - Differential Inputs and more inputs</title><link>https://devzone.nordicsemi.com/thread/179947?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 10:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2734f47a-d002-43ed-9ea3-bd8e8176d9fd</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;I have&amp;nbsp;not had a chance to try that as yet, but I will try it this evening. Having said that, I would be surprised if this worked. The code above works perfectly for the 1st channel. It&amp;#39;s only when I try to move to the 2nd channel that it fails. I would assume if it were the&amp;nbsp;&lt;span&gt;#define&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_BOARD_NRF9160_PCA10090 line that was causing&amp;nbsp;the problem, the 1st&amp;nbsp;channel would&amp;nbsp;also fail?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC on nRF9160 DK - Differential Inputs and more inputs</title><link>https://devzone.nordicsemi.com/thread/179921?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 09:26:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cb0886c-d0a3-4919-b6f3-30c94b30cb72</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Rod,&lt;/p&gt;
&lt;p&gt;I believe this may be the same issue as your &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/45296/adc-on-nrf9160-dk---example-code-problems"&gt;last case with Martin&lt;/a&gt;. Instead of #define&amp;nbsp;&lt;span&gt;CONFIG_BOARD_NRF9160_PCA10090&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;change this to:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define&amp;nbsp;CONFIG_BOARD_NRF9160_PCA10090&lt;strong&gt;NS&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Does that work?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>