<?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>8-bit MicrocontrollersのトピックRe: Detecting Rising &amp; Fallin Edge Interrupts(KBI) on MC68HC908QB8....</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Detecting-Rising-Fallin-Edge-Interrupts-KBI-on-MC68HC908QB8/m-p/144600#M6892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello San_jon,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;When using both positive and negative edge for KBI, a factor to keep in mind is that there will be a pull-up current&amp;nbsp;when negative edge is selected for an input, but&amp;nbsp;this will change to a pull-down current for positive edge.&amp;nbsp; If you are actively driving the input, this is unlikely to be a problem.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;However, if you happen to be sensing the closure and release of a switch contact, there is a potential problem.&amp;nbsp; Since it&amp;nbsp;appears not possible to disable the pull-up/pull-down current&amp;nbsp;when KBI is enabled, you may need to use an external pull-up resistor of a sufficiently low value to over-ride the effect of the pull-down current.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;An alternative method to trigger an interrupt on either edge or both edges of an input,&amp;nbsp;is to utilize a&amp;nbsp;TIM channel in input capture mode.&amp;nbsp; Of course, the capture time would be irrelevant in this case.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2007 20:11:54 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2007-09-07T20:11:54Z</dc:date>
    <item>
      <title>Detecting Rising &amp; Fallin Edge Interrupts(KBI) on MC68HC908QB8....</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Detecting-Rising-Fallin-Edge-Interrupts-KBI-on-MC68HC908QB8/m-p/144597#M6889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In My application I am using 3 KBI for Hardware interrupts. But i need to detect both edges o the signal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So my concept is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Set up KBI for Fallin EDGE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. detect the KBI interrupt. And Change the interrupt edge Detectin Polarity of Interrupt Last Registered. Using KBIPR(Interrupt Polarity Setting Register as mentioned in the Datasheet.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MY problems&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A. When i implement the above in Codewarrior 3.1. In the header File, KBIPR is not defined. I defined it myself. but it does not seem to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;B. If i use Processor Expert, there Only Falling Edge and Low level interrupt type can be defined And if i choose rising edge, it gives an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So i need Suggestion/Idea on this Subject.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a). Is it a viable idea to change the setting of the Register in the middle of running aplpication? is it recommended?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b). Does QB8 Support positive EDGE/ LEVEL interrupt on KBI pin.? (Datasheet Says YES, but PE does not).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c). Is there any other method to detct both edges using this 8-bit MCU?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Suggestions will be Appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance For your Reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;San_jon&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 12:39:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Detecting-Rising-Fallin-Edge-Interrupts-KBI-on-MC68HC908QB8/m-p/144597#M6889</guid>
      <dc:creator>san_jon</dc:creator>
      <dc:date>2007-09-07T12:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Rising &amp; Fallin Edge Interrupts(KBI) on MC68HC908QB8....</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Detecting-Rising-Fallin-Edge-Interrupts-KBI-on-MC68HC908QB8/m-p/144598#M6890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello and welcome san_jon,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Yes your basic concept is sound.&lt;/DIV&gt;&lt;DIV&gt;The QB does support either edge KBI interrupts and it is quite normal to flip the polarity "on the fly".&lt;/DIV&gt;&lt;DIV&gt;Possibly what you are seeing is poor support for this newer device (relative to CW3.1).&lt;/DIV&gt;&lt;DIV&gt;Is there a patch for the QB? have you installed it?&lt;/DIV&gt;&lt;DIV&gt;Probably the best thing to do is download the latest free version 6.0 which will no doubt have these issues "ironed out"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by peg on &lt;SPAN class="date_text"&gt;2007-09-07&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;04:38 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 13:37:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Detecting-Rising-Fallin-Edge-Interrupts-KBI-on-MC68HC908QB8/m-p/144598#M6890</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-09-07T13:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Rising &amp; Fallin Edge Interrupts(KBI) on MC68HC908QB8....</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Detecting-Rising-Fallin-Edge-Interrupts-KBI-on-MC68HC908QB8/m-p/144599#M6891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello PEG,&lt;BR /&gt;&lt;BR /&gt;Thanks for your Reply.&lt;BR /&gt;&lt;BR /&gt;I assume i was misguided by Processor Expert v3.1. As i&amp;nbsp; added the KBIPR reg in header file myself and tried it. it seems to work now.&lt;BR /&gt;&lt;BR /&gt;I will download the latest version as suggested by you, to avoid such confusion in Future.&lt;BR /&gt;&lt;BR /&gt;Thanks Again for your Feedback.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;San_jon&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 14:03:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Detecting-Rising-Fallin-Edge-Interrupts-KBI-on-MC68HC908QB8/m-p/144599#M6891</guid>
      <dc:creator>san_jon</dc:creator>
      <dc:date>2007-09-07T14:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Rising &amp; Fallin Edge Interrupts(KBI) on MC68HC908QB8....</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Detecting-Rising-Fallin-Edge-Interrupts-KBI-on-MC68HC908QB8/m-p/144600#M6892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello San_jon,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;When using both positive and negative edge for KBI, a factor to keep in mind is that there will be a pull-up current&amp;nbsp;when negative edge is selected for an input, but&amp;nbsp;this will change to a pull-down current for positive edge.&amp;nbsp; If you are actively driving the input, this is unlikely to be a problem.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;However, if you happen to be sensing the closure and release of a switch contact, there is a potential problem.&amp;nbsp; Since it&amp;nbsp;appears not possible to disable the pull-up/pull-down current&amp;nbsp;when KBI is enabled, you may need to use an external pull-up resistor of a sufficiently low value to over-ride the effect of the pull-down current.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;An alternative method to trigger an interrupt on either edge or both edges of an input,&amp;nbsp;is to utilize a&amp;nbsp;TIM channel in input capture mode.&amp;nbsp; Of course, the capture time would be irrelevant in this case.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 20:11:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Detecting-Rising-Fallin-Edge-Interrupts-KBI-on-MC68HC908QB8/m-p/144600#M6892</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-09-07T20:11:54Z</dc:date>
    </item>
  </channel>
</rss>

