<?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>TimeStamp in nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58923/timestamp-in-nrf52832</link><description>Hi, 
 I am using nRF52832, SDK16.0 
 with SES 
 Is that nRF52832 have able to send timestamp through BLE. is that hardware able to calculate timestamp 
 will it act as REAL TIME CLOCK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Mar 2020 12:44:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58923/timestamp-in-nrf52832" /><item><title>RE: TimeStamp in nRF52832</title><link>https://devzone.nordicsemi.com/thread/240430?ContentTypeID=1</link><pubDate>Wed, 18 Mar 2020 12:44:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:723a448c-1897-434f-8f55-e9084d1697a5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Sunil vignesh"]will you suggest any external ic for Timestamp.[/quote]
&lt;p&gt;I do not have any suggestions for that. It is not directly related to the nRF, but perhaps some other members on this forum has some suggestions?&lt;/p&gt;
[quote user="Sunil vignesh"]how nrf_calender works.[/quote]
&lt;p&gt;nrf_calendar uses the RTC to generate ticks and the time.h library to map this to actual calendar time and date. You can refer to the &lt;a href="https://github.com/NordicPlayground/nrf5-calendar-example"&gt;source code&lt;/a&gt; for details.&lt;/p&gt;
[quote user="Sunil vignesh"]how the time and date will taken[/quote]
&lt;p&gt;&amp;nbsp;The calendar time and date is calculated in SW, based on the elapsed time, counted by the RTC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TimeStamp in nRF52832</title><link>https://devzone.nordicsemi.com/thread/240383?ContentTypeID=1</link><pubDate>Wed, 18 Mar 2020 09:55:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29a14bf4-532f-4bb7-b120-31d0d142e862</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;will you suggest any external ic for Timestamp.&lt;/p&gt;
&lt;p&gt;how nrf_calender works.&lt;/p&gt;
&lt;p&gt;how the time and date will taken&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TimeStamp in nRF52832</title><link>https://devzone.nordicsemi.com/thread/239865?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 06:49:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b883ca49-2e4d-4553-ba55-39cc4ff8ef44</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The RTC will work in normal low power (system ON) sleep mode, yes. It is always used when you use BLE for instance, in order to wake up at connection events, advertising events etc. The current consumption is system ON low power mode is ~2-3 uA, which is not very much.&lt;/p&gt;
&lt;p&gt;It will not run in system off mode, though, but most applications never use system off. In system off the IC is almost entirely powered off, and can only wake up on GPIO, LPCOMP or NFC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TimeStamp in nRF52832</title><link>https://devzone.nordicsemi.com/thread/239864?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 06:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:324701c9-f8ae-401e-902d-e00f0399bbc4</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;will timer / counter work in sleep mode?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TimeStamp in nRF52832</title><link>https://devzone.nordicsemi.com/thread/239264?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 08:23:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:689bbfe0-3606-4628-990f-56d0c3c5a2c1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Sunil vignesh"]internal RTC is a counter right?[/quote]
&lt;p&gt;Yes, the RTC is a counter that can count 32.768 kHz clock cycles, which may or may not be divided by a Prescaler. (So the accuracy of the RTC is given by the accuracy of your 32 kHz clock source.)&lt;/p&gt;
[quote user="Sunil vignesh"]i have to count the time until reset or power off. When it again power up the data will be lost right?[/quote]
&lt;p&gt;In principle yes, though you could use a method such as suggested by&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/hmolesworth"&gt;hmolesworth&lt;/a&gt;, which seems like a very good suggestion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TimeStamp in nRF52832</title><link>https://devzone.nordicsemi.com/thread/239187?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 16:06:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b18b06fa-ce43-44d1-a2fc-66246d85de40</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;A tip is to keep the current time value in RAM memory that is not initialised on a reset. On a cold start reset where the RAM does not contain a valid RTC value then the time value would be set to zero and a companion value set to some fixed constant; this latter fixed constant can subsequently be used following a reset to indicate validity of the RTC time. This allows the RTC to continue with only time lost while the reset takes place. This is sample code for both SES and IAR:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Segger Embedded Studio format
// Place following data in section .noinit so it doesn&amp;#39;t get wiped on a reset
  static volatile uint32_t mIamInitialisedRTC __attribute__((section(&amp;quot;.non_init&amp;quot;))); // Valid data indication for this data
  // 32-bit unsigned RTC time
  static volatile uint32_t mRTC_Timer         __attribute__((section(&amp;quot;.non_init&amp;quot;)));
// End - Place following data in section .noinit so it doesn&amp;#39;t get wiped on a reset

// IAR Format:
// Place following data in section .noinit so it doesn&amp;#39;t get wiped on a reset
#pragma default_variable_attributes = @ &amp;quot;.noinit&amp;quot;
  static volatile uint32_t mIamInitialisedRTC; // Valid data indication for this data
  // 32-bit unsigned RTC time
  static volatile uint32_t mRTC_Timer;
#pragma default_variable_attributes =
// End - Place following data in section .noinit so it doesn&amp;#39;t get wiped on a reset&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Care has to be taken over the type of reset and applicable errata, since there are conditions that can corrupt RAM. The RAM area for segment &lt;em&gt;.noinit&lt;/em&gt; also has to have power enabled regardless of operating mode (eg in system Off).&lt;/p&gt;
&lt;p&gt;In practice this works well; resets are rare (ideally only happen once&amp;nbsp;when battery first installed) and only have minimal impact on RTC time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TimeStamp in nRF52832</title><link>https://devzone.nordicsemi.com/thread/239169?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 14:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78e276a1-e0de-417c-82e8-11a5888ddcf1</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;Here SW, are mentioning flash storage ?&lt;/p&gt;
&lt;p&gt;internal RTC is a counter right? . i have to count the time until reset or power off. When it again power up the data will be lost right?&lt;/p&gt;
&lt;p&gt;i will refer that example&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TimeStamp in nRF52832</title><link>https://devzone.nordicsemi.com/thread/239149?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 13:59:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66e79eb3-8c0e-460d-a067-fdadcd4e2134</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. If you are happy with the risk of getting an incorrect timestamp in case of a reset, then you can use the internal RTC (perhaps using the app timer library and a repeated timer to update your timekeeping SW). We do not have any official examples for that, but you can refer to &lt;a href="https://github.com/NordicPlayground/nrf5-calendar-example"&gt;nrf-calendar-example&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TimeStamp in nRF52832</title><link>https://devzone.nordicsemi.com/thread/239131?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 13:36:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e4d3fa7-7e27-4a7d-88be-648987334b34</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;My case is . I need to read the sensor data and through value to the mobile app. device has to connect the mobile phone daily. and mobile app it send data to server. there it will have date time respective sensor data .&lt;/p&gt;
&lt;p&gt;but if the device not connected to mobile for two days . the sensor data will be stored in external EEPROM / FLASH but i need to send timestamp . to match the database.&lt;/p&gt;
&lt;p&gt;Can you give solution for that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TimeStamp in nRF52832</title><link>https://devzone.nordicsemi.com/thread/239097?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 12:26:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8c534ce-99b3-4f53-8b47-ba91ebb8d9ca</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can use the RTC peripheral in the nRF to keep time, but remember that the RTC will be reset when the chip is reset for any reason. Also, there is no HW for mapping the RTC ticks to time and date, so you need to keep the calendar in SW. If this is not acceptable, then you need to use an external dedicated RTC chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>