<?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>Clock source used by SAADC and UART ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59485/clock-source-used-by-saadc-and-uart</link><description>Hi, 
 I am currently working on the development of a product based around a nRF52832 (inside a Laird BL-652 module). 
 I am trying to understand how the different clocks are used in the system. 
 I have configured the LFCLK source to 0 (RC oscillator</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Mar 2023 13:35:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59485/clock-source-used-by-saadc-and-uart" /><item><title>RE: Clock source used by SAADC and UART ?</title><link>https://devzone.nordicsemi.com/thread/417912?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 13:35:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9aa3c69-7b2d-4d51-b5e4-81978a385572</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/haakonsh"&gt;haakonsh&lt;/a&gt;&amp;nbsp;Where in the datasheet is this mentioned that all peripherals runs on PCLK16M? Is there any peripherals that run on other clock sources like PCLK1M and PCLK32?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock source used by SAADC and UART ?</title><link>https://devzone.nordicsemi.com/thread/241614?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 13:42:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1380c9e5-8786-470e-a69d-13a55b43bde9</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;All peripherals run on&amp;nbsp;&lt;span&gt;PCLK16M unless otherwise stated, that&amp;#39;s why it&amp;#39;s advisable to run HFXO for best results.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock source used by SAADC and UART ?</title><link>https://devzone.nordicsemi.com/thread/241602?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 13:00:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78eda9a3-5140-4210-ae4d-00429194e06b</guid><dc:creator>Nathan O.</dc:creator><description>&lt;p&gt;The sample() function is already called periodically through the use of the app_timer module in my code.&lt;/p&gt;
&lt;p&gt;I was actually wondering what clock was used to handle the acquisition time and to make the SAADC actualy work (for a single sample).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock source used by SAADC and UART ?</title><link>https://devzone.nordicsemi.com/thread/241584?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 11:54:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d6a52c3-99c6-4cf5-9a23-5f1560880cd4</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;No, you&amp;#39;re just manually triggering the SAMPLE TASK from CPU once by calling&amp;nbsp;nrf_drv_saadc_sample().&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You need to set-up a TIMER with a COMPARE EVENT connected to the SAADC&amp;#39;s SAMPLE TASK to continuously trigger sample the SAADC.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Remember to set an acquisition time relative to your source impedance, according to the SAADC spec. See the Acquisition time chapter for details.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock source used by SAADC and UART ?</title><link>https://devzone.nordicsemi.com/thread/241570?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 11:00:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b55c2ea-ada7-4701-8149-3654b66c8a17</guid><dc:creator>Nathan O.</dc:creator><description>&lt;p&gt;Thanks for your answers.&lt;/p&gt;
&lt;p&gt;Regarding the point 3, this is what I use to configure and start the SAADC :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  static const nrf_drv_saadc_config_t config = {
    .resolution = NRF_SAADC_RESOLUTION_12BIT,
    .oversample = NRF_SAADC_OVERSAMPLE_DISABLED,
    .interrupt_priority = APP_SAADC_IRQ_PRIORITY,
    .low_power_mode = false,
  };
  
  ...
  
  nrf_saadc_channel_config_t channel_config = NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_SE(SAADC_INPUT_BATT);
  err_code = nrf_drv_saadc_channel_init(SAADC_CHANNEL_BATT, &amp;amp;channel_config);
  
  ...
  
  nrf_drv_saadc_sample();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I guess it&amp;#39;s TIMER with PCLK26M that&amp;#39;s used in this case by the SAADC (for sampling I mean not for triggering the conversion) ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock source used by SAADC and UART ?</title><link>https://devzone.nordicsemi.com/thread/241567?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 10:50:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2c86120-1ddd-4752-ac34-4c1850383fd0</guid><dc:creator>haakonsh</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Yes, you are correct.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;I believe it&amp;#39;s PCLK16M. Both PCLK16M and 1M&amp;nbsp;are just clock divisions from HFCLK.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;The RTC uses the LFCLK, the TIMER uses PCLK16M. Any EVENT from any peripheral can be used to trigger the SAADC&amp;#39;s SAMPLE TASK, not just the timers/counters. For best SAADC results it&amp;#39;s recommended to use the TIMER with HFXO running.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Yup!&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>