<?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>Kinetis MicrocontrollersのトピックRe: UART Data coming  in faster than I expect - K10</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214821#M3693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also... I'm using baud rate of 115200.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2012 12:14:58 GMT</pubDate>
    <dc:creator>ignisuti</dc:creator>
    <dc:date>2012-03-09T12:14:58Z</dc:date>
    <item>
      <title>UART Data coming  in faster than I expect - K10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214820#M3692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm creating a UART driver and had intially disabled the FIFO buffers at first. I was only receiving the first of 5 bytes of data.&lt;/P&gt;&lt;P&gt;I eventually decided to try and enable the FIFO buffers and find that ALL of the expected 5 bytes are present during my first interrupt.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can this be if I'm running my core clock at 100MHz? My MCU should be fast enough to get the interrupt after the first byte, pull the byte out of the buffer, increment the counter, and then go about it's business long before the 2nd byte arrives. Am I wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I'm using UART 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 11:20:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214820#M3692</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2012-03-09T11:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: UART Data coming  in faster than I expect - K10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214821#M3693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also... I'm using baud rate of 115200.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 12:14:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214821#M3693</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2012-03-09T12:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: UART Data coming  in faster than I expect - K10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214822#M3694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had same problem before, cause i do something delay (eg. printf) in interrupt, so the next interrupt can not trigger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;just remind you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 17:59:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214822#M3694</guid>
      <dc:creator>rhyttr</dc:creator>
      <dc:date>2012-03-09T17:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: UART Data coming  in faster than I expect - K10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214823#M3695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried changing the receive watermak register setting to configure how many bytes need to be received before an interrupt is generated?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 20:12:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214823#M3695</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2012-03-09T20:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: UART Data coming  in faster than I expect - K10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214824#M3696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys. Thanks for the suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I removed all printf statements from my interrupt to test, but that did not correct things.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I have my RXWATER set to 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What else can I check?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 22:33:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214824#M3696</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2012-03-09T22:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: UART Data coming  in faster than I expect - K10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214825#M3697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have any very large temprorary variables declared inside the ISR?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2012 00:20:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214825#M3697</guid>
      <dc:creator>comsosysarch</dc:creator>
      <dc:date>2012-03-10T00:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: UART Data coming  in faster than I expect - K10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214826#M3698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I did come across something that looks suspect. There are a lot of printf commands processing in the background which the debugger is using to show data in the CW 10.2 terminal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Those printf commands seem to be super slow. I can watch the text being typed in the terminal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe that's blocking/delaying so much that my interrupt isn't triggering fast enough... Any thoughts on this theory?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2012 02:37:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214826#M3698</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2012-03-10T02:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: UART Data coming  in faster than I expect - K10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214827#M3699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Any thoughts on this theory?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first time I say a debugger connected through the debug port with a window showing the results of "printf()" I had no idea how it could be doing that, so I looked further.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this system (a long time ago on an MPC860) the debugger setup "secretly" put a breakpoint on a function deep in the printing code. The embedded printing code printed to a named ram-based buffer then called the function with the breakpoint on it. The CPU &lt;STRONG&gt;*STOPPED*&lt;/STRONG&gt;, the debugger special-cased that breakpoint to mean "don't tell the user, just read the buffer, show in the window and then continue".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;All this debugger interaction took a long time - like 1/2 second or more. With the CPU halted for all that time it can't do anything "real time".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is your one doing the same thing? If you need any "real time response" you can't have any of this sort of debugging. it may be time to replace it with printing to a real buffered and interrupt driven serial port, to a network connection, a file system or to a HUGE RAM-based print buffer that you look at later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 10:56:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214827#M3699</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2012-03-15T10:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: UART Data coming  in faster than I expect - K10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214828#M3700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TomE,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Yes, that sounds exactly like what's going on. I was seeing huge BLOCKING delays in the neighborhood of seconds.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 19:53:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Data-coming-in-faster-than-I-expect-K10/m-p/214828#M3700</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2012-03-19T19:53:56Z</dc:date>
    </item>
  </channel>
</rss>

