<?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 S08 Input Capture Problem in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/S08-Input-Capture-Problem/m-p/498748#M21959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all. I am using the TPM2 module, set to input capture mode, of a MCU MC9S08JM60 in order to measure the frequency of a rectangular signal. The problem is that I can not get a value by executing the following instructions:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;TPM2C1DL = TPM2C1VL; TPM2C1DH = TPM2C1VH; TPM2C1DH = TPM2C1DH * 256; TPM2C1D = TPM2C1DL + TPM2C1DH; TPM2C1D = (TPM2C1D * 12) /100000 TPM2C1D&amp;nbsp; = 1/TPM2C1D &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P&gt;(&lt;SPAN lang="en"&gt;All variables are of the type " unsigned short ")&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The module uses the BUSCLK as reference clock, which previously set in the Bypassed Internal Low Power mode, which understand that the BUSCLK is 32kHz / 2/2 = 8 kHz. What could be happening?.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Martin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2016 14:11:38 GMT</pubDate>
    <dc:creator>martindiaz</dc:creator>
    <dc:date>2016-03-01T14:11:38Z</dc:date>
    <item>
      <title>S08 Input Capture Problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/S08-Input-Capture-Problem/m-p/498748#M21959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all. I am using the TPM2 module, set to input capture mode, of a MCU MC9S08JM60 in order to measure the frequency of a rectangular signal. The problem is that I can not get a value by executing the following instructions:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;TPM2C1DL = TPM2C1VL; TPM2C1DH = TPM2C1VH; TPM2C1DH = TPM2C1DH * 256; TPM2C1D = TPM2C1DL + TPM2C1DH; TPM2C1D = (TPM2C1D * 12) /100000 TPM2C1D&amp;nbsp; = 1/TPM2C1D &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P&gt;(&lt;SPAN lang="en"&gt;All variables are of the type " unsigned short ")&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The module uses the BUSCLK as reference clock, which previously set in the Bypassed Internal Low Power mode, which understand that the BUSCLK is 32kHz / 2/2 = 8 kHz. What could be happening?.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Martin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 14:11:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/S08-Input-Capture-Problem/m-p/498748#M21959</guid>
      <dc:creator>martindiaz</dc:creator>
      <dc:date>2016-03-01T14:11:38Z</dc:date>
    </item>
  </channel>
</rss>

