<?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: Regarding UART4 issue in MK64FN1M0VLL12_100-LQFP_Microcontroller_NXP_Semiconductor in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Regarding-UART4-issue-in-MK64FN1M0VLL12-100-LQFP-Microcontroller/m-p/586109#M34571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi chandan,&lt;/P&gt;&lt;P&gt;UART0 and UART1 modules operate from the core/system clock, which provides higher performance level for these modules. All other UART modules operate from the bus clock.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Module clocks.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21478i0ACBCC08A02C4816/image-size/large?v=v2&amp;amp;px=999" role="button" title="Module clocks.png" alt="Module clocks.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please check the value of SIM_CLKDIV1[OUTDIV1] and SIM_CLKDIV1[OUTDIV2]. If you don't want to change the frequency of core/system clock and bus clock, then you can't use the same configuration settings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clocking diagram.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21508i51BD896DE4FFCF61/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clocking diagram.png" alt="Clocking diagram.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2016 01:51:48 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2016-06-29T01:51:48Z</dc:date>
    <item>
      <title>Regarding UART4 issue in MK64FN1M0VLL12_100-LQFP_Microcontroller_NXP_Semiconductor</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Regarding-UART4-issue-in-MK64FN1M0VLL12-100-LQFP-Microcontroller/m-p/586108#M34570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I an facing problem with the working of UART4. UART1 is working fine but UART4 is working half the baud rate with the same configuration as UART1. Can anyone help me&amp;nbsp; why this is happening&amp;nbsp; or solution to correct it? Below is the configuration setting written in code for UART1 and UART4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* UART1 configuration*/&lt;/P&gt;&lt;P&gt;void config_UART1(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; uart_config_t config1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; UART_GetDefaultConfig(&amp;amp;config1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; config1.baudRate_Bps = UART1_BAUDRATE;&amp;nbsp;&amp;nbsp;&amp;nbsp; //baud rate=115200&lt;/P&gt;&lt;P&gt;&amp;nbsp; config1.enableTx = true;&lt;/P&gt;&lt;P&gt;&amp;nbsp; config1.enableRx = true;&lt;/P&gt;&lt;P&gt;&amp;nbsp; UART_Init(UART_1, &amp;amp;config1,&amp;nbsp; CLOCK_GetFreq(UART1_CLKSRC));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_TransferCreateHandle(UART_1, &amp;amp;uart1Handle, UART1_UserCallback, NULL);&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Enable RX interrupt. */&lt;/P&gt;&lt;P&gt;&amp;nbsp; UART_EnableInterrupts(UART_1, kUART_RxDataRegFullInterruptEnable | kUART_RxOverrunInterruptEnable);&lt;/P&gt;&lt;P&gt;&amp;nbsp; EnableIRQ(UART1_IRQn);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void UART1_IRQHandler(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint8_t data1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* If new data arrived. */&lt;/P&gt;&lt;P&gt; if ((kUART_RxDataRegFullFlag | kUART_RxOverrunFlag) &amp;amp; UART_GetStatusFlags(UART_1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; data1 = UART_ReadByte(UART_1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* If Uart1_Buffer is not full, add data to Uart1_Buffer */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (((rxIndex1 + 1) % Uart1_BUFFER_SIZE) != txIndex1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Uart1_Buffer[rxIndex1] = data1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_WriteByte(UART_1, Uart1_Buffer[rxIndex1]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rxIndex1++;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rxIndex1 %= Uart1_BUFFER_SIZE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;/************************************************************************************************************************/&lt;/P&gt;&lt;P&gt;/*UART4 Configuration*/&lt;/P&gt;&lt;P&gt;void config_UART4(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; uart_config_t config4;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; UART_GetDefaultConfig(&amp;amp;config4);&lt;/P&gt;&lt;P&gt;&amp;nbsp; config4.baudRate_Bps = UART4_BAUDRATE; Baud rate=115200&lt;/P&gt;&lt;P&gt;&amp;nbsp; config4.enableTx = true;&lt;/P&gt;&lt;P&gt;&amp;nbsp; config4.enableRx = true;&lt;/P&gt;&lt;P&gt;&amp;nbsp; UART_Init(UART_4, &amp;amp;config4, CLOCK_GetFreq(UART4_CLKSRC));&lt;/P&gt;&lt;P&gt;&amp;nbsp; UART_TransferCreateHandle(UART_4, &amp;amp;uart4Handle, UART4_UserCallback, NULL);&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Enable RX interrupt. */&lt;/P&gt;&lt;P&gt;&amp;nbsp; UART_EnableInterrupts(UART_4, kUART_RxDataRegFullInterruptEnable | kUART_RxOverrunInterruptEnable);&lt;/P&gt;&lt;P&gt;&amp;nbsp; EnableIRQ(UART4_IRQn);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void UART4_IRQHandler(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint8_t data4;&lt;/P&gt;&lt;P&gt; /* If new data arrived. */&lt;/P&gt;&lt;P&gt;&amp;nbsp; if ((kUART_RxDataRegFullFlag | kUART_RxOverrunFlag) &amp;amp; UART_GetStatusFlags(UART_4))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; data4 = UART_ReadByte(UART_4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; /* If Uart4_Buffer is not full, add data to Uart4_Buffer. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if (((rxIndex4 + 1) % Uart4_BUFFER_SIZE) != txIndex4)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Uart4_Buffer[rxIndex4] = data4;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_WriteByte(UART_4, Uart4_Buffer[rxIndex4]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rxIndex4++;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rxIndex4 %= Uart4_BUFFER_SIZE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 14:15:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Regarding-UART4-issue-in-MK64FN1M0VLL12-100-LQFP-Microcontroller/m-p/586108#M34570</guid>
      <dc:creator>chandan_kumar</dc:creator>
      <dc:date>2016-06-28T14:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding UART4 issue in MK64FN1M0VLL12_100-LQFP_Microcontroller_NXP_Semiconductor</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Regarding-UART4-issue-in-MK64FN1M0VLL12-100-LQFP-Microcontroller/m-p/586109#M34571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi chandan,&lt;/P&gt;&lt;P&gt;UART0 and UART1 modules operate from the core/system clock, which provides higher performance level for these modules. All other UART modules operate from the bus clock.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Module clocks.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21478i0ACBCC08A02C4816/image-size/large?v=v2&amp;amp;px=999" role="button" title="Module clocks.png" alt="Module clocks.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please check the value of SIM_CLKDIV1[OUTDIV1] and SIM_CLKDIV1[OUTDIV2]. If you don't want to change the frequency of core/system clock and bus clock, then you can't use the same configuration settings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clocking diagram.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21508i51BD896DE4FFCF61/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clocking diagram.png" alt="Clocking diagram.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 01:51:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Regarding-UART4-issue-in-MK64FN1M0VLL12-100-LQFP-Microcontroller/m-p/586109#M34571</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2016-06-29T01:51:48Z</dc:date>
    </item>
  </channel>
</rss>

