<?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: FRDM K82F uart problem in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845953#M50907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked other flags in the status register to see whether there are error flags being set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also question the Baud rate calculation:&lt;/P&gt;&lt;P&gt;LPUART0 -&amp;gt; BAUD = (LPUART_BAUD_SBR(&lt;STRONG&gt;14&lt;/STRONG&gt;)|LPUART_BAUD_OSR(4));&lt;/P&gt;&lt;P&gt;You are using 4MHz (don't forget that it also has its own tolerance too) and in 4x oversampling mode, which seems to give 4000000/4/&lt;STRONG&gt;14&lt;/STRONG&gt; = 71.428kHz&lt;/P&gt;&lt;P&gt;The closest you can get to 57600Baud is with divide 18 (55.556kHz) or divide 17 (58.824kHz)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question:&lt;BR /&gt;- LPUART_BAUD_OSR(4) - have you checked how this macro works ? Does it subtract 1 from the OSR value to program 0x3, which is the correct value for 4x oversampling&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2018 13:37:00 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2018-09-20T13:37:00Z</dc:date>
    <item>
      <title>FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845950#M50904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hello after a while i still didn't find answer to my question and i'm still unable to set proper baudrate on lpuart0.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Before i start i want to say that i read almost every post about lpuart on the forum, config is correct except baudrate and clocking.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Formula from datasheet:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Baudrate clock/(SBR*(OSR+1))&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;So i noticed that&lt;SPAN&gt;&amp;nbsp;only&amp;nbsp; value of 16 and 32 can be set in OSR field (15 and 31), any other value results in getting 16/32. Also&amp;nbsp; in SBR&amp;nbsp;field there is&amp;nbsp; always "1"&amp;nbsp; on third spot from LSB,&amp;nbsp; so&amp;nbsp; if i set 8 result in 12, 1 results in 5, 12 results in 12 etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;Also there is no way to set FLL/PPL or IRC48M in SIM_SOPT2, value in the register doesn't want to change or clear, only fast internal oscillator can be set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;Knowing these problems i can easily&amp;nbsp;predict what baudrate i will get but it's so problematic because setting any of typical baudrates highter than 9600&amp;nbsp;seems impossible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Noticed that on&amp;nbsp; custom K80 board&amp;nbsp; also on FRDM-K82.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Any ideas what might be wrong?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Maybe it's a bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 14:26:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845950#M50904</guid>
      <dc:creator>akimata</dc:creator>
      <dc:date>2018-09-19T14:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845951#M50905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Grzegorz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Load the binary application at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-K82F.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-K82F.html&lt;/A&gt;&lt;SPAN&gt; to your FRDM-K82F board.&lt;/SPAN&gt;&lt;BR /&gt;It LPUART connects to the OpenSDA VCOM interface at 115200Baud and supplied a command line menu interface. In its UART menu you can command different Baud rates too.&lt;BR /&gt;In the I/O menu there is also a memory debugger interface where you can read internal registers to see how they are setup (or else use a debugger).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this you can see how the LPUART is set up for each of the Baud rates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Main menu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;===================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Configure LAN interface&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Configure serial interface&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Go to I/O menu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Go to administration menu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Go to overview/statistics menu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Go to USB menu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Go to I2C menu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Go to utFAT disk interface&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FTP/TELNET commands&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAN commands&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;help&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display menu specific help&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;quit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leave command mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; Serial config.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;===================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;up&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; go to main menu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;set_baud&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set serial baud rate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;set_stop&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set stop bits (1/1.5/2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;set_bits&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set data bits (7/8)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;set_par&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set parity (EVEN/ODD/NONE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;set_flow&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set flow control (XON/RTS/NONE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;set_high_water&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set flow stall (%) [1..99]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;set_low_water&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set flow restart (%) [1..99]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;show_config&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Show serial configuration&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;save&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Save configuration to FLASH&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;help&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display menu specific help&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;quit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leave command mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;&amp;nbsp;Input/Output menu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;===================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;up&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; go to main menu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;md&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Memory Display [address] [&amp;lt;l&amp;gt;|&amp;lt;w&amp;gt;|&amp;lt;b&amp;gt;] [num]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;mm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Memory Modify [address] [&amp;lt;l&amp;gt;|&amp;lt;w&amp;gt;|&amp;lt;b&amp;gt;] [val]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;mf&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Memory Fill [address] [&amp;lt;l&amp;gt;|&amp;lt;w&amp;gt;|&amp;lt;b&amp;gt;] [val] [num]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;sd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Storage Display {as md}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;sm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Storage Modify {as mm}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;sf&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Storage Fill {as mf}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;se&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Storage Erase [address] [len-hex]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;set_ddr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set port type [1..4] [&amp;lt;i&amp;gt;|&amp;lt;o&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;get_ddr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get data direction [1..4]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;read_port&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Read port input [1..4]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;write_port&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set port output [1..4] [0/1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;lp_cnt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Read LPTMR CNT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;save&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Save port setting as default&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;help&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display menu specific help&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;quit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leave command mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is using IRC48MHz as LPUART clock and here are relevant code snippets that may help you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;SIM_SOPT2 = ((SIM_SOPT2 &amp;amp; ~(SIM_SOPT2_LPUARTSRC_MGC)) | (SIM_SOPT2_LPUARTSRC_SEL | SIM_SOPT2_PLLFLLSEL_IRC48M)); // select the 48MHz IRC48MHz clock as source for the LPUART&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;usDivider = (((48000000/8/115200) + 1)/2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace; font-size: 12px;"&gt;lpuart_reg-&amp;gt;LPUART_BAUD = ((lpuart_reg-&amp;gt;LPUART_BAUD &amp;amp; ~LPUART_BAUD_SBR) | (usDivider | LPUART_BAUD_OSR_16)); // set the (new) baud rate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;BR /&gt;Kinetis KL82:&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-KL82Z.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL82Z.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-KL82Z72M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-KL82Z72M.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For less questions and faster, cheaper developments: try uTasker for Kinetis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69211i7D914B5F92790324/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 15:24:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845951#M50905</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-09-19T15:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845952#M50906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to set correct dividers by using "=" instead of "|=" now the baudrate is really close to 57600.&lt;/P&gt;&lt;P&gt;Clock is set to 4Mhz and with these dividers i should get close to 57150 which is in 1,5% error. Sending works fine and i can receive frames correctly on other divices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem now is that i can't receive anything. RDRF flag is never set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the simplest code i wrote just to test if uart is working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;#include "board.h"&lt;BR /&gt;#include "peripherals.h"&lt;BR /&gt;#include "pin_mux.h"&lt;BR /&gt;#include "clock_config.h"&lt;BR /&gt;#include "MK80F25615.h"&lt;BR /&gt;#include "fsl_debug_console.h"&lt;/P&gt;&lt;P&gt;uint8_t data[1000];&lt;BR /&gt;uint8_t i=0;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;int main(void) {&lt;/P&gt;&lt;P&gt;/* Init board hardware. */&lt;BR /&gt; BOARD_InitBootPins();&lt;BR /&gt; BOARD_InitBootClocks();&lt;BR /&gt; BOARD_InitBootPeripherals();&lt;BR /&gt; /* Init FSL debug console. */&lt;BR /&gt; BOARD_InitDebugConsole();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCG -&amp;gt; SC &amp;amp;= ~MCG_SC_FCRDIV_MASK;&lt;BR /&gt; MCG -&amp;gt; C1 |= MCG_C1_IRCLKEN_MASK |MCG_C1_IREFSTEN_MASK;&lt;BR /&gt; MCG -&amp;gt; C2 |= MCG_C2_IRCS_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIM -&amp;gt; SOPT2 = (SIM_SOPT2_LPUARTSRC(3));&lt;BR /&gt; SIM -&amp;gt; SCGC5 |= SIM_SCGC5_PORTD_MASK;&lt;BR /&gt; SIM -&amp;gt; SCGC2 |= SIM_SCGC2_LPUART0_MASK;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; PORTD-&amp;gt; PCR[6] = PORT_PCR_MUX(0x03);&lt;BR /&gt; PORTD-&amp;gt; PCR[7] = PORT_PCR_MUX(0x03);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPUART0 -&amp;gt; CTRL &amp;amp;= ~LPUART_CTRL_TE_MASK;&lt;BR /&gt; LPUART0 -&amp;gt; CTRL &amp;amp;= ~LPUART_CTRL_RE_MASK;&lt;/P&gt;&lt;P&gt;//baud settings&lt;BR /&gt; LPUART0 -&amp;gt; BAUD = (LPUART_BAUD_SBR(14)|LPUART_BAUD_OSR(4));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; LPUART0 -&amp;gt; CTRL &amp;amp;= ~LPUART_CTRL_M_MASK;&lt;BR /&gt; LPUART0 -&amp;gt; CTRL &amp;amp;= ~LPUART_CTRL_PE_MASK;&lt;BR /&gt; LPUART0 -&amp;gt; BAUD &amp;amp;= ~LPUART_BAUD_SBNS_MASK;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; LPUART0 -&amp;gt; CTRL |= LPUART_CTRL_TE_MASK;&lt;BR /&gt; LPUART0 -&amp;gt; CTRL |= LPUART_CTRL_RE_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while(1)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;while(!(LPUART0 -&amp;gt; STAT &amp;amp; LPUART_STAT_RDRF_MASK));&lt;BR /&gt; data[i] =LPUART0-&amp;gt;DATA;&lt;BR /&gt; i++;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; return 0 ;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 09:47:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845952#M50906</guid>
      <dc:creator>akimata</dc:creator>
      <dc:date>2018-09-20T09:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845953#M50907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked other flags in the status register to see whether there are error flags being set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also question the Baud rate calculation:&lt;/P&gt;&lt;P&gt;LPUART0 -&amp;gt; BAUD = (LPUART_BAUD_SBR(&lt;STRONG&gt;14&lt;/STRONG&gt;)|LPUART_BAUD_OSR(4));&lt;/P&gt;&lt;P&gt;You are using 4MHz (don't forget that it also has its own tolerance too) and in 4x oversampling mode, which seems to give 4000000/4/&lt;STRONG&gt;14&lt;/STRONG&gt; = 71.428kHz&lt;/P&gt;&lt;P&gt;The closest you can get to 57600Baud is with divide 18 (55.556kHz) or divide 17 (58.824kHz)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question:&lt;BR /&gt;- LPUART_BAUD_OSR(4) - have you checked how this macro works ? Does it subtract 1 from the OSR value to program 0x3, which is the correct value for 4x oversampling&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 13:37:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845953#M50907</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-09-20T13:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845954#M50908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i checked LPUART0_STAT and there is no errors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to this formula:&amp;nbsp;Baudrate clock/(SBR*(OSR+1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4000000/(14*(4+1)) = 57142&lt;/P&gt;&lt;P&gt;Checked with oscilloscope and the baudrate seems&amp;nbsp; to be around 57000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question:&lt;BR /&gt;- LPUART_BAUD_OSR(4) - have you checked how this macro works ? Does it subtract 1 from the OSR value to program 0x3, which is the correct value for 4x oversampling&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;If i use this macro LPUART_BAUD_OSR(4)&lt;SPAN&gt;&amp;nbsp;, the OSR is set to 4 but the main baudrate clock is divided by value +1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 13:57:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845954#M50908</guid>
      <dc:creator>akimata</dc:creator>
      <dc:date>2018-09-20T13:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845955#M50909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Grzegorz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Baud is indeed correct - I didn't realise that an oversampling rate of 5 was possible (I though it was 4, 16 or 32) as typically 16x is used by UARTs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise I didn't see why you weren'r receiving anything....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 14:09:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845955#M50909</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-09-20T14:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845956#M50910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;data[i] =LPUART0-&amp;gt;DATA;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;Is it correct way to read from UART? because there is no separate register here and i'm a little confused. I don't receive any data, even corrupted.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;Strange&amp;nbsp; that RDRF is always 0, but correct data is comming to uC for sure&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 14:15:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845956#M50910</guid>
      <dc:creator>akimata</dc:creator>
      <dc:date>2018-09-20T14:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845957#M50911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Grzegorz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the DATA register is read for reception and written for transmission.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By the way, it is technically more elegant to use a an oversampling of 14 and divide by 5, than oversampling of 5 and divide by 14 - higher oversampling gives better reception sampling points. It has nothing to do with basic operation though....See figure 2.1 of &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTaskerUART.PDF" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerUART.PDF&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. As I initially noted, if you load the reference binary you can then compare the UART registers to see whether you can find a difference that explains something. It will be using DMA for transmission but rx interrupts for reception.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 14:42:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845957#M50911</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-09-20T14:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845958#M50912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed OSR and SBR as u suggested because it makes a lot of sense but still nothing can received and i don't have frdm board now to test your binary, only custom board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked almost every register and everything seems fine, electrical connection is also correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 15:23:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845958#M50912</guid>
      <dc:creator>akimata</dc:creator>
      <dc:date>2018-09-20T15:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845959#M50913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The LPUART interrupt only fires 6-8 times and never again after that. This behavior is independent from the current position in the code. I tested it by sending the first batch of data long after the program enters the infinite loop and also by sending it right at the start of the program (after lpuart interrupt initialization). Same behavior in both cases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 15:29:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845959#M50913</guid>
      <dc:creator>kalei_joanel</dc:creator>
      <dc:date>2018-09-20T15:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845960#M50914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problem is not related to interrupt service, i'm not even using interrupts and still can't receive anything at all, DATA register is just empty all the time and RDRF is never set&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 17:05:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845960#M50914</guid>
      <dc:creator>akimata</dc:creator>
      <dc:date>2018-09-20T17:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845961#M50915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Grzegorz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I though that you have a FRDM-K82F from your first post stating "Noticed that on&amp;nbsp; custom K80 board&amp;nbsp; also on FRDM-K82.".&lt;/P&gt;&lt;P&gt;If you tell me which clock source your board has (I understand you want LPUART0 on PTD6 and PTD7) I can send you a binary that will run on it (as long as you know how to load binaries - or SREC, Hex etc. images).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are doing this for a school project or hobby I can also give you access to a complete solution with interrupt or DMA operation on all LPUARTs (and simulation of the internal operation so that you will be able to understand all details).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are doing your work in a professional capacity ask you employer to test the professional uTasker solution for the K82F which will also give you immediate and complete operation, in order to reduce project costs and delays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 17:28:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845961#M50915</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-09-20T17:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845962#M50916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm testing it now on k80 chip at the moment and yes i'm using PTD6 and PTD7 for lpuart0.Clock source is fast internal oscillator, it seems pretty accurate comparing to FLL one I don't know how to flash binaries but i will find it out eventually. Yeah it's kind of school project and i just want to know how to do few things and learn some basics. Also i would like to know why it's not working at the moment so i won't get stuck on it again in the future.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 18:31:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845962#M50916</guid>
      <dc:creator>akimata</dc:creator>
      <dc:date>2018-09-20T18:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845963#M50917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So i checked everything twice and LPUART1 works without any problem with these settings when LPUART0 doesn't and the problem exists on custom board and also on frdm k82f. Is LPUART0 somehow used (maybe debugging console) and i'm not aware of it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 15:01:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845963#M50917</guid>
      <dc:creator>akimata</dc:creator>
      <dc:date>2018-09-24T15:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845964#M50918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class=""&gt;Hi Grzegorz Mikitiuk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I use the SDK example frdmk82f_lpuart_interrupt_transfer and I only modify #define DEMO_LPUART LPUART4 for LPUART0, enable the pins and tests with different baud rates, I don't see any issue in the functionality of this demo. Could you try this test to verify that this is not a hardware issue related?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Jorge Alcala &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 18:07:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845964#M50918</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2018-09-24T18:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K82F uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845965#M50919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Grzegorz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All LPUARTs in the K82 use the same LPUART clock so if it works on one LPUART but not on another it more likely to be a problem with the configuration of the particular LPUARTx_RX input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 19:11:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-uart-problem/m-p/845965#M50919</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-09-24T19:11:42Z</dc:date>
    </item>
  </channel>
</rss>

