<?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: trigger KBI when press down or pull up button in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/trigger-KBI-when-press-down-or-pull-up-button-MC1321x-and/m-p/173932#M11929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Charly,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The inputs PTA4 through to PTA7 are capable of having their triggering edge selected for either negative or positive transitions.&amp;nbsp; You do not say which pin you are attempting to use.&amp;nbsp; However, you will need to use an external pullup resistor, and disable the internal pull device.&amp;nbsp; This is because, when the triggering edge polarity is changed from negative to positive, the internal pullup becomes a pulldown.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Your code&amp;nbsp;will also need to allow a debounce timeout period (perhaps 20 to 50ms)&amp;nbsp;following each switch transition, and before changing the trigger edge, otherwise the results will be very confusing in the event of contact bounce occurring.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Mac&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2008 20:21:02 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2008-07-18T20:21:02Z</dc:date>
    <item>
      <title>trigger KBI when press down or pull up button - MC1321x and Codewarrior6.1.</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/trigger-KBI-when-press-down-or-pull-up-button-MC1321x-and/m-p/173931#M11928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Dear freescale expert:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; I'm using MC1321x and Codewarrior6.1.&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;nbsp; On my PCB,there is a button that connect with&amp;nbsp;PTAx port.Enable the KBI and add interrupt routine KBI_IRQ() function in&amp;nbsp;C language&amp;nbsp;code.&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;nbsp; Now,if I pressed down the button ,then KBI_IRQ() was triggered.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; But I hope that the KBI_IRQ() will be called,whether the button was pressed down or pulled up.&lt;BR /&gt;&amp;nbsp; How to implement it? How to config the register?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your reply.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Best regards,&lt;BR /&gt;Charly&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Added p/n to subject.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-07-18&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;09:11 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 16:20:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/trigger-KBI-when-press-down-or-pull-up-button-MC1321x-and/m-p/173931#M11928</guid>
      <dc:creator>Beijing2008</dc:creator>
      <dc:date>2008-07-18T16:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: trigger KBI when press down or pull up button</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/trigger-KBI-when-press-down-or-pull-up-button-MC1321x-and/m-p/173932#M11929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Charly,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The inputs PTA4 through to PTA7 are capable of having their triggering edge selected for either negative or positive transitions.&amp;nbsp; You do not say which pin you are attempting to use.&amp;nbsp; However, you will need to use an external pullup resistor, and disable the internal pull device.&amp;nbsp; This is because, when the triggering edge polarity is changed from negative to positive, the internal pullup becomes a pulldown.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Your code&amp;nbsp;will also need to allow a debounce timeout period (perhaps 20 to 50ms)&amp;nbsp;following each switch transition, and before changing the trigger edge, otherwise the results will be very confusing in the event of contact bounce occurring.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Mac&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 20:21:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/trigger-KBI-when-press-down-or-pull-up-button-MC1321x-and/m-p/173932#M11929</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-07-18T20:21:02Z</dc:date>
    </item>
  </channel>
</rss>

