<?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: K82 DSPI communication issue with slave device  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-DSPI-communication-issue-with-slave-device/m-p/792420#M48211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jing,&lt;/P&gt;&lt;P&gt;My Project requirement is to use SPI transfer to another slave device.&lt;/P&gt;&lt;P&gt;The requirements for Slave side is the following,&lt;/P&gt;&lt;P&gt;Frame transfer is 16 bits,&lt;/P&gt;&lt;P&gt;CPOL = 0;&lt;/P&gt;&lt;P&gt;CPHA =0; So its mode 0 SPI communication for SCK&amp;nbsp;&lt;/P&gt;&lt;P&gt;Active Low chip select for 16 bits (also know as slave select)&lt;/P&gt;&lt;P&gt;I need to send some 64 bytes, means 32 frames in total.&lt;/P&gt;&lt;P&gt;So at the end of each frame transfer is completed, I should see Chip Select(slave select) getting low to high.&lt;/P&gt;&lt;P&gt;I used the code given from demo project SDK examples, dspi_half_duplex_polling_master for FRDM k82, which suited me and made the following changes in initial configuration,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Transfer structure for half-duplex. */&lt;BR /&gt; dspi_half_duplex_transfer_t xfer = {0};&lt;BR /&gt; dspi_master_config_t masterConfig;&lt;/P&gt;&lt;P&gt;BOARD_InitPins();&lt;BR /&gt; BOARD_BootClockRUN();&lt;BR /&gt; BOARD_InitDebugConsole();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;masterConfig.whichCtar = kDSPI_Ctar0;&lt;BR /&gt; masterConfig.ctarConfig.baudRate = TRANSFER_BAUDRATE;&lt;BR /&gt; masterConfig.ctarConfig.bitsPerFrame = 16;&lt;BR /&gt; masterConfig.ctarConfig.cpol = kDSPI_ClockPolarityActiveHigh;&lt;BR /&gt; masterConfig.ctarConfig.cpha = kDSPI_ClockPhaseFirstEdge;&lt;BR /&gt; masterConfig.ctarConfig.direction = kDSPI_MsbFirst;&lt;BR /&gt; masterConfig.ctarConfig.pcsToSckDelayInNanoSec = 1000000000U / TRANSFER_BAUDRATE;&lt;BR /&gt; masterConfig.ctarConfig.lastSckToPcsDelayInNanoSec = 1000000000U / TRANSFER_BAUDRATE;&lt;BR /&gt; masterConfig.ctarConfig.betweenTransferDelayInNanoSec = 500000000000U / TRANSFER_BAUDRATE;&lt;/P&gt;&lt;P&gt;masterConfig.whichPcs = EXAMPLE_DSPI_MASTER_PCS_FOR_INIT;&lt;BR /&gt; masterConfig.pcsActiveHighOrLow = kDSPI_PcsActiveLow;&lt;/P&gt;&lt;P&gt;masterConfig.enableContinuousSCK = false;&lt;BR /&gt; masterConfig.enableRxFifoOverWrite = false;&lt;BR /&gt; masterConfig.enableModifiedTimingFormat = false;&lt;BR /&gt; masterConfig.samplePoint = kDSPI_SckToSin0Clock;&lt;BR /&gt; srcFreq = DSPI_MASTER_CLK_FREQ;&lt;BR /&gt; DSPI_MasterInit(EXAMPLE_DSPI_MASTER_BASEADDR, &amp;amp;masterConfig, srcFreq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// filled the data I need to configure my slave device&lt;/P&gt;&lt;P&gt;for (i = 0; i &amp;lt; BUFFER_SIZE; i++)&lt;BR /&gt; {&lt;BR /&gt; txData[i] = 1U;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*Start Transfer by polling mode. */&lt;BR /&gt; xfer.txData = txData;&lt;BR /&gt; xfer.rxData = NULL;&lt;BR /&gt; xfer.txDataSize = sizeof(txData);&lt;BR /&gt; xfer.rxDataSize = 0;&amp;nbsp;&lt;BR /&gt; xfer.isTransmitFirst = true;&lt;BR /&gt; xfer.isPcsAssertInTransfer = true;&lt;BR /&gt; xfer.configFlags = kDSPI_MasterCtar0 | EXAMPLE_DSPI_MASTER_PCS_FOR_TRANSFER | kDSPI_PcsActiveLow;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;DSPI_MasterHalfDuplexTransferBlocking(EXAMPLE_DSPI_MASTER_BASEADDR, &amp;amp;xfer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Stop the transfer. */&lt;BR /&gt; DSPI_Deinit(EXAMPLE_DSPI_MASTER_BASEADDR);&lt;/P&gt;&lt;P&gt;while (1)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; { }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to see chip select getting active low for every 32 frame, and 16 clock pulse per frame and data in MOSI.&lt;/P&gt;&lt;P&gt;But Iam able to see proper data in another K82 as half duplex slave, and receives correct data when the only change in line,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;xfer.configFlags = kDSPI_MasterCtar0 | EXAMPLE_DSPI_MASTER_PCS_FOR_TRANSFER |&amp;nbsp;kDSPI_MasterPcsContinuous ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with MasterPcsContinuous instead of PcsActiveLow. I also kept delay between transfer of frames as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;masterConfig.ctarConfig.betweenTransferDelayInNanoSec = 500000000000U / TRANSFER_BAUDRATE;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yet I am unable to see my 32 frames with chip select going high to low&amp;nbsp; and low to high 32 times and 16 clock pulses per frame in scope.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me if Iam making any mistakes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Gokul.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2018 14:54:26 GMT</pubDate>
    <dc:creator>gokulnath12345</dc:creator>
    <dc:date>2018-09-27T14:54:26Z</dc:date>
    <item>
      <title>K82 DSPI communication issue with slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-DSPI-communication-issue-with-slave-device/m-p/792416#M48207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is Gokul working for K82 frdm board.&lt;/P&gt;&lt;P&gt;I have a problem with K82 DSPI.&lt;/P&gt;&lt;P&gt;When I use Half duplex polling example given in drivers example for dspi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;dspi_half_duplex_polling_master.c in one K82 board as master and another k82 board as slave using, dspi_half_duplex_polling_slave.c in another k82 board is working fine.&lt;/P&gt;&lt;P&gt;Yet I am unable to see the data going from MOSI (SOUT) Pin.&lt;/P&gt;&lt;P&gt;Now If I Use the same spi master code for k82 and use a slave device, Iam not able to see data getting transferred to slave device.&lt;/P&gt;&lt;P&gt;I use CPOL=0. CPHA=0, ActiveLowChipselect. as configuration. The main issue is im not able to see the MOSI and MISO data clearly in Oscilloscope.&lt;/P&gt;&lt;P&gt;Please tell me how to debug this issue.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;gokul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 07:37:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-DSPI-communication-issue-with-slave-device/m-p/792416#M48207</guid>
      <dc:creator>gokulnath12345</dc:creator>
      <dc:date>2018-09-25T07:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: K82 DSPI communication issue with slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-DSPI-communication-issue-with-slave-device/m-p/792417#M48208</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 tested this demo on my frdm-k82f board. I can see the signal on oscilloscope. Please check the connection again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 10:03:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-DSPI-communication-issue-with-slave-device/m-p/792417#M48208</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-09-26T10:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: K82 DSPI communication issue with slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-DSPI-communication-issue-with-slave-device/m-p/792418#M48209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jing&lt;/P&gt;&lt;P&gt;I used the following code for initializing my SPI0 in FRDM K82 board,&lt;/P&gt;&lt;P&gt;But I do not see clock and MOSI data through scope and data except chip select, Can you please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void spiinit()&lt;BR /&gt;{&lt;BR /&gt; //Clock settings&lt;BR /&gt; SIM-&amp;gt;SCGC5 |= SIM_SCGC5_PORTD_MASK; //&lt;BR /&gt; SIM-&amp;gt;SCGC6 |= SIM_SCGC6_SPI0_MASK;&lt;BR /&gt; //Port Settings&lt;BR /&gt; PORTD-&amp;gt;PCR[0] |= PORT_PCR_MUX(2);&amp;nbsp; // CS&lt;BR /&gt; PORTD-&amp;gt;PCR[1] |= PORT_PCR_MUX(2);&amp;nbsp; // SCK&lt;BR /&gt; PORTD-&amp;gt;PCR[2] |= PORT_PCR_MUX(2);&amp;nbsp; // SOUT&lt;BR /&gt; PORTD-&amp;gt;PCR[3] |= PORT_PCR_MUX(2);&amp;nbsp; // SIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPI0-&amp;gt;MCR =0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPI0-&amp;gt;CTAR[0] = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//-------------------------------------&lt;BR /&gt; SPI0-&amp;gt;MCR |= SPI_MCR_MSTR_MASK;&lt;BR /&gt; SPI0-&amp;gt;MCR |= SPI_MCR_DCONF(0)|(0 &amp;lt;&amp;lt; SPI_MCR_FRZ_SHIFT);&lt;BR /&gt; SPI0-&amp;gt;MCR |= SPI_MCR_PCSIS(1) | SPI_MCR_MDIS(0); // Module enable&lt;BR /&gt; SPI0-&amp;gt;MCR |= (1 &amp;lt;&amp;lt; SPI_MCR_DIS_TXF_SHIFT)| (1 &amp;lt;&amp;lt; SPI_MCR_DIS_RXF_SHIFT);&lt;BR /&gt; SPI0-&amp;gt;MCR |= (1 &amp;lt;&amp;lt; SPI_MCR_HALT_SHIFT); // stop transfer&lt;BR /&gt; PRINTF("SPI0-&amp;gt;MCR=%x\n",SPI0-&amp;gt;MCR);&lt;BR /&gt; SPI0-&amp;gt;CTAR[0] |= (0 &amp;lt;&amp;lt; SPI_CTAR_DBR_SHIFT);&lt;BR /&gt; SPI0-&amp;gt;CTAR[0] |= SPI_CTAR_FMSZ(15); // frame size 16&lt;BR /&gt; SPI0-&amp;gt;CTAR[0] |= (0 &amp;lt;&amp;lt; SPI_CTAR_CPOL_SHIFT);// CPOL=0;&lt;BR /&gt; SPI0-&amp;gt;CTAR[0] |= (0 &amp;lt;&amp;lt; SPI_CTAR_CPHA_SHIFT);// CPHA=0;&lt;BR /&gt; SPI0-&amp;gt;CTAR[0] |= (0 &amp;lt;&amp;lt; SPI_CTAR_LSBFE_SHIFT);//MSB first&lt;BR /&gt; SPI0-&amp;gt;CTAR[0] |= SPI_CTAR_PCSSCK(0) ;&lt;BR /&gt; SPI0-&amp;gt;CTAR[0] |= SPI_CTAR_CSSCK(0) ;&lt;BR /&gt; SPI0-&amp;gt;CTAR[0] |= SPI_CTAR_ASC(0) ;&lt;BR /&gt; SPI0-&amp;gt;CTAR[0] |= SPI_CTAR_PDT(0) ;&lt;BR /&gt; SPI0-&amp;gt;CTAR[0] |= SPI_CTAR_DT(0) ;&lt;BR /&gt; SPI0-&amp;gt;CTAR[0] |= SPI_CTAR_BR(0);&lt;BR /&gt; PRINTF("SPI0-&amp;gt;CTAR[0]=%x\n",SPI0-&amp;gt;CTAR[0]);&lt;BR /&gt; SPI0-&amp;gt;SR = SPI_SR_TFFF(1); // cleared by writing 1 after module enable&lt;/P&gt;&lt;P&gt;SPI0-&amp;gt;RSER = SPI_RSER_TCF_RE(1)|SPI_RSER_EOQF_RE(1);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;int main(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;BOARD_InitPins();&lt;BR /&gt; BOARD_BootClockRUN();&lt;BR /&gt; BOARD_InitDebugConsole();&lt;/P&gt;&lt;P&gt;spiinit();&lt;/P&gt;&lt;P&gt;SpiWrite = 0x8180;&lt;BR /&gt; SPI0-&amp;gt;MCR &amp;amp;= ~(SPI_MCR_HALT_MASK | SPI_MCR_FRZ_MASK);&lt;BR /&gt; SPI0-&amp;gt;SR &amp;amp;= ~SPI_SR_EOQF_MASK;&lt;BR /&gt; SPI0-&amp;gt;PUSHR = (SPI_PUSHR_EOQ_MASK | SPI_PUSHR_PCS(1) | SpiWrite);&lt;BR /&gt; while(!(SPI0-&amp;gt;SR &amp;amp; SPI_SR_TCF_MASK));&lt;BR /&gt; SPI0-&amp;gt;SR |= SPI_SR_TCF_MASK | SPI_SR_EOQF_MASK;&lt;BR /&gt; SPI0-&amp;gt;MCR |= SPI_MCR_HALT_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for(;;) { /* Infinite loop to avoid leaving the main function */&lt;BR /&gt; __asm("NOP"); /* something to use as a breakpoint stop while looping */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help if there is any mistake.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gokul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 14:40:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-DSPI-communication-issue-with-slave-device/m-p/792418#M48209</guid>
      <dc:creator>gokulnath12345</dc:creator>
      <dc:date>2018-09-26T14:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: K82 DSPI communication issue with slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-DSPI-communication-issue-with-slave-device/m-p/792419#M48210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;MCR.HALT=1 means stop transfer, and MCR.HALT=0 means start transfer. After config IO pin, you start transfer directly. But after all setting is done, you stop it.&lt;/P&gt;&lt;P&gt;I suggest you only modify pin config in BOARD_InitPins(), use other demo code directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 09:53:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-DSPI-communication-issue-with-slave-device/m-p/792419#M48210</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-09-27T09:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: K82 DSPI communication issue with slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-DSPI-communication-issue-with-slave-device/m-p/792420#M48211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jing,&lt;/P&gt;&lt;P&gt;My Project requirement is to use SPI transfer to another slave device.&lt;/P&gt;&lt;P&gt;The requirements for Slave side is the following,&lt;/P&gt;&lt;P&gt;Frame transfer is 16 bits,&lt;/P&gt;&lt;P&gt;CPOL = 0;&lt;/P&gt;&lt;P&gt;CPHA =0; So its mode 0 SPI communication for SCK&amp;nbsp;&lt;/P&gt;&lt;P&gt;Active Low chip select for 16 bits (also know as slave select)&lt;/P&gt;&lt;P&gt;I need to send some 64 bytes, means 32 frames in total.&lt;/P&gt;&lt;P&gt;So at the end of each frame transfer is completed, I should see Chip Select(slave select) getting low to high.&lt;/P&gt;&lt;P&gt;I used the code given from demo project SDK examples, dspi_half_duplex_polling_master for FRDM k82, which suited me and made the following changes in initial configuration,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Transfer structure for half-duplex. */&lt;BR /&gt; dspi_half_duplex_transfer_t xfer = {0};&lt;BR /&gt; dspi_master_config_t masterConfig;&lt;/P&gt;&lt;P&gt;BOARD_InitPins();&lt;BR /&gt; BOARD_BootClockRUN();&lt;BR /&gt; BOARD_InitDebugConsole();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;masterConfig.whichCtar = kDSPI_Ctar0;&lt;BR /&gt; masterConfig.ctarConfig.baudRate = TRANSFER_BAUDRATE;&lt;BR /&gt; masterConfig.ctarConfig.bitsPerFrame = 16;&lt;BR /&gt; masterConfig.ctarConfig.cpol = kDSPI_ClockPolarityActiveHigh;&lt;BR /&gt; masterConfig.ctarConfig.cpha = kDSPI_ClockPhaseFirstEdge;&lt;BR /&gt; masterConfig.ctarConfig.direction = kDSPI_MsbFirst;&lt;BR /&gt; masterConfig.ctarConfig.pcsToSckDelayInNanoSec = 1000000000U / TRANSFER_BAUDRATE;&lt;BR /&gt; masterConfig.ctarConfig.lastSckToPcsDelayInNanoSec = 1000000000U / TRANSFER_BAUDRATE;&lt;BR /&gt; masterConfig.ctarConfig.betweenTransferDelayInNanoSec = 500000000000U / TRANSFER_BAUDRATE;&lt;/P&gt;&lt;P&gt;masterConfig.whichPcs = EXAMPLE_DSPI_MASTER_PCS_FOR_INIT;&lt;BR /&gt; masterConfig.pcsActiveHighOrLow = kDSPI_PcsActiveLow;&lt;/P&gt;&lt;P&gt;masterConfig.enableContinuousSCK = false;&lt;BR /&gt; masterConfig.enableRxFifoOverWrite = false;&lt;BR /&gt; masterConfig.enableModifiedTimingFormat = false;&lt;BR /&gt; masterConfig.samplePoint = kDSPI_SckToSin0Clock;&lt;BR /&gt; srcFreq = DSPI_MASTER_CLK_FREQ;&lt;BR /&gt; DSPI_MasterInit(EXAMPLE_DSPI_MASTER_BASEADDR, &amp;amp;masterConfig, srcFreq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// filled the data I need to configure my slave device&lt;/P&gt;&lt;P&gt;for (i = 0; i &amp;lt; BUFFER_SIZE; i++)&lt;BR /&gt; {&lt;BR /&gt; txData[i] = 1U;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*Start Transfer by polling mode. */&lt;BR /&gt; xfer.txData = txData;&lt;BR /&gt; xfer.rxData = NULL;&lt;BR /&gt; xfer.txDataSize = sizeof(txData);&lt;BR /&gt; xfer.rxDataSize = 0;&amp;nbsp;&lt;BR /&gt; xfer.isTransmitFirst = true;&lt;BR /&gt; xfer.isPcsAssertInTransfer = true;&lt;BR /&gt; xfer.configFlags = kDSPI_MasterCtar0 | EXAMPLE_DSPI_MASTER_PCS_FOR_TRANSFER | kDSPI_PcsActiveLow;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;DSPI_MasterHalfDuplexTransferBlocking(EXAMPLE_DSPI_MASTER_BASEADDR, &amp;amp;xfer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Stop the transfer. */&lt;BR /&gt; DSPI_Deinit(EXAMPLE_DSPI_MASTER_BASEADDR);&lt;/P&gt;&lt;P&gt;while (1)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; { }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to see chip select getting active low for every 32 frame, and 16 clock pulse per frame and data in MOSI.&lt;/P&gt;&lt;P&gt;But Iam able to see proper data in another K82 as half duplex slave, and receives correct data when the only change in line,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;xfer.configFlags = kDSPI_MasterCtar0 | EXAMPLE_DSPI_MASTER_PCS_FOR_TRANSFER |&amp;nbsp;kDSPI_MasterPcsContinuous ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with MasterPcsContinuous instead of PcsActiveLow. I also kept delay between transfer of frames as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;masterConfig.ctarConfig.betweenTransferDelayInNanoSec = 500000000000U / TRANSFER_BAUDRATE;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yet I am unable to see my 32 frames with chip select going high to low&amp;nbsp; and low to high 32 times and 16 clock pulses per frame in scope.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me if Iam making any mistakes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Gokul.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 14:54:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-DSPI-communication-issue-with-slave-device/m-p/792420#M48211</guid>
      <dc:creator>gokulnath12345</dc:creator>
      <dc:date>2018-09-27T14:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: K82 DSPI communication issue with slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-DSPI-communication-issue-with-slave-device/m-p/792421#M48212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;But the original code is&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;xfer.configFlags = kDSPI_MasterCtar0 | EXAMPLE_DSPI_MASTER_PCS_FOR_TRANSFER&amp;nbsp;&amp;nbsp;kDSPI_MasterPcsContinuous ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And please keep the setting&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;masterConfig.ctarConfig.betweenTransferDelayInNanoSec = 1000000000U / TRANSFER_BAUDRATE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If your project is still not work, please recreate the project. You've made too much&amp;nbsp;error change.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 08:34:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-DSPI-communication-issue-with-slave-device/m-p/792421#M48212</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-09-28T08:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: K82 DSPI communication issue with slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-DSPI-communication-issue-with-slave-device/m-p/792422#M48213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys&lt;/P&gt;&lt;P&gt;Thanks a lot for everybody for giving me your valuable feedback.&lt;/P&gt;&lt;P&gt;Finally My SPI communication with slave device is working fine.&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Gokul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 10:18:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-DSPI-communication-issue-with-slave-device/m-p/792422#M48213</guid>
      <dc:creator>gokulnath12345</dc:creator>
      <dc:date>2018-10-23T10:18:40Z</dc:date>
    </item>
  </channel>
</rss>

