<?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>Processor Expert SoftwareのトピックSPI 1-Byte data Write and Read</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/SPI-1-Byte-data-Write-and-Read/m-p/1509037#M5218</link>
    <description>&lt;P&gt;I'm using&amp;nbsp;&lt;SPAN&gt;LPC55S06-EVK. I have downloaded&amp;nbsp;SDK_2_12_0_LPCXpresso55S06.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As per development kit connection, I'm using the following 4 MCU pins for SPI interface.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Pin-59: SCK SPI_FLASH_PIO0_6&lt;BR /&gt;Pin-55: MOSI SPI_FLASH_PIO0_3&lt;BR /&gt;Pin-57: CS SPI_FLASH_PIO0_4&lt;BR /&gt;Pin-54: MISO SPI_FLASH_PIO0_2&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I'm using&amp;nbsp;ADXL345 as a SPI slave device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which command to use for 1-byte data Write &amp;amp; Read?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;--------------------------------------------------&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;SPI-Write:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Byte-0 = 0x00 (MOSI, Command/Address. Output from MCU)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Byte-1 = 0x55 (MOSI, Write 1-byte data. Output from MCU)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;SPI-Read:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Byte-0 = 0x80 (MOSI, Command/Address. Output from MCU)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Byte-1 = 0xXX (MISO, Read 1-byte data. Input to MCU)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ADXL345's SPI timing waveform attached&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 21 Aug 2022 06:52:22 GMT</pubDate>
    <dc:creator>SadaK</dc:creator>
    <dc:date>2022-08-21T06:52:22Z</dc:date>
    <item>
      <title>SPI 1-Byte data Write and Read</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/SPI-1-Byte-data-Write-and-Read/m-p/1509037#M5218</link>
      <description>&lt;P&gt;I'm using&amp;nbsp;&lt;SPAN&gt;LPC55S06-EVK. I have downloaded&amp;nbsp;SDK_2_12_0_LPCXpresso55S06.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As per development kit connection, I'm using the following 4 MCU pins for SPI interface.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Pin-59: SCK SPI_FLASH_PIO0_6&lt;BR /&gt;Pin-55: MOSI SPI_FLASH_PIO0_3&lt;BR /&gt;Pin-57: CS SPI_FLASH_PIO0_4&lt;BR /&gt;Pin-54: MISO SPI_FLASH_PIO0_2&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I'm using&amp;nbsp;ADXL345 as a SPI slave device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which command to use for 1-byte data Write &amp;amp; Read?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;--------------------------------------------------&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;SPI-Write:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Byte-0 = 0x00 (MOSI, Command/Address. Output from MCU)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Byte-1 = 0x55 (MOSI, Write 1-byte data. Output from MCU)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;SPI-Read:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Byte-0 = 0x80 (MOSI, Command/Address. Output from MCU)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Byte-1 = 0xXX (MISO, Read 1-byte data. Input to MCU)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ADXL345's SPI timing waveform attached&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Aug 2022 06:52:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/SPI-1-Byte-data-Write-and-Read/m-p/1509037#M5218</guid>
      <dc:creator>SadaK</dc:creator>
      <dc:date>2022-08-21T06:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: SPI 1-Byte data Write and Read</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/SPI-1-Byte-data-Write-and-Read/m-p/1509675#M5220</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I review your case, unfortunately, this does not represent an NXP issue, I suggest reviewing the datasheet from the&amp;nbsp;ADXL part, I think it will show you what command is for reading and writing, or in another way contact the vendor.&lt;BR /&gt;Then when you have this information you can structure the frame in the example from the LPC.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 18:40:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/SPI-1-Byte-data-Write-and-Read/m-p/1509675#M5220</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2022-08-22T18:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: SPI 1-Byte data Write and Read</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/SPI-1-Byte-data-Write-and-Read/m-p/1510118#M5222</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have already tested ADXL345 part with STM32 MCU’s using STM32CubeIDE. It works great. As I explained in the initial post. I would like to know how to write &amp;amp; read registers from MCUXpressoIDE using&amp;nbsp;&lt;SPAN&gt;LPC55S06-EVK&lt;/SPAN&gt;?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know what data to be written from NXP MCU to access ADXL registers. Those details provided below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--------------------------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SPI-Write:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Byte-0 = 0x00 (MOSI, Command/Address. Output from MCU)&lt;/P&gt;&lt;P&gt;Byte-1 = 0x55 (MOSI, Write 1-byte data. Output from MCU)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SPI-Read:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Byte-0 = 0x80 (MOSI, Command/Address. Output from MCU)&lt;/P&gt;&lt;P&gt;Byte-1 = 0xXX (MISO, Read 1-byte data. Input to MCU)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 10:10:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/SPI-1-Byte-data-Write-and-Read/m-p/1510118#M5222</guid>
      <dc:creator>SadaK</dc:creator>
      <dc:date>2022-08-23T10:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: SPI 1-Byte data Write and Read</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/SPI-1-Byte-data-Write-and-Read/m-p/1510379#M5224</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I recommend use an example of the SDK from the MCU [spi_interrupt_b2b_transfer_master] then in the library fsl_spi.h you can find some functions to write and read. If you are searching for a command to read and write the part of&amp;nbsp;ADXL&amp;nbsp;it will show it in the datasheet of this part.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pavel_Hernandez_0-1661281843498.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/191035i17559D7775921CF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pavel_Hernandez_0-1661281843498.png" alt="Pavel_Hernandez_0-1661281843498.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the SDK you will found some examples.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pavel_Hernandez_1-1661282013471.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/191036i1B42C451F7300898/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pavel_Hernandez_1-1661282013471.png" alt="Pavel_Hernandez_1-1661282013471.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 19:14:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/SPI-1-Byte-data-Write-and-Read/m-p/1510379#M5224</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2022-08-23T19:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: SPI 1-Byte data Write and Read</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/SPI-1-Byte-data-Write-and-Read/m-p/1510452#M5226</link>
      <description>&lt;P&gt;Thanks, this helps..!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 00:21:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/SPI-1-Byte-data-Write-and-Read/m-p/1510452#M5226</guid>
      <dc:creator>SadaK</dc:creator>
      <dc:date>2022-08-24T00:21:44Z</dc:date>
    </item>
  </channel>
</rss>

