<?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: MC9S08AW16 SCI Noise Flag     - SR# 1-393967504</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08AW16-SCI-Noise-Flag/m-p/156667#M9047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for the quick response.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You actually helped me solve the issue.&amp;nbsp; At least I think I figured it out.&amp;nbsp; I need to test a little more to see if that is the case.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Anyways, I used your suggestions to check out what Baud Rate I was actually TXing.&amp;nbsp; Send a 0x55 I measured anywhere from 100uS to 103us.&amp;nbsp; This means I was TXing at 10Kish baud rate.&amp;nbsp; This explains why Hyperterminal was also not RXing the data even thought I could see it on the scope.&amp;nbsp; The baudrate was such that all the data was garbage.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now going the other direction that means&amp;nbsp;I am&amp;nbsp;reading the data incorrectly and why I am seeing the Noise Flag set.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So I tweaked some of the clock settings in the CPU bean (Now 3.888MHz internal clock, originally 2MHz) and now the data is measuring 104uS per bit.&amp;nbsp; Also the Data is coming through clean both in Hyperterminal and on the CPU.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Not quite sure i this is what actually fixed the problem or I clicked on somethng else on accident.&amp;nbsp; That is why I will do some more extensive testing.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks again for the Tips.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2007 05:38:11 GMT</pubDate>
    <dc:creator>v_dave</dc:creator>
    <dc:date>2007-10-19T05:38:11Z</dc:date>
    <item>
      <title>MC9S08AW16 SCI Noise Flag</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08AW16-SCI-Noise-Flag/m-p/156665#M9045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello All,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;OK I have already generated an SR # 1-393967504 yesterday afternoon but no response yet from Freescale.&amp;nbsp; This is more of an issue that others may have seen before so hopefuly posting here might generate a couple of response to help out.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I seem to be getting the Noise Error Flag set on&amp;nbsp;specific Bytes of data sent. Here is some details:&lt;BR /&gt;&lt;BR /&gt;Codewarrior 6.0&lt;BR /&gt;MC9S08W16 Micro&lt;BR /&gt;Using the AsyncroSerial bean&lt;BR /&gt;Settings: 9600, 8, N, 1&lt;BR /&gt;VCC = 5V&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am sending a simple string "CP01\n\r" to the serial port on the Micro. I have tried from both Hyperterminal &amp;amp; from my Master Microcontroller and I consistently get a Noise Flag on the 'P' or the '0'.&lt;BR /&gt;&lt;BR /&gt;I have attached a screen shot of a 'P' being sent to the RXD pin on the AW16. This exact signal created a Noise Error but it looks clean to me.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;I have also done some further investigation. Using Hyperterminal I sent 30 each, every letter in the alphabet (Upper &amp;amp; Lower) plus 0..9. I found ONLY the following characters caused the Noise flag to be set:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;0 - 0x30&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;8 - 0x38&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;P - 0x50&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;X - 0x58&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;a - 0x61&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;p - 0x70&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;q - 0x71&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;x - 0x78&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;y - 0x79&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;Every other alpha character wes recieved without any errors.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any ideas on what is causing the Noise Error Flag to be set?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 00:11:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08AW16-SCI-Noise-Flag/m-p/156665#M9045</guid>
      <dc:creator>v_dave</dc:creator>
      <dc:date>2007-10-19T00:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S08AW16 SCI Noise Flag     - SR# 1-393967504</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08AW16-SCI-Noise-Flag/m-p/156666#M9046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Dave,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;First thanks for giving the SR# away, that will prevent double work from FSL Tech Supp guys/girls.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For me, noise on a clean signal must come from misalignment.&lt;/DIV&gt;&lt;DIV&gt;Each BIT is sampled THREE times. If these THREE samples are not identical, there is noise.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If the&amp;nbsp;BIT is not properly aligned, one of the sample may take the level of the previous or the following BIT within the BYTE.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The clock of the SCI is 16 times the clock of the baudrate and re-synchro&amp;nbsp;to every high to low edge.&lt;/DIV&gt;&lt;DIV&gt;Therefore, on a slightly shifted baudrate, noise could be flagged.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;'P' is 0x50 you indicate. A SCI message is 10-bits with last one at high level.&lt;/DIV&gt;&lt;DIV&gt;Therefore your graph should show 9 bits between the falling edge (Start bit) and the last rising edge (last 0 of lower nibble).&lt;/DIV&gt;&lt;DIV&gt;9600 bps means 104.17us per bit.&lt;/DIV&gt;&lt;DIV&gt;For 9 bits duration = 937.5us but your graph shows 900us &amp;lt; duration &amp;lt; 950us but I cannot see more precisely.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can you please check the actual baudrate of the MCU?&lt;/DIV&gt;&lt;DIV&gt;For this send 0x55 from the MCU SCI and check bit timing over several bits to observe the shift.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cheers,&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 00:37:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08AW16-SCI-Noise-Flag/m-p/156666#M9046</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-10-19T00:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S08AW16 SCI Noise Flag     - SR# 1-393967504</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08AW16-SCI-Noise-Flag/m-p/156667#M9047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for the quick response.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You actually helped me solve the issue.&amp;nbsp; At least I think I figured it out.&amp;nbsp; I need to test a little more to see if that is the case.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Anyways, I used your suggestions to check out what Baud Rate I was actually TXing.&amp;nbsp; Send a 0x55 I measured anywhere from 100uS to 103us.&amp;nbsp; This means I was TXing at 10Kish baud rate.&amp;nbsp; This explains why Hyperterminal was also not RXing the data even thought I could see it on the scope.&amp;nbsp; The baudrate was such that all the data was garbage.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now going the other direction that means&amp;nbsp;I am&amp;nbsp;reading the data incorrectly and why I am seeing the Noise Flag set.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So I tweaked some of the clock settings in the CPU bean (Now 3.888MHz internal clock, originally 2MHz) and now the data is measuring 104uS per bit.&amp;nbsp; Also the Data is coming through clean both in Hyperterminal and on the CPU.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Not quite sure i this is what actually fixed the problem or I clicked on somethng else on accident.&amp;nbsp; That is why I will do some more extensive testing.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks again for the Tips.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 05:38:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08AW16-SCI-Noise-Flag/m-p/156667#M9047</guid>
      <dc:creator>v_dave</dc:creator>
      <dc:date>2007-10-19T05:38:11Z</dc:date>
    </item>
  </channel>
</rss>

