<?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>Interaction between timer and saadc</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74670/interaction-between-timer-and-saadc</link><description>I&amp;#39;m writing software for nRF52832 using nRF5 SDK v17.0.2 
 I&amp;#39;m using a timer to create a buzz/tone using timer 3. This works as expected. 
 I&amp;#39;m also using the SAADC to measure the voltage on input pin AIN3. Since I only need this value occasionally, I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 May 2021 03:41:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74670/interaction-between-timer-and-saadc" /><item><title>RE: Interaction between timer and saadc</title><link>https://devzone.nordicsemi.com/thread/308046?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 03:41:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6729e236-f4a8-4bfe-8529-3c8a95725508</guid><dc:creator>CktDesigner</dc:creator><description>&lt;p&gt;Pilot error -&amp;nbsp; &amp;nbsp;I used NRF_GPIO_PIN_MAP(0,5) as the input to the SAADC channel configuration instead of NRF_SAADC_INPUT_AIN3.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the inconvenience...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interaction between timer and saadc</title><link>https://devzone.nordicsemi.com/thread/307992?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 15:42:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96c21bc0-f4ad-4cdd-815d-281219644fd9</guid><dc:creator>CktDesigner</dc:creator><description>&lt;p&gt;Some additional information:&amp;nbsp; &amp;nbsp;saadc_init (see above) really only has two actions:&amp;nbsp; initializing the saadc block and initializing the individual input channel.&lt;/p&gt;
&lt;p&gt;If I comment out the initialization of the individual channel, then the buzzer (using timer 3) works.&lt;/p&gt;
&lt;p&gt;So the initialization of the actual saadc block seems to be OK.&lt;/p&gt;
&lt;p&gt;The individual ADC input is using Pin P0.05 (AIN3)&lt;/p&gt;
&lt;p&gt;The buzzer output is using Pin P0.28 (AIN4) configured as an Output.&amp;nbsp; &amp;nbsp; &amp;nbsp;Is there some rule that I&amp;#39;m missing about not using the Analog pins for normal GPIO outputs when using other Analog pins as inputs to SAADC?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interaction between timer and saadc</title><link>https://devzone.nordicsemi.com/thread/307967?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 13:48:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e49ad5b6-93b1-4816-aa71-b274bc68227b</guid><dc:creator>CktDesigner</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;m building in the &amp;quot;Debug&amp;quot; configuration.&amp;nbsp; &amp;nbsp;No asserts are thrown.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see anything in the saadc_init() function that should interact with the timer...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interaction between timer and saadc</title><link>https://devzone.nordicsemi.com/thread/307893?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 11:43:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:546ce7bd-eeba-41cc-b1e1-dc86cb9b9bb1</guid><dc:creator>Kenneth</dc:creator><description>[quote user=""]When the &amp;quot;saadc_init&amp;quot; function executes, the tone generation no longer works.[/quote]
&lt;p&gt;Are you sure the code is not asserting? If you build with Debug (not Release) you may get more information about the assert in&amp;nbsp;app_error_fault_handler().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>