<?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: Simple SCI Polling Receive and Transmit Code</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141648#M6001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;OK, Good News! I plugged in the code below and that works OK, got characters in HyperTerminal.&lt;/DIV&gt;&lt;DIV&gt;So now, how can I get the SCI Rx working?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;BR /&gt;David&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;FONT face="Courier New"&gt;void MCU_init(void); /* Device initialization function declaration */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;void Delay(byte time);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;void main(void) {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;MCU_init(); /* call Device Initialization */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;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; {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;while(!SCS1_TC); SCDR = 0x55;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;Delay(5);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;} /* loop forever */&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;void Delay(byte time)&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;&amp;nbsp;word i;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;for(i = 0;i &amp;lt; time*255; i++)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;__RESET_WATCHDOG();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;}&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;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 31 Dec 2006 03:02:37 GMT</pubDate>
    <dc:creator>datamstr</dc:creator>
    <dc:date>2006-12-31T03:02:37Z</dc:date>
    <item>
      <title>Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141638#M5991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi All,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I&amp;nbsp;am using the&amp;nbsp;MC908QB8&amp;nbsp;Demo Board and CW50.&amp;nbsp;I have read through the manual and looked through the posts on this forum for help.&amp;nbsp;I am trying&amp;nbsp;to simply poll the SCI register for an incoming char and then transmit it&amp;nbsp;out the SCI port. My code is listed below, as far&amp;nbsp;as I understand the steps are:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1. Check for the SCI Recevier Full Flag. (SCRF)&lt;/DIV&gt;&lt;DIV&gt;2. Read the&amp;nbsp;SCI&amp;nbsp;Data Register&lt;/DIV&gt;&lt;DIV&gt;3. Check for the SCI Transmitter Empty flag. (SCTE)&lt;/DIV&gt;&lt;DIV&gt;4. Write the SCI Data Register&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&amp;nbsp;// SCI Loop Test&lt;BR /&gt;&amp;nbsp;for(;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt; /* loop forever */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;__RESET_WATCHDOG(); /* feeds the dog */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(SCS1_SCRF)&amp;nbsp; // SCRF Bit - Check for char ready and clear bit&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RChar = SCDR;&amp;nbsp; // Get SCI Char&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while(!SCS1_SCTE)&amp;nbsp; //SCTE Bit - wait for transmitter empty&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SCDR = RChar;&amp;nbsp;&amp;nbsp; // Send SCI char&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;My code is not working, any help please?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;David Evennou&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Dec 2006 09:19:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141638#M5991</guid>
      <dc:creator>datamstr</dc:creator>
      <dc:date>2006-12-30T09:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141639#M5992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Try removing the jumper from the COM EN block (near the RS232 connector).&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Dec 2006 09:49:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141639#M5992</guid>
      <dc:creator>thisobj</dc:creator>
      <dc:date>2006-12-30T09:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141640#M5993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;My configuration is:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1. SCI receive jumper (Lin/Com) is removed.&lt;/DIV&gt;&lt;DIV&gt;2. SCI input data is from an RS-485 Transceiver IC&lt;/DIV&gt;&lt;DIV&gt;3. Transmit jumper is on the COM side and the DB9 connector is plugged into the PC using HyperTerminal.&lt;/DIV&gt;&lt;DIV&gt;4. The transmit side works OK, I can send a character to the HyperTerminal running at 9600 Baud&lt;/DIV&gt;&lt;DIV&gt;5. Receive data is from a single board computer sending serial data to the RS-485 IC.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;To validate this setup, I connected the output from the RS-485 IC to the COM pin on the Demo Board.&lt;/DIV&gt;&lt;DIV&gt;The serial string of characters flows through to HyperTerminal just fine.&lt;/DIV&gt;&lt;DIV&gt;So, that is whay I think I must be doing something wrong in the code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;BR /&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Dec 2006 10:33:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141640#M5993</guid>
      <dc:creator>datamstr</dc:creator>
      <dc:date>2006-12-30T10:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141641#M5994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;datamstr wrote:&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;[snip.....] To validate this setup, &lt;B&gt;I connected the output from the RS-485 IC to the COM pin&lt;/B&gt; on the Demo Board.&lt;DIV&gt;The serial string of characters flows through to HyperTerminal just fine.&lt;/DIV&gt;&lt;DIV&gt;So, that is whay I think I must be doing something wrong in the code.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;BR /&gt;David&lt;/DIV&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Sorry, I first read this as a 9S08QG8 demo board. So, the following comments/questions:&lt;BR /&gt;&lt;BR /&gt;1. Are the LIN/COM jumpers installed between pins 1&amp;amp;3 (xmit) and 2&amp;amp;4 (rcv)?&lt;BR /&gt;2. By "COM pin", do you mean pin #3 of the RS232 connector? If so, can you scope J1-7 to see if you have the Rx signal there?&lt;BR /&gt;3. Check the pins on the ICL3232 (com) chip to make sure they are on the solder pads and are making good connections.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Dec 2006 12:37:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141641#M5994</guid>
      <dc:creator>thisobj</dc:creator>
      <dc:date>2006-12-30T12:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141642#M5995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1. I have one LIN/COM jumper installed between Pins 1 &amp;amp; 3. (for RS-232 xmit data)&lt;/DIV&gt;&lt;DIV&gt;2. I am referring to the&amp;nbsp;LIN/COM&amp;nbsp;Pin&amp;nbsp;4. (SCI Rx) This pin is wired to the external RS-485 Transceiver Output.&lt;/DIV&gt;&lt;DIV&gt;3. The pins of the ICL3232 are connected.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Dec 2006 19:20:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141642#M5995</guid>
      <dc:creator>datamstr</dc:creator>
      <dc:date>2006-12-30T19:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141643#M5996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Since you are bypassing the ICL3232, the signal will not be inverted at the '08 input pin. This means a valid "start" bit will not be detected. Also, the RS485 voltage levels should be constrained to those limits of the '08 inputs (TTL/CMOS)--a function that is also normally handled by the ICL3232. As a test, you could install the jumper (2&amp;amp;4) on the COM SEL block and input the signal at pin #3 on the RS232 connector.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Dec 2006 23:10:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141643#M5996</guid>
      <dc:creator>thisobj</dc:creator>
      <dc:date>2006-12-30T23:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141644#M5997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Actually, the signal polarity is correct from the MAX3280 RS-485 Receiver to the SCI Rx pin and it is running at 5 VDC as well as the QB8. I confirmed this by connecting the MAX3280 Output to the ICL3232 Driver (COM SEL Pin 1)&amp;nbsp;and monitoring the serial data using HyperTerminal. The RS-485 voltage level is at 5 VDC.&lt;/DIV&gt;&lt;DIV&gt;I like your suggestion to connect the SCI Rx pin to the ICL3232 (COM SEL jumper pins 2 &amp;amp; 4). I should be able to do a loopback test from HyperTerminal, the QB8 can echo back what I type into HT.&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Dec 2006 23:49:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141644#M5997</guid>
      <dc:creator>datamstr</dc:creator>
      <dc:date>2006-12-30T23:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141645#M5998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello David,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;From your description, I assume the other single board computer &amp;nbsp;(that generates the serial data for the demo board to receive) has a RS-485 driver fitted.&amp;nbsp; Using an oscilloscope, can you actually observe the presence of data at the receiver output pin of the local RS-485 device, i.e. receive mode is enabled.&amp;nbsp; If so, you may need to swap the differential input connections to achieve correct polarity into the QB8 RxD pin.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Also note that the baud rate for the received data will need to be the same rate as for the data&amp;nbsp;forwarded to the PC.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;You may find it more convenient for initial testing of code, to add a jumper so that the incoming data originates from the PC, rather than the SBC.&amp;nbsp; Then any character typed at the keyboard should simply be echoed.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Dec 2006 00:12:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141645#M5998</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-12-31T00:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141646#M5999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi Mac,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;That is correct, the SBC has a RS-485 Driver. I swapped the differential inputs just to try it, but still not getting data to the SCI. The baud rate should be correct for both xmit and receive. I used the settings I received from a Freescale Support Request a couple of months ago. The Device Initialization Inspector in CW50 shows the baud rate as 9638.5542. My next step is to try loopback using the RS-232 and HyperTerminal. Do you know if there is a&amp;nbsp;program already written to run this test?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also, I not yet figured out how to use breakpoints in CW50 with the QB8 Demo Board.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;BR /&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Dec 2006 00:45:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141646#M5999</guid>
      <dc:creator>datamstr</dc:creator>
      <dc:date>2006-12-31T00:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141647#M6000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;OK, I am using only the QB8 Demo Board RS-232 with both jumpers installed for COM SEL (1 &amp;amp; 3, 2 &amp;amp; 4).&lt;/DIV&gt;&lt;DIV&gt;Using the same code I originally posted, still nothing back from the SCI. I can't really tell if the SCI Data Register has anything in it. I think the next step is to try to send a character from the SCI Tx to RS-232 port first. (reverse the order)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Dec 2006 02:42:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141647#M6000</guid>
      <dc:creator>datamstr</dc:creator>
      <dc:date>2006-12-31T02:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141648#M6001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;OK, Good News! I plugged in the code below and that works OK, got characters in HyperTerminal.&lt;/DIV&gt;&lt;DIV&gt;So now, how can I get the SCI Rx working?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;BR /&gt;David&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;FONT face="Courier New"&gt;void MCU_init(void); /* Device initialization function declaration */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;void Delay(byte time);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;void main(void) {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;MCU_init(); /* call Device Initialization */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;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; {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;while(!SCS1_TC); SCDR = 0x55;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;Delay(5);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;} /* loop forever */&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;void Delay(byte time)&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;&amp;nbsp;word i;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;for(i = 0;i &amp;lt; time*255; i++)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;__RESET_WATCHDOG();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;}&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;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Dec 2006 03:02:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141648#M6001</guid>
      <dc:creator>datamstr</dc:creator>
      <dc:date>2006-12-31T03:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141649#M6002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;David,&lt;BR /&gt;Hey, your 1/2 way there!&lt;BR /&gt;This is just a suggestion, but when bringing up any new board or feature, I disable the watchdog timer to eliminate a variable from the debugging equation. Especially when there are wait loops anywhere in the code.&lt;BR /&gt;&lt;BR /&gt;Also, don't forget to set the RE bit in SCC2 to enable the receiver.&lt;BR /&gt;&lt;BR /&gt;Frank&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Dec 2006 05:16:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141649#M6002</guid>
      <dc:creator>thisobj</dc:creator>
      <dc:date>2006-12-31T05:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141650#M6003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Frank,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here is my MCUInit code ......no interrupts, Transmitter and Receiver Enabled, SCI Enabled.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;/* ### Init_SCI init code */&lt;BR /&gt;&amp;nbsp;/* SCIACTL: AM1=0,ALOST=0,AM0=0,ACLK=0,AFIN=0,ARUN=0,AROVFL=0,ARD8=0 */&lt;BR /&gt;&amp;nbsp;SCIACTL = 0x00;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;/* SCPSC: PDS2=0,PDS1=0,PDS0=1,PSSB4=1,PSSB3=0,PSSB2=0,PSSB1=1,PSSB0=1 */&lt;BR /&gt;&amp;nbsp;SCPSC = 0x33;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;/* SCC3: R8=0,T8=0,ORIE=0,NEIE=0,FEIE=0,PEIE=0 */&lt;BR /&gt;&amp;nbsp;SCC3 = 0x00;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;/* SCBR: LINT=0,LINR=0,SCP1=1,SCP0=0,SCR2=0,SCR1=0,SCR0=1 */&lt;BR /&gt;&amp;nbsp;SCBR = 0x21;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;/* SCC1: LOOPS=0,ENSCI=1,TXINV=0,M=0,WAKE=0,ILTY=0,PEN=0,PTY=0 */&lt;BR /&gt;&amp;nbsp;SCC1 = 0x40;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;/* SCC2: SCTIE=0,TCIE=0,SCRIE=0,ILIE=0,TE=1,RE=1,RWU=0,SBK=0 */&lt;BR /&gt;&amp;nbsp;SCC2 = 0x0C;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;Config Registers - (COP is Disabled)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;/* Common initialization of the write once registers */&lt;BR /&gt;&amp;nbsp;/* CONFIG1: COPRS=0,LVISTOP=0,LVIRSTD=0,LVIPWRD=0,LVITRIP=0,SSREC=0,STOP=0,COPD=1 */&lt;BR /&gt;&amp;nbsp;CONFIG1 = 0x01;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;/* CONFIG2: IRQPUD=0,IRQEN=0,ESCIBDsrc=0,OSCENINSTOP=0,RSTEN=0 */&lt;BR /&gt;&amp;nbsp;CONFIG2 = 0x00;&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;&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;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;BR /&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Dec 2006 06:15:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141650#M6003</guid>
      <dc:creator>datamstr</dc:creator>
      <dc:date>2006-12-31T06:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141651#M6004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi David,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am right at this moment writing a protocol translator using both SCI ports of a 9S08GT16.&lt;/DIV&gt;&lt;DIV&gt;This is to allow two incompatible pieces of equipment to talk to one another.&lt;/DIV&gt;&lt;DIV&gt;One side is two wire 485 9600 baud and the other is 4 wire 19200 and the protocol is completely different.&lt;/DIV&gt;&lt;DIV&gt;So all this stuff is right in my head now.&lt;/DIV&gt;&lt;DIV&gt;At this point I can see nothing wrong with what you are doing and so would suggest that you have a hardware issue.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What I did is this:&lt;/DIV&gt;&lt;DIV&gt;Replace one side with a PC running a terminal emulator.&lt;/DIV&gt;&lt;DIV&gt;Write some code to send a string to the PC when the device is reset using the same mechanisms in the code that will be used by the application. This tests many things before you get started. Most SCI setup including baudrate and your PC terminal setup etc.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You should only need:&lt;/DIV&gt;&lt;DIV&gt;Enable SCI&lt;/DIV&gt;&lt;DIV&gt;enable tx and rx&lt;/DIV&gt;&lt;DIV&gt;set baudrate&lt;/DIV&gt;&lt;DIV&gt;which you seem to have.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can you test for the presence of data right at the MCU pin input?&lt;/DIV&gt;&lt;DIV&gt;Even if the baudrate is a bit off or parity wrong or whatever you generally will get some rubbish occasionally if you throw enough data at it. Maybe get your terminal emulator to sent a small file at your MCU to see if you can recieve anything at all.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Even if you only have a multimeter you can put it on the RDI pin (it should idle high) then type at the terminal as fast as you can, you should see a small drop in voltage as&amp;nbsp;the data passes. I just tested this, I saw 3.28 idle and &amp;nbsp;3.24 with data. Sendig a file drops it to below 2 volts.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hope this helps&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;David (Peg)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Dec 2006 07:02:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141651#M6004</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-12-31T07:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141652#M6005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;David,&lt;BR /&gt;&lt;BR /&gt;What is your clock source? Assuming you want to use the internal clock and you want a baud rate of 9600, you should initialized the OSCSC register for 12.8MHz ( ICFS1:ICFS0 = 10) for the register values you've chosen to work out to 9600. Otherwise, the reset value will give you a 4.0MHz clock.&lt;BR /&gt;&lt;BR /&gt;Frank&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Dec 2006 08:16:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141652#M6005</guid>
      <dc:creator>thisobj</dc:creator>
      <dc:date>2006-12-31T08:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141653#M6006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi Frank,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The following information from Freescale Support is what I am using:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0033FF"&gt;When using internal oscillator it is not possible to set internal bus&lt;BR /&gt;frequency to 4.9152 Mhz.&lt;BR /&gt;You can for example set the bus frequency to 3.2MHz and set the ECSI&lt;BR /&gt;prescallers following way&lt;BR /&gt;&lt;BR /&gt;For 9600Bd&lt;BR /&gt;ESCI baud rate clock source = CGMXCLK,&lt;BR /&gt;Prescaler divisor = 2,&lt;BR /&gt;Prescaler divisor fine adjust = $13&lt;BR /&gt;Baud rate prescaler = 4&lt;BR /&gt;Baud rate divisor = 2&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;BR /&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Dec 2006 08:27:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141653#M6006</guid>
      <dc:creator>datamstr</dc:creator>
      <dc:date>2006-12-31T08:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141654#M6007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;David,&lt;BR /&gt;&lt;BR /&gt;That info is correct. But I don't think you'll get a 3.2MHz bus frequency unless you select the internal 12.8MHz clock, since Bus Clock = CGMXCLK/4. Since you're selecting CGMXCLK as the ESCI clock source, it needs to be init'd to 12.8MHz by setting the bits in OSCSC. This is called out in the document, MC68HC08QB8.pdf on page 100.&lt;BR /&gt;&lt;BR /&gt;Frank&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Dec 2006 09:11:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141654#M6007</guid>
      <dc:creator>thisobj</dc:creator>
      <dc:date>2006-12-31T09:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141655#M6008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi Frank,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for pointing that out to me. I remember now that the email from Freescale Support had that error, so I changed to internal clock. I just reviewed my settings in the CW Inspector and the Clock Source is set to Internal and the Internal Oscillator Frequency is 12.8 MHZ. The internal Bus Clock is set&amp;nbsp;to 3.2 MHZ.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Sorry about that.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Dec 2006 09:40:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141655#M6008</guid>
      <dc:creator>datamstr</dc:creator>
      <dc:date>2006-12-31T09:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141656#M6009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi David,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You said earlier that you could send from the MCU to a terminal on a PC so as the Tx and Rx baudrate is the same I believe that the clock/baudrate divisor must already be OK!&lt;/DIV&gt;&lt;DIV&gt;I don't know your hardware and as everything else seems OK that is why I was suspecting that the data is not actually getting into the MCU.&lt;/DIV&gt;&lt;DIV&gt;Have you confirmed this?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;Peg&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Dec 2006 09:58:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141656#M6009</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-12-31T09:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Simple SCI Polling Receive and Transmit Code</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141657#M6010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi Peg,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I just got back to the testing and I do have data at the MCU Rx pin. The DVM voltage drops when I hold down a key in HyperTermminal. Also, the hardware is just the Demo Board.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Anything I can try in code?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;BR /&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Dec 2006 10:47:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-SCI-Polling-Receive-and-Transmit-Code/m-p/141657#M6010</guid>
      <dc:creator>datamstr</dc:creator>
      <dc:date>2006-12-31T10:47:21Z</dc:date>
    </item>
  </channel>
</rss>

