<?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>How to sequentially read from multiple ADC pins?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38428/how-to-sequentially-read-from-multiple-adc-pins</link><description>Hi, 
 I have gone through the saadc example program supplied along with SDK15. But the issue is that, the example features a single channel ADC read. I tried to modify this example program but whenever i try to change the ADC channel, it hits a hard fault</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Sep 2018 09:59:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38428/how-to-sequentially-read-from-multiple-adc-pins" /><item><title>RE: How to sequentially read from multiple ADC pins?</title><link>https://devzone.nordicsemi.com/thread/148256?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 09:59:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68332437-5ede-4c6e-98cb-e26cd18aca49</guid><dc:creator>hari911</dc:creator><description>&lt;p&gt;Hi &amp;nbsp;Jørgen Holmefjord,&lt;/p&gt;
&lt;p&gt;Thanks for the your time and support which I really appreciate.&lt;/p&gt;
&lt;p&gt;I was on that program and sorted out the issue. As suspected, bot HID and ADC was using same timer instance and that caused all the fuzz.&lt;/p&gt;
&lt;p&gt;Once again thanks a lot.&lt;/p&gt;
&lt;p&gt;Hari&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to sequentially read from multiple ADC pins?</title><link>https://devzone.nordicsemi.com/thread/148255?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 17:46:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b5a1a04-b589-4837-b7ac-b6ee20e05aa7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I do not know what you are doing inside&amp;nbsp;&lt;span&gt;saadc_sampleing_event_init, but you need to &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting"&gt;debug the application&lt;/a&gt; and find which function is returning an error, and what the returned error code is.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to sequentially read from multiple ADC pins?</title><link>https://devzone.nordicsemi.com/thread/148254?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 16:56:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0b40671-62ed-4a07-9d41-a1236e35a25f</guid><dc:creator>hari911</dc:creator><description>&lt;p&gt;Hi &amp;nbsp;Jørgen Holmefjord,&lt;/p&gt;
&lt;p&gt;I have gone through the GitHub ecample that you have provided and now i got the multi channel ADC section working.&lt;/p&gt;
&lt;p&gt;Now i am trying to integrate the ADC program to HID mouse example and it builds without any error. Here I included the ADC initialization after all other initializations in the BID example program.&lt;/p&gt;
&lt;p&gt;But when control executes &amp;quot;saadc_sampleing_event_init();&amp;quot; I get a &amp;quot;&amp;lt;error&amp;gt; app: Fatal error&amp;quot; in RTT Viewer.&lt;/p&gt;
&lt;p&gt;What could be causing this error?&lt;/p&gt;
&lt;p&gt;Is it something related to timer?&lt;/p&gt;
&lt;p&gt;Thanks and regards,&lt;br /&gt;Hari&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to sequentially read from multiple ADC pins?</title><link>https://devzone.nordicsemi.com/thread/148253?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 11:47:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aca4ca6-8fed-4d93-a714-74a3f67e4460</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you want to sequentially read the two channels manually, or do you want to use the scan mode in SAADC peripheral to sample both channels for you?&lt;/p&gt;
&lt;p&gt;For second alternative, you can reference &lt;a href="https://github.com/NordicPlayground/nRF52-ADC-examples/tree/master/ble_app_uart__saadc_timer_driven__scan_mode"&gt;this example on our GitHub&lt;/a&gt;. If you want to implement&amp;nbsp;sequential read, you simply need to change the analog input of the channel after each read.&lt;/p&gt;
&lt;p&gt;Please provide more details on what error you are getting.&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>