<?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: Questions of using capture timer for pulse width measure? in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Questions-of-using-capture-timer-for-pulse-width-measure/m-p/196853#M5166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;It seems to be misunderstanding.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;rising or falling edge: means that the user doesn't care and PE uses rising or falling edge&lt;BR /&gt;both edges: capture appears at any edge - at rising edge and also on falling edge&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Generally the information about property value which is really used by PE can be found in the 3rd column of bean inspector (for more info please see attachement).&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;In case if you need to measure the duty (time between rising and falling edge) you have to set the property "Edge" to "both edges" then the "OnCapture" event will occurs within rising and falling edges.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2009 20:18:43 GMT</pubDate>
    <dc:creator>ProcessorExpert</dc:creator>
    <dc:date>2009-07-15T20:18:43Z</dc:date>
    <item>
      <title>Questions of using capture timer for pulse width measure?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Questions-of-using-capture-timer-for-pulse-width-measure/m-p/196852#M5165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My MPU: HCS12. Task: Measure RF controller PWM signal duty cycle. PWM frequency= 44.5Hz i.e. period= 22.5ms. PWM maxmum duty cycle 1.9ms. I tried one PWM signal takes two timers. say, RF AILERON PMW connects to PT0 &amp;amp;PT4. PT0 rising edge capture, PT4 falling edge capture. It works fine. The period is the interval of two rising edges and duty is the interval of one rising and one falling edge.&lt;/P&gt;&lt;P&gt;But I am tight on timer ports, I have 5 such PWMs would need 10 timers ports this way. So I tried in codewarrior "capture bean property" to setup "capture ' rising or falling edge' ".&amp;nbsp; through comparing the capture intervals with 1.9ms to determine whether it is duty or not. But the data I got is only the PWM period, no duty at all in this way. The possibility should be capture only happen at one kind of edge, say only capture at rising edge.&lt;/P&gt;&lt;P&gt;Is there anything wrong with the setup? I don't think that I should setup capture with both edges, that way two captures(one rising ,one falling)cause one interrupt, my understanding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any comments would be really appreciated!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 08:25:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Questions-of-using-capture-timer-for-pulse-width-measure/m-p/196852#M5165</guid>
      <dc:creator>louiswang</dc:creator>
      <dc:date>2009-07-07T08:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Questions of using capture timer for pulse width measure?</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Questions-of-using-capture-timer-for-pulse-width-measure/m-p/196853#M5166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;It seems to be misunderstanding.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;rising or falling edge: means that the user doesn't care and PE uses rising or falling edge&lt;BR /&gt;both edges: capture appears at any edge - at rising edge and also on falling edge&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Generally the information about property value which is really used by PE can be found in the 3rd column of bean inspector (for more info please see attachement).&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;In case if you need to measure the duty (time between rising and falling edge) you have to set the property "Edge" to "both edges" then the "OnCapture" event will occurs within rising and falling edges.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 20:18:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Questions-of-using-capture-timer-for-pulse-width-measure/m-p/196853#M5166</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2009-07-15T20:18:43Z</dc:date>
    </item>
  </channel>
</rss>

