<?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: Problem reading input port state while using KBI with FRDM-KE02Z40M in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-reading-input-port-state-while-using-KBI-with-FRDM/m-p/359168#M18121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved.&amp;nbsp; Timing issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2015 14:40:24 GMT</pubDate>
    <dc:creator>gregs5451</dc:creator>
    <dc:date>2015-03-06T14:40:24Z</dc:date>
    <item>
      <title>Problem reading input port state while using KBI with FRDM-KE02Z40M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-reading-input-port-state-while-using-KBI-with-FRDM/m-p/359166#M18119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Implementing a serial input decode routine.&amp;nbsp; Serial input is an asynchronous 18 bit non-standard signal.&lt;/P&gt;&lt;P&gt;Setup input pin with KBI interrupt on negative edges.&amp;nbsp; KBI interrupt routine looks for space pulse.&amp;nbsp; Works great. (Toggling an output pin to show synchronization)&amp;nbsp; After space pulse detection, enabling a compare timer to latch-in the port pin state.&amp;nbsp; (I do also have an issue with this timer pushing the sample time to the desired position, but there is adequate sample delay to get a valid read as-is.)&amp;nbsp; The problem seems to be when the GPIO port is read.&amp;nbsp; It always reads zero.&amp;nbsp; This seems strange because within the debugger, the input register appears to show the desired bit toggling states.&amp;nbsp; Ironicly, if I do an arbitrary read of the same register within the main() loop instead of inside the interrupt loop, where I need it, it appears to be reading data with the desired bit toggling.&amp;nbsp; I thought perhaps having the KBI enabled had something to do with it.&amp;nbsp; Does not seem to.&amp;nbsp; I've tried tying the pin to another input port just configured as an input only.&amp;nbsp; Same results.&amp;nbsp; Two PDIR bits toggle, but the bits I want always read zero.&amp;nbsp; I've tried all sorts of different troubleshooting.&amp;nbsp; It always comes back to the same conclusion.&amp;nbsp; Not being able to read the port pin data while within the interrupt loop?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 21:38:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-reading-input-port-state-while-using-KBI-with-FRDM/m-p/359166#M18119</guid>
      <dc:creator>gregs5451</dc:creator>
      <dc:date>2015-03-04T21:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading input port state while using KBI with FRDM-KE02Z40M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-reading-input-port-state-while-using-KBI-with-FRDM/m-p/359167#M18120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you please share your project? I would like to check on my FRDM-KE02Z40M.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 02:34:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-reading-input-port-state-while-using-KBI-with-FRDM/m-p/359167#M18120</guid>
      <dc:creator>Paul_Tian</dc:creator>
      <dc:date>2015-03-05T02:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading input port state while using KBI with FRDM-KE02Z40M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-reading-input-port-state-while-using-KBI-with-FRDM/m-p/359168#M18121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved.&amp;nbsp; Timing issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 14:40:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-reading-input-port-state-while-using-KBI-with-FRDM/m-p/359168#M18121</guid>
      <dc:creator>gregs5451</dc:creator>
      <dc:date>2015-03-06T14:40:24Z</dc:date>
    </item>
  </channel>
</rss>

