<?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: UART1 configuration on FRDM board(MKL25Z4) in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-configuration-on-FRDM-board-MKL25Z4/m-p/1634444#M64956</link>
    <description>&lt;P&gt;Have you tried the UART example which comes with the MCUXpresso SDK? This gives you a working starting point.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2023 07:24:18 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2023-04-17T07:24:18Z</dc:date>
    <item>
      <title>UART1 configuration on FRDM board(MKL25Z4)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-configuration-on-FRDM-board-MKL25Z4/m-p/1634399#M64955</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I have configured the UART1 on FRDM board to transmit string"Hello" to Teraterm using Keil. However , the program does not work. Could you guide me on the clock source selection for UART1?&lt;/P&gt;&lt;P&gt;#include "MKL25Z4.h"&lt;BR /&gt;#include "string.h"&lt;/P&gt;&lt;P&gt;char data[]="hello";&lt;BR /&gt;int i;&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;SIM_SCGC4 |= SIM_SCGC4_UART1(1);&lt;BR /&gt;SIM_SCGC5 |= SIM_SCGC5_PORTE(1);&lt;BR /&gt;SIM_SOPT2 |= SIM_SOPT2_CLKOUTSEL(2); /* use bus clock for UART Baud rate generator */&lt;BR /&gt;PORTE_PCR0 |= PORT_PCR_MUX(3);&lt;BR /&gt;PORTE_PCR1 |=PORT_PCR_MUX(3);&lt;/P&gt;&lt;P&gt;UART1_C1 = 0x00; /* Configure Serial Port as 8-N-1 (8 data bits, No parity and 1 stop bit) */&lt;BR /&gt;&lt;BR /&gt;UART1_C2 |= UART_C2_TE(1); /*Transmit Tx Enabled */&lt;BR /&gt;UART1_C2 |= UART_C2_RE(1); /* Receive Rx Enabled */&lt;/P&gt;&lt;P&gt;//BAUD: 9600 21 000 000/(16*9600) = 0x88&lt;BR /&gt;UART1_BDH = UART_BDH_SBR(0x0);&lt;BR /&gt;UART1_BDL = UART_BDL_SBR(0x88);&lt;BR /&gt;&lt;BR /&gt;//transfer data to Teraterm&lt;/P&gt;&lt;P&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;while((UART1_S1 &amp;amp; UART_S1_TDRE(1)) ==0) {}&lt;BR /&gt;for (i=0;i&amp;lt;strlen(data);i++)&lt;BR /&gt;{&lt;BR /&gt;UART1_D = data[i];&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 06:26:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-configuration-on-FRDM-board-MKL25Z4/m-p/1634399#M64955</guid>
      <dc:creator>suma_success</dc:creator>
      <dc:date>2023-04-17T06:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: UART1 configuration on FRDM board(MKL25Z4)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-configuration-on-FRDM-board-MKL25Z4/m-p/1634444#M64956</link>
      <description>&lt;P&gt;Have you tried the UART example which comes with the MCUXpresso SDK? This gives you a working starting point.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 07:24:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-configuration-on-FRDM-board-MKL25Z4/m-p/1634444#M64956</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2023-04-17T07:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: UART1 configuration on FRDM board(MKL25Z4)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-configuration-on-FRDM-board-MKL25Z4/m-p/1634451#M64957</link>
      <description>&lt;P&gt;Sorry, I use the free version of Keil for building projects on FRDM board. I have no issues with UART0. However, Iam not sure of clock source for baud rate generation for UART1&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 07:32:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-configuration-on-FRDM-board-MKL25Z4/m-p/1634451#M64957</guid>
      <dc:creator>suma_success</dc:creator>
      <dc:date>2023-04-17T07:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: UART1 configuration on FRDM board(MKL25Z4)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-configuration-on-FRDM-board-MKL25Z4/m-p/1634469#M64958</link>
      <description>&lt;P&gt;Sorry ! I use the evaluation version to build programs on FRDM board. I have no problems with configuring UART0. However , the dfault system clock in the header file is 21MHz. This clock choice for baud rate generation is not working for UART1. Any help will be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 07:59:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-configuration-on-FRDM-board-MKL25Z4/m-p/1634469#M64958</guid>
      <dc:creator>suma_success</dc:creator>
      <dc:date>2023-04-17T07:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: UART1 configuration on FRDM board(MKL25Z4)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-configuration-on-FRDM-board-MKL25Z4/m-p/1634962#M64961</link>
      <description>&lt;P&gt;Please download the&amp;nbsp;SDK_2_2_0_FRDM-KL25Z from &lt;A id="base_logo" class="navbar-brand ml-2 ml-sm-3" href="https://mcuxpresso.nxp.com/en/" target="_blank" rel="noopener"&gt;&lt;SPAN class="nav-logo-text-bold"&gt;MCU&lt;/SPAN&gt;Xpresso SDK Builder&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Then you can find the UART1 example of FRDM-KL25Z with Keil MDK(...\SDK_2_2_0_FRDM-KL25Z\boards\frdmkl25z\driver_examples\uart\polling\mdk)&lt;/P&gt;
&lt;P&gt;Note that connect USB-TTL Serial Converter with UART1 pins:&lt;BR /&gt;UART1_TX&amp;nbsp; &amp;nbsp;D14&amp;nbsp; &amp;nbsp;J2.18 &lt;BR /&gt;UART1_RX&amp;nbsp; D15&amp;nbsp; &amp;nbsp;J2.20&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 01:49:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-configuration-on-FRDM-board-MKL25Z4/m-p/1634962#M64961</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-04-18T01:49:15Z</dc:date>
    </item>
  </channel>
</rss>

