<?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: S12X Pulse Accumulator Troubles in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Pulse-Accumulator-Troubles/m-p/151341#M4312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Port T pins are ECT pins, not TIM pins. S12XE has both TIM, and ECT timers, but connected to different ports.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2012 22:09:36 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2012-04-03T22:09:36Z</dc:date>
    <item>
      <title>S12X Pulse Accumulator Troubles</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Pulse-Accumulator-Troubles/m-p/151340#M4311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to count pulses on an input pin using the pulse accumulator, but it's always saying there have been no pulses. I'm using a MC9S12XEP100. My initialisation code is this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; TIM_PACTL_PAEN = 1;&lt;BR /&gt;&amp;nbsp; TIM_PACTL_PAMOD = 0;&lt;BR /&gt;&amp;nbsp; TIM_PACTL_PEDGE = 1;&lt;BR /&gt;&amp;nbsp; DDRT_DDRT7 = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I'm inputing a 1kHz square wave into PT7. but TIM_PACNT is always 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;reading through the datasheet I think I read that I should add the code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TIM_TIOS_IOS7 = 1;&lt;BR /&gt;&amp;nbsp; TIM_TCTL1_OM7 = 0;&lt;BR /&gt;&amp;nbsp; TIM_TCTL1_OL7 = 0;&lt;BR /&gt;&amp;nbsp; TIM_OC7M_OC7M7 = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I don't understand why. And it doesn't fix anything anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something? Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 21:59:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Pulse-Accumulator-Troubles/m-p/151340#M4311</guid>
      <dc:creator>jamienicol</dc:creator>
      <dc:date>2012-04-03T21:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: S12X Pulse Accumulator Troubles</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Pulse-Accumulator-Troubles/m-p/151341#M4312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Port T pins are ECT pins, not TIM pins. S12XE has both TIM, and ECT timers, but connected to different ports.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 22:09:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Pulse-Accumulator-Troubles/m-p/151341#M4312</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-04-03T22:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: S12X Pulse Accumulator Troubles</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Pulse-Accumulator-Troubles/m-p/151342#M4313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it's TIMIOC7 rather than IOC7, ie Port P not T.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still, I updated the code and switched my input signal to the correct pin and still no luck. Any other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 22:47:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Pulse-Accumulator-Troubles/m-p/151342#M4313</guid>
      <dc:creator>jamienicol</dc:creator>
      <dc:date>2012-04-03T22:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: S12X Pulse Accumulator Troubles</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Pulse-Accumulator-Troubles/m-p/151343#M4314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default TIM is routed to port R, not P. Use PTRRR to route TIM pins to port P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 01:20:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Pulse-Accumulator-Troubles/m-p/151343#M4314</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-04-04T01:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: S12X Pulse Accumulator Troubles</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Pulse-Accumulator-Troubles/m-p/151344#M4315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! It works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 16:34:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Pulse-Accumulator-Troubles/m-p/151344#M4315</guid>
      <dc:creator>jamienicol</dc:creator>
      <dc:date>2012-04-04T16:34:07Z</dc:date>
    </item>
  </channel>
</rss>

