<?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>LPCXpresso IDEのトピックRe: SSP Byte ordering with DMA</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/SSP-Byte-ordering-with-DMA/m-p/559118#M15317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cwpjr on Fri Mar 15 17:53:52 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to know also. Good DMA is a powerful CPU mechanism.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:38:01 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:38:01Z</dc:date>
    <item>
      <title>SSP Byte ordering with DMA</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SSP-Byte-ordering-with-DMA/m-p/559117#M15316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ianholmes on Thu Mar 14 07:37:12 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't seem to spot this in the manual for the 1788...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I set one of the SSP to be a SPI engine and to transmit 16 bits, what order do you think the value 0x0102 would come out in?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reading between the lines I think that as the bit pattern is 0b00000001 00000010 and its received right justified and transmits msbit first then the output order would be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;01000000 10000000, with the left hand bit sent first (i.e. what you would see on a scope).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do this and use DMA to copy the data from memory I find that the bytes get swapped. ie I see 00000001 01000000 (0x01 0x02). The only way I get the bytes in the expected order is to make the SSP device 8 bits wide.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This suggests to me that the DMA "thinks" the source or the destination is only 8 bits and is lane swapping.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something? Anyone got any experience of this (with DMA)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:38:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SSP-Byte-ordering-with-DMA/m-p/559117#M15316</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: SSP Byte ordering with DMA</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SSP-Byte-ordering-with-DMA/m-p/559118#M15317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cwpjr on Fri Mar 15 17:53:52 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to know also. Good DMA is a powerful CPU mechanism.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:38:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SSP-Byte-ordering-with-DMA/m-p/559118#M15317</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:38:01Z</dc:date>
    </item>
  </channel>
</rss>

