<?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: High speed serial input for MCF52235 in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/High-speed-serial-input-for-MCF52235/m-p/167472#M5944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;You could try a clever trick:&lt;BR /&gt;1) Configure a DMA timer to trigger a DMA transfer on transition on DTIN. Tie DTIN to Tsync.&lt;BR /&gt;2) Use the DMA transfer to start a QSPI transfer by writing to one of its control registers.&lt;BR /&gt;3) Use the QSPI transfer to capture the data (tie QSPI_DIN to Tdata). If complete synchronization is difficult, you might want to oversample.&lt;BR /&gt;4) Analyze data received by QSPI.&lt;BR /&gt;It might just work.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jun 2008 19:25:31 GMT</pubDate>
    <dc:creator>admin</dc:creator>
    <dc:date>2008-06-25T19:25:31Z</dc:date>
    <item>
      <title>High speed serial input for MCF52235</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/High-speed-serial-input-for-MCF52235/m-p/167470#M5942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;I have to manage the signal as shown in figure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tclk=3 Mhz (input clock for micro)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tsync=1 khz (input for micro, start of transfer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tdata (input for micro, data packet)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Msync (don't care)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://nonsocosafare.googlepages.com/GYROserialdigitalprotocol.JPG"&gt;&lt;IMG src="http://nonsocosafare.googlepages.com/GYROserialdigitalprotocol.JPG" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to acquire data from Tdata.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to start acquiring each Tsync rising and to stop acquiring each Tsync falling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tdata is 32 bit long and it is synchronous with the Tclk clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought about the QSPI, but it read that it can be only a master and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It can not take any clock signal in input as I need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggest on how to do it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also other peripheral.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 23:48:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/High-speed-serial-input-for-MCF52235/m-p/167470#M5942</guid>
      <dc:creator>PsychoDebugger</dc:creator>
      <dc:date>2008-06-24T23:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: High speed serial input for MCF52235</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/High-speed-serial-input-for-MCF52235/m-p/167471#M5943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hi Psycho&lt;BR /&gt;&lt;BR /&gt;Assuming I have understood the following correctly:&lt;BR /&gt;1. 32Bit work (about 10us) transfer time&lt;BR /&gt;2. Repeated once a ms&lt;BR /&gt;You may be able to do it with a DMA timer.&lt;BR /&gt;&lt;BR /&gt;- Connect the input lines which interest you to one (single) M52235 port.&lt;BR /&gt;- Choose one as trigger (this is the most critical bit)&lt;BR /&gt;When the trigger occurs, start the DMA timer, set up to do a port sample every Xns (by DMA to RAM). Possibly it will not be possible to synchronise to the clock but over sampling is possible.&lt;BR /&gt;After the programmed number of timer samples has expired (the DMA transfer has completed and the samples are ready in RAM) the end of DMA transfer interrupt can trigger the analysis of&lt;BR /&gt;the input samples and extraction on the data word.&lt;BR /&gt;Since you have almost 1ms for the analysis this shouldn't be a big issue. The DMA samples ensure high sampling accuracy and no CPU intervention during the 10us sampling period.&lt;BR /&gt;&lt;BR /&gt;The biggest problem is synchronising the start - possibly Msync could come in handy to trigger a high priority interrupt (NMI) to set the DMA timer start. I don't think that this start can be&lt;BR /&gt;triggered by hardware, but maybe there is a trick.&lt;BR /&gt;&lt;BR /&gt;We have used this technique (a bit like a logic analyser sampling up to 8 bits on one port) to do something similar - but it was not so fast, so the trigger synchronisation was easy.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Mark&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.uTasker.com" rel="nofollow" target="_blank"&gt;www.uTasker.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by mjbcswitzerland on &lt;SPAN class="date_text"&gt;2008-06-24&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;09:37 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 02:35:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/High-speed-serial-input-for-MCF52235/m-p/167471#M5943</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2008-06-25T02:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: High speed serial input for MCF52235</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/High-speed-serial-input-for-MCF52235/m-p/167472#M5944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;You could try a clever trick:&lt;BR /&gt;1) Configure a DMA timer to trigger a DMA transfer on transition on DTIN. Tie DTIN to Tsync.&lt;BR /&gt;2) Use the DMA transfer to start a QSPI transfer by writing to one of its control registers.&lt;BR /&gt;3) Use the QSPI transfer to capture the data (tie QSPI_DIN to Tdata). If complete synchronization is difficult, you might want to oversample.&lt;BR /&gt;4) Analyze data received by QSPI.&lt;BR /&gt;It might just work.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 19:25:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/High-speed-serial-input-for-MCF52235/m-p/167472#M5944</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2008-06-25T19:25:31Z</dc:date>
    </item>
  </channel>
</rss>

