<?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>Difference between RAM[n].POWER, RAM[n].POWERSET and RAM[n].POWERCLR.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63720/difference-between-ram-n-power-ram-n-powerset-and-ram-n-powerclr</link><description>It&amp;#39;s not clear to me the difference between RAM[n].POWER, RAM[n].POWERSET and RAM[n].POWERCLR. I&amp;#39;m assuming that you use RAM[n].POWER to read the contents of the registers and RAM[n].POWERCLR to set them. Is it Ok ? 
 What about RAM[n].POWERSET, then</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Jul 2020 07:37:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63720/difference-between-ram-n-power-ram-n-powerset-and-ram-n-powerclr" /><item><title>RE: Difference between RAM[n].POWER, RAM[n].POWERSET and RAM[n].POWERCLR.</title><link>https://devzone.nordicsemi.com/thread/259805?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 07:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0737c65-f1aa-4437-ad60-cdabcd283132</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Thanks for pointing out that. I will report to the internal. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between RAM[n].POWER, RAM[n].POWERSET and RAM[n].POWERCLR.</title><link>https://devzone.nordicsemi.com/thread/259798?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 06:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bed4aee-102f-4f9a-a8b0-d9ae6d0d6824</guid><dc:creator>awneil</dc:creator><description>[quote userid="77782" url="~/f/nordic-q-a/63720/difference-between-ram-n-power-ram-n-powerset-and-ram-n-powerclr/259797"]When writing to POWERSET, you set the specific bits. When writing &amp;#39;1&amp;#39; to a field in POWERCLR, you clear the specific bit in POWER[/quote]
&lt;p&gt;I really don&amp;#39;t get how what&amp;#39;s written in the Product Specification actually describes that?&lt;/p&gt;
&lt;p&gt;To me, the description is totally opaque - even though I know what it&amp;#39;s trying to say!&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1594709646434v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It seriously needs a re-write!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f62e.svg" title="Open mouth"&gt;&amp;#x1f62e;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between RAM[n].POWER, RAM[n].POWERSET and RAM[n].POWERCLR.</title><link>https://devzone.nordicsemi.com/thread/259797?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 06:45:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:520102c8-27e2-45ac-a53e-2fb125c9d6fb</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yeah, the general naming rule is as Andrew&amp;#39;s mention.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When writing to POWERSET, you set the specific bits. When writing &amp;#39;1&amp;#39; to a field in POWERCLR, you clear the specific bit in POWER.&lt;/p&gt;
&lt;p&gt;If you read the POWERSET or POWERCLR, it will return the content of the POWER register, but that might not necessarily match what you just wrote into POWERCLR for instance.&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between RAM[n].POWER, RAM[n].POWERSET and RAM[n].POWERCLR.</title><link>https://devzone.nordicsemi.com/thread/259758?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2020 19:48:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b24e03aa-3d62-4100-a1f1-dfb8e51307eb</guid><dc:creator>pjrebordao</dc:creator><description>&lt;p&gt;Sorry, it&amp;#39;s a&amp;nbsp;nRF52840&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between RAM[n].POWER, RAM[n].POWERSET and RAM[n].POWERCLR.</title><link>https://devzone.nordicsemi.com/thread/259754?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2020 17:00:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38b954f4-744f-44a4-96b5-81ea395acc4d</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You haven&amp;#39;t said what chip you&amp;#39;re talking about; eg,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/vmc.html#register.RAM-0-7.POWER"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf9160/vmc.html#register.RAM-0-7.POWER&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=4_0_0_4_2_4#register.RAM-0-8.POWER"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=4_0_0_4_2_4#register.RAM-0-8.POWER&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I agree that the description there is poor.&lt;/p&gt;
&lt;p&gt;Usually, with sets of registers like this.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;lt;register-name&amp;gt; is the actual register;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&amp;lt;register-name&amp;gt;+SET allows you to &lt;strong&gt;set&lt;/strong&gt; specific bits in the&amp;nbsp;&amp;nbsp;&amp;lt;register-name&amp;gt; without having to do a RMW&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&amp;lt;register-name&amp;gt;+CLR allows you to &lt;strong&gt;clear&lt;/strong&gt; specific bits in the&amp;nbsp;&amp;nbsp;&amp;lt;register-name&amp;gt; without having to do a RMW&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Often, there is also a&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;lt;register-name&amp;gt;+TGL which allows you to &lt;strong&gt;toggle&lt;/strong&gt; specific bits in the&amp;nbsp;&amp;nbsp;&amp;lt;register-name&amp;gt; without having to do a RMW&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;["RMW" = Read-Modify-Write]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;See this recent thread:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://www.avrfreaks.net/comment/2953671#comment-2953671"&gt;https://www.avrfreaks.net/comment/2953671#comment-2953671&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;also:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://www.avrfreaks.net/comment/2106866#comment-2106866"&gt;https://www.avrfreaks.net/comment/2106866#comment-2106866&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://www.avrfreaks.net/comment/2106931#comment-2106931"&gt;https://www.avrfreaks.net/comment/2106931#comment-2106931&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>