<?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: UART problem using K70 with TWR-SER in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-problem-using-K70-with-TWR-SER/m-p/363715#M18616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;Thanks for the answer, I probed it today and it works. But I can not receive anything, I send well, but I tried to receive from the PC and nothing happend. I configured all register for enable the receiver, something that I should be missing with the code or with jumpers? Thanks&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;Juan Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2014 16:38:47 GMT</pubDate>
    <dc:creator>juanmanuelpanie</dc:creator>
    <dc:date>2014-09-15T16:38:47Z</dc:date>
    <item>
      <title>UART problem using K70 with TWR-SER</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-problem-using-K70-with-TWR-SER/m-p/363712#M18613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I'm trying to communicate the K70 board with a PC via UART. I initialize the UART1 module and connect a serial cable between TWR-SER's DB9 connector to my PC, and finally I want to see the message at Hyperterminal window. &lt;/P&gt;&lt;P&gt;At the beggining, I have a doubt wich UART Module is driven to de DB9 connector. I have been looking at the schematics and I think that the module 1 is the correct. I do not know that it is a code problem or I am making a mistake with jumpers connections.&lt;/P&gt;&lt;P&gt;Here I paste the main code that I'm using:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14105413726451631" jivemacro_uid="_14105413726451631" modifiedtitle="true"&gt;
&lt;P&gt;int main(void)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; register uint16_t ubd;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; uint8_t temp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SIM_SCGC4 |= SIM_SCGC4_UART1_MASK;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SIM_SCGC5 |= SIM_SCGC5_PORTC_MASK;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; PORTC_PCR4 |= 0x300;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; PORTC_PCR3 |= 0x300;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; PORTC_PCR2 |= 0x500;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; PORTC_PCR1 |= 0x500;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; UART1_C2 &amp;amp;= ~(UART_C2_TE_MASK | UART_C2_RE_MASK);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; UART1_C1 = 0;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; //ubd = (uint16_t)135;// ((20971520)/9600*16);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; //temp = UART0_BDH &amp;amp; ~(UART_BDH_SBR(0x1F));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; UART1_BDH = UART_BDH_SBR(0x00);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; UART1_BDL = UART_BDL_SBR(0x88);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; UART1_C2 |= UART_C2_TE_MASK;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; while(!(UART1_S1 &amp;amp; UART_S1_TDRE_MASK));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; UART1_D = (uint8_t) 'a';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return 0;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.D: I'm using CodeWarrior 10.6 IDE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 17:11:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-problem-using-K70-with-TWR-SER/m-p/363712#M18613</guid>
      <dc:creator>juanmanuelpanie</dc:creator>
      <dc:date>2014-09-12T17:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: UART problem using K70 with TWR-SER</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-problem-using-K70-with-TWR-SER/m-p/363713#M18614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Juan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The UART on TWR-SER and TWR-K70F120 is UART 2 and the pins to use are PTE16 (TX) and PTE17(RX).&lt;/P&gt;&lt;P&gt;You can get out-of-the-box code for this tower kit (UARTs in interrupt or DMA mode, TCP/IP and USB stack as well as FAT on SD card etc.) as well as a simulator for the K70 tower kit at &lt;A href="http://www.utasker.com/forum/index.php?topic=1721.0" title="http://www.utasker.com/forum/index.php?topic=1721.0"&gt;http://www.utasker.com/forum/index.php?topic=1721.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;A screen shot of the simulator in operation is shown below.&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;span class="lia-inline-image-display-wrapper" image-alt="twr-k70F120.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45942i00C6B8ABF0A57EDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="twr-k70F120.png" alt="twr-k70F120.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 20:59:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-problem-using-K70-with-TWR-SER/m-p/363713#M18614</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-09-12T20:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: UART problem using K70 with TWR-SER</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-problem-using-K70-with-TWR-SER/m-p/363714#M18615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this issue solved? Please kindly let me know if the problem is still there.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 02:31:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-problem-using-K70-with-TWR-SER/m-p/363714#M18615</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-09-15T02:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: UART problem using K70 with TWR-SER</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-problem-using-K70-with-TWR-SER/m-p/363715#M18616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;Thanks for the answer, I probed it today and it works. But I can not receive anything, I send well, but I tried to receive from the PC and nothing happend. I configured all register for enable the receiver, something that I should be missing with the code or with jumpers? Thanks&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;Juan Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 16:38:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-problem-using-K70-with-TWR-SER/m-p/363715#M18616</guid>
      <dc:creator>juanmanuelpanie</dc:creator>
      <dc:date>2014-09-15T16:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: UART problem using K70 with TWR-SER</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-problem-using-K70-with-TWR-SER/m-p/363716#M18617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Juan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which SW are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At &lt;A href="http://www.utasker.com/SW_Demos.html#K70" title="http://www.utasker.com/SW_Demos.html#K70"&gt;µTasker Test Software and Demos&lt;/A&gt; there is pre-built binary files for the K70 TWR kit which you can load. This will allow you to verify that the HW is Ok and all jumpers are correct.&lt;/P&gt;&lt;P&gt;The SW uses the UART so responds so you can see transmission at 115k Baud and verify that it responds to reception.&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, 15 Sep 2014 22:09:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-problem-using-K70-with-TWR-SER/m-p/363716#M18617</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-09-15T22:09:10Z</dc:date>
    </item>
  </channel>
</rss>

