<?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>8-bit Microcontrollers中的主题 Re: HCS TPM Module Port Control</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS-TPM-Module-Port-Control/m-p/124536#M348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="2"&gt;Hello FC,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I guess the two choices are to use the timer channel to directly control the channel pin, or to use the timer as an interrupt only source, without affecting the I/O pin.&amp;nbsp; It sounds like you require the second option.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;With the direct control method, the interrupt latency does not affect the output waveform.&amp;nbsp; However, with the interrupt only method variations&amp;nbsp;in the&amp;nbsp;interrupt latency will affect the pulse timing.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;When driving a visual LED, small variations likely do not matter.&amp;nbsp; For a non-critical 500 ms pulse, I would probably tend to use multiples of the timer overflow period to generated the pulse width&amp;nbsp;timing, rather than a timer channel.&amp;nbsp; Simplest operation of the timer channel occurs for pulse widths less than the overflow period.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;BR /&gt;Mac&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jul 2006 12:24:41 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2006-07-20T12:24:41Z</dc:date>
    <item>
      <title>HCS TPM Module Port Control</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS-TPM-Module-Port-Control/m-p/124535#M347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am using the input capture and output compare functions.&amp;nbsp; Basically, in the IC ISR, every 30th pulse, an led lights up for 500ms.&amp;nbsp; Using the captured time, an offset is added to the output compare registers.&amp;nbsp; In the OC ISR, the led turns off.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The led is turned off by port control, not using the toggle/set/clear feature of the output compare.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Question:&amp;nbsp; if the port pin for the led is set and the clear on compare is set, does port value for the led remain latched?&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 10:41:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS-TPM-Module-Port-Control/m-p/124535#M347</guid>
      <dc:creator>FC</dc:creator>
      <dc:date>2006-07-20T10:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: HCS TPM Module Port Control</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS-TPM-Module-Port-Control/m-p/124536#M348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="2"&gt;Hello FC,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I guess the two choices are to use the timer channel to directly control the channel pin, or to use the timer as an interrupt only source, without affecting the I/O pin.&amp;nbsp; It sounds like you require the second option.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;With the direct control method, the interrupt latency does not affect the output waveform.&amp;nbsp; However, with the interrupt only method variations&amp;nbsp;in the&amp;nbsp;interrupt latency will affect the pulse timing.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;When driving a visual LED, small variations likely do not matter.&amp;nbsp; For a non-critical 500 ms pulse, I would probably tend to use multiples of the timer overflow period to generated the pulse width&amp;nbsp;timing, rather than a timer channel.&amp;nbsp; Simplest operation of the timer channel occurs for pulse widths less than the overflow period.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;BR /&gt;Mac&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 12:24:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS-TPM-Module-Port-Control/m-p/124536#M348</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-07-20T12:24:41Z</dc:date>
    </item>
  </channel>
</rss>

