<?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 QG8 SCI Rx problem in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-SCI-Rx-problem/m-p/212222#M18288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Rx Tx pair on QG8.&lt;/P&gt;&lt;P&gt;The Tx sends the status of 5 switches on RF (through SCI) to the receiver board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the issue i am facing is that whenever i connect receiver through the USB multilink cable and run the program,correct keys are detected.&lt;/P&gt;&lt;P&gt;Key 1 = 00001&lt;/P&gt;&lt;P&gt;Key 2 = 00010&lt;/P&gt;&lt;P&gt;Key 3 = 00100&lt;/P&gt;&lt;P&gt;Key 4 = 01000&lt;/P&gt;&lt;P&gt;Key 5 = 10000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But whenever i run the boards in standalone mode i get errors.&lt;/P&gt;&lt;P&gt;I monitor the receiver side on hyperterminal and see that the transmitter is sending correct data.But the receiver algorithm&lt;/P&gt;&lt;P&gt;decodes Key 5 =100000 (6 bits) and key 4 = 10000 (5 bits) key 3 = 01100&lt;/P&gt;&lt;P&gt;only 1st two keys are decoded correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the code for receiver is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;while(1)&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;100;i++);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (!SCIS1_RDRF);&amp;nbsp;&amp;nbsp; // wait for a new character to be received&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;100;i++);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rxchar = SCID;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // read the received char&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; if ((rxchar &amp;amp; 0x01)==0x01) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LED1 = ON;&amp;nbsp;&amp;nbsp;&amp;nbsp; }else if ((rxchar &amp;amp; 0x01)==0) LED1 = OFF;//////code for other decodes////&amp;nbsp; 

What could be the problem? .My baud is 9600

Thanks and regards&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jun 2011 15:20:20 GMT</pubDate>
    <dc:creator>abicash</dc:creator>
    <dc:date>2011-06-06T15:20:20Z</dc:date>
    <item>
      <title>QG8 SCI Rx problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-SCI-Rx-problem/m-p/212222#M18288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Rx Tx pair on QG8.&lt;/P&gt;&lt;P&gt;The Tx sends the status of 5 switches on RF (through SCI) to the receiver board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the issue i am facing is that whenever i connect receiver through the USB multilink cable and run the program,correct keys are detected.&lt;/P&gt;&lt;P&gt;Key 1 = 00001&lt;/P&gt;&lt;P&gt;Key 2 = 00010&lt;/P&gt;&lt;P&gt;Key 3 = 00100&lt;/P&gt;&lt;P&gt;Key 4 = 01000&lt;/P&gt;&lt;P&gt;Key 5 = 10000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But whenever i run the boards in standalone mode i get errors.&lt;/P&gt;&lt;P&gt;I monitor the receiver side on hyperterminal and see that the transmitter is sending correct data.But the receiver algorithm&lt;/P&gt;&lt;P&gt;decodes Key 5 =100000 (6 bits) and key 4 = 10000 (5 bits) key 3 = 01100&lt;/P&gt;&lt;P&gt;only 1st two keys are decoded correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the code for receiver is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;while(1)&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;100;i++);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (!SCIS1_RDRF);&amp;nbsp;&amp;nbsp; // wait for a new character to be received&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;100;i++);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rxchar = SCID;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // read the received char&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; if ((rxchar &amp;amp; 0x01)==0x01) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LED1 = ON;&amp;nbsp;&amp;nbsp;&amp;nbsp; }else if ((rxchar &amp;amp; 0x01)==0) LED1 = OFF;//////code for other decodes////&amp;nbsp; 

What could be the problem? .My baud is 9600

Thanks and regards&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 15:20:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-SCI-Rx-problem/m-p/212222#M18288</guid>
      <dc:creator>abicash</dc:creator>
      <dc:date>2011-06-06T15:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: QG8 SCI Rx problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-SCI-Rx-problem/m-p/212223#M18289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello abicash,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using the internal oscillator?&lt;/P&gt;&lt;P&gt;Have you trimmed it?&lt;/P&gt;&lt;P&gt;And loaded the value into the non volatile trim locations?&lt;/P&gt;&lt;P&gt;Have you copied the NV values over to the volatile registers at power up?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm guessing your problems due to baudrate mismatch.&lt;/P&gt;&lt;P&gt;Did not even look at your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 15:48:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-SCI-Rx-problem/m-p/212223#M18289</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2011-06-06T15:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: QG8 SCI Rx problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-SCI-Rx-problem/m-p/212224#M18290</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;I was not storing the trim values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem solved&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 16:01:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-SCI-Rx-problem/m-p/212224#M18290</guid>
      <dc:creator>abicash</dc:creator>
      <dc:date>2011-06-06T16:01:05Z</dc:date>
    </item>
  </channel>
</rss>

