<?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: Generating precise non periodic digital waveform using MCF52235 MPU in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Generating-precise-non-periodic-digital-waveform-using-MCF52235/m-p/208862#M10090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;It seems that the General Purpose Timer (GPT) is designed to do this sort of thing, not the DMA timer. I don't have any code for you, but I think you would set it up to toggle on output compare, then go into a loop or interrupt sequence that waits for the timer compare event, then adds the next delay interval to the compare register.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2008 00:02:42 GMT</pubDate>
    <dc:creator>bkatt</dc:creator>
    <dc:date>2008-04-03T00:02:42Z</dc:date>
    <item>
      <title>Generating precise non periodic digital waveform using MCF52235 MPU</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Generating-precise-non-periodic-digital-waveform-using-MCF52235/m-p/208861#M10089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to generate a digital non periodic waveform on an output pin of the MCF 52235 MPU and CW 6.3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First, I tried using QSPI, but i discovered that I cannot generate burst longer than 16 pulses without delays between them; then I tried disabling interrupts and using GPIO driven from assembler instructions... but, again, no luck because the GPIO module clock is not correlated with main processor clock, so there is a random skew in the generated waveform (2 or 4 CPU clock skew).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, I'm trying using DMA timer.. I plan to store the waveform in RAM as a buffer of delays, then start the timer and allow it to read&amp;nbsp; the counter register from the buffer using DMA. This way, maybe, I'll get the waveform. But there's no code example showing how to use DMA timers. I searched the documentation and the forum and I found nothing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could someone please help me, maybe posting some code fragment?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestion will be appreciated,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Marco&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 03:59:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Generating-precise-non-periodic-digital-waveform-using-MCF52235/m-p/208861#M10089</guid>
      <dc:creator>ariaveta</dc:creator>
      <dc:date>2008-04-02T03:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Generating precise non periodic digital waveform using MCF52235 MPU</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Generating-precise-non-periodic-digital-waveform-using-MCF52235/m-p/208862#M10090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;It seems that the General Purpose Timer (GPT) is designed to do this sort of thing, not the DMA timer. I don't have any code for you, but I think you would set it up to toggle on output compare, then go into a loop or interrupt sequence that waits for the timer compare event, then adds the next delay interval to the compare register.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 00:02:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Generating-precise-non-periodic-digital-waveform-using-MCF52235/m-p/208862#M10090</guid>
      <dc:creator>bkatt</dc:creator>
      <dc:date>2008-04-03T00:02:42Z</dc:date>
    </item>
  </channel>
</rss>

