<?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>S12 / MagniV MicrocontrollersのトピックRe: Serial Interrupt with the MC9S12NE64</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Interrupt-with-the-MC9S12NE64/m-p/132765#M1759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to thanks the help. Realy, I´m using a demo board and this is the real problem. When i change the serial port SCI0 to SCI1 the software begin to work. This help a lot!&lt;/P&gt;&lt;P&gt;Thanks friends&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Apr 2006 23:56:34 GMT</pubDate>
    <dc:creator>Carlos20</dc:creator>
    <dc:date>2006-04-24T23:56:34Z</dc:date>
    <item>
      <title>Serial Interrupt with the MC9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Interrupt-with-the-MC9S12NE64/m-p/132762#M1756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Everybody,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I´m having a terrible nightmare when programing the serial with interrupt. Here is the code. I´ll be very gratefull.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#include &amp;lt;hidef.h&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* common defines and macros */&lt;BR /&gt;#include &amp;lt;MC9S12NE64.h&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* derivative information */&lt;/DIV&gt;&lt;DIV&gt;unsigned char c;&lt;BR /&gt;unsigned char d, aux;&lt;/DIV&gt;&lt;DIV&gt;#pragma LINK_INFO DERIVATIVE "1"&lt;/DIV&gt;&lt;DIV&gt;void main(void) {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;SCI0BDH = 0x00;&lt;BR /&gt;&amp;nbsp;SCI0BDL = 0x28;&lt;BR /&gt;&amp;nbsp;SCI0CR1 = 0x00;&lt;BR /&gt;&amp;nbsp;SCI0CR2 = 0x2C;&lt;BR /&gt;&amp;nbsp;d=1;&lt;BR /&gt;&amp;nbsp;EnableInterrupts;&lt;BR /&gt;&amp;nbsp;while(1){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (d){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;aux = SCI0SR1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SCI0DRL = 'f';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while((SCI0SR1 &amp;amp; 0x80) == 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;d=0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#pragma CODE_SEG NON_BANKED&lt;BR /&gt;interrupt 20 void trataRecepcao(void) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;aux = SCI0SR1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;c = SCI0DRL;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;d = 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;aux = SCI0SR1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SCI0DRL = 'f';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;while((SCI0SR1 &amp;amp; 0x80) == 0);&lt;BR /&gt;}&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 00:34:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Interrupt-with-the-MC9S12NE64/m-p/132762#M1756</guid>
      <dc:creator>Carlos20</dc:creator>
      <dc:date>2006-04-19T00:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Interrupt with the MC9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Interrupt-with-the-MC9S12NE64/m-p/132763#M1757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hallo Carlos&lt;/P&gt;&lt;P&gt;Are you using the DEMO board with the serial monitor program?&lt;BR /&gt;If this is the case you can not use interrupts on serial 0 since they are handled by the serial monitor code. The only way around this would be to delete the serial monitor code and work with a BDM instead.&lt;BR /&gt;You can still use serial port 1 though&amp;nbsp;- look at the&amp;nbsp;circuit diagram&amp;nbsp;of the board and you will see that the RS232 level shifter has spare inputs and outputs which can be wired up. Then add a second DSUB connector by drilling a hole in the plastic case.&lt;/P&gt;&lt;P&gt;If this is not your problem, please state what is not working correctly - is the interrupt never arriving or getting stuck in a loop, etc.....&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark Butcher&lt;BR /&gt;&lt;A href="http://www.mjbc.ch" rel="nofollow" target="_blank"&gt;www.mjbc.ch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;PS. The uTasker [operating system and TCP/IP stack incl. all drivers, a powerful demo project and a real time simulator for the NE64] is free for educational and&amp;nbsp;hobby use, including free emal support. Send me a mail if you are interested in using it - see live demo at &lt;A href="http://212.254.22.36" rel="nofollow" target="_blank"&gt;http://212.254.22.36&lt;/A&gt; (user ADMIN passsword AL6000S) and see the device via web cam at &lt;A href="http://212.254.22.36:8080" rel="nofollow" target="_blank"&gt;http://212.254.22.36:8080&lt;/A&gt; - control LEDs from the I/O web page. Other demos on main web page including Internet enabled BDM for the NE64.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 16:30:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Interrupt-with-the-MC9S12NE64/m-p/132763#M1757</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2006-04-19T16:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Interrupt with the MC9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Interrupt-with-the-MC9S12NE64/m-p/132764#M1758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Carlos,&lt;/DIV&gt;&lt;DIV&gt;What Mark said is correct. The SCI port would be taken over by the serial monitor program if you are using it on the DEMO board. If not, I attached a project of some SCI code that uses interrupts. The code is project is in CodeWarrior for HCS12 V3.1 and is written for the MC9S12C32. Anyways, the SCI modules should be the same.&lt;/DIV&gt;&lt;DIV&gt;Hope you figure out what is wrong.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;This code is just a crude example and is not intended for production use.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.freescale.com/files/community_files/16BITCOMM/821_SCIinterrupts.zip" rel="nofollow" target="_self"&gt;SCIinterrupts.zip&lt;/A&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-20&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;11:03 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2006 04:06:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Interrupt-with-the-MC9S12NE64/m-p/132764#M1758</guid>
      <dc:creator>EMontanez</dc:creator>
      <dc:date>2006-04-20T04:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Interrupt with the MC9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Interrupt-with-the-MC9S12NE64/m-p/132765#M1759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to thanks the help. Realy, I´m using a demo board and this is the real problem. When i change the serial port SCI0 to SCI1 the software begin to work. This help a lot!&lt;/P&gt;&lt;P&gt;Thanks friends&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 23:56:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Interrupt-with-the-MC9S12NE64/m-p/132765#M1759</guid>
      <dc:creator>Carlos20</dc:creator>
      <dc:date>2006-04-24T23:56:34Z</dc:date>
    </item>
  </channel>
</rss>

