<?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>LFCLKSTAT   status</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23798/lfclkstat-status</link><description>I want to read the status of LFCLK,but I find that ,the value I have readed is awayls zero! my code is follow :
LFCLK_State = ((NRF_CLOCK-&amp;gt;LFCLKSTAT) &amp;gt;&amp;gt; 16) &amp;amp; 0x00000001;	
printf(&amp;quot;LFCLK_State:%u\r\n&amp;quot;,LFCLK_State); 
 Is there any mistake here?
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jul 2017 10:23:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23798/lfclkstat-status" /><item><title>RE: LFCLKSTAT   status</title><link>https://devzone.nordicsemi.com/thread/93614?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 10:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:970899aa-342c-41fa-8501-e2117f3c73e9</guid><dc:creator>yu-wang</dc:creator><description>&lt;p&gt;Thanks very much! The problem is solved!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LFCLKSTAT   status</title><link>https://devzone.nordicsemi.com/thread/93613?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 10:12:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dd581c8-111c-48c0-9453-9fc2f15021f0</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Yes I have faced similar problem. There is a wait time before register will be updated.&lt;/p&gt;
&lt;p&gt;Please add some - for example nrf_delay_ms(2) before reading register status.&lt;/p&gt;
&lt;p&gt;I guess you have following problem:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;reset&lt;/li&gt;
&lt;li&gt;starting LFCLK&lt;/li&gt;
&lt;li&gt;read status == not running.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I proposed 2 ms between points 2 and 3 and it shall be far enough. Basically I believe you can change it to nrf_delay_us(30) or even less. You need to test it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LFCLKSTAT   status</title><link>https://devzone.nordicsemi.com/thread/93612?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 10:03:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc2dd843-48a2-45e4-8374-32af0b7e8598</guid><dc:creator>yu-wang</dc:creator><description>&lt;p&gt;Can the RC antomatically execute?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LFCLKSTAT   status</title><link>https://devzone.nordicsemi.com/thread/93616?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 09:58:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1524744-1b76-4558-875d-2da188e122de</guid><dc:creator>yu-wang</dc:creator><description>&lt;p&gt;Just once after reset.  But I find that  the value is always zero. Do you  have better ideas about how to read the LFCLK status?  Thanks very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LFCLKSTAT   status</title><link>https://devzone.nordicsemi.com/thread/93615?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 09:52:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbb23a6b-3ec9-4a95-9994-b4e1db475460</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Where in your code you are checking the status? Just once after reset or ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>