<?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: Where to find example of PPWA (24bit!) function in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Where-to-find-example-of-PPWA-24bit-function/m-p/205215#M9655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I suppose this is for the 68332 TPU PPWA function ?&lt;BR /&gt;Do you have the application note TPUPN11 where the function is described ?&lt;BR /&gt;&lt;BR /&gt;For resetting PPWA_UB it's just writing 0 to its address.&lt;BR /&gt;HTH&lt;BR /&gt;&amp;nbsp; stzari&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2008 20:18:46 GMT</pubDate>
    <dc:creator>stzari</dc:creator>
    <dc:date>2008-11-26T20:18:46Z</dc:date>
    <item>
      <title>Where to find example of PPWA (24bit!) function</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Where-to-find-example-of-PPWA-24bit-function/m-p/205214#M9654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Dear forum user,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Where can I find an example of how to use the PPWA (Time Processor Unit) function using &lt;SPAN style="text-decoration: underline;"&gt;24 bits&lt;/SPAN&gt; (instead of only 16).&lt;/DIV&gt;&lt;DIV&gt;I've already searched for answers in&amp;nbsp;this forum (and using Google)&amp;nbsp;but found none (found a related but unanswered question in this forum category). I also have the Freescale docs on the PPWA but they only describe the use of 16 bits. From this document, it seems that using 24 bits is quite easy although no real example is included.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've successfully written a program using only 16 bits but the problem is that to correctly read my sensor value (producing PWM output) I need all 24 bits. From the documentation I know that I have to reset the PPWA_UB byte after each accumulation. The question is on how to do this (it doesn't seem a trivial thing to do)?&lt;/DIV&gt;&lt;DIV&gt;Can anyone help me with this?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Help is highly appreciated,&lt;/DIV&gt;&lt;DIV&gt;Kind regards&lt;/DIV&gt;&lt;DIV&gt;bwkb&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 03:54:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Where-to-find-example-of-PPWA-24bit-function/m-p/205214#M9654</guid>
      <dc:creator>bwkb</dc:creator>
      <dc:date>2008-11-26T03:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Where to find example of PPWA (24bit!) function</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Where-to-find-example-of-PPWA-24bit-function/m-p/205215#M9655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I suppose this is for the 68332 TPU PPWA function ?&lt;BR /&gt;Do you have the application note TPUPN11 where the function is described ?&lt;BR /&gt;&lt;BR /&gt;For resetting PPWA_UB it's just writing 0 to its address.&lt;BR /&gt;HTH&lt;BR /&gt;&amp;nbsp; stzari&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 20:18:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Where-to-find-example-of-PPWA-24bit-function/m-p/205215#M9655</guid>
      <dc:creator>stzari</dc:creator>
      <dc:date>2008-11-26T20:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Where to find example of PPWA (24bit!) function</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Where-to-find-example-of-PPWA-24bit-function/m-p/205216#M9656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;gt;&amp;gt; I suppose this is for the 68332 TPU PPWA function ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Yes, it is.&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Do you have the application note TPUPN11 where the function is described ?&lt;/DIV&gt;&lt;DIV&gt;Yes, but this document only includes examples using 16 bits only. From the explanation given there all you need to do is to reset the register (as you suggested). But in practice (at least for me), it's not that simple. It don't really know where (in which part of the program) to reset this register. I've already tried different things but the content of PPWA_UB continues to increase (until overflow). It keeps on behaving as a counter.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've added the code I've written so far (doesn't work ...yet...).&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 20:45:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Where-to-find-example-of-PPWA-24bit-function/m-p/205216#M9656</guid>
      <dc:creator>bwkb</dc:creator>
      <dc:date>2008-11-26T20:45:10Z</dc:date>
    </item>
  </channel>
</rss>

