<?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>topic Re: SCI Data Register Problem in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/M68DEMO908GB60-SCI-Data-Register-Problem/m-p/142118#M6136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Maybe there is communication mismatch, like not using 8-N-1 on both sides.&amp;nbsp; One side could be 7 bits with 2&amp;nbsp; stop bits, or something similar?&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2007 22:28:31 GMT</pubDate>
    <dc:creator>tonyp</dc:creator>
    <dc:date>2007-08-03T22:28:31Z</dc:date>
    <item>
      <title>M68DEMO908GB60. - SCI Data Register Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/M68DEMO908GB60-SCI-Data-Register-Problem/m-p/142117#M6135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;EDIT: accidentally hit enter instead of tab&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey All:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First off sorry if this is in the wrong forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using M68DEMO908GB60.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am simply trying to retrieve a data byte sent over serial cable via RxInterrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have my interrupt set up correctly - it triggers and runs through it properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked the baud rates over many times - 19200 (have also tried 9600)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I check (in memory in debug mode) when I send a byte it writes to the SCIxD correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only when I send the byte 0x7E (the most crucial byte of course...) the register then reads "0xFE".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I remember having a similar problem before when writing 0x00 and the register actually writing 0x80 (same problem as in the most significant bit is a 1 when it should be a 0) and it magically fixed itself.... (as the 0x00 byte was not important - I was able to continue with my program, the 0x7E byte, however, is needed to continue execution)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried both SCI ports and multiple cables - same problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wondering what may cause this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by Tacky on &lt;SPAN class="date_text"&gt;2007-08-03&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;04:14 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="time_text"&gt;Added part number to subject.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-08-03&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;10:17 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 22:08:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/M68DEMO908GB60-SCI-Data-Register-Problem/m-p/142117#M6135</guid>
      <dc:creator>Tacky</dc:creator>
      <dc:date>2007-08-03T22:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: SCI Data Register Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/M68DEMO908GB60-SCI-Data-Register-Problem/m-p/142118#M6136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Maybe there is communication mismatch, like not using 8-N-1 on both sides.&amp;nbsp; One side could be 7 bits with 2&amp;nbsp; stop bits, or something similar?&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 22:28:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/M68DEMO908GB60-SCI-Data-Register-Problem/m-p/142118#M6136</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2007-08-03T22:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: SCI Data Register Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/M68DEMO908GB60-SCI-Data-Register-Problem/m-p/142119#M6137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks for the reply so quickly!&lt;BR /&gt;&lt;BR /&gt;I have figured out my problem, despite the checks on the Baud Rates they still were the source...&lt;BR /&gt;&lt;BR /&gt;I was calculating my baud rate based on a 18.97MHz Bus and not a 18.87MHz bus which caused all my headaches. Fixing this calculation seems to have solved my problem!&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 23:56:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/M68DEMO908GB60-SCI-Data-Register-Problem/m-p/142119#M6137</guid>
      <dc:creator>Tacky</dc:creator>
      <dc:date>2007-08-03T23:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: SCI Data Register Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/M68DEMO908GB60-SCI-Data-Register-Problem/m-p/142120#M6138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi Tacky,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;These characters (all high/low) are the most difficult to recieve when there is a baudrate mismatch as the reciever will resynch to falling edges within a byte. This helps recieving when there is a baudrate mismatch but is less effective with less edges.&lt;/DIV&gt;&lt;DIV&gt;If you are not using an external oscillator/xtal here be sure to be correctly trimming the internal source to avoid this sort of problem.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;See the following thread on this:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=6884" target="_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=6884&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Checking for framing errors (at least) in your recieve routine is easy and greatly aids in discovering these issues.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by peg on &lt;SPAN class="date_text"&gt;2007-08-04&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;08:43 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2007 05:40:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/M68DEMO908GB60-SCI-Data-Register-Problem/m-p/142120#M6138</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-08-04T05:40:02Z</dc:date>
    </item>
  </channel>
</rss>

