<?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>nRF52832 ADC differential mode configuration (positive and negative)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63654/nrf52832-adc-differential-mode-configuration-positive-and-negative</link><description>Hi, we are using nRF52832 SAADC in differential mode. We have two channels connected. 
 Inputs are now configured as differential-N and differential-P (PSELP and PSELN). 
 how to define ADC pin as PSELP(p0.2) and PSELN(P0.3) with their pin number? 
 i</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Jul 2020 09:08:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63654/nrf52832-adc-differential-mode-configuration-positive-and-negative" /><item><title>RE: nRF52832 ADC differential mode configuration (positive and negative)</title><link>https://devzone.nordicsemi.com/thread/259640?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2020 09:08:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:735db387-b331-4444-8903-466c70a51449</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;In &lt;a title="nrfx_saadc_channel_init" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/group__nrfx__saadc.html?cp=7_1_6_8_0_30_1_15#gab74892a83a2f842436fac5f1462eca6a"&gt;nrfx_saadc_channel_init&lt;/a&gt;() you pass&amp;nbsp;a&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/structnrf__saadc__channel__config__t.html"&gt;nrf_saadc_channel_config_t&lt;/a&gt;. Set&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/structnrf__saadc__channel__config__t.html#a2a360331dcd2fe0aa410b3ad8d6d7230"&gt;pin_p&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/structnrf__saadc__channel__config__t.html#a134f648c0b7b3bab27a1d84b40961138"&gt;pin_n&lt;/a&gt;&amp;nbsp;to whatever pins your are using.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I believe the&amp;nbsp;&lt;span&gt;NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_DIFFERENTIAL() macro sets a default configuration that you can use at compile time, but you don&amp;#39;t have to. I suggest you create your own&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/structnrf__saadc__channel__config__t.html"&gt;nrf_saadc_channel_config_t&lt;/a&gt;&amp;nbsp;for each channel and use that instead.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>