<?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のトピックRe: Timer counts after a SCI interrupt</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer-counts-after-a-SCI-interrupt/m-p/666049#M14030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiren,&lt;/P&gt;&lt;P&gt;You are welcome.&lt;/P&gt;&lt;P&gt;I am glad that it helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Radek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2017 16:04:55 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2017-06-20T16:04:55Z</dc:date>
    <item>
      <title>Timer counts after a SCI interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer-counts-after-a-SCI-interrupt/m-p/666047#M14028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm now working on a LIN project with S12P64 and I want to set a timeout after the last SCI receiving interrupt to check if it's the end of the frame or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My idea is to set a timer counter after a SCI interrupt. If the timer counter achieve the expected value, so the timeout is reached and we can say that the frame is end. Else if a SCI interrupt occures before timeout, we reset the timer counter to ZERO in the SCI interrupt so that it will never reach the timeout if there is data arriving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I'm not familiar with&amp;nbsp;the timer over flow, input capture and output compare. I think the input capture maybe not useful in my case so I decided to use output compare to calculate a single period after SCI interrupt. I succeded in setting an output compare to run a period task continuously but I don't know how to toggle the timer counter in the SCI interrupt, instead of toggling it automatically&amp;nbsp;by itself. Maybe reset the counter in the SCI interrupt is a good idea, but I don't know which regist I can reset the counter to 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 09:43:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer-counts-after-a-SCI-interrupt/m-p/666047#M14028</guid>
      <dc:creator>shirensun</dc:creator>
      <dc:date>2017-06-20T09:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Timer counts after a SCI interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer-counts-after-a-SCI-interrupt/m-p/666048#M14029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well the solution is found&amp;nbsp;in another question:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/452808"&gt;s12p64 number of data received by LIN&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;G240-TIM_50us_interval-CW51&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again Radek for your response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 13:02:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer-counts-after-a-SCI-interrupt/m-p/666048#M14029</guid>
      <dc:creator>shirensun</dc:creator>
      <dc:date>2017-06-20T13:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Timer counts after a SCI interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer-counts-after-a-SCI-interrupt/m-p/666049#M14030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiren,&lt;/P&gt;&lt;P&gt;You are welcome.&lt;/P&gt;&lt;P&gt;I am glad that it helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Radek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 16:04:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Timer-counts-after-a-SCI-interrupt/m-p/666049#M14030</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2017-06-20T16:04:55Z</dc:date>
    </item>
  </channel>
</rss>

