<?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>nrf 52832 SAADC without timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38239/nrf-52832-saadc-without-timer</link><description>hello i am beginner in this,i am using example\ peripherals\ saadc for nrf 52832. This example code is done by using timer and i could not understand how to use timer. We need converted data direct from register without timer.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Sep 2018 12:21:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38239/nrf-52832-saadc-without-timer" /><item><title>RE: nrf 52832 SAADC without timer</title><link>https://devzone.nordicsemi.com/thread/147583?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 12:21:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5192996d-8bf9-45c7-8da2-4fa27882428b</guid><dc:creator>AKV</dc:creator><description>&lt;p&gt;Thank u Andre&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf 52832 SAADC without timer</title><link>https://devzone.nordicsemi.com/thread/147569?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 11:34:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8225175c-7141-4eea-b91b-2248ad558719</guid><dc:creator>Andre</dc:creator><description>&lt;p&gt;Something like this. This is based on SDK 13. For SDK 15, replace nrf_drv_ with nrfx_&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;quot;nrf_drv_saadc.h&amp;quot;

void saadc_event_handler(nrf_drv_saadc_evt_t const * p_event) {
	// Do nothing, as we use blocking mode
}

int saadc_init() {
  int ret = nrf_drv_saadc_init(NULL, saadc_event_handler);
  if (ret) return ret;
  nrf_saadc_channel_config_t config =
		NRF_DRV_SAADC_DEFAULT_CHANNEL_CONFIG_SE(NRF_SAADC_INPUT_AIN3);
  ret = nrf_drv_saadc_channel_init(0, &amp;amp;config);
  return ret;
}

int saadc_measure() {
  nrf_saadc_value_t value;
  nrf_drv_saadc_sample_convert(0, &amp;amp;value);
  return value;
}

int main() {
  saadc_init();
  int measurement = saadc_measure();
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf 52832 SAADC without timer</title><link>https://devzone.nordicsemi.com/thread/147560?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 11:03:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34891844-99be-42dd-9d90-8cc8718c6c94</guid><dc:creator>AKV</dc:creator><description>&lt;p&gt;sorry, i am beginner in this please provide example code or more details about this.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf 52832 SAADC without timer</title><link>https://devzone.nordicsemi.com/thread/147517?ContentTypeID=1</link><pubDate>Thu, 06 Sep 2018 09:02:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10372fdd-0b9f-47ed-831e-5f7cfe1c2245</guid><dc:creator>Andre</dc:creator><description>&lt;p&gt;To work with the API without timer, you do a &lt;pre class="ui-code" data-mode="text"&gt;nrf_drv_saadc_sample_convert(0, &amp;amp;adc_buf);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>