<?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: SPI EXAMPLE in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1278676#M45049</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;LPC54628,When I run the demo with the test board I get the messages that there has been an error, the printf's of the program that say that there has been an error I mean.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not modifying the demo.&lt;/P&gt;</description>
    <pubDate>Wed, 19 May 2021 06:50:10 GMT</pubDate>
    <dc:creator>Nadia</dc:creator>
    <dc:date>2021-05-19T06:50:10Z</dc:date>
    <item>
      <title>SPI EXAMPLE</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1278307#M45041</link>
      <description>&lt;P&gt;HELLO!!&lt;BR /&gt;I have problems loading an SPI example, the spi_polling_b2b_transfer_master.c&lt;BR /&gt;It always has errors and I don't understand why, I am trying to do something similar with a DAC that works by SPI, I try to send an array of data as it is done in the example, but it doesn't work either.&lt;/P&gt;&lt;P&gt;If someone knows why the example doesn't work correctly, and how to send an array of data from the SPI, please let me know.&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;BR /&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 14:40:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1278307#M45041</guid>
      <dc:creator>Nadia</dc:creator>
      <dc:date>2021-05-18T14:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: SPI EXAMPLE</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1278558#M45048</link>
      <description>&lt;P&gt;Hello Nadia,&lt;/P&gt;
&lt;P&gt;To help you please provide more information:&lt;/P&gt;
&lt;P&gt;1) Which chip?&lt;/P&gt;
&lt;P&gt;2) Does it have issue when directly run demo?&lt;/P&gt;
&lt;P&gt;3) What about the detail issue about doesn't work?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4) You can use Logic measure signal .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 02:48:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1278558#M45048</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-05-19T02:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: SPI EXAMPLE</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1278676#M45049</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;LPC54628,When I run the demo with the test board I get the messages that there has been an error, the printf's of the program that say that there has been an error I mean.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not modifying the demo.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 06:50:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1278676#M45049</guid>
      <dc:creator>Nadia</dc:creator>
      <dc:date>2021-05-19T06:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: SPI EXAMPLE</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1278685#M45050</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; If someone knows why the example doesn't work correctly, and how to send an array of data from the SPI, please let me know.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SPI is a loosely defined protocol, with variants in e.g. clock polarity, trigger edge, and clock speed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Your SPI master setup (MCU) need to match the requirements of the slave (DAC).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As suggested, take a logic analyser or scope and compare the signal form with the DAC datasheet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And I hope you are aware that SPI is a synchronous protocol, but the slave response is deferred by at least one transfer cycle.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 06:55:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1278685#M45050</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2021-05-19T06:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: SPI EXAMPLE</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1278913#M45064</link>
      <description>&lt;P&gt;I'm using the MCP4821 DAC, which I don't know if it might be incompatible or something.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 10:31:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1278913#M45064</guid>
      <dc:creator>Nadia</dc:creator>
      <dc:date>2021-05-19T10:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: SPI EXAMPLE</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1278914#M45065</link>
      <description>&lt;P&gt;I'm using the MCP4821 DAC, I don't know if it might be incompatible.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 10:33:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1278914#M45065</guid>
      <dc:creator>Nadia</dc:creator>
      <dc:date>2021-05-19T10:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: SPI EXAMPLE</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1279506#M45071</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/137574"&gt;@frank_m&lt;/a&gt;&amp;nbsp;WHAT FUNCTION SHOULD I USE TO TRANSMIT IN SPI WITHOUT NEEDING A RESPONSE? How can I set the clock to 16 pulses?&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 06:46:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1279506#M45071</guid>
      <dc:creator>Nadia</dc:creator>
      <dc:date>2021-05-20T06:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: SPI EXAMPLE</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1279601#M45075</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; WHAT FUNCTION SHOULD I USE TO TRANSMIT IN SPI WITHOUT NEEDING A RESPONSE?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I suppose you mean, without regarding the response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can either read it out to clear any interrupt/FIFO flag, and discard the value. Or configure the SPI FIFO to ignore RX data (FIFOWR, bit 22 = RXIGNORE).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The standard SPI interface contains a write (MOSI) and a read (MISO) line, from the master's view. Each clock pulse cycles one bit out on MOSI and one bit in on MISO simultaneously.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt; How can I set the clock to 16 pulses?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The same SPI config register (FIFOWR) contains a length field, bits 27..24. A 16-bit transfer corresponds to a value 0xF for this field.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Check the user manual, SPI section for details. (UM10912, sect. 26.6.14 for the LPX546xx),&amp;nbsp; I don't know the associated SDK functions, I haven't used them yet.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 08:19:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-EXAMPLE/m-p/1279601#M45075</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2021-05-20T08:19:36Z</dc:date>
    </item>
  </channel>
</rss>

