<?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>8-bit MicrocontrollersのトピックRe: STOP MODE</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/STOP-MODE/m-p/187093#M14092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Fignon,&lt;BR /&gt;&lt;BR /&gt;This problem is related to the SPMSC2 being a write-once register (at least bits PDC and PPDC are write-once).&lt;BR /&gt;&lt;BR /&gt;When you write:&lt;BR /&gt;&lt;BR /&gt;SPMSC2_PDC = 1;&lt;BR /&gt;&lt;BR /&gt;The compiler generates a read-modify-write BSET instruction that reads the whole SPMSC2 register, sets bit PDC and writes the result back into SPMSC2. Note that PPDC will be written zero, because that is the reset value for the PPDC bit.&lt;BR /&gt;&lt;BR /&gt;When you attempt to modify the PPDC bit, the second write in SPMSC2 produces no effect (PDC is set and PPDC is reset).&lt;BR /&gt;&lt;BR /&gt;To avoid such problems you need to write both bits in a single operation:&lt;BR /&gt;&lt;BR /&gt;SPMSC2 = 0x03;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2008 00:37:02 GMT</pubDate>
    <dc:creator>fabio</dc:creator>
    <dc:date>2008-02-07T00:37:02Z</dc:date>
    <item>
      <title>STOP MODE</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/STOP-MODE/m-p/187092#M14091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm working on MC1321x and I have some troubles with the stop modes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't set the SPMSC2_PPDC bit. When I read it, it is always clear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SPMSC1 = 0x00 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SPMSC2_PDC = 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SPMSC2_PPDC = 1 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;When I read SPMSC2 register (SCI Transmission) the result is 0x02.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have any idea ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 18:40:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/STOP-MODE/m-p/187092#M14091</guid>
      <dc:creator>fignon</dc:creator>
      <dc:date>2008-02-06T18:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: STOP MODE</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/STOP-MODE/m-p/187093#M14092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Fignon,&lt;BR /&gt;&lt;BR /&gt;This problem is related to the SPMSC2 being a write-once register (at least bits PDC and PPDC are write-once).&lt;BR /&gt;&lt;BR /&gt;When you write:&lt;BR /&gt;&lt;BR /&gt;SPMSC2_PDC = 1;&lt;BR /&gt;&lt;BR /&gt;The compiler generates a read-modify-write BSET instruction that reads the whole SPMSC2 register, sets bit PDC and writes the result back into SPMSC2. Note that PPDC will be written zero, because that is the reset value for the PPDC bit.&lt;BR /&gt;&lt;BR /&gt;When you attempt to modify the PPDC bit, the second write in SPMSC2 produces no effect (PDC is set and PPDC is reset).&lt;BR /&gt;&lt;BR /&gt;To avoid such problems you need to write both bits in a single operation:&lt;BR /&gt;&lt;BR /&gt;SPMSC2 = 0x03;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 00:37:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/STOP-MODE/m-p/187093#M14092</guid>
      <dc:creator>fabio</dc:creator>
      <dc:date>2008-02-07T00:37:02Z</dc:date>
    </item>
  </channel>
</rss>

