<?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: MCF5485 DSPI in 8bit transfer size in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485-DSPI-in-8bit-transfer-size/m-p/164802#M5585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi developers!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the solution of this problem. I just &amp;nbsp;adjusted the timing of the transaction. Especially PDT (delay after transfer prescaler) and DT (delay transfer scaler).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dumped the registers and I found that all scalers were at minimum. As I'm using 100kHz, I believe that the transactions were&amp;nbsp;overlapping. So I changed this fields and&amp;nbsp;communication&amp;nbsp;is&amp;nbsp;OK!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My config is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PASC = 3&lt;/P&gt;&lt;P&gt;PDT = 3&lt;/P&gt;&lt;P&gt;CSSCK = 8&lt;/P&gt;&lt;P&gt;ASC = 8&lt;/P&gt;&lt;P&gt;DT = 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These values can be optimized, but this is only a test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Be careful with m547x_8x-devices.c. In this file there is a bug! Notice that this module uses mcfqspi.h, but the device driver mcf_dspi.c (mcf_dspi.ko) uses the &lt;STRONG&gt;struct coldfire_dspi_chip&lt;/STRONG&gt;. Be careful! The solution is to change the include &lt;STRONG&gt;mcfqspi.h&lt;/STRONG&gt; to &lt;STRONG&gt;mcfdspi.h&lt;/STRONG&gt; and change the &lt;STRONG&gt;struct coldfire_spi_chip&lt;/STRONG&gt; to &lt;STRONG&gt;struct coldfire_dspi_chip&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Poloni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Nov 2010 21:57:21 GMT</pubDate>
    <dc:creator>Poloni</dc:creator>
    <dc:date>2010-11-25T21:57:21Z</dc:date>
    <item>
      <title>MCF5485 DSPI in 8bit transfer size</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485-DSPI-in-8bit-transfer-size/m-p/164800#M5583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My setup is MCF5485 (EVB) + LTIB 20080808 (kernel 2.6.25).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a problem with SPI in 8-bit mode. I noticed that the last pulse clock pulse is missing. In 16-bit transfer size, the SPI is working fine. In all tests my SPI is configured to SPI_MODE_3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone had this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Poloni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 18:58:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485-DSPI-in-8bit-transfer-size/m-p/164800#M5583</guid>
      <dc:creator>Poloni</dc:creator>
      <dc:date>2010-11-24T18:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5485 DSPI in 8bit transfer size</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485-DSPI-in-8bit-transfer-size/m-p/164801#M5584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attaching the screenshot of the scope. In this case I changed the SPI_MODE (is not SPI_MODE_3).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Poloni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 19:41:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485-DSPI-in-8bit-transfer-size/m-p/164801#M5584</guid>
      <dc:creator>Poloni</dc:creator>
      <dc:date>2010-11-24T19:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5485 DSPI in 8bit transfer size</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485-DSPI-in-8bit-transfer-size/m-p/164802#M5585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi developers!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the solution of this problem. I just &amp;nbsp;adjusted the timing of the transaction. Especially PDT (delay after transfer prescaler) and DT (delay transfer scaler).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dumped the registers and I found that all scalers were at minimum. As I'm using 100kHz, I believe that the transactions were&amp;nbsp;overlapping. So I changed this fields and&amp;nbsp;communication&amp;nbsp;is&amp;nbsp;OK!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My config is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PASC = 3&lt;/P&gt;&lt;P&gt;PDT = 3&lt;/P&gt;&lt;P&gt;CSSCK = 8&lt;/P&gt;&lt;P&gt;ASC = 8&lt;/P&gt;&lt;P&gt;DT = 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These values can be optimized, but this is only a test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Be careful with m547x_8x-devices.c. In this file there is a bug! Notice that this module uses mcfqspi.h, but the device driver mcf_dspi.c (mcf_dspi.ko) uses the &lt;STRONG&gt;struct coldfire_dspi_chip&lt;/STRONG&gt;. Be careful! The solution is to change the include &lt;STRONG&gt;mcfqspi.h&lt;/STRONG&gt; to &lt;STRONG&gt;mcfdspi.h&lt;/STRONG&gt; and change the &lt;STRONG&gt;struct coldfire_spi_chip&lt;/STRONG&gt; to &lt;STRONG&gt;struct coldfire_dspi_chip&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Poloni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 21:57:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485-DSPI-in-8bit-transfer-size/m-p/164802#M5585</guid>
      <dc:creator>Poloni</dc:creator>
      <dc:date>2010-11-25T21:57:21Z</dc:date>
    </item>
  </channel>
</rss>

