<?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>Kinetis MicrocontrollersのトピックRe: K22F- Problem with DSPI-daisy chain</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621956#M37232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Actually "16 bits per frame " will solve my problem. But i am not able to make the working model&amp;nbsp;with 16 bits/frame for k22f&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know if there is any reason behind this? k22f doesn't support or SDK driver isn't functioning for 16 bits/frame?&lt;/P&gt;&lt;P&gt;Or am i missing any settings?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2016 08:06:37 GMT</pubDate>
    <dc:creator>sandeepkamath</dc:creator>
    <dc:date>2016-09-20T08:06:37Z</dc:date>
    <item>
      <title>K22F- Problem with DSPI-daisy chain</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621948#M37224</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 connected two slaves to my k22f board in daisy chain fashion&lt;/P&gt;&lt;P&gt;SCK-- 20MHz&lt;/P&gt;&lt;P&gt;bus clock 40 Mhz&lt;/P&gt;&lt;P&gt;core clock 40Mhz&lt;/P&gt;&lt;P&gt;SPI interrupt mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case1:&lt;/P&gt;&lt;P&gt;Each slave will take 32 bits of data. So i am sending total 64 bits of data in total for two slaves. So for 20Mhz clock, 8 bytes of data should take 3.2 us( say 4 to 5 us considering other delays). But i am getting a strange delay after each byte of communication. -[400ns for each byte + some 16us delay] *8 times.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using inbuilt Kinteis &amp;nbsp;FSL_DSPI_MASTER_DRIVER driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When tried with&amp;nbsp;SPI 1, &amp;nbsp;[where it has got 1 FIFO buffer]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dspi_master_user_config_t masterUserConfig = {&lt;BR /&gt; .isChipSelectContinuous = true,&lt;BR /&gt; .isSckContinuous = false,&lt;BR /&gt; .pcsPolarity = kDspiPcs_ActiveLow,&lt;BR /&gt; .whichCtar = kDspiCtar1,&lt;BR /&gt; .whichPcs = kDspiPcs0&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;masterDevice.dataBusConfig.bitsPerFrame = 8;&lt;BR /&gt; masterDevice.dataBusConfig.clkPhase = kDspiClockPhase_FirstEdge; // CPOL = 0 and CPHA = 0&lt;BR /&gt; masterDevice.dataBusConfig.clkPolarity = kDspiClockPolarity_ActiveHigh;&lt;BR /&gt; masterDevice.dataBusConfig.direction = kDspiMsbFirst;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For SPI 1, with&amp;nbsp;&lt;SPAN&gt;masterDevice.dataBusConfig.bitsPerFrame = 16, it is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though the delay has reduced to 10us (which is not acceptable for my requirement), slaves also not responding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dspi_master_user_config_t masterUserConfig = {&lt;BR /&gt;.isChipSelectContinuous = true,&lt;BR /&gt;.isSckContinuous = false,&lt;BR /&gt;.pcsPolarity = kDspiPcs_ActiveLow,&lt;BR /&gt;.whichCtar = kDspiCtar1,&lt;BR /&gt;.whichPcs = kDspiPcs0&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;masterDevice.dataBusConfig.bitsPerFrame = 16;&lt;BR /&gt;masterDevice.dataBusConfig.clkPhase = kDspiClockPhase_FirstEdge; // CPOL = 0 and CPHA = 0&lt;BR /&gt;masterDevice.dataBusConfig.clkPolarity = kDspiClockPolarity_ActiveHigh;&lt;BR /&gt;masterDevice.dataBusConfig.direction = kDspiMsbFirst;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For SPI 0, [ 4 FIFO]&lt;/P&gt;&lt;P&gt;SCK-- 20MHz&lt;/P&gt;&lt;P&gt;bus clock 60 Mhz&lt;/P&gt;&lt;P&gt;core clock 60 Mhz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dspi_master_user_config_t masterUserConfig = {&lt;BR /&gt;.isChipSelectContinuous = true,&lt;BR /&gt;.isSckContinuous = false,&lt;BR /&gt;.pcsPolarity = kDspiPcs_ActiveLow,&lt;BR /&gt;.whichCtar = kDspiCtar1,&lt;BR /&gt;.whichPcs = kDspiPcs1&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;masterDevice.dataBusConfig.bitsPerFrame = 16;&lt;BR /&gt;masterDevice.dataBusConfig.clkPhase = kDspiClockPhase_FirstEdge; // CPOL = 0 and CPHA = 0&lt;BR /&gt;masterDevice.dataBusConfig.clkPolarity = kDspiClockPolarity_ActiveHigh;&lt;BR /&gt;masterDevice.dataBusConfig.direction = kDspiMsbFirst;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, for 64 bit data when i checked in scope, it is getting around 4us.&lt;/P&gt;&lt;P&gt;BUT Not working for me when i connected slaves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So case 1 is working for me( but with huge delay in between each byte). ideally case 3 should work[ as i can see in scope, 4us for all 64 bit transmission] but it is not working for me when connected salves in daisy chain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Can you please help me in finding a&amp;nbsp;possible solution to communicate using daisy chain for 64 bit transmission at 20Mhz clock (operation within 4us).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 09:28:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621948#M37224</guid>
      <dc:creator>sandeepkamath</dc:creator>
      <dc:date>2016-09-15T09:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: K22F- Problem with DSPI-daisy chain</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621949#M37225</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;An update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using DMA, i am able to bring down the time to nearly ~6 to 7 us&lt;/P&gt;&lt;P&gt;I have increased the core clock, and bus clock to 60 MHz.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;masterDevice.dataBusConfig.bitsPerFrame = 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #51626f;"&gt;But still i cannot use 16 bits per frame in DMA.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;masterDevice.dataBusConfig.bitsPerFrame = 16&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me in using 16 bits per frame for dspi. Am i missing any configuration settings somewhere?&lt;/P&gt;&lt;P&gt;dspi_edma_master_user_config_t edmaMasterUserConfig = {&lt;BR /&gt; .isChipSelectContinuous = true,&lt;BR /&gt; .isSckContinuous = false,&lt;BR /&gt; .pcsPolarity = kDspiPcs_ActiveLow,&lt;BR /&gt; .whichCtar = kDspiCtar1,&lt;BR /&gt; .whichPcs = kDspiPcs0&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;/* Initialize eDMA driver */&lt;BR /&gt; dmaUserConfig.chnArbitration = kEDMAChnArbitrationRoundrobin;&lt;BR /&gt; EDMA_DRV_Init(&amp;amp;dmaState, &amp;amp;dmaUserConfig);&lt;/P&gt;&lt;P&gt;edmaDevice.dataBusConfig.bitsPerFrame = 16;&lt;BR /&gt; edmaDevice.dataBusConfig.clkPhase = kDspiClockPhase_FirstEdge; // CPOL = 0 and CPHA = 0&lt;BR /&gt; edmaDevice.dataBusConfig.clkPolarity = kDspiClockPolarity_ActiveHigh;&lt;BR /&gt; edmaDevice.dataBusConfig.direction = kDspiMsbFirst;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Initialize master driver.&lt;BR /&gt; dspiResult = DSPI_DRV_EdmaMasterInit(DSPI_MASTER_INSTANCE,&lt;BR /&gt; &amp;amp;edmaMasterState,&lt;BR /&gt; &amp;amp;edmaMasterUserConfig,&lt;BR /&gt; &amp;amp;stcdDspiMasterTest);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 12:18:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621949#M37225</guid>
      <dc:creator>sandeepkamath</dc:creator>
      <dc:date>2016-09-15T12:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: K22F- Problem with DSPI-daisy chain</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621950#M37226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to go with DMA approach itself,&lt;/P&gt;&lt;P&gt;But problem is&lt;/P&gt;&lt;P&gt;1. Using the existing Kintis driver, i am able to send the data to two slaves in daisy chain. But the received value is garbage&lt;/P&gt;&lt;P&gt;&amp;nbsp; -sck &amp;nbsp;20Mhz, bus clock 40 Mhz, 8 bits per frame&lt;/P&gt;&lt;P&gt;2. &amp;nbsp;If the above problem gets rectified, i would like to &amp;nbsp;use 16 bits per frame (which is currently not working )&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 14:51:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621950#M37226</guid>
      <dc:creator>sandeepkamath</dc:creator>
      <dc:date>2016-09-15T14:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: K22F- Problem with DSPI-daisy chain</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621951#M37227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have managed to make DSPI (SPI 1) with DMA working @ 20Mhz (8 bits per frame) [8 byte gives the overall delay of 10us though]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can anyone help with&amp;nbsp;16 Bits per frame&lt;/STRONG&gt;&amp;nbsp;for the same above configuration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Library used is kinteis 1.3.0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 13:16:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621951#M37227</guid>
      <dc:creator>sandeepkamath</dc:creator>
      <dc:date>2016-09-16T13:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: K22F- Problem with DSPI-daisy chain</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621952#M37228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Firstly, I suggest you use the case 1, because case 1 is working. For the delay issue, I suggest you check the SPIx_CTAR1 register in debugger tools when the K22 is in break state, all the delays are determined by the register. After you checked the register, you can use hal function or write the register directly to change the delay bits.&lt;/P&gt;&lt;P&gt;Hope it can help you.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2016 08:26:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621952#M37228</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-09-18T08:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: K22F- Problem with DSPI-daisy chain</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621953#M37229</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;Thanks for the response.&lt;/P&gt;&lt;P&gt;I Have checked the register.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6069i7724A66A1FDDFCCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clock freq: 120Mhz&lt;/P&gt;&lt;P&gt;Core clock : 40 Mhz&lt;/P&gt;&lt;P&gt;Bus clock 40 Mhz&lt;/P&gt;&lt;P&gt;SPI clock 40 Mhz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still between the Multi byte transfer i am getting a delay of ~800ns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for 64 bit transfer, the total time taken sould be ~ 4us&lt;/P&gt;&lt;P&gt;but because of this 800ns delay, i am getting a total time around ~9 us&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you pls help me to sort this out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Timing plays a very critical role in this task( should be 4us). So i am trying to reduce as much delay as possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 08:20:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621953#M37229</guid>
      <dc:creator>sandeepkamath</dc:creator>
      <dc:date>2016-09-19T08:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: K22F- Problem with DSPI-daisy chain</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621954#M37230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the SPI1_CTAR1 register is 0xb800 0000, you can not reduce delay from spi side, the delay between the Multi byte transfer is caused by software. If you do not use SDK and write register directly using interrupt mode, the delay can be reduced i think.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 07:49:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621954#M37230</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-09-20T07:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: K22F- Problem with DSPI-daisy chain</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621955#M37231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Interrupt mode is giving more delay. So i used dMA based approach.&lt;/P&gt;&lt;P&gt;Should i re-write the DMA code instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 08:02:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621955#M37231</guid>
      <dc:creator>sandeepkamath</dc:creator>
      <dc:date>2016-09-20T08:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: K22F- Problem with DSPI-daisy chain</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621956#M37232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Actually "16 bits per frame " will solve my problem. But i am not able to make the working model&amp;nbsp;with 16 bits/frame for k22f&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know if there is any reason behind this? k22f doesn't support or SDK driver isn't functioning for 16 bits/frame?&lt;/P&gt;&lt;P&gt;Or am i missing any settings?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 08:06:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621956#M37232</guid>
      <dc:creator>sandeepkamath</dc:creator>
      <dc:date>2016-09-20T08:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: K22F- Problem with DSPI-daisy chain</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621957#M37233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the K22 supports 16 bits per frame, but I suppose that the SDK driver has issue.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 08:39:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621957#M37233</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-09-20T08:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: K22F- Problem with DSPI-daisy chain</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621958#M37234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiangjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh. Ok.&lt;/P&gt;&lt;P&gt;Is there any temporary fix for that? shall i get any alternative driver for 16 bit frame?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would be very helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 09:05:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621958#M37234</guid>
      <dc:creator>sandeepkamath</dc:creator>
      <dc:date>2016-09-20T09:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: K22F- Problem with DSPI-daisy chain</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621959#M37235</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;The earlier perception regarding DMA was wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The kinetis SDK driver for both Interrupt&amp;nbsp;based and DMA will have along&amp;nbsp;delay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Interrupt: &amp;nbsp;There is along delay between multi byte&lt;/P&gt;&lt;P&gt;For DMA: The inter&amp;nbsp;transfer delay is long. (Even though the SPI_CTAR register is set to ideal condition(that is no delay))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then there was no other option than re-writhing the driver.&amp;nbsp;&lt;/P&gt;&lt;P&gt;with hardly few lines of code( without interrupt, without dspistate, etc).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here "cmd" is hardcoded. so that i can reduce the run time instruction.&lt;/P&gt;&lt;P&gt;But in between push and pop operation you need to give some sort of delay (and this is minimum as shown in below "for loop". If the value is below &amp;nbsp;"10", you &amp;nbsp;will receive junk data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DSPI_HAL_WriteCmdDataMastermode(base, cmd|*sendBuffer);&lt;BR /&gt; for(uint8_t h=0; h&amp;lt;10; h++);&lt;BR /&gt; *receiveBuffer = DSPI_HAL_ReadData(base);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By doing this. For 64 bit transmission, i am getting around 6us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no more optimization i can do in my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;core clock and bus clock : 60MHz&lt;/P&gt;&lt;P&gt;SPI: &amp;nbsp;20 Mhz&lt;/P&gt;&lt;P&gt;eclipse optimization level - &amp;nbsp; -Og&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get it exactly at 4us fro 64 bit transfer&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have a question. Is the ARM M4 not capable of handling the SPI speed of 4us?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:46:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621959#M37235</guid>
      <dc:creator>sandeepkamath</dc:creator>
      <dc:date>2016-09-21T12:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: K22F- Problem with DSPI-daisy chain</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621960#M37236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, in the above post, Bits per frame is 16&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 12:47:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621960#M37236</guid>
      <dc:creator>sandeepkamath</dc:creator>
      <dc:date>2016-09-21T12:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: K22F- Problem with DSPI-daisy chain</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621961#M37237</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;I have one more question regarding SPI0 (with 4 FIFO buffers).&amp;nbsp;&lt;/P&gt;&lt;P&gt;May i know what modifications i have to do in SDK driver if i have to use SPI0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 13:14:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621961#M37237</guid>
      <dc:creator>sandeepkamath</dc:creator>
      <dc:date>2016-09-29T13:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: K22F- Problem with DSPI-daisy chain</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621962#M37238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might look at my scope-shot in my reply in:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/thread/435562?commentID=835801#comment" title="https://community.nxp.com/message/835801?commentID=835801#comment-835801"&gt;https://community.nxp.com/message/835801?commentID=835801#comment-835801&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With careful FIFO-handling (and IAR-optimized code!), I can 'just about' keep up with a SPI-clock at CPU_CLK/4 [ideally one incoming, one outgoing SPI-op every 32 CPU cycles in 8-bit SPI mode], &lt;SPAN style="text-decoration: underline;"&gt;including&lt;/SPAN&gt; an optional CRC accumulation in 32bit-multiples only.&amp;nbsp; The key is to keep the TX-FIFO a 'couple transactions ahead' of the RX-stream.&amp;nbsp; My code does, however, have limitations in allowed transaction sizes, given some of the 'loop unrolling' involved, and because of this TX-FIFO pre-loading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 15:57:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-Problem-with-DSPI-daisy-chain/m-p/621962#M37238</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2016-09-29T15:57:57Z</dc:date>
    </item>
  </channel>
</rss>

