<?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: to use periodic interrupt timer(PIT)</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/to-use-periodic-interrupt-timer-PIT/m-p/270852#M9905</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 am working on MC9S12XDP512 microcontroller.and i have interfaced with proximity sensor. i have given 5v power supply and i was getting 5v when the obstacle was not present and 0v for when the obstacle was there. my objective is ,,,,,,when the obstacle is present for 2 seconds afterwards the LED should glow. or when there is no obstacle for 2 seconds afterwards also the LED should glow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; so...i have used normal timer programing ...but i am not getting.so is better to use periodic interrupt timer(PIT).&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Feb 2013 14:20:12 GMT</pubDate>
    <dc:creator>navaneeth_ankam</dc:creator>
    <dc:date>2013-02-24T14:20:12Z</dc:date>
    <item>
      <title>to use periodic interrupt timer(PIT)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/to-use-periodic-interrupt-timer-PIT/m-p/270851#M9904</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 am working on MC9S12XDP512 microcontroller.and i have interfaced with proximity sensor. i have given 5v power supply and i was getting 5v when the obstacle was not present and 0v for when the obstacle was there. my objective is ,,,,,,when the obstacle is present for 2 seconds afterwards the LED should glow. or when there is no obstacle for 2 seconds afterwards also the LED should glow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; so...i have used normal timer programing ...but i am not getting.so is better to use periodic interrupt timer(PIT).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 13:58:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/to-use-periodic-interrupt-timer-PIT/m-p/270851#M9904</guid>
      <dc:creator>navaneeth_ankam</dc:creator>
      <dc:date>2013-02-24T13:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: to use periodic interrupt timer(PIT)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/to-use-periodic-interrupt-timer-PIT/m-p/270852#M9905</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 am working on MC9S12XDP512 microcontroller.and i have interfaced with proximity sensor. i have given 5v power supply and i was getting 5v when the obstacle was not present and 0v for when the obstacle was there. my objective is ,,,,,,when the obstacle is present for 2 seconds afterwards the LED should glow. or when there is no obstacle for 2 seconds afterwards also the LED should glow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; so...i have used normal timer programing ...but i am not getting.so is better to use periodic interrupt timer(PIT).&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 14:20:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/to-use-periodic-interrupt-timer-PIT/m-p/270852#M9905</guid>
      <dc:creator>navaneeth_ankam</dc:creator>
      <dc:date>2013-02-24T14:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: to use periodic interrupt timer(PIT)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/to-use-periodic-interrupt-timer-PIT/m-p/270853#M9906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PIT is suited for output compare function only (generate period). I think that it will be difficult to use PIT for measuring of pulse with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood correctly, your problem with normal timer (ECT) is 2s interval = too long for TCNT timer. Correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In attachment you can find simple example code for measuring of pulse width by ECT module. This example code uses overflow interrupt for measuring longer pulses (longer than TCNT period). I suppose that you can simply modify this code for measuring both (0V and 5V) pulses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also simply testing overflow variable for 2s limit in overflow interrupt routine. &lt;/P&gt;&lt;P&gt;Note: There is necessary take into account error of one TCNT period. If you want get better accuracy (of 2s limit), you should calculate with last value of TCx timer/resets TCx timer value….&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 16:01:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/to-use-periodic-interrupt-timer-PIT/m-p/270853#M9906</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2013-02-25T16:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: to use periodic interrupt timer(PIT)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/to-use-periodic-interrupt-timer-PIT/m-p/270854#M9907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank u...radek&lt;/P&gt;&lt;P&gt;i will try with this....and get back you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 15:32:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/to-use-periodic-interrupt-timer-PIT/m-p/270854#M9907</guid>
      <dc:creator>navaneeth_ankam</dc:creator>
      <dc:date>2013-02-26T15:32:59Z</dc:date>
    </item>
  </channel>
</rss>

