<?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: Input Capture/Output Compare in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Output-Compare/m-p/171981#M11692</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;I have not used a device containing a FTM module, but this module is said to be backward-compatible with the TPM module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The timer module within the HC05 device has dedicated input capture and output compare pins.&amp;nbsp; For the FTM module (and TPM module), each channel is associated with a specific GPIO pin, which is used for timer operation whenever the channel is enabled for input capture, output compare or PWM operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each channel may be configured for input capture&amp;nbsp;on positive edges, negative edges, or on&amp;nbsp;both edges of the input waveform.&amp;nbsp; For output compare mode, you may set, clear or toggle the channel output on each compare.&amp;nbsp; When the timer channel is disabled, the pin will assume the GPIO setting.&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>Fri, 15 Jun 2012 23:00:00 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2012-06-15T23:00:00Z</dc:date>
    <item>
      <title>Input Capture/Output Compare</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Output-Compare/m-p/171980#M11691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The HC05 had this feature, where a preset state was set out on a pin once a timeout or an edge event occurs on another pin:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BSET&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IEDG1,TCR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;SET INPUT CAPTURE 1 FOR POSITIVE EDGE SENSITIVITY&lt;/P&gt;&lt;P&gt;BSET&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OLVL1,TCR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;AT TIMEOUT, WRITE A 1 TO OUTPUT COMPARE 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user can also force the Output Compare:&lt;/P&gt;&lt;P&gt;BCLR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OLVL1,TCR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;SET BIT LOW&lt;/P&gt;&lt;P&gt;BSET&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FOLV1,TCR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;FORCE BIT OUT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The HCS08 I'm using has this complicated FTM module, which does A LOT, but there is no simple way to replicate this feature.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moving up from HC05 to S08 is complicating things for me. Is there a trick to this on the S08?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The closest thing I can think of is using interrupts, but that requires a lot of time between the external interrupt and output signal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 03:05:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Output-Compare/m-p/171980#M11691</guid>
      <dc:creator>AndreiLuchuk</dc:creator>
      <dc:date>2012-06-14T03:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Input Capture/Output Compare</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Output-Compare/m-p/171981#M11692</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;I have not used a device containing a FTM module, but this module is said to be backward-compatible with the TPM module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The timer module within the HC05 device has dedicated input capture and output compare pins.&amp;nbsp; For the FTM module (and TPM module), each channel is associated with a specific GPIO pin, which is used for timer operation whenever the channel is enabled for input capture, output compare or PWM operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each channel may be configured for input capture&amp;nbsp;on positive edges, negative edges, or on&amp;nbsp;both edges of the input waveform.&amp;nbsp; For output compare mode, you may set, clear or toggle the channel output on each compare.&amp;nbsp; When the timer channel is disabled, the pin will assume the GPIO setting.&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>Fri, 15 Jun 2012 23:00:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Output-Compare/m-p/171981#M11692</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2012-06-15T23:00:00Z</dc:date>
    </item>
  </channel>
</rss>

