<?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>Can I use RTC1?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5582/can-i-use-rtc1</link><description>I&amp;#39;ve just got up and running with the nRF51 DK. I&amp;#39;ve had a play with some of the examples, and now I&amp;#39;ve started on my own project using ble_app_template_s110_pca10028 as a starting point. 
 The first thing I would like to accomplish is to write some</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Jul 2015 10:45:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5582/can-i-use-rtc1" /><item><title>RE: Can I use RTC1?</title><link>https://devzone.nordicsemi.com/thread/19563?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2015 10:45:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ab34b28-1d3b-4488-9ed2-6c5414d33fe5</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;I have no idea what that is, is that some piece of Keil crud or something or part of an analysis from an app project which chooses to use the library code? Perhaps Nordic specified some package dependencies in Keil, if they did, that&amp;#39;s a bug and it&amp;#39;s wrong.&lt;/p&gt;
&lt;p&gt;Either way, the softdevice does not require ble_conn_params, using the softdevice does not require ble_conn_params and it doesn&amp;#39;t require Nordic&amp;#39;s timer implementation. I have just grepped all includers of ble_conn_params.h, they are&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;the ble_conn_params.c file&lt;/li&gt;
&lt;li&gt;the dfu bootloader (which is an app)&lt;/li&gt;
&lt;li&gt;various example code which uses the library because most of Nordic&amp;#39;s example code uses its libraries, of course.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use RTC1?</title><link>https://devzone.nordicsemi.com/thread/19562?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2015 10:37:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea3bbc1f-2490-462c-9f37-f8cfa90626be</guid><dc:creator>ImQ009</dc:creator><description>&lt;p&gt;&lt;a href="http://i.imgur.com/gGyNOgN.png"&gt;http://i.imgur.com/gGyNOgN.png&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use RTC1?</title><link>https://devzone.nordicsemi.com/thread/19561?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2015 10:35:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ea78e32-d242-44ca-bff8-5253bc2b5417</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Where is ble_common required by the S110? It&amp;#39;s not, I know it&amp;#39;s not because I don&amp;#39;t use it and I do use S110, I don&amp;#39;t use Nordic&amp;#39;s timers at all.&lt;/p&gt;
&lt;p&gt;I just grepped the softdevice headers and none of them import ble_conn_params.h, only application code imports that, by choice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use RTC1?</title><link>https://devzone.nordicsemi.com/thread/19560?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2015 10:31:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0666521-457b-46b8-9e6a-84b27176325d</guid><dc:creator>ImQ009</dc:creator><description>&lt;p&gt;ble_conn_params is required by ble_common and ble_common is required by S110&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use RTC1?</title><link>https://devzone.nordicsemi.com/thread/19559?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2015 10:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81c86c6e-2b5c-442a-b7ca-aae344ec2c2a</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;ble_conn_params is not the softdevice, it&amp;#39;s a piece of library code written by Nordic which you can use if you like for managing connection parameters. You can also not use it if you don&amp;#39;t want to. Many of Nordic&amp;#39;s libraries use timers, but they&amp;#39;re not part of the softdevice.&lt;/p&gt;
&lt;p&gt;Also ble_conn_params is different from ble_gap_conn_params_t which is a structure sent in  a ble connection update event and that structure does not use the timer either.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use RTC1?</title><link>https://devzone.nordicsemi.com/thread/19558?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2015 10:18:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4db04dfa-71bd-4f14-b7fd-2f77ad0e6388</guid><dc:creator>ImQ009</dc:creator><description>&lt;p&gt;You said that Softdevice doesn&amp;#39;t depend on app_timer. Are you sure? Because Keil says it needs it for ble_conn_params&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use RTC1?</title><link>https://devzone.nordicsemi.com/thread/19557?ContentTypeID=1</link><pubDate>Mon, 16 Feb 2015 11:31:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63675813-f963-4e18-82ca-10cbf80411be</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;Thanks, this answer has been helpful. I will try to use the COMPARE registers that aren&amp;#39;t used by RTC1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use RTC1?</title><link>https://devzone.nordicsemi.com/thread/19556?ContentTypeID=1</link><pubDate>Sun, 15 Feb 2015 09:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:724cad03-d9b1-4c24-b4bc-e43d2a8de102</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;You can use RTC1 if you want, app_timer isn&amp;#39;t a required module, don&amp;#39;t include it and don&amp;#39;t use it. However note that some other libraries (like the button debounce one) use app_timer, but not very many. If you use none of those, you can do whatever you like with RTC1. The softdevice doesn&amp;#39;t use it at all, the softdevice doesn&amp;#39;t depend on any of that user-space code.&lt;/p&gt;
&lt;p&gt;There&amp;#39;s other options too. The app_timer code only uses one of the COMPARE registers on RTC1, the other ones are available for you to use if you want. So if you did need app_timer for say button debounce, you could still write your own code to use another of the compare registers. One point to note there is that the app_timer code will stop RTC1 running if it has no timers, so you&amp;#39;d need to keep one timer running. Or change app_timer.c to add your requirements, it&amp;#39;s not particularly complicated code and you are free to modify it in any way you like, or write your own drop-in replacement.&lt;/p&gt;
&lt;p&gt;Most likely case sounds like you don&amp;#39;t need app_timer, it&amp;#39;s fairly unlikely you are using other modules which do need it so you can just leave it out and use RTC1 for whatever you like. I do, I don&amp;#39;t use any of the library code, I have my own routines for buttons, timers, UART, SPI etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>