<?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: Output Compare in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare/m-p/141060#M3211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Cheers, sounds simple enough.&lt;/P&gt;&lt;P&gt;For example OC7M (mask) and OC7D (data) regsiters. What are they and why 8 bit?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jun 2006 12:44:58 GMT</pubDate>
    <dc:creator>ernestsnaith</dc:creator>
    <dc:date>2006-06-27T12:44:58Z</dc:date>
    <item>
      <title>Output Compare</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare/m-p/141058#M3209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Please could someone explain how the output compare is used on S12XDT512, im&amp;nbsp;told it can be used to create a pulse of a certain duration with no program interaction, after it has been executed.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Do you simply load a value into the compare register and when the timer hits this value it toggles, sets, clears the relevant pin? What are the mask and data registers, how do you use this to create a pulse?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Many Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Erny&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 01:07:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare/m-p/141058#M3209</guid>
      <dc:creator>ernestsnaith</dc:creator>
      <dc:date>2006-06-27T01:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Output Compare</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare/m-p/141059#M3210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Yes, that's pretty much how you do it.&amp;nbsp; Of course there is a bit of initialization/configuration that you have to do before it works - is that what you're asking about?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Generally, you have to enable the timer, set the clock dividers to a suitable range for your application, set it to output compare mode on the timer channel/pin of your choice,&amp;nbsp;configure to set, clear, or toggle and write the appropriate value into the compare register for that channel/pin.&amp;nbsp; Then when the counter rolls around to that value, it sets or clears or toggles that pin.&amp;nbsp; If you want only one pulse, then you might want to enable an interrupt on that channel so you can disable the timer - otherwise it will keep setting or clearing or toggling every time the counter rolls around.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm not sure what you mean by 'mask and data registers'...&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 10:12:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare/m-p/141059#M3210</guid>
      <dc:creator>rhinoceroshead</dc:creator>
      <dc:date>2006-06-27T10:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Output Compare</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare/m-p/141060#M3211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Cheers, sounds simple enough.&lt;/P&gt;&lt;P&gt;For example OC7M (mask) and OC7D (data) regsiters. What are they and why 8 bit?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2006 12:44:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare/m-p/141060#M3211</guid>
      <dc:creator>ernestsnaith</dc:creator>
      <dc:date>2006-06-27T12:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Output Compare</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare/m-p/141061#M3212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Erny,&lt;BR /&gt;&lt;BR /&gt;Are you reading in the data sheet? That might help. You could ask specific questions about certain registers by name if you don't understand what it means.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.freescale.com/files/microcontrollers/doc/data_sheet/MC9S12XDP512V2.pdf" target="test_blank"&gt;http://www.freescale.com/files/microcontrollers/doc/data_sheet/MC9S12XDP512V2.pdf&lt;/A&gt;&lt;BR /&gt;Chapter 10&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 20:14:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare/m-p/141061#M3212</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2006-06-28T20:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Output Compare</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare/m-p/141062#M3213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;I am asking specific questions about the registers which i dont understand after reading the datasheet, the mask register and the data registers. Pages 457-8. &lt;P&gt;Message Edited by ernestsnaith on &lt;SPAN class="date_text"&gt;2006-06-28&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;03:06 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by ernestsnaith on &lt;SPAN class="date_text"&gt;2006-06-28&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;03:06 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 03:03:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare/m-p/141062#M3213</guid>
      <dc:creator>ernestsnaith</dc:creator>
      <dc:date>2006-06-29T03:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Output Compare</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare/m-p/141063#M3214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;OK, here are some specific answers, I'm not trying to be sarcastic--I do hope these answers help...&lt;BLOCKQUOTE&gt;&lt;HR /&gt;ernestsnaith wrote:&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Cheers, sounds simple enough.&lt;/P&gt;&lt;P&gt;For example OC7M (mask) and OC7D (data) regsiters. What are they and why 8 bit?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;One thing to note about Output Compare 7 is that it has a special purpose and it is easier to ignore it until the other output compares are figured out. OC7D can be used to simultaneously update all the other output compares (a timed parallel output). You would not normally use this except on multiple OC channels that are not being used otherwise. The mask tells it only those channels you intend to control with OC7.&lt;BR /&gt;&lt;BR /&gt;They are 8 bit because they did not want to waste bus width in the architecture by limiting them to 5 bit.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 21:00:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Output-Compare/m-p/141063#M3214</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2006-06-29T21:00:23Z</dc:date>
    </item>
  </channel>
</rss>

