<?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 can only convert once</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60969/adc-can-only-convert-once</link><description>I have setup a timer interrupt whivh fires at about 10 seconds which I can follow on an RTT viewer the ISR demands two ADC&amp;#39;s to convert the voltage levels on their pins, I can follow from RTT viewer that every 10 seconds the timer ISR is visited but the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 May 2020 17:34:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60969/adc-can-only-convert-once" /><item><title>RE: ADC can only convert once</title><link>https://devzone.nordicsemi.com/thread/248000?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 17:34:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8170ab19-885e-4420-abeb-6aac43cfe85d</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;br /&gt;&lt;br /&gt;I am happy that this resolved your issue!&lt;br /&gt;Yes, buffer_convert must be called in order to continue the sampling - to designate a new buffer for the SAADC to fill.&lt;br /&gt;&lt;br /&gt;If you are doing rapid sampling and are worried about loosing a sample between buffers, you might want to use the SAADC&amp;#39;s double buffering feature.&lt;br /&gt;The feature is demonstrated in the&amp;nbsp;SAADC peripheral example in the SDK.&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open a new ticket if you should encounter any other issues or questions in the future.&lt;br /&gt;Good luck with your development!&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC can only convert once</title><link>https://devzone.nordicsemi.com/thread/247970?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 15:26:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5678c372-6fe0-4590-b8ed-4858012f11e0</guid><dc:creator>yusuftan</dc:creator><description>&lt;p&gt;Hi Karl,&lt;/p&gt;
&lt;p&gt;Thank you for your prompt response, as the buffer was declared static, I did not realize that I had to declare a new buffer every time&amp;nbsp;DONE event occurred, so inserting nrf_drv_adc_buffer_convert(.....) at the end of the ADC ISR handler solved the problem.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ADC can only convert once</title><link>https://devzone.nordicsemi.com/thread/247757?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 06:24:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1325362-ec9c-48bd-8891-eef7848f7543</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;What is your ADC_BUFFER_SIZE?&lt;br /&gt;The DONE event will be triggered when the buffer is full - and then you will need to specify a new buffer for the ADC to start filling.&lt;br /&gt;From the code you have shared it seems that you only call buffer_convert() during adc_config.&lt;br /&gt;You will need to supply a new buffer every time a buffer is filled up, to continue sampling.&lt;br /&gt;&lt;br /&gt;For future reference, it is highly beneficial if you would use the &amp;quot;Insert-&amp;gt;code&amp;quot; option when sharing code snippets, as it greatly increases readability.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>