<?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>LedButtonDemo and RTCs ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9699/ledbuttondemo-and-rtcs</link><description>Hello everybody, 
 I&amp;#39;m trying to use the RTC1 in the LedButtonDemo, in order to blink the led once we put 01 in with the Master Control Panel on my computer, but all my tempos doesn&amp;#39;t work. 
 Here is my code concerning the RTC (which works on the Blinky</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Oct 2015 07:47:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9699/ledbuttondemo-and-rtcs" /><item><title>RE: LedButtonDemo and RTCs ?</title><link>https://devzone.nordicsemi.com/thread/35885?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 07:47:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7a53e0d-126c-408d-aad8-730f81eabef9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Increasing the number of Simulated timers increases the RAM usage, so the limitation is the amount of free RAM space to spare for this. Theoretically you can have as many as you want until your RAM runs out :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LedButtonDemo and RTCs ?</title><link>https://devzone.nordicsemi.com/thread/35884?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 07:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39f5565e-6531-4bb8-918a-d9a3815b588d</guid><dc:creator>TheRaven</dc:creator><description>&lt;p&gt;Thank you for your answer.
Finally, I found a topic on the forum which help me a lot, and I success to use APP_TIMER correctly.
Is there a maximum value for APP_TIMER_MAX_TIMERS, or can we have an unlimited number of simulated timers on RTC1 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LedButtonDemo and RTCs ?</title><link>https://devzone.nordicsemi.com/thread/35883?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 07:40:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8848604c-28ce-4aa1-a839-717da3922c88</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;SDK\examples\ble_peripheral\ble_app_template\main.c
look for &lt;code&gt;APP_TIMER_INIT&lt;/code&gt; &lt;code&gt;app_timer_create&lt;/code&gt; and &lt;code&gt;app_timer_start&lt;/code&gt; functions&lt;/p&gt;
&lt;p&gt;You can use multiple simulated app_timers on same RTC1, just remember to increase the &lt;code&gt;APP_TIMER_MAX_TIMERS&lt;/code&gt; value to suit your needs. Search devzone for this as this has been discussed very well here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LedButtonDemo and RTCs ?</title><link>https://devzone.nordicsemi.com/thread/35882?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2015 14:28:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50ce8859-a6b8-4e4c-8a4d-72895601fbf8</guid><dc:creator>TheRaven</dc:creator><description>&lt;p&gt;Do you have an example using app_timer API ?
Because I&amp;#39;m trying to use it, but I failed up to now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LedButtonDemo and RTCs ?</title><link>https://devzone.nordicsemi.com/thread/35881?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2015 10:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e823bf6-7cb7-418b-a60d-e654b189d304</guid><dc:creator>TheRaven</dc:creator><description>&lt;p&gt;Because I would like to have a timer function which can reduce the consumption of current during the pause, and I didn&amp;#39;t find a way to do this whith the APP_TIMER.
Is there a way to do that without writing my own functions ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LedButtonDemo and RTCs ?</title><link>https://devzone.nordicsemi.com/thread/35880?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2015 08:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb6eebe1-2961-48f7-a99f-81fda7df15f7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;if you comment out RTC1_handler inside APP_TIMER then APP_TIMER wont work, it is as good as a Zombie :)&lt;/p&gt;
&lt;p&gt;APP_TIMER is used for buttons debouncing, so your buttons wont work.
Why don&amp;#39;t you use APP_TIMER API instead of creating your own handler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LedButtonDemo and RTCs ?</title><link>https://devzone.nordicsemi.com/thread/35879?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2015 14:39:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c464f4c-8dca-4735-a892-b60e68c9aa8a</guid><dc:creator>TheRaven</dc:creator><description>&lt;p&gt;I&amp;#39;m using this example :
&lt;a href="https://github.com/NordicSemiconductor/nrf51-ble-app-lbs"&gt;github.com/.../nrf51-ble-app-lbs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m able to compile the code with RTC1_IRQHandler, because I&amp;#39;ve manually turn to comment the RTC1_IRQHandler in APP_TIMER (because I had the error : RTC1_IRQHandler is multiply defined).&lt;/p&gt;
&lt;p&gt;Do I have to uncomment the RTC1_IRQHandler from APP_TIMER, and to delete &amp;quot;my&amp;quot; RTC1_IRQHandler ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LedButtonDemo and RTCs ?</title><link>https://devzone.nordicsemi.com/thread/35878?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2015 13:02:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b57232fb-5c14-492b-bc50-c0fbd6d95b69</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;NRF_RTC0-&amp;gt;PRESCALER = 0;&lt;/p&gt;
&lt;p&gt;Why are you setting RTC0 prescaler, this is not allowed if you are using BLE softdevice.
Which LEDButtonDemo example are you using. if you were able to compile the code with RTC1_IRQHandler then you are certainly not using any APP_TIMER library from SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>