<?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 KBI question in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/KBI-question/m-p/215121#M18639</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 trying to run the basic KBI function on processor expert. I use DEMO9S08LL16 demo board. The goal is to make the variable "state" increase 1 when KBI activated every time. I use PTA pin 7 for KBI. However, I got cpu_interrupt when I push the button (KBI activate) in the first time. I could not figure out what happen. Please advice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached my code in the attachement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jul 2010 03:01:59 GMT</pubDate>
    <dc:creator>Hsin</dc:creator>
    <dc:date>2010-07-28T03:01:59Z</dc:date>
    <item>
      <title>KBI question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/KBI-question/m-p/215121#M18639</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 trying to run the basic KBI function on processor expert. I use DEMO9S08LL16 demo board. The goal is to make the variable "state" increase 1 when KBI activated every time. I use PTA pin 7 for KBI. However, I got cpu_interrupt when I push the button (KBI activate) in the first time. I could not figure out what happen. Please advice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached my code in the attachement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jul 2010 03:01:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/KBI-question/m-p/215121#M18639</guid>
      <dc:creator>Hsin</dc:creator>
      <dc:date>2010-07-28T03:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: KBI question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/KBI-question/m-p/215122#M18640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is not Processor Expert issue, it is rather application issue. Please check attached example of using Init_KBI component to initializace KBI registers including proper allocation of interrupt vector. I thing the example can be easily modified to provide functionality you need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 03:02:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/KBI-question/m-p/215122#M18640</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2010-07-30T03:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: KBI question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/KBI-question/m-p/215123#M18641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks much for your support.&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>Mon, 09 Aug 2010 06:54:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/KBI-question/m-p/215123#M18641</guid>
      <dc:creator>Hsin</dc:creator>
      <dc:date>2010-08-09T06:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: KBI question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/KBI-question/m-p/215124#M18642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; //clear KBF&lt;BR /&gt;&amp;nbsp; KBISC_KBACK = 1; // wrong bit??&lt;BR /&gt;&lt;BR /&gt;Well... you could try to do what your comment says and clear KBF bit (flag) rather than some acknowledge flag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KBISC_KBF = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have an actual mechanical button you must also add a timer for debouncing the signal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 20:28:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/KBI-question/m-p/215124#M18642</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2010-08-09T20:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: KBI question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/KBI-question/m-p/215125#M18643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lundin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the device in question, and other HCS08 devices, the KBACK bit is a write only bit used for clearing the the KBF flag.&amp;nbsp; According to the reference manual, writes to KBF have no effect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree with the need to debounce a mechanical switch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 07:13:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/KBI-question/m-p/215125#M18643</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-08-10T07:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: KBI question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/KBI-question/m-p/215126#M18644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops I should probably check the manual before posting. In that case the only issue is that the isr wasn't included in the vector table, as already mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 18:01:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/KBI-question/m-p/215126#M18644</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2010-08-10T18:01:21Z</dc:date>
    </item>
  </channel>
</rss>

