<?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>SAADC problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52810/saadc-problem</link><description>Hi, I&amp;#39;m working on a simple SAADC acquire in scan mode. 
 I create the two following function: 
 
 
 I was able to init and read the adc without problem. 
 If I remove the 5 us delay in the read_adc() funciton the firmware stop to work. 
 In debug mode</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Oct 2019 12:44:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52810/saadc-problem" /><item><title>RE: SAADC problem</title><link>https://devzone.nordicsemi.com/thread/213002?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2019 12:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdc8eb98-02fc-40e3-9a9b-784f1dd06381</guid><dc:creator>AndreaSYN</dc:creator><description>&lt;p&gt;Perfect&lt;/p&gt;
&lt;p&gt;I follow the erratas and I fix it.&lt;/p&gt;
&lt;p&gt;Thanks a lot,&lt;/p&gt;
&lt;p&gt;Andrea.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC problem</title><link>https://devzone.nordicsemi.com/thread/212987?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2019 11:55:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e467cb05-ff0b-4ed0-9278-8a9c1e7b4785</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think this behavior is caused by errata &lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_178.html?cp=3_1_1_0_1_45"&gt;[178] SAADC: END event firing too early&lt;/a&gt;. If you increase TACQ to 10 us, the application seems to run as expected without the delay. Triggering the STOP task after offset calibration also seems to solve the issue. This workaround will also fix errata 86 that I have linked below.&lt;/p&gt;
&lt;p&gt;Note that you should not need to trigger the STOP task after you are done sampling. When you receive the END event, you will need to trigger the START task again to start the SAADC so this should be equivalent to the STOPPED event.&lt;/p&gt;
&lt;p&gt;Also, make sure to check out these other erratas that may affect your application:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_74.html?cp=3_1_1_0_1_14"&gt;[74] SAADC: Started events fires prematurely&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_86.html?cp=3_1_1_0_1_23"&gt;[86] SAADC: Triggering START task after offset calibration may write a sample to RAM&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_150.html?cp=3_1_1_0_1_40"&gt;[150] SAADC: EVENT_STARTED does not fire&lt;/a&gt;&lt;/li&gt;
&lt;/ul&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><item><title>RE: SAADC problem</title><link>https://devzone.nordicsemi.com/thread/212951?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2019 09:32:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d06d1653-9d71-49a3-b036-f583303c02eb</guid><dc:creator>AndreaSYN</dc:creator><description>&lt;p&gt;Also I notice that if I configure only one channel so SAADC is in One-shot mode the delay is not needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>