<?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: K64 SPI - what are the function to read and write single byte or short? in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/K64-SPI-what-are-the-function-to-read-and-write-single-byte-or/m-p/620061#M7917</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;And if want just writing and then reading?&lt;/P&gt;&lt;P&gt;Should I set it to zero read?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use function just for read and write?&lt;/P&gt;&lt;P&gt;And not the API that do transfer?&lt;/P&gt;&lt;P&gt;Eli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2016 03:28:04 GMT</pubDate>
    <dc:creator>eliar</dc:creator>
    <dc:date>2016-10-11T03:28:04Z</dc:date>
    <item>
      <title>K64 SPI - what are the function to read and write single byte or short?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/K64-SPI-what-are-the-function-to-read-and-write-single-byte-or/m-p/620059#M7915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the SPI demo for k64 there are examples that show how to transfer block of data from master to slave.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but suppose i have an external hardware that connect to k64 as a SPI slave device.&lt;/P&gt;&lt;P&gt;this device can be any kind of device that's its interface has SPI where we need to write and read single register&lt;/P&gt;&lt;P&gt;they can be byte or short.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what are the single atomic functions to read and write for the master&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;are they?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DSP_ReadData &amp;nbsp; &amp;nbsp; for reading&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;DSPI_MasterWriteCommandDataBlocking(EXAMPLE_DSPI_MASTER_BASEADDR, data);&lt;/P&gt;&lt;P&gt;for writing?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 18:26:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/K64-SPI-what-are-the-function-to-read-and-write-single-byte-or/m-p/620059#M7915</guid>
      <dc:creator>eliar</dc:creator>
      <dc:date>2016-10-10T18:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SPI - what are the function to read and write single byte or short?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/K64-SPI-what-are-the-function-to-read-and-write-single-byte-or/m-p/620060#M7916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eli,&lt;/P&gt;&lt;P&gt;The function of&amp;nbsp; "DSPI_MasterTransferNonBlocking()" can used as both receive and send .&lt;/P&gt;&lt;P&gt;The butter and size is configured in a structure like the demo :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3143iC0CED90A58542E88/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you want send one byte ,&amp;nbsp; set the dataSize to 1 : slaveXfer.dataSize =1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Alice&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, 11 Oct 2016 03:25:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/K64-SPI-what-are-the-function-to-read-and-write-single-byte-or/m-p/620060#M7916</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-10-11T03:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SPI - what are the function to read and write single byte or short?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/K64-SPI-what-are-the-function-to-read-and-write-single-byte-or/m-p/620061#M7917</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;And if want just writing and then reading?&lt;/P&gt;&lt;P&gt;Should I set it to zero read?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use function just for read and write?&lt;/P&gt;&lt;P&gt;And not the API that do transfer?&lt;/P&gt;&lt;P&gt;Eli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 03:28:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/K64-SPI-what-are-the-function-to-read-and-write-single-byte-or/m-p/620061#M7917</guid>
      <dc:creator>eliar</dc:creator>
      <dc:date>2016-10-11T03:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SPI - what are the function to read and write single byte or short?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/K64-SPI-what-are-the-function-to-read-and-write-single-byte-or/m-p/620062#M7918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the code of "DSPI_ReadData" and "DSPI_MasterWriteCommandDataBlocking" ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;i think yes , you can use it to read and write .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 03:54:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/K64-SPI-what-are-the-function-to-read-and-write-single-byte-or/m-p/620062#M7918</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-10-11T03:54:42Z</dc:date>
    </item>
  </channel>
</rss>

