<?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 using DMA on FRDM-KL25Z128 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-using-DMA-on-FRDM-KL25Z128/m-p/598297#M35063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its okay..anyway thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2017 07:12:33 GMT</pubDate>
    <dc:creator>yadhukrishnanvm</dc:creator>
    <dc:date>2017-01-10T07:12:33Z</dc:date>
    <item>
      <title>UART using DMA on FRDM-KL25Z128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-using-DMA-on-FRDM-KL25Z128/m-p/598293#M35059</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 have completed uart transmission on FRDM-KL25Z &amp;nbsp;using DMAChannel_LDD and Init_UART components in code warrier.I am using UART0 of the kl25z, the pins are setup as PTA1 and PTA2 which are connect to OpenSDA port. I got the correct output using the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Including needed modules to compile this module/procedure */&lt;/P&gt;&lt;P&gt;#include "Cpu.h"&lt;BR /&gt;#include "Events.h"&lt;BR /&gt;#include "DMACH1.h"&lt;BR /&gt;#include "DMA1.h"&lt;BR /&gt;#include "UART0.h"&lt;BR /&gt;/* Including shared modules, which are used for whole project */&lt;BR /&gt;#include "PE_Types.h"&lt;BR /&gt;#include "PE_Error.h"&lt;BR /&gt;#include "PE_Const.h"&lt;BR /&gt;#include "IO_Map.h"&lt;/P&gt;&lt;P&gt;void StartApp(void);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; uint8_t dmaSrc[]="\fHello Yadu Bro\r\n ";/* array used as source for DMA to set uart */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void StartApp(void) {&lt;/P&gt;&lt;P&gt;DMA_PDD_SetSourceAddress(DMA_BASE_PTR, DMA_PDD_CHANNEL_0, (uint32_t)&amp;amp;dmaSrc[0]); /* set destination address */&lt;BR /&gt; DMA_PDD_SetSourceAddressModulo(DMA_BASE_PTR, DMA_PDD_CHANNEL_0, DMA_PDD_CIRCULAR_BUFFER_16_BYTES); /* circular buffer with 32 bytes */&lt;BR /&gt; DMA_PDD_EnableSourceAddressIncrement(DMA_BASE_PTR, DMA_PDD_CHANNEL_0, PDD_ENABLE); /* source address will be incremented by transfer size */&lt;BR /&gt; DMA_PDD_SetSourceDataTransferSize(DMA_BASE_PTR, DMA_PDD_CHANNEL_0, DMA_PDD_8_BIT); /* Transfer from source size is 16bit */&lt;BR /&gt; &lt;BR /&gt; DMA_PDD_SetDestinationAddress(DMA_BASE_PTR, DMA_PDD_CHANNEL_0, (uint32_t)&amp;amp;UART0_D); /* set destination address */&lt;BR /&gt; DMA_PDD_SetDestinationAddressModulo(DMA_BASE_PTR, DMA_PDD_CHANNEL_0, DMA_PDD_CIRCULAR_BUFFER_DISABLED); /* no circular buffer */&lt;BR /&gt; DMA_PDD_EnableDestinationAddressIncrement(DMA_BASE_PTR, DMA_PDD_CHANNEL_0, PDD_DISABLE); /* no auto-increment for destination address */&lt;BR /&gt; DMA_PDD_SetDestinationDataTransferSize(DMA_BASE_PTR, DMA_PDD_CHANNEL_0, DMA_PDD_8_BIT); /* Transfer to destination size is 16bit */&lt;BR /&gt; &lt;BR /&gt; DMA_PDD_SetByteCount(DMA_BASE_PTR, DMA_PDD_CHANNEL_0, sizeof(dmaSrc)); /* set number of bytes to transfer */&lt;BR /&gt; DMA_PDD_EnableTransferCompleteInterrupt(DMA_BASE_PTR, DMA_PDD_CHANNEL_0, PDD_ENABLE); /* request interrupt at the end of the DMA transfer to set new byte count */&lt;BR /&gt; DMA_PDD_EnablePeripheralRequest(DMA_BASE_PTR, DMA_PDD_CHANNEL_0, PDD_ENABLE); /* enable request from peripheral */&lt;BR /&gt; &lt;BR /&gt; Cpu_EnableInt(); /* enable interrupts */&lt;BR /&gt; &lt;BR /&gt; for(;;) {&lt;BR /&gt; /* just wait here, DMA will do the work.... */&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;int main(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PE_low_level_init();&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;StartApp();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#ifdef PEX_RTOS_START&lt;BR /&gt; PEX_RTOS_START();&lt;BR /&gt; #endif&lt;BR /&gt;&lt;BR /&gt; for(;;){}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to receive the data through the receiver when I type letters in keyboard. What changes I have to made on above code to receive the characters. Please help!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2017 13:41:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-using-DMA-on-FRDM-KL25Z128/m-p/598293#M35059</guid>
      <dc:creator>yadhukrishnanvm</dc:creator>
      <dc:date>2017-01-07T13:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: UART using DMA on FRDM-KL25Z128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-using-DMA-on-FRDM-KL25Z128/m-p/598294#M35060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yadhukrishnan V M,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; About the UART DMA receive code in the KL25, please refer to my attached code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; This code is using the DMA put the uart received data to the SRAM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Actually, you just need to configure the DMA source address as UART0_D, the destination address as the SRAM, and&amp;nbsp; destination address will be incremented after each transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Tue, 10 Jan 2017 05:35:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-using-DMA-on-FRDM-KL25Z128/m-p/598294#M35060</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-01-10T05:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: UART using DMA on FRDM-KL25Z128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-using-DMA-on-FRDM-KL25Z128/m-p/598295#M35061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help. Do you have spi code using DMAChannel_LDD component?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 07:01:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-using-DMA-on-FRDM-KL25Z128/m-p/598295#M35061</guid>
      <dc:creator>yadhukrishnanvm</dc:creator>
      <dc:date>2017-01-10T07:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: UART using DMA on FRDM-KL25Z128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-using-DMA-on-FRDM-KL25Z128/m-p/598296#M35062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I don't have it, I just have the bare bone code which I already give you.&lt;/P&gt;&lt;P&gt;You can refer to my code and write it in your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Tue, 10 Jan 2017 07:10:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-using-DMA-on-FRDM-KL25Z128/m-p/598296#M35062</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-01-10T07:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: UART using DMA on FRDM-KL25Z128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-using-DMA-on-FRDM-KL25Z128/m-p/598297#M35063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its okay..anyway thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 07:12:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-using-DMA-on-FRDM-KL25Z128/m-p/598297#M35063</guid>
      <dc:creator>yadhukrishnanvm</dc:creator>
      <dc:date>2017-01-10T07:12:33Z</dc:date>
    </item>
  </channel>
</rss>

