<?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: FRDM-K82F SPI: How to change the chip-select pin for SPI-Master.</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-SPI-How-to-change-the-chip-select-pin-for-SPI-Master/m-p/751538#M45800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus Härtinger&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I saw that you are using DSPI_DRV_MasterTransferBlocking, I can see that you are using SDK 1.3. I would like to recommend you to change to the new version of SDK (v2.x). You can download it in the page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://mcuxpresso.nxp.com/" title="http://mcuxpresso.nxp.com/"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see that with these drivers you can change chipselect in a spi structure like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dspi_transfer_t &lt;/STRONG&gt;masterXfer&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;masterXfer.configFlags = kDSPI_MasterCtar0 | &lt;STRONG&gt;EXAMPLE_DSPI_MASTER_PCS_FOR_TRANSFER&lt;/STRONG&gt; | kDSPI_MasterPcsContinuous;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this could help you.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&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>Thu, 15 Mar 2018 01:14:13 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2018-03-15T01:14:13Z</dc:date>
    <item>
      <title>FRDM-K82F SPI: How to change the chip-select pin for SPI-Master.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-SPI-How-to-change-the-chip-select-pin-for-SPI-Master/m-p/751537#M45799</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 started with the dspi_blocking_example_master_frdmk82f, which worked pretty well for me.&lt;/P&gt;&lt;P&gt;So I connected a different board with kDspiPcs0 on SPI0.&lt;/P&gt;&lt;P&gt;But now I also want to connect a third borad also with SPI0 but chip-select kDspiPcs1 (PTD4).&lt;/P&gt;&lt;P&gt;It is clear for me I have to initalize this pin as SPI0_CS.&lt;/P&gt;&lt;P&gt;But my big problem is, how to change between the chip-selcts whithin the program code.&lt;/P&gt;&lt;P&gt;Due to my understanding DSPI_DRV_MasterTransferBlocking don't have a possibility for selecting the chipselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Till now I haven't found any siutable example for this problem.&lt;/P&gt;&lt;P&gt;Can someone give me some hints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 12:28:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-SPI-How-to-change-the-chip-select-pin-for-SPI-Master/m-p/751537#M45799</guid>
      <dc:creator>markushärtinger</dc:creator>
      <dc:date>2018-03-13T12:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K82F SPI: How to change the chip-select pin for SPI-Master.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-SPI-How-to-change-the-chip-select-pin-for-SPI-Master/m-p/751538#M45800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus Härtinger&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I saw that you are using DSPI_DRV_MasterTransferBlocking, I can see that you are using SDK 1.3. I would like to recommend you to change to the new version of SDK (v2.x). You can download it in the page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://mcuxpresso.nxp.com/" title="http://mcuxpresso.nxp.com/"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see that with these drivers you can change chipselect in a spi structure like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dspi_transfer_t &lt;/STRONG&gt;masterXfer&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;masterXfer.configFlags = kDSPI_MasterCtar0 | &lt;STRONG&gt;EXAMPLE_DSPI_MASTER_PCS_FOR_TRANSFER&lt;/STRONG&gt; | kDSPI_MasterPcsContinuous;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this could help you.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&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>Thu, 15 Mar 2018 01:14:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-SPI-How-to-change-the-chip-select-pin-for-SPI-Master/m-p/751538#M45800</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2018-03-15T01:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K82F SPI: How to change the chip-select pin for SPI-Master.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-SPI-How-to-change-the-chip-select-pin-for-SPI-Master/m-p/751539#M45801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer!&lt;/P&gt;&lt;P&gt;This hint is great.&lt;/P&gt;&lt;P&gt;But for some reason there seams to be a problem with the kDSPI_MsbFirst.&lt;/P&gt;&lt;P&gt;If I send the data from one board to another board there are alsways to Bits mixed:&lt;/P&gt;&lt;P&gt;Send:&lt;/P&gt;&lt;P&gt;ABCDEFGHIJKLMNOPQRSTUVWXYZ&lt;/P&gt;&lt;P&gt;Recieved:&lt;/P&gt;&lt;P&gt;BADCFEHGJILKNMPORQTSVUXWZY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 08:58:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K82F-SPI-How-to-change-the-chip-select-pin-for-SPI-Master/m-p/751539#M45801</guid>
      <dc:creator>markushärtinger</dc:creator>
      <dc:date>2018-03-16T08:58:04Z</dc:date>
    </item>
  </channel>
</rss>

