<?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 and Capsense Simultaneous Usage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34066/adc-and-capsense-simultaneous-usage</link><description>Hello, 
 I have a project that requires the use of the SAADC module for temperature measurement from an NTC Thermistor. 
 However, I will also like to use the CapSense touch features for User inputs (up to 4 touch buttons). Is there a possibility of doing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 May 2018 12:42:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34066/adc-and-capsense-simultaneous-usage" /><item><title>RE: ADC and Capsense Simultaneous Usage</title><link>https://devzone.nordicsemi.com/thread/131196?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 12:42:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3854929-7ece-4a3e-8e1a-508eaee88870</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Theoretically, it is possible to use the rest of the analog inputs of the SAADC for sampling other devices. The issue is that when more than 1 channel is enabled in the SAADC simultaneously, it will enter &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/saadc.html?cp=2_1_0_36_4_3#saadc_operationmodes_scan"&gt;SCAN mode&lt;/a&gt;. SCAN mode will sample all active channels, one by one, and store the samples in a buffer. The CapSense driver is not written for supporting SCAN mode, and the SAADC is configurred with a single channels and a 1-sample buffer size for each sample.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You could enable your temperature input on a different SAADC channel, and increase the buffer size used in the CapSense driver to include the other channel, but this will result in your temperature measurement will be performed on every CapSense sample. You will also have to handle the temperature reading inside the SAADC handler in CapSense driver, and you will not have to rely on the CapSense sample triggers to sample your temperature sensor.&lt;/p&gt;
&lt;p&gt;Another solution would be to uninit the CapSense driver while sampling the temperature sensor. If this is a valid solution for your application will depend on the configuration, sample interval and required detection time of CapSense functionality.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>