<?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: eTPU PPA Overflow in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/eTPU-PPA-Overflow/m-p/1044122#M13936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked support records with below description, wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overflow sets CIS bit.&lt;BR /&gt;You can check variable StatAcc and variable Status (get_accumulation returns Status variable, get_immediate returns StatAcc).&lt;/P&gt;&lt;P&gt;If MSB of StatAcc is set and Status is cleared =&amp;gt; CIS bit was set due to overflow If MSB of StatAcc is cleared and Status is set =&amp;gt; CIS bit was set due to end of measurement and additionally there have been an overflow.&lt;BR /&gt;If MSB of StatAcc and Status are cleared both =&amp;gt; CIS bit was set due to end of measurement and there have been no overflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2020 03:30:12 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2020-06-03T03:30:12Z</dc:date>
    <item>
      <title>eTPU PPA Overflow</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/eTPU-PPA-Overflow/m-p/1044121#M13935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Section 4.3 of AN2858 for the etpu PPA function contains the text shown below.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;The functions etpu_ppa_get_immediate() and etpu_ppa_get_accumulation() return an 8 bit unsigned&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;value to indicate whether an overflow has occurred on the intermediate value or final accumulated value&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;respectively.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;An overflow is indicated when the most significant bit is set in the returned value.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;A return value of 0 indicates that no overflow has occurred.&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;I'm using eTPU on MCF5234. In my test setup, I supply a square wave to the PPA input pin and I successfully measure the period by calling etpu_ppa_get_accumulation() in the ISR for the PPA channel. If I disconnect the signal from the PPA input pin, I get overflow interrupts at the expected frequency. However, etpu_ppa_get_accumulation() returns 0 (no error) even when an overflow occurs. I must call etpu_ppa_get_immediate() to see whether an overflow has occurred. Can you explain why etpu_ppa_get_immediate() returns 0x80, but etpu_ppa_get_accumulation() returns 0x00? Is this the expected behavior? Is there any other way to read the status value to determine overflow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 00:04:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/eTPU-PPA-Overflow/m-p/1044121#M13935</guid>
      <dc:creator>joepasquariello</dc:creator>
      <dc:date>2020-06-02T00:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: eTPU PPA Overflow</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/eTPU-PPA-Overflow/m-p/1044122#M13936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked support records with below description, wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overflow sets CIS bit.&lt;BR /&gt;You can check variable StatAcc and variable Status (get_accumulation returns Status variable, get_immediate returns StatAcc).&lt;/P&gt;&lt;P&gt;If MSB of StatAcc is set and Status is cleared =&amp;gt; CIS bit was set due to overflow If MSB of StatAcc is cleared and Status is set =&amp;gt; CIS bit was set due to end of measurement and additionally there have been an overflow.&lt;BR /&gt;If MSB of StatAcc and Status are cleared both =&amp;gt; CIS bit was set due to end of measurement and there have been no overflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 03:30:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/eTPU-PPA-Overflow/m-p/1044122#M13936</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2020-06-03T03:30:12Z</dc:date>
    </item>
  </channel>
</rss>

