<?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>LPC MicrocontrollersのトピックRe: LPC812: Powering down process of PLL</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Powering-down-process-of-PLL/m-p/678230#M27257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't use LpcOpen but I'm sure they do it like that because of bits 8..14 and mayby also bits 16..31. These have to be written as the bit pattern mentioned in the table (and 0 for the upper 16bits). Somewhere in the manual you can find something like: "reserved bits are undefined when read and should be written as zero". I hate this, too, because in many cases it defeats using simple expressions like your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another point of course is coding style. Why should we create a local variable and do the bit manipulations on that local variable instead of simply writing&lt;/P&gt;&lt;P&gt;LPC_SYSCTL-&amp;gt;PDRUNCFG = (LPC_SYSCTL-&amp;gt;PDRUNCFG | powerdownmask)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp; PDWAKEUPDATMASK&lt;/P&gt;&lt;P&gt;&amp;nbsp; | PDWAKEUPWRMASK&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That way, you could 'feel' that they're removing some bits (the undefined ones) and add some others (the bit patterns 8..14 I guess).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could never make friends with 'embedded programming' coding style .-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 May 2017 10:14:18 GMT</pubDate>
    <dc:creator>marcprager</dc:creator>
    <dc:date>2017-05-15T10:14:18Z</dc:date>
    <item>
      <title>LPC812: Powering down process of PLL</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Powering-down-process-of-PLL/m-p/678229#M27256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In LPCOpen, below is the function that Power downs the PLL.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18877i9BE72F7EA890C66E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why they are powering down the PLL this way ?&lt;/P&gt;&lt;P&gt;They could have used below method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPC_SYSCTL-&amp;gt;PDRUNCFG |= powerdownmask&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where powerdownmask = 0x80 (argument to this function. This method is simple right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18924i296FFBF07A84A5DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 06:26:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Powering-down-process-of-PLL/m-p/678229#M27256</guid>
      <dc:creator>karthikvenkates</dc:creator>
      <dc:date>2017-05-15T06:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC812: Powering down process of PLL</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Powering-down-process-of-PLL/m-p/678230#M27257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't use LpcOpen but I'm sure they do it like that because of bits 8..14 and mayby also bits 16..31. These have to be written as the bit pattern mentioned in the table (and 0 for the upper 16bits). Somewhere in the manual you can find something like: "reserved bits are undefined when read and should be written as zero". I hate this, too, because in many cases it defeats using simple expressions like your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another point of course is coding style. Why should we create a local variable and do the bit manipulations on that local variable instead of simply writing&lt;/P&gt;&lt;P&gt;LPC_SYSCTL-&amp;gt;PDRUNCFG = (LPC_SYSCTL-&amp;gt;PDRUNCFG | powerdownmask)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp; PDWAKEUPDATMASK&lt;/P&gt;&lt;P&gt;&amp;nbsp; | PDWAKEUPWRMASK&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That way, you could 'feel' that they're removing some bits (the undefined ones) and add some others (the bit patterns 8..14 I guess).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could never make friends with 'embedded programming' coding style .-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 10:14:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Powering-down-process-of-PLL/m-p/678230#M27257</guid>
      <dc:creator>marcprager</dc:creator>
      <dc:date>2017-05-15T10:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC812: Powering down process of PLL</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Powering-down-process-of-PLL/m-p/678231#M27258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi karthik venkatesh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I agree with Marc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Actually, if you just | 0x80, it also works, this is the just write style, more stable write style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 07:47:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-Powering-down-process-of-PLL/m-p/678231#M27258</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-05-18T07:47:06Z</dc:date>
    </item>
  </channel>
</rss>

