<?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>Other NXP ProductsのトピックMC56F8013 - SCI Problem</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/MC56F8013-SCI-Problem/m-p/126230#M23</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi people!&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I'm newbie in develop with MC56F8013 and I've had some problems in trying a serial communication between my microcontroller and a pc.&lt;/DIV&gt;&lt;DIV&gt;What I need is send an information through the RS-232 from pc to MC56F8013, but I'm not getting it.&lt;/DIV&gt;&lt;DIV&gt;I've already tried to make that using SPI and SCI, but I don't think that I'm making in a correct way...&lt;/DIV&gt;&lt;DIV&gt;I have many doubts about how to connect SCI or SPI with the RS-232 connector in the board. Is it already connected with the SCI and SPI service, or Do I have to set something to link that with those services?&lt;/DIV&gt;&lt;DIV&gt;This is my current code, where I tried to make a interruption when I try to receive something in RS-232 of the board:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;#include &amp;lt;stdio.h&amp;gt; #include "MC56F801x.h" #include "isr.h"void initIsr () { asm (bfclr #$0300,sr);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* allow lowest priority *//* SCI */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm(bfset #$C000,X:IPR2);&amp;nbsp;&amp;nbsp; /* Setting Interrupt register to priority 2 */&amp;nbsp;&amp;nbsp; 
 asm(move.w #$00D0,X:SCI0_BR);&amp;nbsp; /* Setting Baud Rate register to value 208 (9600) */&amp;nbsp;&amp;nbsp; 
 asm(bfset #$1234,X:SCI0_CR);&amp;nbsp; /* Setting Control register (0001001000110100) */ asm(bfclr #$FFFF,X:SCI0_SR);&amp;nbsp; /* Setting register to Baud Rate
&amp;nbsp; be controled only by the Baud Rate register */&amp;nbsp; 
}#pragma interruptvoid iserial () {&amp;nbsp; printf("Test"); }&lt;/PRE&gt;&lt;BR /&gt; &lt;/DIV&gt;&lt;DIV&gt;In the Interrupt Vector:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; jsr &amp;gt;Fiserial&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; SCI Receiver Error &lt;/DIV&gt;&lt;DIV&gt; jsr &amp;gt;Fiserial&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; SCI Receiver Full&amp;nbsp; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;So, when I try to send something by HyperTerminal, only to test, my code should go to the function iserial, is not it?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Plz, What Am I doing of wrong? Is it missing to set something??? How could I test if my interruption is working well???&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Tks a lot!!!! ^_^&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;Alban Edit: FSL Part Number in Subject line + split/moved to appropriate location.&lt;/P&gt;&lt;P&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;2007-03-14&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;02:56 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2007 19:54:16 GMT</pubDate>
    <dc:creator>t_</dc:creator>
    <dc:date>2007-03-14T19:54:16Z</dc:date>
    <item>
      <title>MC56F8013 - SCI Problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC56F8013-SCI-Problem/m-p/126230#M23</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi people!&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I'm newbie in develop with MC56F8013 and I've had some problems in trying a serial communication between my microcontroller and a pc.&lt;/DIV&gt;&lt;DIV&gt;What I need is send an information through the RS-232 from pc to MC56F8013, but I'm not getting it.&lt;/DIV&gt;&lt;DIV&gt;I've already tried to make that using SPI and SCI, but I don't think that I'm making in a correct way...&lt;/DIV&gt;&lt;DIV&gt;I have many doubts about how to connect SCI or SPI with the RS-232 connector in the board. Is it already connected with the SCI and SPI service, or Do I have to set something to link that with those services?&lt;/DIV&gt;&lt;DIV&gt;This is my current code, where I tried to make a interruption when I try to receive something in RS-232 of the board:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;#include &amp;lt;stdio.h&amp;gt; #include "MC56F801x.h" #include "isr.h"void initIsr () { asm (bfclr #$0300,sr);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* allow lowest priority *//* SCI */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm(bfset #$C000,X:IPR2);&amp;nbsp;&amp;nbsp; /* Setting Interrupt register to priority 2 */&amp;nbsp;&amp;nbsp; 
 asm(move.w #$00D0,X:SCI0_BR);&amp;nbsp; /* Setting Baud Rate register to value 208 (9600) */&amp;nbsp;&amp;nbsp; 
 asm(bfset #$1234,X:SCI0_CR);&amp;nbsp; /* Setting Control register (0001001000110100) */ asm(bfclr #$FFFF,X:SCI0_SR);&amp;nbsp; /* Setting register to Baud Rate
&amp;nbsp; be controled only by the Baud Rate register */&amp;nbsp; 
}#pragma interruptvoid iserial () {&amp;nbsp; printf("Test"); }&lt;/PRE&gt;&lt;BR /&gt; &lt;/DIV&gt;&lt;DIV&gt;In the Interrupt Vector:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; jsr &amp;gt;Fiserial&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; SCI Receiver Error &lt;/DIV&gt;&lt;DIV&gt; jsr &amp;gt;Fiserial&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; SCI Receiver Full&amp;nbsp; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;So, when I try to send something by HyperTerminal, only to test, my code should go to the function iserial, is not it?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Plz, What Am I doing of wrong? Is it missing to set something??? How could I test if my interruption is working well???&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Tks a lot!!!! ^_^&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;Alban Edit: FSL Part Number in Subject line + split/moved to appropriate location.&lt;/P&gt;&lt;P&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;2007-03-14&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;02:56 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 19:54:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC56F8013-SCI-Problem/m-p/126230#M23</guid>
      <dc:creator>t_</dc:creator>
      <dc:date>2007-03-14T19:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: MC56F8013 - SCI Problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC56F8013-SCI-Problem/m-p/126231#M24</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi, 3 things:&lt;BR /&gt;&lt;BR /&gt;1 - why don't you use something like QuickStart or Processor Expert to configure the 8013? It's much more easy that doing it by asm()? &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;BR /&gt;&lt;BR /&gt;2 - I'm not sure that printf() works like you think. printf() is set to put char where? on the serial line? If so have you configured the SCI to send datas?&lt;BR /&gt;&lt;BR /&gt;3 - The easiest way to se if the interrupt works is to attach a Led to a GPIO pin and toggle it when the interrupt arrives.&lt;BR /&gt;&lt;BR /&gt;Bye Jack&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 15:23:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC56F8013-SCI-Problem/m-p/126231#M24</guid>
      <dc:creator>jag</dc:creator>
      <dc:date>2007-03-27T15:23:08Z</dc:date>
    </item>
  </channel>
</rss>

