<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX RT Crossover MCUsのトピックRe: SNVS_RTC</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SNVS-RTC/m-p/1617055#M24159</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/214093"&gt;@Punithintelli&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please refer to the "snvs_lp_srtc" example code from the SDK for the correct usage of the RTC in SNVS domain.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 18:29:22 GMT</pubDate>
    <dc:creator>EdwinHz</dc:creator>
    <dc:date>2023-03-16T18:29:22Z</dc:date>
    <item>
      <title>SNVS_RTC</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SNVS-RTC/m-p/1614621#M24120</link>
      <description>&lt;P&gt;Hi I am using i.MX RT 1020 MIMXRT1020 EVK kit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the power_mode_switch_bm example code to enter SNVS mode and come out after couple of seconds. This works perfectly fine.&lt;/P&gt;&lt;P&gt;But when I try to configure the RTC and use the same example code after every SNVS Mode entering and coming out the RTC resets. This is happening because before setting the alarm to wake up&amp;nbsp;&lt;BR /&gt;SNVS-&amp;gt;LPSRTCMR = 0x00;&lt;BR /&gt;SNVS-&amp;gt;LPSRTCLR = 0x00; is made zero. These 2 registers are&amp;nbsp;date and time counter. If i comment this 2 lines the MCU will not come out of SNVS mode.&lt;/P&gt;&lt;P&gt;Could anybody give me a solution where in the RTC works in SNVS mode also?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 06:48:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SNVS-RTC/m-p/1614621#M24120</guid>
      <dc:creator>Punithintelli</dc:creator>
      <dc:date>2023-03-14T06:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: SNVS_RTC</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SNVS-RTC/m-p/1617055#M24159</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/214093"&gt;@Punithintelli&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please refer to the "snvs_lp_srtc" example code from the SDK for the correct usage of the RTC in SNVS domain.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 18:29:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SNVS-RTC/m-p/1617055#M24159</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2023-03-16T18:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: SNVS_RTC</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SNVS-RTC/m-p/1617359#M24170</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/186731"&gt;@EdwinHz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;&lt;SPAN&gt;snvs_lp_srtc for RTC configuration and&amp;nbsp;power_mode_switch_bm for entering SNVS mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After coming&amp;nbsp;out of snvs mode the RTC gets reset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is because&amp;nbsp; SNVS-&amp;gt;LPSRTCMR = 0x00;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SNVS-&amp;gt;LPSRTCLR = 0x00; these 2 registers are mapped to zero before entering the snvs mode. These 2 registers holds the date and time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 06:13:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SNVS-RTC/m-p/1617359#M24170</guid>
      <dc:creator>Punithintelli</dc:creator>
      <dc:date>2023-03-17T06:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: SNVS_RTC</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SNVS-RTC/m-p/1619055#M24194</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I think you are using the Time alarm interrupt as the wake up source.&lt;/P&gt;
&lt;P&gt;This is intterrupt is gennerated when 【LPSRTCMR + LPSRTCLR】bit[46:15] = TA.&lt;/P&gt;
&lt;P&gt;Besides this, this counter is a up counter. So that, if you didn't clear the&amp;nbsp;LPSRTCMR and&amp;nbsp;LPSRTCLR, the interrupt will no be generated becasuse&amp;nbsp;【LPSRTCMR + LPSRTCLR】bit[46:15] is bigger than TA.&lt;/P&gt;
&lt;P&gt;So that, i think your can using the following code as a reference:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;unit64_t time = (SNVS-&amp;gt;LPSRTCMR)&amp;lt;&amp;lt;32 + SNVS-&amp;gt;LPSRTCLR;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;time = time / 32k;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SNVS-&amp;gt;LPTAR = time + your new wake up time in second.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please have a try.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 09:20:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/SNVS-RTC/m-p/1619055#M24194</guid>
      <dc:creator>lucas_cao</dc:creator>
      <dc:date>2023-03-21T09:20:08Z</dc:date>
    </item>
  </channel>
</rss>

