<?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>S12 / MagniV Microcontrollers中的主题 Output Compare (Manually setting) for mc9s12xdt512 with CW 4.6</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare-Manually-setting-for-mc9s12xdt512-with-CW-4-6/m-p/134301#M2033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to use an output compare channel to deliver a pulse when needed of a precise duration. Therefore when i require this pulse i call a function including:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&lt;SPAN style="color: #330000;"&gt;PTT_PTT6 = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; // manually set OC channel 6 high&lt;/SPAN&gt;&lt;SPAN style="color: #330000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #330000;"&gt;TC6 = TCNT + 5000; &amp;nbsp;&amp;nbsp; &amp;nbsp; // Set OC to clear OC6 after set time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Arial;"&gt;I believe i have set up the OC channel properly so that it clears the channel on a succesful compare. However i dont think i am manually setting the channel correctly to begin with, (first line). What is the correct way to manually set OC channels.&lt;BR /&gt;&lt;BR /&gt;Many Thanks&lt;BR /&gt;&lt;BR /&gt;CW 4.6&lt;BR /&gt;mc9s12xdt512&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by J2MEJediMaster on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-05-21&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;01:19 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2007 00:15:35 GMT</pubDate>
    <dc:creator>ernestsnaith</dc:creator>
    <dc:date>2007-05-21T00:15:35Z</dc:date>
    <item>
      <title>Output Compare (Manually setting) for mc9s12xdt512 with CW 4.6</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare-Manually-setting-for-mc9s12xdt512-with-CW-4-6/m-p/134301#M2033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to use an output compare channel to deliver a pulse when needed of a precise duration. Therefore when i require this pulse i call a function including:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&lt;SPAN style="color: #330000;"&gt;PTT_PTT6 = 1;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; // manually set OC channel 6 high&lt;/SPAN&gt;&lt;SPAN style="color: #330000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #330000;"&gt;TC6 = TCNT + 5000; &amp;nbsp;&amp;nbsp; &amp;nbsp; // Set OC to clear OC6 after set time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: Arial;"&gt;I believe i have set up the OC channel properly so that it clears the channel on a succesful compare. However i dont think i am manually setting the channel correctly to begin with, (first line). What is the correct way to manually set OC channels.&lt;BR /&gt;&lt;BR /&gt;Many Thanks&lt;BR /&gt;&lt;BR /&gt;CW 4.6&lt;BR /&gt;mc9s12xdt512&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by J2MEJediMaster on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-05-21&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;01:19 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 00:15:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare-Manually-setting-for-mc9s12xdt512-with-CW-4-6/m-p/134301#M2033</guid>
      <dc:creator>ernestsnaith</dc:creator>
      <dc:date>2007-05-21T00:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Output Compare (Manually setting)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare-Manually-setting-for-mc9s12xdt512-with-CW-4-6/m-p/134302#M2034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I've figured out how to do this using OC7 mask and data registers but is this the only way? seems a waste of a channel.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 04:20:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare-Manually-setting-for-mc9s12xdt512-with-CW-4-6/m-p/134302#M2034</guid>
      <dc:creator>ernestsnaith</dc:creator>
      <dc:date>2007-05-21T04:20:40Z</dc:date>
    </item>
  </channel>
</rss>

