<?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 Keyboard interruption by 2 pins in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Keyboard-interruption-by-2-pins/m-p/2003772#M67033</link>
    <description>&lt;P&gt;I have a question:&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I enable 2 pins as inputs for keyboards interrupts, the&amp;nbsp;&lt;SPAN&gt;KBI0_IRQHandler does not respond. But it is curious because&amp;nbsp; I am able to trigger the&amp;nbsp;KBI0_IRQHandler by one pin or another but when I set the both pin, the&amp;nbsp;KBI0_IRQHandler is never triggered...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlesls_0-1732800596743.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313136i0BC6CC72E61121BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlesls_0-1732800596743.png" alt="carlesls_0-1732800596743.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Nov 2024 13:37:06 GMT</pubDate>
    <dc:creator>carlesls</dc:creator>
    <dc:date>2024-11-28T13:37:06Z</dc:date>
    <item>
      <title>Keyboard interruption by 2 pins</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Keyboard-interruption-by-2-pins/m-p/2003772#M67033</link>
      <description>&lt;P&gt;I have a question:&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I enable 2 pins as inputs for keyboards interrupts, the&amp;nbsp;&lt;SPAN&gt;KBI0_IRQHandler does not respond. But it is curious because&amp;nbsp; I am able to trigger the&amp;nbsp;KBI0_IRQHandler by one pin or another but when I set the both pin, the&amp;nbsp;KBI0_IRQHandler is never triggered...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlesls_0-1732800596743.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313136i0BC6CC72E61121BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlesls_0-1732800596743.png" alt="carlesls_0-1732800596743.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 13:37:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Keyboard-interruption-by-2-pins/m-p/2003772#M67033</guid>
      <dc:creator>carlesls</dc:creator>
      <dc:date>2024-11-28T13:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Keyboard interruption by 2 pins</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Keyboard-interruption-by-2-pins/m-p/2004109#M67035</link>
      <description>&lt;P&gt;This piece of code does not work.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;kbiConfig.mode = kKBI_EdgesDetect;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;kbiConfig.pinsEnabled = (uint32_t) (0b00010000 | 0b01000000) ;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;kbiConfig.pinsEdge = (uint32_t) (0b00010000 | 0b01000000) ; // Rising edge.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But this,&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;kbiConfig.mode = kKBI_EdgesDetect;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;kbiConfig.pinsEnabled = (uint32_t) ( 0b01000000) ;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;kbiConfig.pinsEdge = (uint32_t) ( 0b01000000) ; // Rising edge.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;kbiConfig.mode = kKBI_EdgesDetect;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;kbiConfig.pinsEnabled = (uint32_t) (0b00010000 ) ;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;kbiConfig.pinsEdge = (uint32_t) (0b00010000 ) ; // Rising edge.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;does trigger the keyboard 0 interruption... but why?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 06:24:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Keyboard-interruption-by-2-pins/m-p/2004109#M67035</guid>
      <dc:creator>carlesls</dc:creator>
      <dc:date>2024-11-29T06:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Keyboard interruption by 2 pins</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Keyboard-interruption-by-2-pins/m-p/2005474#M67043</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/243103"&gt;@carlesls&lt;/a&gt;.,&lt;/P&gt;
&lt;P&gt;You can check if the KBI is being configure correctly in the Peripherals+ tab.&lt;/P&gt;
&lt;P&gt;Also, the KBI only manage one interrupt flag, if two interrupt happens at the same time in the same KBI this can cause only one of them to trigger, this same flag should be cleared every interruption, if this is not done the code will constantly enter the IRQHandler.&lt;/P&gt;
&lt;P&gt;I made some test on a FRDM-KE02Z with the configuration you share, and all work as expected.&lt;/P&gt;
&lt;P&gt;Is there any other configuration on your project that could affect the KBI peripheral?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 22:40:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Keyboard-interruption-by-2-pins/m-p/2005474#M67043</guid>
      <dc:creator>Pablo_Ramos</dc:creator>
      <dc:date>2024-12-02T22:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Keyboard interruption by 2 pins</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Keyboard-interruption-by-2-pins/m-p/2005837#M67048</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlesls_0-1733214427573.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313693i2D87BE904FD835E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlesls_0-1733214427573.png" alt="carlesls_0-1733214427573.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use the GPIO and the KBI0 at the same time in the same physical pin?&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 08:28:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Keyboard-interruption-by-2-pins/m-p/2005837#M67048</guid>
      <dc:creator>carlesls</dc:creator>
      <dc:date>2024-12-03T08:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Keyboard interruption by 2 pins</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Keyboard-interruption-by-2-pins/m-p/2005842#M67049</link>
      <description>&lt;P&gt;Another question: Is it possible to change the edge detection (from falling to rising or from rising to falling) at the very interruption?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 08:33:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Keyboard-interruption-by-2-pins/m-p/2005842#M67049</guid>
      <dc:creator>carlesls</dc:creator>
      <dc:date>2024-12-03T08:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Keyboard interruption by 2 pins</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Keyboard-interruption-by-2-pins/m-p/2009256#M67062</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/243103"&gt;@carlesls&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The pin uses the last configuration, in this case if you configure the KBI0 and then set the same pins as GPIO the pins will only act as GPIO.&lt;/P&gt;
&lt;P&gt;Also, for the KBI interruption there is no difference on the edges, you can only detect edges or edges and levels.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 16:16:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Keyboard-interruption-by-2-pins/m-p/2009256#M67062</guid>
      <dc:creator>Pablo_Ramos</dc:creator>
      <dc:date>2024-12-06T16:16:50Z</dc:date>
    </item>
  </channel>
</rss>

