<?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中的主题 9S08AW16 SCI PROBLEM</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/9S08AW16-SCI-PROBLEM/m-p/185852#M13895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am new for S08 8bit MCU. Now I am working with the MC9S08AW16.&lt;/P&gt;&lt;P&gt;I want to use SCI module to communcate with other MCUs.&lt;/P&gt;&lt;P&gt;I tried to send and receive the data, but failed.&lt;/P&gt;&lt;P&gt;NOW, I have some problems:&lt;/P&gt;&lt;P&gt;I follow the datasheet step: Read the RDRF bit in SCI1S1 register then write the SCI1D register, but the RDRF bit isn't clear.&lt;/P&gt;&lt;P&gt;SO, I want to ask for some advice or 'C' code to do a Software SCI&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Nov 2012 04:59:31 GMT</pubDate>
    <dc:creator>mingjunhua</dc:creator>
    <dc:date>2012-11-23T04:59:31Z</dc:date>
    <item>
      <title>9S08AW16 SCI PROBLEM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/9S08AW16-SCI-PROBLEM/m-p/185852#M13895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am new for S08 8bit MCU. Now I am working with the MC9S08AW16.&lt;/P&gt;&lt;P&gt;I want to use SCI module to communcate with other MCUs.&lt;/P&gt;&lt;P&gt;I tried to send and receive the data, but failed.&lt;/P&gt;&lt;P&gt;NOW, I have some problems:&lt;/P&gt;&lt;P&gt;I follow the datasheet step: Read the RDRF bit in SCI1S1 register then write the SCI1D register, but the RDRF bit isn't clear.&lt;/P&gt;&lt;P&gt;SO, I want to ask for some advice or 'C' code to do a Software SCI&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 04:59:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/9S08AW16-SCI-PROBLEM/m-p/185852#M13895</guid>
      <dc:creator>mingjunhua</dc:creator>
      <dc:date>2012-11-23T04:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: 9S08AW16 SCI PROBLEM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/9S08AW16-SCI-PROBLEM/m-p/185853#M13896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mingjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using 9 data-bits or parity? Have you tried reading the SCI Control Register 3?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had that that same problem on the 9S08BG60 when I enabled parity. Parity used a ninth data-bit, and the SCI then required that I read the SCI Control Register 3, where the ninth bit is stored, before it would clear the receive flag. I didn't care about that bit, since the SCI handled parity, but I had to read it anyway. Here is some code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SC1C3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;read the 9th data but to help clear the interrupt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SC1DR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;and then get the real data byte&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;I found it doesn't matter which order you read the two registers, but the interrupt does not clear until you read the second one.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 21:17:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/9S08AW16-SCI-PROBLEM/m-p/185853#M13896</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2012-11-23T21:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: 9S08AW16 SCI PROBLEM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/9S08AW16-SCI-PROBLEM/m-p/185854#M13897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hotchkiss&lt;/P&gt;&lt;P&gt;Thanks for your help. I'm new in S08 MCUs.&lt;/P&gt;&lt;P&gt;The problem is solved by using your advice.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 08:23:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/9S08AW16-SCI-PROBLEM/m-p/185854#M13897</guid>
      <dc:creator>mingjunhua</dc:creator>
      <dc:date>2012-11-27T08:23:17Z</dc:date>
    </item>
  </channel>
</rss>

