<?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 Why isn't UART TX interrupt being called from within another ISR? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-isn-t-UART-TX-interrupt-being-called-from-within-another-ISR/m-p/768740#M46776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MCU: K22F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one interrupt (generated by a Processor Expert ExtInt component) configured as Low priority. Inside the low-priority interrupt I want to send some serial port data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have UART0 configured in interrupt-mode with TX interrupt priority High.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each is working independently: I can send and receive bytes on UART0, and the ExtInt is triggering as expected. However, when I attempt to transmit some bytes inside the ExtInt ISR, I don't see the bytes actually being transmitted until after the ExtInt ISR has completed. Basically, it's working as if the UART0 TX interrupt is actually a *lower* priority than the ExtInt priority.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jan 2018 01:54:08 GMT</pubDate>
    <dc:creator>asfarley</dc:creator>
    <dc:date>2018-01-30T01:54:08Z</dc:date>
    <item>
      <title>Why isn't UART TX interrupt being called from within another ISR?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-isn-t-UART-TX-interrupt-being-called-from-within-another-ISR/m-p/768740#M46776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MCU: K22F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one interrupt (generated by a Processor Expert ExtInt component) configured as Low priority. Inside the low-priority interrupt I want to send some serial port data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have UART0 configured in interrupt-mode with TX interrupt priority High.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each is working independently: I can send and receive bytes on UART0, and the ExtInt is triggering as expected. However, when I attempt to transmit some bytes inside the ExtInt ISR, I don't see the bytes actually being transmitted until after the ExtInt ISR has completed. Basically, it's working as if the UART0 TX interrupt is actually a *lower* priority than the ExtInt priority.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 01:54:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-isn-t-UART-TX-interrupt-being-called-from-within-another-ISR/m-p/768740#M46776</guid>
      <dc:creator>asfarley</dc:creator>
      <dc:date>2018-01-30T01:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why isn't UART TX interrupt being called from within another ISR?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-isn-t-UART-TX-interrupt-being-called-from-within-another-ISR/m-p/768741#M46777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I think I figured it out. Underneath all the Processor Expert stuff, ExtInt was using a PORTB ISR. The PORTB ISR was configured to Highest Priority.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I blame this on unclear PE configuration; it seems a bit misleading that I have to go digging through PORTB interrupt priorities because they're mysteriously affecting things in the background. It doesn't make any sense to allow PE to configure a lower-priority interrupt for ExtInt if it's already running inside a high-priority PORTB ISR.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 02:16:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-isn-t-UART-TX-interrupt-being-called-from-within-another-ISR/m-p/768741#M46777</guid>
      <dc:creator>asfarley</dc:creator>
      <dc:date>2018-01-30T02:16:16Z</dc:date>
    </item>
  </channel>
</rss>

