<?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>how to increment a count(i.e count should be keep on incrementing) untill button is released</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15359/how-to-increment-a-count-i-e-count-should-be-keep-on-incrementing-untill-button-is-released</link><description>hi all, 
 i am using sdk v8. i want to on rtc when button is pressed and i want to off the rtc when it is released.
i am using bsp_handler only for button press. 
 PROBLEM
when button is pressed rtc is getting on but immediately rtc is getting off</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Nov 2021 13:34:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15359/how-to-increment-a-count-i-e-count-should-be-keep-on-incrementing-untill-button-is-released" /><item><title>RE: how to increment a count(i.e count should be keep on incrementing) untill button is released</title><link>https://devzone.nordicsemi.com/thread/341316?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 13:34:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d778d2d-7142-44d5-9517-2cbe9c95ae66</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Rihab,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;No need for that, as you have already got my&amp;nbsp;experienced colleague Håkon on the case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to increment a count(i.e count should be keep on incrementing) untill button is released</title><link>https://devzone.nordicsemi.com/thread/341312?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 13:29:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98880a6a-673f-415e-96a2-2b63a85aeccb</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/oys"&gt;&amp;Oslash;yvind&lt;/a&gt;,&lt;br /&gt;I created a ticket here&amp;#39;s the link&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/82239/increment-counter-on-button-clicked"&gt;devzone.nordicsemi.com/.../increment-counter-on-button-clicked&lt;/a&gt;&lt;br /&gt;can you help me there please&amp;nbsp;&lt;br /&gt;i posted all the details and a screenshot&amp;nbsp;&amp;nbsp;&lt;br /&gt;can you reply me if you have a valuable information please&amp;nbsp;&lt;br /&gt;&lt;br /&gt;thank you,&lt;br /&gt;kindly,&lt;br /&gt;Rihab&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to increment a count(i.e count should be keep on incrementing) untill button is released</title><link>https://devzone.nordicsemi.com/thread/341309?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 13:24:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa8b0052-9a0d-450f-bdef-74ba10f9d2bb</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/rihab"&gt;Rihab&lt;/a&gt;,&amp;nbsp;&lt;br /&gt;Please &lt;a href="https://devzone.nordicsemi.com/support/add"&gt;open a new public ticket&lt;/a&gt; with your question. This ticket does not reflect you question, and is over 5 years old.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to increment a count(i.e count should be keep on incrementing) untill button is released</title><link>https://devzone.nordicsemi.com/thread/341205?ContentTypeID=1</link><pubDate>Tue, 30 Nov 2021 08:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:342b0566-fba7-4f55-ba96-bb07ad8a528e</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;Hello Community,&lt;br /&gt;i want to implement the same process&amp;nbsp;&lt;br /&gt;i would like to implement a counter which increments on button pressed&lt;br /&gt;i&amp;#39;m using Nrf5340dk and SDK v1.7.0&amp;nbsp;&lt;br /&gt;can anyone help me on this please&amp;nbsp;&lt;br /&gt;very thankful in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to increment a count(i.e count should be keep on incrementing) untill button is released</title><link>https://devzone.nordicsemi.com/thread/58690?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2016 11:13:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6482355-84e7-486d-bb0b-5d96c7696ede</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Since you are using bsp module you are using app_timer and you have to use app_timer API to ensure correct operation. Use &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/group__app__timer.html?cp=6_0_0_6_8_22_16#ga497a82797a160ef7f13f8aa26c637018"&gt;app_timer_cnt_get&lt;/a&gt; to get the current counter value of the RTC and &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/group__app__timer.html?cp=6_0_0_6_8_22_15#gaad9b5fc66ed908c54281370f690d0c4e"&gt;app_timer_cnt_diff_compute&lt;/a&gt; to calculate the difference between to RTC counter values. If no timers are running the app_timer module will stop the RTC, so if you have no timers running create a &amp;quot;dummy&amp;quot; timer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to increment a count(i.e count should be keep on incrementing) untill button is released</title><link>https://devzone.nordicsemi.com/thread/58689?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2016 10:55:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a85bedf-55bf-468f-bf4b-b286dbccf1a2</guid><dc:creator>ranjith</dc:creator><description>&lt;p&gt;hi Ole Bauck,
yes i started LFCLK.
My Requirement:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;when button is pressed counter should start incrementing(1,2,3,.........) untill i am releasing the button.&lt;/li&gt;
&lt;li&gt;when button is released i want to print no of microseconds button is hold on.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to increment a count(i.e count should be keep on incrementing) untill button is released</title><link>https://devzone.nordicsemi.com/thread/58688?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2016 10:32:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49d1d67c-76ab-448b-a670-637b11997d72</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Have you started LFCLK? For example with:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED = 0;

NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART = 1;
while(NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED == 0);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>