<?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 Mode 0 and 3 16bit array sending Problem in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Mode-0-and-3-16bit-array-sending-Problem/m-p/514133#M541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wmues on Fri Jun 27 02:14:20 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use automatic chip select, chip select WILL toggle between 2 bytes. Imagine if you get an interrupt while polling for the next byte!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only solution to have chip select active during the whole transfer is: set/clear the chip select by hand, using the GPIO functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wolfgang&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:11:46 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:11:46Z</dc:date>
    <item>
      <title>SPI Mode 0 and 3 16bit array sending Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Mode-0-and-3-16bit-array-sending-Problem/m-p/514132#M540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DAMEK on Thu Jun 26 12:12:18 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey team,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i worked out some interessting things about the SPI TX transfer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;settings are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- delays = none&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- clockdiv = 2 till 8 (i did not more)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Transfermode = polling&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;first i used mode 3 but my slave don't want to start working.. in fact of that, i used the nice nxp labtool to get some details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img=1587 x 313]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fs14.directupload.net%2Fimages%2F140626%2Fefbl5pbd.jpg%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;http://s14.directupload.net/images/140626/efbl5pbd.jpg[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I've been thinking about my rtos implementation and then at the EOF function. Disabling this functions will give the same result, so I tried mode 1 and 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mode 1 and 2 (CPHA not equal CPLO) works fine (picture below measured with NXP labtool)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img=1584 x 287]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fs14.directupload.net%2Fimages%2F140626%2Fmih7un6n.jpg%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;http://s14.directupload.net/images/140626/mih7un6n.jpg[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why does the unwanted chip select toggling on only in mode 0 and 3? Can this be due to the OEM board or to the internal pullups?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings and thanks for the working&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:11:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Mode-0-and-3-16bit-array-sending-Problem/m-p/514132#M540</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Mode 0 and 3 16bit array sending Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Mode-0-and-3-16bit-array-sending-Problem/m-p/514133#M541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wmues on Fri Jun 27 02:14:20 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use automatic chip select, chip select WILL toggle between 2 bytes. Imagine if you get an interrupt while polling for the next byte!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only solution to have chip select active during the whole transfer is: set/clear the chip select by hand, using the GPIO functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wolfgang&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:11:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Mode-0-and-3-16bit-array-sending-Problem/m-p/514133#M541</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Mode 0 and 3 16bit array sending Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Mode-0-and-3-16bit-array-sending-Problem/m-p/514134#M542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DAMEK on Fri Jun 27 05:19:11 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your answer!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i play a little bit with the settings and the dma feature on the weekend and post my result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a nice weekend :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:11:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Mode-0-and-3-16bit-array-sending-Problem/m-p/514134#M542</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Mode 0 and 3 16bit array sending Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Mode-0-and-3-16bit-array-sending-Problem/m-p/514135#M543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wmues on Fri Jun 27 12:11:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you be sure that the DMA can do the transfer in time?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There might be another DMA channel running in the system....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a system with LPC1788 and LCD DMA, and choose not to rely on SPI DMA to come in time 100%.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wolfgang&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:11:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Mode-0-and-3-16bit-array-sending-Problem/m-p/514135#M543</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Mode 0 and 3 16bit array sending Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Mode-0-and-3-16bit-array-sending-Problem/m-p/514136#M544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DAMEK on Mon Jun 30 16:04:48 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey Wolfgang,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;currently the transfer runs without DMA and i must sync my cpld for the high transfer frequency (CDC)..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i give my best to stay in time and post my results! give me some time, because of Masters Degree tests in 3 weeks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:11:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Mode-0-and-3-16bit-array-sending-Problem/m-p/514136#M544</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:11:48Z</dc:date>
    </item>
  </channel>
</rss>

