<?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 9s08qd 125khz Carrier Detection in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/9s08qd-125khz-Carrier-Detection/m-p/202664#M16701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AN3552 example for pulse width measurement doesn't work beyond few kHz, target enters in wait stop mode !!!!!&lt;/P&gt;&lt;P&gt;(i've modify this note&amp;nbsp;for "rising edge only detection" in order to calculate periode)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that AD compare function on QD4 will work better with shorter AD convertion time.... is there any example about ?&lt;/P&gt;&lt;P&gt;Any solution or help should be welcomed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 May 2010 17:57:52 GMT</pubDate>
    <dc:creator>ksirob</dc:creator>
    <dc:date>2010-05-21T17:57:52Z</dc:date>
    <item>
      <title>9s08qd 125khz Carrier Detection</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/9s08qd-125khz-Carrier-Detection/m-p/202664#M16701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AN3552 example for pulse width measurement doesn't work beyond few kHz, target enters in wait stop mode !!!!!&lt;/P&gt;&lt;P&gt;(i've modify this note&amp;nbsp;for "rising edge only detection" in order to calculate periode)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that AD compare function on QD4 will work better with shorter AD convertion time.... is there any example about ?&lt;/P&gt;&lt;P&gt;Any solution or help should be welcomed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 17:57:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/9s08qd-125khz-Carrier-Detection/m-p/202664#M16701</guid>
      <dc:creator>ksirob</dc:creator>
      <dc:date>2010-05-21T17:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: 9s08qd 125khz Carrier Detection</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/9s08qd-125khz-Carrier-Detection/m-p/202665#M16702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are referring to the conversion time of the ADC module, this has nothing to do with the use of tha analogue comparator, the output of which I would assume would be externally connected to a channel input pin of the TPM module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The likely reason that you would not be able to measue the period of an external signal, wnen its frequency exceeded&amp;nbsp;&amp;nbsp;"a few kilohertz", is that the period would become&amp;nbsp;less than the ISR processing time for each&amp;nbsp;input capture event.&amp;nbsp; Do you have maximum allowable bus frequency?&amp;nbsp; Are you performing unnecessary operations within the ISR code?&amp;nbsp; To improve the performance the ISR code should be minimal.&amp;nbsp; Perhaps you should consider inline assembly code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To measure 125kHz, a period of 8 microseconds, and assuming a bus clock of 8 MHz, and allowing for the interrupt call, the execution of the ISR code should not exceed 30-40 cycles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 May 2010 17:32:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/9s08qd-125khz-Carrier-Detection/m-p/202665#M16702</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-05-23T17:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: 9s08qd 125khz Carrier Detection</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/9s08qd-125khz-Carrier-Detection/m-p/202666#M16703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further to my previous post, I notice that the 9S08QD4 does not contain an analogue comparator.&amp;nbsp; If this is required to "square up" the waveform applied to the TPM module, it would need to be an external component.&amp;nbsp; Additionally, the device makes no provision for an external clock for accurate measurement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the subject of the period measurement, I think that the feasibility is quite borderline of being able to measure the period of frequencies as high as 125 kHz.&amp;nbsp; Anyway, as there are only 64 bus cycles within the period, the resolution of the measurement will be extremely limited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The direct measurement of frequency would potentially provide much more resolution, depending on the gate interval used.&amp;nbsp; However, frequency measurement would occupy two TPM modules, one to count the incoming cycles (via external TPM input) and the other for the gate timing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 08:11:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/9s08qd-125khz-Carrier-Detection/m-p/202666#M16703</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-05-24T08:11:54Z</dc:date>
    </item>
  </channel>
</rss>

