<?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: Seek help for the SCI module for NE64 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193038#M7613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The rate of the SCI is 57600&lt;BR /&gt;I wounder whether it is too fast for a NE64 using 25M clock&lt;BR /&gt;&lt;BR /&gt;I am woundering whether it is the interrupt used in OpenTCP causing the touble.&lt;BR /&gt;Is it possible to change the priority of of SCI interrupt to be higher than the other interrupt?&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Feb 2008 13:20:06 GMT</pubDate>
    <dc:creator>Jonah</dc:creator>
    <dc:date>2008-02-22T13:20:06Z</dc:date>
    <item>
      <title>Seek help for the SCI module for NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193036#M7611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;I am making a program that receive bytes from the SCI interface and transmit it by the ehternet&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The bytes from the SCI interface is very large so that it is not possible to buffer all of them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now, I am coming to a solution that use a circular buffer of reasomable size and use it to buffer the data. after that, use the OpenTCP module to transmit the byte.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The program work fine when the byte from SCI is transmitted one by one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, some byte would miss when I try to send a lot of data through the SCI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now, the receiveing of byte from SCI module is by Receiver Full Interrupt, and the protocol I am using is TCP protocol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any one can give me some hints about the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank You&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 00:10:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193036#M7611</guid>
      <dc:creator>Jonah</dc:creator>
      <dc:date>2008-02-22T00:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Seek help for the SCI module for NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193037#M7612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Here is a hint - what baud rate are you using, and what other devices are also interrupting, perhaps delaying the servicing of the SCI interrupt.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 01:02:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193037#M7612</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-02-22T01:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Seek help for the SCI module for NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193038#M7613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The rate of the SCI is 57600&lt;BR /&gt;I wounder whether it is too fast for a NE64 using 25M clock&lt;BR /&gt;&lt;BR /&gt;I am woundering whether it is the interrupt used in OpenTCP causing the touble.&lt;BR /&gt;Is it possible to change the priority of of SCI interrupt to be higher than the other interrupt?&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 13:20:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193038#M7613</guid>
      <dc:creator>Jonah</dc:creator>
      <dc:date>2008-02-22T13:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Seek help for the SCI module for NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193039#M7614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Ya, just as a test cut the baud down and see what happens.&lt;BR /&gt;&lt;BR /&gt;It could probably handle it if nothing else is going on, but with other stuff going on it could be a problem.&lt;BR /&gt;A that baud rate, its a character every 175us.&lt;BR /&gt;It is possible to change prioritys, and you will have to do a cli in the other handler I belive. Make sure your stack is big enough. You will have to read the manual as I don't recall the priority scheme.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by JimDon on &lt;SPAN class="date_text"&gt;2008-02-22&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;12:53 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 13:50:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193039#M7614</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-02-22T13:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Seek help for the SCI module for NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193040#M7615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;If you need to change your interrupt priorities you can do so via the HPRIO.&amp;nbsp; You can only mod this while the I bit in CCR is set (via sei is one option)&lt;BR /&gt;&lt;BR /&gt;I would recommend not using the option of a cli within your other interrupt routine(s) unless you are very careful - nesting interrupts is one of those things you dont do unless you are really need to.&amp;nbsp; If you're taking more than 175us in an ISR running at 25MHz bus then your approach to embedded programming needs a rethink - or its time for an ARM9 &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;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Colin&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2008 18:48:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193040#M7615</guid>
      <dc:creator>colinh</dc:creator>
      <dc:date>2008-02-24T18:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Seek help for the SCI module for NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193041#M7616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi&lt;BR /&gt;&lt;BR /&gt;We have done voice-over-IP work with the NE64 and measured a bi-directional 64kb/s overhead of around 20% for the serial port interrupt processing (tested with SCI and SPI interfaces). Therefore the speed of the interface (baud) should not be an issue.&lt;BR /&gt;&lt;BR /&gt;You may like to look at the uTasker project since it includes support for much of what you require. It is free for non-commercial work and has a forum for support.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;&lt;BR /&gt;Mark&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.uTasker.com" rel="nofollow" target="_blank"&gt;www.uTasker.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 05:45:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193041#M7616</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2008-02-25T05:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Seek help for the SCI module for NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193042#M7617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;While I agree that nested interrupts can be tricky to get right, if&amp;nbsp; you don't cli then changing priorities will only have an effect when the interrupts occur simultaneously, and will do little to solve the lock out of interrupts.&lt;BR /&gt;&lt;BR /&gt;I rarely do this, because as you said proper design or at least improved design is usually the best solution.&lt;BR /&gt;Take a long hard look at what you are doing in the other interrupt handlers, and see how much you can move to a foreground task. An RTK will make this much easier, as you can get timely execution off the interrupt thread and pass events using queues.&lt;BR /&gt;&lt;BR /&gt;See what Mark has to offer...&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 14:38:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193042#M7617</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-02-25T14:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Seek help for the SCI module for NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193043#M7618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;A different slant on the usefulness of changing interrupt priorities:&lt;BR /&gt;&lt;BR /&gt;The interrupts do not have to be simulataneous for the lowest priority to lose out.&amp;nbsp; All it needs is for there to be 2 or more interrupts pending on exit from an ISR since this is when the priorities are evaluated (ie there isn't a first in first out queue - its a case of the core evaluating the highest priority when the I flag is clear).&lt;BR /&gt;&lt;BR /&gt;Say you have 3 interrupts enabled and call then INT1, INT2, INT3 and lets assume INT1 has the highest and INT3 the lowest priority.&amp;nbsp; Now if INT1 and INT2 keep hogging the processor bandwidth, momentarily chewing up 100%&amp;nbsp; (due to poor design or whatever), then poor old INT3 might have to wait for them to both to be idle.&amp;nbsp; By prioritising INT3 at the highest level it will be the first ISR handled on completion of the current ISR, whichever that is.&amp;nbsp; Obviously the more interrupts in a system the longer it could take to the lowest priority if the higher priorities keep overlapping.&lt;BR /&gt;&lt;BR /&gt;Therefore if you (a) keep your ISRs to a minimal execution time, and (b) set an appropriate highest priority, you can have deterministic max latency to the specific highest priority interrupt.&lt;BR /&gt;&lt;BR /&gt;Re-enabling interrupts in an ISR is not for the feint hearted and I would want to see a very good justification for it if I were doing a design review..&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Colin&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 15:06:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Seek-help-for-the-SCI-module-for-NE64/m-p/193043#M7618</guid>
      <dc:creator>colinh</dc:creator>
      <dc:date>2008-02-26T15:06:14Z</dc:date>
    </item>
  </channel>
</rss>

