<?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>Changing sample rate/timer ticks when receiving data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17098/changing-sample-rate-timer-ticks-when-receiving-data</link><description>Hi, I am currently working on a project, where I need to change my timer ticks whenever I receive a number from the UART app. The code for receiving data is complete, but then I need the the timer function/configuration to run whener I want to change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Oct 2016 11:57:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17098/changing-sample-rate-timer-ticks-when-receiving-data" /><item><title>RE: Changing sample rate/timer ticks when receiving data</title><link>https://devzone.nordicsemi.com/thread/65575?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 11:57:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac7ba671-d63b-40c8-be9c-6891b5898399</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can change the ticks by calling &lt;code&gt;nrf_drv_timer_extended_compare&lt;/code&gt;, but you should stop and clear the timer first by calling &lt;code&gt;nrf_drv_timer_disable&lt;/code&gt; and &lt;code&gt;nrf_drv_timer_clear&lt;/code&gt; to avoid that the number of ticks set will be lower than the tick count of the timer.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>