<?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 sending problem - MC9S12XS128   in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SCI-sending-problem-MC9S12XS128-160/m-p/599862#M13035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Each SCI has 2 Rx and 2 Tx registers.&lt;/P&gt;&lt;P&gt;Two Rx registers means SCIDR and its shift register.&lt;/P&gt;&lt;P&gt;Two Tx registers means SCIDR and its shift register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The observer is able to see only 1 Rx and 1 Tx register even they have the same name SCIDR. The MCU recognizes access to these registers on the basis whether register is being read or written.&lt;/P&gt;&lt;P&gt;Remaining Rx and Tx registers are shift registers and they are not visible to user. So if you write to SCIDR and Rx shift register is empty then data are immediately shifted to this register and transmitting starts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When data is receiving they are stored inside receive buffer and when the byte is completed it is shifted to Rx register SCIDR.&lt;/P&gt;&lt;P&gt;When we want to TX data then we write it into SCIDR register and it is consequently moved to a shift register. The user is not able to read these transmit registers..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you to test the SCI in loopback mode to be able to see in the Rx what you are sending in the Tx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Feb 2017 10:41:52 GMT</pubDate>
    <dc:creator>lama</dc:creator>
    <dc:date>2017-02-28T10:41:52Z</dc:date>
    <item>
      <title>SCI sending problem - MC9S12XS128 </title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SCI-sending-problem-MC9S12XS128-160/m-p/599861#M13034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I have some problems with my freescale controller.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;When I debug&amp;nbsp;&amp;nbsp;the SCI program, the value of the SCI1DRL register is always 0；for example，after runing "SCI1DRL = 0x55;" the value of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;SCI1DRL is 0x00,and the value of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;SCI1SR1_TDRE is always 1，using&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&amp;nbsp;the serial port debugging assistant, the value of I get is 0x85.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="" style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;&amp;nbsp;When I run&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 15px;"&gt;"SCI1DRL = 0xaa;/*&lt;SPAN&gt;SCI1DRL = other data;*/&lt;/SPAN&gt;" ,&lt;SPAN&gt;the value of I get is wrong.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-size: 15px;"&gt;&lt;SPAN&gt;I want to know how to&amp;nbsp;solve the problem.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338465"&gt;main.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Feb 2017 03:12:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SCI-sending-problem-MC9S12XS128-160/m-p/599861#M13034</guid>
      <dc:creator>956326010</dc:creator>
      <dc:date>2017-02-25T03:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: SCI sending problem - MC9S12XS128</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SCI-sending-problem-MC9S12XS128-160/m-p/599862#M13035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Each SCI has 2 Rx and 2 Tx registers.&lt;/P&gt;&lt;P&gt;Two Rx registers means SCIDR and its shift register.&lt;/P&gt;&lt;P&gt;Two Tx registers means SCIDR and its shift register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The observer is able to see only 1 Rx and 1 Tx register even they have the same name SCIDR. The MCU recognizes access to these registers on the basis whether register is being read or written.&lt;/P&gt;&lt;P&gt;Remaining Rx and Tx registers are shift registers and they are not visible to user. So if you write to SCIDR and Rx shift register is empty then data are immediately shifted to this register and transmitting starts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When data is receiving they are stored inside receive buffer and when the byte is completed it is shifted to Rx register SCIDR.&lt;/P&gt;&lt;P&gt;When we want to TX data then we write it into SCIDR register and it is consequently moved to a shift register. The user is not able to read these transmit registers..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you to test the SCI in loopback mode to be able to see in the Rx what you are sending in the Tx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 10:41:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SCI-sending-problem-MC9S12XS128-160/m-p/599862#M13035</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2017-02-28T10:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: SCI sending problem - MC9S12XS128</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SCI-sending-problem-MC9S12XS128-160/m-p/599863#M13036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look at the attached example.&lt;/P&gt;&lt;P&gt;Although it is written for S12XEP100, the SCI module is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 11:58:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SCI-sending-problem-MC9S12XS128-160/m-p/599863#M13036</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-02-28T11:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: SCI sending problem - MC9S12XS128</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SCI-sending-problem-MC9S12XS128-160/m-p/599864#M13037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,I will go back to try again and feedback the result&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;-原始邮件&lt;/DEL&gt;-&lt;/P&gt;&lt;P&gt;发件人:"danielmartynek"&amp;lt;admin@community.nxp.com&amp;gt;;&lt;/P&gt;&lt;P&gt;发送时间:2017年2月28日(星期二) 晚上7:58&lt;/P&gt;&lt;P&gt;收件人:"杜太磊 杜"&amp;lt;956326010@qq.com&amp;gt;;&lt;/P&gt;&lt;P&gt;主题:Re:  - Re: SCI sending problem - MC9S12XS128&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   	 	 	  	 		 			 				  	 		 			 				&lt;/P&gt;&lt;P&gt; 					 					 					 					 							NXP Community 					 				&lt;/P&gt;&lt;P&gt; 			 		&lt;/P&gt;&lt;P&gt; 	   	 		 			&lt;/P&gt;&lt;P&gt; Re: SCI sending problem - MC9S12XS128&amp;nbsp; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; reply from Daniel Martynek in S12 / MagniV Microcontrollers - View the full discussion&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;�&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look at the attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although it is written for S12XEP100, the SCI module is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;�&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  	 	 	 	Reply to this message by replying to this email, or go to the message on NXP Community          &lt;/P&gt;&lt;P&gt; 	 	 	Start a new discussion in S12 / MagniV Microcontrollers by email or at NXP Community 	     &lt;/P&gt;&lt;P&gt;      	 	Following Re: SCI sending problem - MC9S12XS128&amp;nbsp; in these streams:      Inbox          &lt;/P&gt;&lt;P&gt;                           &lt;/P&gt;&lt;P&gt;                         This email was sent by NXP Community because you are a registered user.&lt;/P&gt;&lt;P&gt; 	                        You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 03:22:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SCI-sending-problem-MC9S12XS128-160/m-p/599864#M13037</guid>
      <dc:creator>956326010</dc:creator>
      <dc:date>2017-03-01T03:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: SCI sending problem - MC9S12XS128 </title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SCI-sending-problem-MC9S12XS128-160/m-p/599865#M13038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 03:29:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SCI-sending-problem-MC9S12XS128-160/m-p/599865#M13038</guid>
      <dc:creator>956326010</dc:creator>
      <dc:date>2017-03-01T03:29:25Z</dc:date>
    </item>
  </channel>
</rss>

