<?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>Kinetis Microcontrollers中的主题 GPIO Direction vs Output_Enable</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Direction-vs-Output-Enable/m-p/1026269#M56375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just need some clarity here.&amp;nbsp; I am porting some code to a K8x from an ARM MCU from&amp;nbsp;another manufacturer.&amp;nbsp; They have a GPIO Data Output Enable Register. There is no concept of 'direction', as the GPIO Data Input Register always reflects the state of the pins, whether output is enabled or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the&amp;nbsp;Kinetis&amp;nbsp;&lt;SPAN&gt;GPIO Data Direction Register work in the same way?&amp;nbsp; That is, does the&lt;/SPAN&gt;&amp;nbsp;Kinetis GPIO Data Input Register reliably reflect the state of the pin, without regard to the GPIO Data Direction Register setting?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Background: The pin connects to an open drain bus control rail. Output register is normally high. Reading input register indicates that another device has grabbed the bus.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx,&lt;/P&gt;&lt;P&gt;Denis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jan 2020 19:27:57 GMT</pubDate>
    <dc:creator>deniscollis</dc:creator>
    <dc:date>2020-01-17T19:27:57Z</dc:date>
    <item>
      <title>GPIO Direction vs Output_Enable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Direction-vs-Output-Enable/m-p/1026269#M56375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just need some clarity here.&amp;nbsp; I am porting some code to a K8x from an ARM MCU from&amp;nbsp;another manufacturer.&amp;nbsp; They have a GPIO Data Output Enable Register. There is no concept of 'direction', as the GPIO Data Input Register always reflects the state of the pins, whether output is enabled or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the&amp;nbsp;Kinetis&amp;nbsp;&lt;SPAN&gt;GPIO Data Direction Register work in the same way?&amp;nbsp; That is, does the&lt;/SPAN&gt;&amp;nbsp;Kinetis GPIO Data Input Register reliably reflect the state of the pin, without regard to the GPIO Data Direction Register setting?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Background: The pin connects to an open drain bus control rail. Output register is normally high. Reading input register indicates that another device has grabbed the bus.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx,&lt;/P&gt;&lt;P&gt;Denis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2020 19:27:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Direction-vs-Output-Enable/m-p/1026269#M56375</guid>
      <dc:creator>deniscollis</dc:creator>
      <dc:date>2020-01-17T19:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Direction vs Output_Enable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Direction-vs-Output-Enable/m-p/1026270#M56376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi&amp;nbsp;&lt;SPAN&gt;Denis,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;The&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;Kinetis GPIO Data Input Register reliably reflect the state of the pin, without regard to the GPIO Data Direction Register setting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Here you can see the test result of example &lt;EM&gt;gpio_led_output&lt;/EM&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This example toggle led(GPIOC pin 8 configured as as output), we are able to see the GPIOC_PDIR[8] toggle during debug.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PDIR 0 after PDDR output 0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96874iD1EA9E4B9224C3C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="PDIR 0 after PDDR output 0.png" alt="PDIR 0 after PDDR output 0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PDIR 1 after PDDR output 1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96938iC88AEFAFB505CF20/image-size/large?v=v2&amp;amp;px=999" role="button" title="PDIR 1 after PDDR output 1.png" alt="PDIR 1 after PDDR output 1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;Robin&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2020 03:20:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-Direction-vs-Output-Enable/m-p/1026270#M56376</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2020-01-19T03:20:40Z</dc:date>
    </item>
  </channel>
</rss>

