<?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 transmission question</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213896#M18501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more thing I wanted to put out to you guys -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I calculated that if I shave off about 6.4k from the&amp;nbsp;MHz&amp;nbsp;and then use 26 as the baud rate divisor the baud rate is exactly 9600bps. So how do I fine tune the Bus&amp;nbsp;frequency, I need to get 8MHz - 12.8kHz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Jul 2010 22:29:41 GMT</pubDate>
    <dc:creator>karthick1987</dc:creator>
    <dc:date>2010-07-18T22:29:41Z</dc:date>
    <item>
      <title>SCI transmission question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213895#M18500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might be redundant but I did a fair bit of searching in the forum before turning to you guys again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a GT16A and I wanted to use the SCI with a LCD display which has a 9600 bps baudrate. When I configured the baud rate of the GT16A , the closest I could get was only 9615.385 which is about 0.1% accurate, but I am afraid that I&amp;nbsp;accumulate&amp;nbsp;over time and&amp;nbsp;&amp;nbsp;become corrupt. The display takes a start bit + 8 bits + stop bit (no parity).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to resolve this issue? Any&amp;nbsp;suggestions&amp;nbsp;guys?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Karthick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jul 2010 21:17:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213895#M18500</guid>
      <dc:creator>karthick1987</dc:creator>
      <dc:date>2010-07-18T21:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: SCI transmission question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213896#M18501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more thing I wanted to put out to you guys -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I calculated that if I shave off about 6.4k from the&amp;nbsp;MHz&amp;nbsp;and then use 26 as the baud rate divisor the baud rate is exactly 9600bps. So how do I fine tune the Bus&amp;nbsp;frequency, I need to get 8MHz - 12.8kHz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jul 2010 22:29:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213896#M18501</guid>
      <dc:creator>karthick1987</dc:creator>
      <dc:date>2010-07-18T22:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: SCI transmission question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213897#M18502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Not an expert here, but the frequency seems close enough.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Do you experience any issues?&lt;/P&gt;&lt;P&gt;After the 10th bit, the measurement is just 1.5% (0.16%*9) off, I would think this should still be fine.&lt;/P&gt;&lt;P&gt;Note that there is no accumulation across multiple bytes received, the SCI synchronized on the start bits again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 01:29:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213897#M18502</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2010-07-19T01:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: SCI transmission question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213898#M18503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Karthick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This much error is well within acceptable limits for reliable communications.&lt;/P&gt;&lt;P&gt;The reciever resyncronises on every negative going transistion, worst case is every byte.&lt;/P&gt;&lt;P&gt;It may depend on what sort of reciever is at the other end and whetether it properly re-syncs.&lt;/P&gt;&lt;P&gt;If you are using the internal clock, you can offset the internal oscillator this much to achieve exactly 9600 baud. Otherwise you would need to change to an external device that produces the correct frequency when divided down.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 05:20:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213898#M18503</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2010-07-19T05:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: SCI transmission question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213899#M18504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks peg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you tell me how I can alter the internal clock (by that do you mean the bus clock?) to get a better&amp;nbsp;frequency so it divides nicely. I worked it out and it turns out to be 8MHz - 12.8kHz &amp;nbsp;= 7.9872MHz and this when divided by 16 and 26 and 2 gives us 9600. So any&amp;nbsp;suggestions ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Karthick&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 09:05:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213899#M18504</guid>
      <dc:creator>karthick1987</dc:creator>
      <dc:date>2010-07-19T09:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: SCI transmission question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213900#M18505</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;Are you using an external crystal or oscillator?&lt;/P&gt;&lt;P&gt;Or are you generating the buss clock internally?&lt;/P&gt;&lt;P&gt;Only if you are doing it internally can you adjust the clock by a small amount.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 09:08:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213900#M18505</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2010-07-19T09:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: SCI transmission question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213901#M18506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Karthick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using standard the&amp;nbsp;trim value for the ICG, there are many bus frequency alternatives that give a baud accuracy of about 0.25 percent.&amp;nbsp; However, keep in mind that the ICG itself has a tolerance over temperature and voltage of typically 0.5%, but 2 percent worst case.&amp;nbsp; The SCI module receive process will tolerate a baud error of up to about 4 percent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your case, the allowable baud error will depend on the LCD display hardware, and maybe whether this is crystal controlled within the display.&amp;nbsp; However, I suspect that the send baud accuracy from the MCU should be adequate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you&amp;nbsp;wish to adjust the ICG&amp;nbsp;trim value, without the need to implement your own calibration procedure using an external timing reference, the calculated (or experimental) constant&amp;nbsp;trim&amp;nbsp;offset relative to the standard trim value ( for 243kHz reference) would need to be as small as possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the internal reference, the&amp;nbsp;available bus frequencies with standard trim, and assuming&amp;nbsp;a reduced frequency divisor of 1, are as follows:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Bus(MHz) Baud div.&amp;nbsp;Error&amp;lt;=0.26%&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;4.443&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 29&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;6.665&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 43&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;8.887&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 58&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;11.109&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 72&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;13.330&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 87&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;15.552&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;101&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;17.774&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;116&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;19.995&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 130&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Mac&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 13:26:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213901#M18506</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-07-19T13:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: SCI transmission question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213902#M18507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mac,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to sort out the 9600 bps but couldnt get it. It seems like the serial is working fine but the LCD isnt printing the right characters on the screen, so I am left to think that its somthing to do with the baud rate. Hence How do I get a baud rate of&lt;/P&gt;&lt;P&gt;7.9872 MHz. IS this possible or not? I am only using the internal clock generator (No external XTAL).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So please let me know that would be nice. Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Karrthick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 22:56:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213902#M18507</guid>
      <dc:creator>karthick1987</dc:creator>
      <dc:date>2010-08-02T22:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: SCI transmission question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213903#M18508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;Karrthick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you mean a bus frequency of 7.9872 MHz?&amp;nbsp; Using&amp;nbsp;the standard trim setting for the internal reference, only the bus frequencies previously listed are avaiable.&amp;nbsp; You would need a very significant departure frim this trim setting to achieve 7.9872 MHz, which would require a special calibration procedure using an external frequency source - to be avoided if at all possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you were to choose a nominal trimmed&amp;nbsp;bus frequency of 8.887 MHz (using multiplier value 8), a baud rate divisor of 58 should give a&amp;nbsp;baud rate error&amp;nbsp;of about 0.25 percent.&amp;nbsp; I re-iterate that this should be sufficiently close to the required baud rate, without the need for further trim adjustment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps you should post your current code for the clock generator and SCI&amp;nbsp;initialisation.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 02:04:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213903#M18508</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-08-03T02:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: SCI transmission question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213904#M18509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok i got it working!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You were right Mac. it seems like 9615 is close enough. I had to fiddle around a bit. But its good now. I wanted to know something else though. This is what my serial code looks like (I am not using interrupts here).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; while(SCI1S1_TC == 1)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCI1D = i;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;while(SCI1S1_TC == 1)&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in the main for loop i have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for(;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;{ &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LCD_write('y');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LCD_write('o');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* __RESET_WATCHDOG(); by default, COP is disabled with device init. When enabling, also reset the watchdog. */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;} /* loop forever */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LCD_write() is the function that contains the first piece of code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I did notice on the LCD screen that it displayed a series of y's followed by a series of o's ! It should have been a series of yo's&amp;nbsp;continuously&amp;nbsp;instead!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has led me to think that I am using the wrong approach to serial communication here. So please tell me if i am actually missing something out ? like the transmit buffer or something of that sort. Also I wanted to know what your approach to this would be like?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Karthick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 21:41:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213904#M18509</guid>
      <dc:creator>karthick1987</dc:creator>
      <dc:date>2010-08-03T21:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: SCI transmission question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213905#M18510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Karthick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I notice that this query has been posted twice within this forum.&amp;nbsp; Please do not post the same question more than once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your test of the TC flag is incorrect -&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You are waiting for tranmitter active rather than transmitter idle.&lt;/LI&gt;&lt;LI&gt;It is not usual to wait until transmission complete before&amp;nbsp;buffering the next character; normally the TDRE flag would be tested.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The following send function should normally work -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;void LCD_write( byte val)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; while (!SCI1S1_TDRE);&amp;nbsp; // Wait until ready to send&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; SCI1D = val;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Send character&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&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;If problems should remain, is it possible that the LCD display requires a delay between the sending of consecutive characters?&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 03:23:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213905#M18510</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-08-04T03:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: SCI transmission question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213906#M18511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry about the redundant post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And thanks for the info Mac. I got it working now!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also wanted to know how to transmit serially without the use of the PE micro USB&amp;nbsp;multi link&amp;nbsp;interface. I am using it to load the program into flash. The issue here is that whenever i use the PE micro USB&amp;nbsp;multi link&amp;nbsp;interface to burn the program into flash my LCD display works but when ever I disconnect the&amp;nbsp;PE micro USB&amp;nbsp;multi link and just connect it to the power source the LCD display dosent seem to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So any suggessions? what do you think is happeniing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Karthick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 18:43:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SCI-transmission-question/m-p/213906#M18511</guid>
      <dc:creator>karthick1987</dc:creator>
      <dc:date>2010-08-04T18:43:19Z</dc:date>
    </item>
  </channel>
</rss>

