<?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: MCF51JM Input Capture values in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF51JM-Input-Capture-values/m-p/187902#M8021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I answered my own question above by experimenting, however, the problem I have now is the Timer count values are just incrementing on each interrupt, not resetting back to zero after each int is processed.&lt;/P&gt;&lt;P&gt;I'm not sure what I am doing wrong.&lt;/P&gt;&lt;P&gt;For each IC Int I read the values from (TPMxCnVH:TPMxCnVL) which are approximatly what I expect when read (value increases by approx 280 per read), which is about 64uS trigger time.&lt;/P&gt;&lt;P&gt;I can't seem to get (TPMxCnVH:TPMxCnVL) to revert back to zero after they are read.&lt;/P&gt;&lt;P&gt;The CF doc states "The latching mechanism may be manually reset by writing to the TPMxCnSC register", I am doing this by clearing bit 7 of the (TPMxCnSC) which is CHnF, what else am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ross&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2009 09:19:15 GMT</pubDate>
    <dc:creator>Bloodhound</dc:creator>
    <dc:date>2009-06-08T09:19:15Z</dc:date>
    <item>
      <title>MCF51JM Input Capture values</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF51JM-Input-Capture-values/m-p/187901#M8020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a MCF51JM running off an 8MHz XTAL.&lt;/P&gt;&lt;P&gt;I want to use one of the timers to monitor pulse data coming in and measure the input capture toggle times.&lt;/P&gt;&lt;P&gt;What is the best method for calculating out how I need to set up the Timer Registers (Prescalers etc) to be able to measure bit times between 16uS and 300uS?.&lt;/P&gt;&lt;P&gt;I assume the best method is once I get an Int from the Timer I will read the TPM-Counter Registers (TPMxCNTH:TPMxCNTL) to get the value and compare it to 'x' to determine the time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm just not sure how to calculate out for a given clock frequency and prescaler value what 100 or 400 (as examples) in the (TPMxCNTH:TPMxCNTL) registers corresponds to as a uS time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Ross&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 14:54:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF51JM-Input-Capture-values/m-p/187901#M8020</guid>
      <dc:creator>Bloodhound</dc:creator>
      <dc:date>2009-06-05T14:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: MCF51JM Input Capture values</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF51JM-Input-Capture-values/m-p/187902#M8021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I answered my own question above by experimenting, however, the problem I have now is the Timer count values are just incrementing on each interrupt, not resetting back to zero after each int is processed.&lt;/P&gt;&lt;P&gt;I'm not sure what I am doing wrong.&lt;/P&gt;&lt;P&gt;For each IC Int I read the values from (TPMxCnVH:TPMxCnVL) which are approximatly what I expect when read (value increases by approx 280 per read), which is about 64uS trigger time.&lt;/P&gt;&lt;P&gt;I can't seem to get (TPMxCnVH:TPMxCnVL) to revert back to zero after they are read.&lt;/P&gt;&lt;P&gt;The CF doc states "The latching mechanism may be manually reset by writing to the TPMxCnSC register", I am doing this by clearing bit 7 of the (TPMxCnSC) which is CHnF, what else am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ross&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 09:19:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF51JM-Input-Capture-values/m-p/187902#M8021</guid>
      <dc:creator>Bloodhound</dc:creator>
      <dc:date>2009-06-08T09:19:15Z</dc:date>
    </item>
  </channel>
</rss>

