<?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 OverRun interrupt not flagged on S12D in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134026#M1989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am not sure to get it. I put my SR on hold in the meantime.&lt;BR /&gt;If it is documented in the device block guide, I don't see how it can be qualified as a flaw of the module.&lt;BR /&gt;&lt;BR /&gt;At worst it is not designed as expectable.&lt;BR /&gt;But if the document states something, and the device works as documented, I understand why no erratum was issued.&lt;BR /&gt;An erratum is to state that the device is not working like specified.&lt;BR /&gt;&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2007 03:21:34 GMT</pubDate>
    <dc:creator>Alban</dc:creator>
    <dc:date>2007-06-11T03:21:34Z</dc:date>
    <item>
      <title>headsup with SCI migrating from HC12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134015#M1978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm just letting people know about an important difference between my project using XC68HC912BC32 and the upgrade to MC9S12DG128B. I am not sure what the exact difference is, but the HC12 worked without flaw, and I have finally found what the 9S12 needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;First of all, my project uses an SCI rx (input) to read a pre-recorded "NRZ" serial signal from the right track of an audio player. Those control codes are controling servos of a robotic character, so that it can be animated while playing audio from the left track. Using our original hardware with HC12, I thought it was great that I could just stop/start the audio or trun of/on the robot and it would always quicly restore contol from the control track.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now when I upgraded the hardware to use the DG128B, I didn't see any problem because it is fairly straight forward, and the documents don't say any difference really between the SCI port of the two targets. It seemed verified when I only made simple changes to make the software work with the S12 target.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, our production team found that there was indeed a problem. Every time that the audio (with SCI control track) was playing before powering up the robot, the SCI would "freeze". Though input was getting to the MCU as expected, it was stuck in a state where no data was received (seemingly ignored).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While researching, I came across my old complaint about the new hardware, when I was accusing a newer maskset of still having the SCI errata MUCts00510, "SCI interrupt asserts only if an odd number of interrupts active".&amp;nbsp; Well, as Freescale stated, that was not the problem I was experiencing. But here is the problem, yet again, that I was indeed experiencing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It did not really have to do with the SCI interrupt itself, but the symptom was that the SCI would get stuck in an error state and no longer trigger an interrupt, therefore completely ignore SCI further input until reset. The flag OR (rx overrun) would understandably be set, but that should simply be cleared when the character that was pending at the time of the overrun is read. So my software ignored the OR and other error bits. Well, that worked just fine until the upgrade to 9S12. Now it seems that it will often end up with the OR bit set, but not the RDRX, therefore does not call the ISR!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However stupid the design may be, at least there is a workaround provided you can realize that this is what is the problem. I simply made the ISR check and clear the OR at the end, &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;after&lt;/SPAN&gt;&lt;SPAN&gt; reading the next char available (not before, that still allowes OR to trigger between ISR reading of status and data, which does not clear the error).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So although I didn't save myself yet another painful problem-solving session, I hope that this helps others.&amp;nbsp; Good day!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 02:50:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134015#M1978</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2007-05-17T02:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: headsup with SCI migrating from HC12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134016#M1979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I haven't heard of this particular error before, which maskset(s) does this apply to? Only to the B masks or to newer ones as well?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 20:21:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134016#M1979</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2007-05-21T20:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: headsup with SCI migrating from HC12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134017#M1980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;The problem exists in the newest mask set of MC9S12: DG128, DP256, etc. (all compatible variations; I'll not guess which).&lt;BR /&gt;&lt;BR /&gt;Keep in mind that the logic of newer masksets is arguably valid. It is just a difference in the requirements. Basically, I am trying to say that FSL has openly DENIED it as "error" in this design. It's just that I easily have problems in software ported from HC12.&lt;BR /&gt;&lt;BR /&gt;I really am not certain the details exactly how HC12 worked different than S12 in this case. The bottom line is simply that if you don't learn to handle OR (overrun) &lt;U&gt;after&lt;/U&gt; reading the rx char which triggered the ISR, you can end up with the OR flag set but never triggering another ISR and never getting RDRF because it cannot trigger when OR is already set.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 00:40:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134017#M1980</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2007-05-22T00:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: headsup with SCI migrating from HC12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134018#M1981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;I'm beginning to wonder whether there is &lt;I&gt;actually a flaw&lt;/I&gt; in Freescale design, not just a &lt;I&gt;difference.&lt;/I&gt; I thought the documentation, in general, said that if an &lt;B&gt;OR&lt;/B&gt; flag is set, it is supposed to trigger an interrupt. Isn't that supposed to be the case?&lt;BR /&gt;&lt;BR /&gt;The problem in S12 seems apparently that the &lt;B&gt;OR&lt;/B&gt; (overrun) flag is not generating an interrupt (only the &lt;B&gt;RDRF&lt;/B&gt; that is &lt;I&gt;sometimes&lt;/I&gt; accompanying it), so the ISR is not called. It tends to look like the same problem as explained in &lt;FONT color="#663300"&gt;SCI errata MUCts00510&lt;/FONT&gt;, though it is not the same.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 04:00:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134018#M1981</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2007-06-06T04:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: headsup with SCI migrating from HC12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134019#M1982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Good Evening Ima,&lt;BR /&gt;&lt;BR /&gt;Yes, SCISR1_OR shall generate an interrupt if SCICR2_RIE == 1;&lt;BR /&gt;&lt;BR /&gt;If you have a soft reproducing the error, may you please enter a Service Request for analysis ?&lt;BR /&gt;Don't hesitate to put a link to this thread so the TSR (technical support representative) have all elements.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 04:29:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134019#M1982</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-06-06T04:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: headsup with SCI migrating from HC12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134020#M1983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Oh great... Thanks for responding, Alb&amp;nbsp; &lt;SPAN&gt;&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;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;Isn't it funny how much I've complained and re-explained before somebody representing FSL finally admitted that it should not be this way. But I'm glad you agree because it does make sense that &lt;B&gt;OR&lt;/B&gt; should trigger the ISR.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, the software where I verified this is a &lt;I&gt;large multipart system&lt;/I&gt; for my employer (a neat-o wireless control system running &lt;FONT color="#330000"&gt;FreeRTOS&lt;/FONT&gt;). If I'm right about the system, there should be a simple way to reproduce. Of course if you know a good way to get &lt;B&gt;OR&lt;/B&gt; set but not &lt;B&gt;RDRF&lt;/B&gt;, then you know more than me.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#6666FF" face="Century" size="5"&gt;Hopeful Reproduction&lt;/FONT&gt;&lt;BR /&gt;&lt;OL&gt;&lt;LI&gt;Wire SCI0 tx back to SCI1 rx (maybe works on same SCI port, i.e. loopback).&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;Send first byte on SCI0 tx.&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;ISR is called when SCI1 &lt;B&gt;RDRF&lt;/B&gt; comes. Read &lt;B&gt;SCI1SR1&lt;/B&gt;. Note that &lt;B&gt;RDRF&lt;/B&gt; is set but not &lt;B&gt;OR&lt;/B&gt;, therefore only 'arming' &lt;B&gt;RDRF&lt;/B&gt; to be cleared.&lt;/LI&gt;&lt;LI&gt;Within the ISR, send another byte on SCI0 tx&lt;/LI&gt;&lt;LI&gt;Wait for the &lt;B&gt;OR&lt;/B&gt; flag.&lt;/LI&gt;&lt;LI&gt;Read &lt;B&gt;SCI1DRL&lt;/B&gt;, which is where we were in the process of reading the first byte. I am assuming this is where the &lt;B&gt;RDRF&lt;/B&gt; got cleared but not &lt;B&gt;OR&lt;/B&gt;.&lt;/LI&gt;&lt;LI&gt;Return from interrupt, and see if it really jumps right back to the start of the ISR. Anything else verifies that there is new SCI errata to fix.&lt;BR /&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;FONT color="#669900"&gt;Now, who wants to be thouroughly thanked by writing this code to help solve the mystery?&amp;nbsp; Thank you very much.&lt;/FONT&gt; &amp;nbsp;&amp;nbsp; --jeffs&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#663333" size="5"&gt;P.S.&lt;/FONT&gt; I &lt;I&gt;&lt;B&gt;love&lt;/B&gt;&lt;/I&gt; the fact that this forum now enables rich-text editing for &lt;FONT color="#330000"&gt;Firefox on Linux&lt;/FONT&gt;. I no longer have to type in my own tags &lt;I&gt;&lt;U&gt;manually&lt;/U&gt;.&lt;/I&gt; &lt;FONT color="#66FF33" size="5"&gt;Thanks!&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 05:31:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134020#M1983</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2007-06-06T05:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: headsup with SCI migrating from HC12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134021#M1984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;As I entered the Service Request, I will receive the updates...&lt;BR /&gt;&lt;BR /&gt;The report is logged under &lt;B&gt;SR# 1-365947664.&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;It seems an important enough claim to be investigated and usually Jeff, you are good at this !&lt;BR /&gt;You probably know that it is not only a matter of complaining, but there is Who you complain to and How you do it.&lt;BR /&gt;I'm really surprised that a FSL employee was not receptive. There is no incentive in hiding things, quite the opposite actually.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 16:51:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134021#M1984</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-06-06T16:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: headsup with SCI migrating from HC12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134022#M1985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Yeah sorry I ran out of time on this.&lt;BR /&gt;&lt;BR /&gt;Don't forget it depends on what state of mind the FSL person is in, and which of my words they choose to focus on. In the case of the SR, unless I'm remembering wrong, this detail was just overlooked because there was at least one other thing I changed in my code to fix the problem (elevate the interrupt priority of SCI1). They tend to get the feeling that all they have to do is find that I missed something, and then they've done their job.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;I might search later, but I've talked about this problem in at least one, maybe both threads before this one. I think it wasn't further back then last year though, that I was able to explain why it looked like the old SCI errata but was different.&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 04:01:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134022#M1985</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2007-06-07T04:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: SCI OverRun interrupt not flagged on S12D</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134023#M1986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Jeff,&lt;BR /&gt;&lt;BR /&gt;I remember a story about the SCI that we talked about last year.&lt;BR /&gt;There was a pseudo-belief that Freescale was covering up because the thread was not imported from FreeGeeks.net. But that matter had been dealt with, I thought.&lt;BR /&gt;&lt;BR /&gt;Is it the same issue ?&lt;BR /&gt;&lt;BR /&gt;If you have previous SR#, please give them to me so I can look at what was done and not do it again.&lt;BR /&gt;&lt;BR /&gt;Are you saying that if you put SCI Interrupt in HPRIO, the OR interrupt occurs and is executed ?&lt;BR /&gt;&lt;BR /&gt;The problem with level of support is that people don't know the knowledge of their contact. As it is the source most of the time, they start with the basic questions.&lt;BR /&gt;The solution would be to put a flag on profiles: "This customer knows what he is talking about", "good in C".... But it causes ethics and also Legal concern I believe.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 17:56:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134023#M1986</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-06-07T17:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: SCI OverRun interrupt not flagged on S12D</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134024#M1987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;I finally found the first thread I started about it:&lt;BR /&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&amp;amp;message.id=1199" target="_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&amp;amp;message.id=1199&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can see there that it was &lt;FONT color="#330000"&gt;bigmac&lt;/FONT&gt; who responded, not Freescale, but he did refer to documentation which &lt;I&gt;knew&lt;/I&gt; about the problem. Of course this is why I would have not bothered to submit another SR, even though it seemed like a design flaw to me.&lt;BR /&gt;&lt;BR /&gt;Maybe there's &lt;I&gt;nothing&lt;/I&gt; we can do about it though, because FSL already documented in "&lt;FONT size="2"&gt;(S12SCIV2), on page 20 of Revision V02.08&lt;FONT size="3"&gt;", therefore they are happy with the product.&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 06:19:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134024#M1987</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2007-06-08T06:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: SCI OverRun interrupt not flagged on S12D</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134025#M1988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;Alban said:&lt;/FONT&gt;&lt;BR /&gt;&amp;gt; Are you saying that if you put SCI Interrupt in HPRIO, the OR interrupt occurs and is executed ?&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;Let me explain a little more about what brought out the condition in my software.&lt;/FONT&gt; &lt;FONT color="#330000" size="3"&gt;SCI0&lt;/FONT&gt; &lt;FONT size="3"&gt;was sometimes taking a little longer because it processed an entire packet after receiving, within the ISR (was a quick design).&lt;/FONT&gt; &lt;FONT color="#330000" size="3"&gt;SCI1&lt;/FONT&gt; &lt;FONT size="3"&gt;was trying to do some continuous flow of data, so relying on the ISR to keep going. When&lt;/FONT&gt; &lt;FONT color="#330000" size="3"&gt;SCI0&lt;/FONT&gt; &lt;FONT size="3"&gt;was delayed, however,&lt;/FONT&gt; &lt;FONT color="#330000" size="3"&gt;SCI1&lt;/FONT&gt; &lt;FONT size="3"&gt;had lower priority and therefore was barely getting&lt;/FONT&gt; &lt;FONT color="#330000" size="3"&gt;OR&lt;/FONT&gt; &lt;FONT size="3"&gt;(i.e. sometimes occurring right between reading&lt;/FONT&gt; &lt;FONT color="#330000" size="3"&gt;SCI1SR1&lt;/FONT&gt; &lt;FONT size="3"&gt;and reading&lt;/FONT&gt; &lt;FONT color="#330000" size="3"&gt;SCI1DRL&lt;/FONT&gt;&lt;FONT size="3"&gt;. That caused the freeze I'm describing now, where&lt;/FONT&gt; &lt;FONT color="#330000" size="3"&gt;OR&lt;/FONT&gt; &lt;FONT size="3"&gt;was set without&lt;/FONT&gt; &lt;FONT color="#330000" size="3"&gt;RDRF&lt;/FONT&gt; &lt;FONT size="3"&gt;set, and no ISR was called. At first I only solved it by polling&lt;/FONT&gt; &lt;FONT color="#330000" size="3"&gt;SCI1&lt;/FONT&gt; regularly (same workaround as for famous SCI errata). Finally, the engineer handling my SR thought of suggesting &lt;FONT color="#330000" size="3"&gt;HPRIO&lt;/FONT&gt; &lt;FONT size="3"&gt;on&lt;/FONT&gt; &lt;FONT color="#330000" size="3"&gt;SCI1.&lt;/FONT&gt; &lt;FONT size="3"&gt;That way, the more-delayed ISR for&lt;/FONT&gt; &lt;FONT color="#330000" size="3"&gt;SCI0&lt;/FONT&gt; &lt;FONT size="3"&gt;was not higher priority, and allowed&lt;/FONT&gt; &lt;FONT color="#330000" size="3"&gt;SCI1&lt;/FONT&gt; &lt;FONT size="3"&gt;to be serviced before getting an&lt;/FONT&gt; &lt;FONT color="#330000" size="3"&gt;OR.&lt;/FONT&gt; &lt;FONT size="3"&gt;That would not have solved the problem in other situations, just happened to work on my software, and helped me discover what was really happening.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;gt; The problem with level of support is that people don't know the knowledge of their contact. As it is the source most of the&lt;BR /&gt;&amp;gt; time,&lt;/FONT&gt; &lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;they start with the basic questions. [...]&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;I've stated before that I am not accusing FSL of covering up (no matter how much their employees make it look like they are), and I am not saying that the problem is them not knowing how experienced I am. If I forget to tell them that I've already tried plugging in my PC first, then they have the right to ask if I did. The problem was that they assumed the first thought they have is the problem, and would do something annoying to me like hang up on me (close the SR) instead of just asking me if I tried that, and then expecting a response from me even if it is, "thanks I had not thought of that".&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;&lt;BR /&gt;&lt;BR /&gt;I think now the issue we are talking about is the fact that you (or maybe FSL) did not understand what I was asking when I asked if this problem with OR was known. Well, as many times as I've found out that FSL just does not care, I have given up trying to cram this information down their throat. Thank you, Alban, because you do listen to me. It's just that I doubt now that any results will come of it via FSL.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;Good day,&amp;nbsp;&amp;nbsp; --jeffs&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 06:48:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134025#M1988</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2007-06-08T06:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: SCI OverRun interrupt not flagged on S12D</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134026#M1989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am not sure to get it. I put my SR on hold in the meantime.&lt;BR /&gt;If it is documented in the device block guide, I don't see how it can be qualified as a flaw of the module.&lt;BR /&gt;&lt;BR /&gt;At worst it is not designed as expectable.&lt;BR /&gt;But if the document states something, and the device works as documented, I understand why no erratum was issued.&lt;BR /&gt;An erratum is to state that the device is not working like specified.&lt;BR /&gt;&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 03:21:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134026#M1989</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-06-11T03:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: SCI OverRun interrupt not flagged on S12D</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134027#M1990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;I&gt;Does the current&lt;/I&gt; documentation say it? Apparently &lt;FONT color="#663366"&gt;I still have one that does&lt;/FONT&gt; &lt;FONT color="#663366"&gt;&lt;I&gt;not&lt;/I&gt;&lt;/FONT&gt; &lt;FONT color="#663366"&gt;(S12SCIV2.pdf V2.05)&lt;/FONT&gt;, at least not on that page, nor everywhere I've looked. I don't see it in the "Functional Description" either. But does the latest have it added?&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;Of course, I have studdied that part of the docs a few years, so &lt;FONT color="#663366"&gt;I would not have trouble if it was in my docs&lt;/FONT&gt;. It is still not, so I hope it's not just hidden in one of the doc revisions.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Well thanks anyway.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Update: I verified that the latest doc , supposedly 2.10, has other problems. Within the doc (S12SCIV2.pdf), I see &lt;FONT color="#CC0000"&gt;&lt;I&gt;NO version information&lt;/I&gt;&lt;/FONT&gt;, nor title page, nor revision history. It just starts with "Chapter One"... [of what??]&lt;BR /&gt;&lt;BR /&gt;No header information, even, to show any revision number. I cannot accept that as an official document... nobody should!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by imajeff on &lt;SPAN class="date_text"&gt;2007-06-11&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;09:03 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 21:52:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134027#M1990</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2007-06-11T21:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: SCI OverRun interrupt not flagged on S12D</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134028#M1991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello Jeff,&lt;BR /&gt;&lt;BR /&gt;I was asking confirmation, because in your post I read:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Maybe there's &lt;I&gt;nothing&lt;/I&gt; we can do about it though, because FSL already documented in "&lt;FONT size="2"&gt;(S12SCIV2), on page 20 of Revision V02.08&lt;FONT size="3"&gt;", therefore they are happy with the product.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;FONT size="2"&gt;&lt;FONT size="3"&gt;Which I understood: that is documented.&lt;BR /&gt;&lt;BR /&gt;I'll report to datasheet owner about the lack of covering page. The downloading location should still show a version number though, even if not in the document itself. I see Rev.13 for the package of S12DG128, the product I think you are referring to.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 02:04:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134028#M1991</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-06-12T02:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: SCI OverRun interrupt not flagged on S12D</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134029#M1992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Don't worry, I have not been lost in the conversation... I have understood your meaning. You do realize that was a quote (of course from the old thread). I knew that you would be confused about the V2.08, but was hoping that you would read the thread that I referred to. I did already waste my time back then, explaining that it was not in my version of S12SCIV2, and that I have no capacity to guess when to re-download each of the countless document files. I did explain that there was another flaw in the new one which said nothing about what revision it was. I am frustrated again because I do not benefit from having to say all of this yet again.&lt;BR /&gt;&lt;BR /&gt;I have already gone through all this in previous discussions. Of course I did not remember everything from other threads, so I had to search and find out. And yes, somehow the missing title-pages in "S12SCIV2.pdf" is yet unresolved. I hope you will understand that I am sick from the SR thing. I won't have time to argue with tose guys anymore. Sure I eventually got something done in many of the SR I have submitted, but it was not worth the time I spent.&lt;BR /&gt;&lt;BR /&gt;To see V2.10 as the latest, look here:&lt;BR /&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MC9S12DG128" rel="nofollow" target="_blank"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MC9S12DG128&lt;/A&gt;&lt;BR /&gt;(In the Documents tab)&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 04:34:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134029#M1992</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2007-06-12T04:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: SCI OverRun interrupt not flagged on S12D</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134030#M1993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello Jeff,&lt;BR /&gt;&lt;BR /&gt;I actually did not understood that it was a quote &lt;SPAN&gt;&lt;IMG alt=":smileysad:" class="emoticon emoticon-smileysad" id="smileysad" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;No need to repeat as you gave the link, I will look into the old thread.&lt;BR /&gt;&lt;BR /&gt;The datasheet will be modified, that is a promise... and I don't do those I can't keep.&lt;BR /&gt;The SCI block guide MUST be changed as it says Confidential when it is not and that is serious.&lt;BR /&gt;Datasheet owners were notified today.&lt;BR /&gt;I am not sure about the version numbering scheme.&lt;BR /&gt;&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 05:01:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134030#M1993</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-06-12T05:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: SCI OverRun interrupt not flagged on S12D</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134031#M1994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Alban,&lt;BR /&gt;&lt;BR /&gt;Besides the fact that I do not find the V2.13 that you see, here is the other issue more clearly:&lt;BR /&gt;&lt;BR /&gt;Maybe there is some confusion between &lt;I&gt;two&lt;/I&gt; issues. The question I had before was a combination of both problems:&lt;BR /&gt;&lt;OL&gt;&lt;LI&gt;The &lt;B&gt;OR&lt;/B&gt; flag should trigger an interrupt.&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;My original thought was that the &lt;B&gt;RDRF&lt;/B&gt; flag should always be set if &lt;B&gt;OR&lt;/B&gt; is set.&lt;/LI&gt;&lt;/OL&gt;Concerning #1, I can see a big problem. The &lt;FONT color="#330000"&gt;S12SCIV2&lt;/FONT&gt; does describe that I would need a dummy-read of &lt;FONT color="#666666"&gt;&lt;B&gt;SCIDRL&lt;/B&gt;&lt;/FONT&gt; if &lt;B&gt;OR&lt;/B&gt; is set after reading a byte to clear &lt;B&gt;RDRF&lt;/B&gt;, but it does &lt;I&gt;&lt;FONT color="#CC3300"&gt;&lt;B&gt;not&lt;/B&gt;&lt;/FONT&gt;&lt;/I&gt; state, nor even imply, that &lt;B&gt;OR&lt;/B&gt; will not trigger an interrupt. It is apparent from the register description before that, all these error bits should still trigger an interrupt.&lt;BR /&gt;&lt;BR /&gt;Concerning #2, This is the thing that is documented in a tiny &lt;FONT color="#663300"&gt;note&lt;/FONT&gt; in one place in &lt;FONT color="#330000"&gt;S12SCIV2&lt;/FONT&gt;, &lt;I&gt;and only&lt;/I&gt; starting at unknown revision &lt;I&gt;after&lt;/I&gt; the one with good title pages which is V2.05.&amp;nbsp; If &lt;FONT color="#330000"&gt;FSL&lt;/FONT&gt; chooses to randomly add a little side note in one spot of the &lt;I&gt;next revision of &lt;FONT color="#330000"&gt;Reference Manual&lt;/FONT&gt;&lt;/I&gt; instead of pointing out the unexpected behavior in "errata", then you are right, I should not complain. I should merrily move on to a reliable manufacturer, with which others are actually happy. [And I mean only after someone twists my ARM for so long...]&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 06:20:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134031#M1994</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2007-06-12T06:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: SCI OverRun interrupt not flagged on S12D</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134032#M1995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hello Jeff,&lt;BR /&gt;&lt;BR /&gt;I think we are referring to the same document. The revision 13 I mention is for the whole ZIP file and is not for individual files.&lt;BR /&gt;&lt;BR /&gt;There are differences between a "spec clarification" and an "erratum". The second one means that the MCU does not behave as specified whilst the first one means that we had all the elements already, but that because confusion was reported, the manual was updated to avoid that confusion.&lt;BR /&gt;&lt;BR /&gt;Now coming to 1...&lt;BR /&gt;I didn't know I would have the revelation at 4am, but I do understand fine now.&lt;BR /&gt;&lt;BR /&gt;The SCI module has only ONE interrupt vector. By this, it means that Errors have to share the same interrupt subroutine as Normal transmission.&lt;BR /&gt;Then, I tought about... What is an Over Run condition ?&lt;BR /&gt;The OR condition means that the module received a new data but data previously received was not read. And that is the key! "The module received a new data" so an interrupt is generated when OR occurs, this is the interrupt occuring when the data is received.&lt;BR /&gt;&lt;BR /&gt;An OR cannot occur unless you have a valid reception.&lt;BR /&gt;If the OR flag itself was to generate an IRQ, it would mean you would get a DOUBLE interrupt to the same vector in a case of over run:&lt;BR /&gt;- you would get the Receiver Full, because after all a VALID data was received,&lt;BR /&gt;- and the OR condition.&lt;BR /&gt;&lt;B&gt;But which Interrupt source should be set first ?&lt;/B&gt; I mean to be in a case of OR, you need to have received and overwritten the previously received data, therefore you have to get Receiver Full first.&lt;BR /&gt;&lt;B&gt;But you need to know before reading the receiver data&lt;/B&gt; that you skipped at least one to know where to put that data.&lt;B&gt;&lt;BR /&gt;These two last conditions are contradictory, and it would be highly in-efficient to generate two IRQ back to back to execute the same ISR !&lt;BR /&gt;&lt;BR /&gt;So what does make sense for the software ?&lt;BR /&gt;&lt;/B&gt;As OR cannot occur without RDRF, then you only need to generate an IRQ for RDRF.&lt;BR /&gt;Then, when the software enters the ISR, it can check if the valid value has overwritten the previous.&lt;BR /&gt;&lt;BR /&gt;Generating an IRQ for each bit would only make sense either if RDRF and OR were independant events (which it will never be) or if we had a separate interrupt vector for Receiving and for Errors (like for the msCAN).&lt;BR /&gt;#1 - Therefore it is logical and normal that OR itself does not generate an ISR&lt;BR /&gt;&lt;BR /&gt;On the second point.&lt;BR /&gt;Clearing a flag has a certain procedure. If RDRF is cleared and nothing has been done to clear OR, then RDRF is cleared when OR is set.&lt;BR /&gt;#2 - It means that the error condition does not clear by itelf and you need user intervention.&lt;BR /&gt;(May be the user receives by bursts and only want to check, out of the ISR that the data in the buffer is correct)&lt;BR /&gt;&lt;BR /&gt;I hope it is now as clear for you as it is for me.&lt;BR /&gt;&lt;BR /&gt;The document (S12SCIV2.pdf and the ZIP archive) will still have to be changed for the reason I gave previously.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 10:44:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134032#M1995</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-06-12T10:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: SCI OverRun interrupt not flagged on S12D</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134033#M1996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;FONT color="#6666FF"&gt;[I won't argue about the double interrupt on overrun, even though you should realize that there were indeed two characters received, therefore two interrupts is not incorrect.]&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;Great&lt;/I&gt;, though it does &lt;U&gt;not&lt;/U&gt; solve the problem of non-backwards compatibility with HC12, but that's not a requirement.&lt;BR /&gt;&lt;BR /&gt;I came to the same conclusion/revelation, before I started this thread. I was right to think you're pretty smart&amp;nbsp;&lt;SPAN&gt;&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;/SPAN&gt;&amp;nbsp; I started &lt;I&gt;this&lt;/I&gt; thread because of the lack of compatibility (requiring more software changes to migrate from HC12).&lt;BR /&gt;&lt;BR /&gt;In that case, here is a quote from the docs which needs changed.&lt;BR /&gt;&lt;BR /&gt;Section 1.3.2.4 of S12SCIV2 says:&lt;BR /&gt;''&lt;BR /&gt;The SCISR1 and SCISR2 registers provides inputs to the MCU for&lt;BR /&gt;generation of SCI interrupts. Also, these registers can be polled by&lt;BR /&gt;the MCU to check the status of these bits. The ﬂag-clearing&lt;BR /&gt;procedures require that the status register be read followed by a&lt;BR /&gt;read or write to the SCI Data Register.It is permissible to execute&lt;BR /&gt;other instructions between the two steps as long as it does not&lt;BR /&gt;compromise the handling of I/O, but the order of operations is&lt;BR /&gt;important for ﬂag clearing.&lt;BR /&gt;''&lt;BR /&gt;&lt;BR /&gt;It should &lt;I&gt;&lt;B&gt;not&lt;/B&gt; say&lt;/I&gt; that the whole register(s) is "&lt;FONT color="#6666FF"&gt;for generation of SCI interrupts&lt;/FONT&gt;". Instead it should specify which bits either in this paragraph, or more likely in the description of each bit.&lt;BR /&gt;&lt;BR /&gt;NOTE:&lt;BR /&gt;I used to think that with this method, my ISR would have to check for OR twice. First before reading the DR (so I'd know that I've already lost it), and second after reading, in case the OR occurred just before reading DR. Rather, I see that because it &lt;FONT color="#663300"&gt;preserves the previous byte that arrived first in the DR,&lt;/FONT&gt; then I really have that &lt;FONT color="#663300"&gt;&lt;I&gt;data stream intact right up to the OR&lt;/I&gt;&lt;/FONT&gt; which occurred &lt;I&gt;after&lt;/I&gt; the byte my ISR is currently reading. I only need check for OR after reading the byte that generated the RDRF. I do like this way better.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;Thank you Alban!&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 06:04:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134033#M1996</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2007-06-13T06:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: headsup with SCI migrating from HC12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134034#M1997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;You know, I've heard about this error/caveat from way back, and I've never seemed to be bitten by it. But then, maybe it's because I was bit by the 'letnI' bug so many times that I write my routines differently and that seems to mask the problem.&lt;BR /&gt;&lt;BR /&gt;With that 'other' family of parts, there were tons of problems with the 8259, and especially with master/slaved 8259's. Phantom interupts and lost interrupts.&lt;BR /&gt;&lt;BR /&gt;Anyway, I've always (since the early 80's) written my ISRs as 'poll' routines first, then used the ISR to just call the poll routines in a loop multiple times until all the status bits clear. That also means the ISR has to have an exit on 'no' interrupts.&lt;BR /&gt;&lt;BR /&gt;I'm just wondering it that would clear the problem or if I just happen to have hidden the problem with something else I did in my code.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 20:31:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/headsup-with-SCI-migrating-from-HC12/m-p/134034#M1997</guid>
      <dc:creator>mke_et</dc:creator>
      <dc:date>2007-06-13T20:31:34Z</dc:date>
    </item>
  </channel>
</rss>

