<?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: Coldfire V1 SPI with Ublox Neo 5Q in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-V1-SPI-with-Ublox-Neo-5Q/m-p/202362#M9366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I have a bunch of iterations of that schematic.&amp;nbsp; The schematic is wrong, the hardware is connected correctly and functions correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave Wright&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Aug 2010 16:17:33 GMT</pubDate>
    <dc:creator>David_UCT</dc:creator>
    <dc:date>2010-08-13T16:17:33Z</dc:date>
    <item>
      <title>Coldfire V1 SPI with Ublox Neo 5Q</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-V1-SPI-with-Ublox-Neo-5Q/m-p/202356#M9360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a simple GPS implementation using a MCF51JM128 and a UBLOX neo 5q selected for its SPI capability.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently the system is temperamental in that a system reset will result in either the correct data being received via the SPI port, that is a, NMEA bit stream.&amp;nbsp; Or I will receive periodic garbage in the same period as the NMEA stream.&amp;nbsp; The garbage is always the same there are about 4 variations and each is recognisable.&amp;nbsp; Further this cannot simply be a matter of selection of protocals as there are only 2 available protocals on the ublox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a filet showing the current setup of the SPI wire connections.&amp;nbsp; The GPS chip is connected via SPI2 and uses the FIFO mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following links are the code I have written for the SPI2 FIFO.&amp;nbsp; They are displayed on slexy code viewer so that the code is easier to read.&amp;nbsp; If anyone would specifically like files please ask.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SPI Functions: &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fslexy.org%2Fview%2Fs2oGSG8wwF" rel="nofollow" target="_blank"&gt;http://slexy.org/view/s2oGSG8wwF&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Main: &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fslexy.org%2Fview%2Fs21XrHBONN" rel="nofollow" target="_blank"&gt;http://slexy.org/view/s21XrHBONN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Question finally is firstly have I missed something in terms of the hardware connections?&amp;nbsp; And second is there a common problem that could cause the corruption data in the manner that I have described.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 00:34:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-V1-SPI-with-Ublox-Neo-5Q/m-p/202356#M9360</guid>
      <dc:creator>David_UCT</dc:creator>
      <dc:date>2010-05-20T00:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Coldfire V1 SPI with Ublox Neo 5Q</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-V1-SPI-with-Ublox-Neo-5Q/m-p/202357#M9361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have exactly the same problem! I had to write my own SPI software routine to solve it, but now its erratic again!&lt;/P&gt;&lt;P&gt;By the way, if you examine the data, it looks like its slipping bits...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you ever solve your problem? If so, please could you let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jun 2010 06:04:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-V1-SPI-with-Ublox-Neo-5Q/m-p/202357#M9361</guid>
      <dc:creator>DaviddeBruyn</dc:creator>
      <dc:date>2010-06-27T06:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Coldfire V1 SPI with Ublox Neo 5Q</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-V1-SPI-with-Ublox-Neo-5Q/m-p/202358#M9362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have managed to fix the problem, but I still don't know what the root cause is.&lt;/P&gt;&lt;P&gt;Once I noticed it was bit slipping, I&amp;nbsp;implemented&amp;nbsp;a sync function which syncronised the input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked first time!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ublox has also very bad support for SPI in their docs. I think its because there is a problem with their shift register&amp;nbsp;implementation. It&amp;nbsp;doesn't&amp;nbsp;seem to reset on Chip Select, which is why once you have bad data, its always bad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They have also got a very low data rate (25kHz) imposed limit, but I was able to push it much higher by just syncing the input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Send me a PM if you want to know how I synced it. Its very short and easy to&amp;nbsp;implement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ublox modules are great, but their support it shocking!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jun 2010 08:31:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-V1-SPI-with-Ublox-Neo-5Q/m-p/202358#M9362</guid>
      <dc:creator>DaviddeBruyn</dc:creator>
      <dc:date>2010-06-27T08:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Coldfire V1 SPI with Ublox Neo 5Q</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-V1-SPI-with-Ublox-Neo-5Q/m-p/202359#M9363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply, it would be great if you could show me how you wrote that synchronisation function!&amp;nbsp; I ran out of time to deal with the problem and had to move onto other work.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jul 2010 04:40:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-V1-SPI-with-Ublox-Neo-5Q/m-p/202359#M9363</guid>
      <dc:creator>David_UCT</dc:creator>
      <dc:date>2010-07-04T04:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Coldfire V1 SPI with Ublox Neo 5Q</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-V1-SPI-with-Ublox-Neo-5Q/m-p/202360#M9364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone else that encounters this problem the issue is essentially that because the UBLOX shift register does not clear properly when enabling an SPI transmission with the module the data is shifted by the number of bits that were not cleared from the shift register.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To fix this you must write a program that analysis the input data to work out how many bits the data has been shifted, and then you must shift all your incoming SPI data by that amount for that transmission.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 22:36:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-V1-SPI-with-Ublox-Neo-5Q/m-p/202360#M9364</guid>
      <dc:creator>David_UCT</dc:creator>
      <dc:date>2010-08-09T22:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Coldfire V1 SPI with Ublox Neo 5Q</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-V1-SPI-with-Ublox-Neo-5Q/m-p/202361#M9365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reading the forum topics on SPI, I have just came across your posting.&lt;/P&gt;&lt;P&gt;I took a look at the schem. you posted.&lt;/P&gt;&lt;P&gt;I dont know if the schematic is incorrect, or&amp;nbsp;the module pins are&amp;nbsp;&lt;/P&gt;&lt;P&gt;swapped on the symbol, but checking the spi data lines shows, that the&lt;/P&gt;&lt;P&gt;coldfire MOSI pin is connected to the module MISO pin, and the other ones also,&lt;/P&gt;&lt;P&gt;which means that the master-slave SPI link looks like:&lt;/P&gt;&lt;P&gt;-Coldfire Master Out and Slave in pin is connected to GPS Master In and Slave Out,&lt;/P&gt;&lt;P&gt;-Coldfire Master In and Slave Out pin is connected to GPS Master Out and Slave In,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to clarify:&lt;/P&gt;&lt;P&gt;-MISO: on the master (CF), it&amp;nbsp;is an output, and on the slave(GPS) is an input&lt;/P&gt;&lt;P&gt;-MOSI: the other way around.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either the schematic is wrong, or the circuit setup&amp;nbsp;shouldn't work...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 14:17:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-V1-SPI-with-Ublox-Neo-5Q/m-p/202361#M9365</guid>
      <dc:creator>AntiGeri</dc:creator>
      <dc:date>2010-08-13T14:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Coldfire V1 SPI with Ublox Neo 5Q</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-V1-SPI-with-Ublox-Neo-5Q/m-p/202362#M9366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I have a bunch of iterations of that schematic.&amp;nbsp; The schematic is wrong, the hardware is connected correctly and functions correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave Wright&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 16:17:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-V1-SPI-with-Ublox-Neo-5Q/m-p/202362#M9366</guid>
      <dc:creator>David_UCT</dc:creator>
      <dc:date>2010-08-13T16:17:33Z</dc:date>
    </item>
  </channel>
</rss>

