<?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 Timer Issue in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Timer-Issue/m-p/173312#M5957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you test and debug separate components of your software? I doubt someone will find it interesting to waste ftime looking for all issues for you? Quick scan revealed two of them, and that's enough for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; TFLG1_C5F&amp;nbsp;&amp;nbsp; = 1;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;^^ this is WRONG. You are clearing all timer flags here, not just C5F.TFLG1 = TFLG1_C5F_MASK clears just C5F.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have defined unsigned char txbuff[7]; and other arrays, but are accessing not existing 7th element of txbuff, while top index is 6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jan 2011 20:03:06 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2011-01-03T20:03:06Z</dc:date>
    <item>
      <title>S12X Timer Issue</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Timer-Issue/m-p/173311#M5956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a problem with Input capture&amp;nbsp;on&amp;nbsp;&amp;nbsp;mc9s12xs128&amp;nbsp; (a proto board with crystal frequency&amp;nbsp;of 16MHz) controller.Iam trying to capture signals from a function generator on two input capture&amp;nbsp;channels. The registers for capturing are configured in steps as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Timer overflow enabled and Timer prescalar set to 8 (i.e.timer clock=Busclock/8)&lt;/LI&gt;&lt;LI&gt;Input capture channels selected&lt;/LI&gt;&lt;LI&gt;Capture on rising edges only&lt;/LI&gt;&lt;LI&gt;Clear the flags(TFLG1)&lt;/LI&gt;&lt;LI&gt;Enable the timer&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ISR pending, timer overflow below a specific frequency, min value issues have been handled in the program. My problem is, when&amp;nbsp; my initial frequency(min frequency) is set, the output values do not show up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another program where I have CAN messages to be published.I shall&amp;nbsp;acquire the above signals and publish the&amp;nbsp;output values on the CAN&amp;nbsp;bus. CAN bus is also running on 16Mhz crystal with 250K baud. This time the output values do not run at all. What could be the poblem, unable to trace. Iam attatching my program , any quick response is highly appreciable.&lt;/P&gt;&lt;P&gt;Thanx in advance&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 19:08:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Timer-Issue/m-p/173311#M5956</guid>
      <dc:creator>vishaka_maithil</dc:creator>
      <dc:date>2011-01-03T19:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: S12X Timer Issue</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Timer-Issue/m-p/173312#M5957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you test and debug separate components of your software? I doubt someone will find it interesting to waste ftime looking for all issues for you? Quick scan revealed two of them, and that's enough for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; TFLG1_C5F&amp;nbsp;&amp;nbsp; = 1;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;^^ this is WRONG. You are clearing all timer flags here, not just C5F.TFLG1 = TFLG1_C5F_MASK clears just C5F.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have defined unsigned char txbuff[7]; and other arrays, but are accessing not existing 7th element of txbuff, while top index is 6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 20:03:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Timer-Issue/m-p/173312#M5957</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-01-03T20:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: S12X Timer Issue</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Timer-Issue/m-p/173313#M5958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kef,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I did test the components individually. Digital signals are working fine without CAN integration in it but when combined with CAN, digital signal counters are running but not the variable updation.&lt;/P&gt;&lt;P&gt;When I run the program,&amp;nbsp;or set a breakpoint at the timer channel interrupt, it stops at delay counter. I think there is an issue with the delay counter n if I sont include the delay at all, the program stops at while loop (wait for transmission complete).&lt;/P&gt;&lt;P&gt;and,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am clearing the specific channel's flag by writing a 1 to C5F bit of TFLG1 register and not all the flags. If thats so, I have cleared all flags of TFLG1 by writing 0xFF to it in the ECT initialization.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are correct that I have defined an array of txbuff but not able to access the 7th element of it.I will look into it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you got me clearly this time.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 12:47:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Timer-Issue/m-p/173313#M5958</guid>
      <dc:creator>vishaka_maithil</dc:creator>
      <dc:date>2011-01-04T12:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: S12X Timer Issue</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Timer-Issue/m-p/173314#M5959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;I am clearing the specific channel's flag by writing a 1 to C5F bit of TFLG1 register and not all the flags.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NO! TFLG1_C5F = 1 clears ALL flags in TFLG1 register. The effect of TFLG1_C5F=1 is the same like TFLG1 = 0xFF.Why? - Search the forum. I have explained it N times already.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 14:17:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-Timer-Issue/m-p/173314#M5959</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-01-04T14:17:48Z</dc:date>
    </item>
  </channel>
</rss>

