<?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: SCI basic qustion</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-basic-qustion-MC9S08QG4/m-p/167875#M10909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Dear bigmac,peg help me&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2009 12:58:33 GMT</pubDate>
    <dc:creator>poppy2008</dc:creator>
    <dc:date>2009-03-30T12:58:33Z</dc:date>
    <item>
      <title>SCI basic qustion -  MC9S08QG4,</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-basic-qustion-MC9S08QG4/m-p/167874#M10908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all ,&lt;/P&gt;&lt;P&gt;I am new to embedded world and C,I am working with MC9S08QG4, I have one basic question in SCI&lt;/P&gt;&lt;P&gt;what is the diff bet&amp;nbsp; &lt;STRONG&gt;SCIS1 = 0xC0;&amp;nbsp;&lt;/STRONG&gt; and&lt;/P&gt;&lt;P&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;&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; &lt;STRONG&gt;SCIS1|= 0xC0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added p/n to subject.&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by NLFSJ on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-03-31&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;04:24 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 10:02:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-basic-qustion-MC9S08QG4/m-p/167874#M10908</guid>
      <dc:creator>poppy2008</dc:creator>
      <dc:date>2009-03-30T10:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: SCI basic qustion</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-basic-qustion-MC9S08QG4/m-p/167875#M10909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Dear bigmac,peg help me&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 12:58:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-basic-qustion-MC9S08QG4/m-p/167875#M10909</guid>
      <dc:creator>poppy2008</dc:creator>
      <dc:date>2009-03-30T12:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: SCI basic qustion</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-basic-qustion-MC9S08QG4/m-p/167876#M10910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCIS1 = 0xC0;&lt;/STRONG&gt; means to directly write the SCIS1 register with the value 0xC0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCIS1 |= 0xC0;&lt;/STRONG&gt; is equivalent to the statement -&lt;/P&gt;&lt;P&gt;SCIS1 = SCIS1 | 0xC0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This means to read the SCIS1 register, then logical OR the value with 0xC0, and then write the result back to the SCIS1 register. Therefore, the bits that are set within the mask value (0xC0) will also become set within SCIS1, but all other bits of SCIS1 &lt;EM&gt;will remain unchanged&lt;/EM&gt;. This is known as a "read-modify-write" process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This operation would be true if SCIS1 were a standard read-write register.&amp;nbsp; However, it so happens that this particular register is a special hardware register that is &lt;U&gt;read-only&lt;/U&gt;. So &lt;EM&gt;write&lt;/EM&gt; or &lt;EM&gt;read-modify-write&lt;/EM&gt; operations are quite meaninless in this case - the status bits will remain unchanged until a hardware event occurs that sets a particular flag, or the special flag clearing procedures are implemented that do not involve writing to the register.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by bigmac on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-03-30&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;06:18 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 14:03:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-basic-qustion-MC9S08QG4/m-p/167876#M10910</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2009-03-30T14:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: SCI basic qustion</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-basic-qustion-MC9S08QG4/m-p/167877#M10911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thank you so much Mac,&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 14:31:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-basic-qustion-MC9S08QG4/m-p/167877#M10911</guid>
      <dc:creator>poppy2008</dc:creator>
      <dc:date>2009-03-30T14:31:19Z</dc:date>
    </item>
  </channel>
</rss>

