<?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: PTA2/PTA3 as GPIO Output on KE02 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084652#M57617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;Thank you for that information.&amp;nbsp; I was&amp;nbsp;puzzled that the pull-up did not function while in output mode, and I'm glad you were able to confirm what I was seeing.&amp;nbsp; I also appreciate your suggested work-around.&amp;nbsp; I had considered that possible solution, but wasn't sure if that was the best way to go about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have been extremely helpful. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Josiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2020 14:00:00 GMT</pubDate>
    <dc:creator>justusandjustic</dc:creator>
    <dc:date>2020-04-29T14:00:00Z</dc:date>
    <item>
      <title>PTA2/PTA3 as GPIO Output on KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084645#M57610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the S9KEAZN64 chip, and am trying to use PTA3 as an output GPIO.&amp;nbsp; When I test the chip on a lone breakout board, setting the pin as an output GPIO, with initial value of 1, I am not reading any output voltage.&amp;nbsp; Using the same configuration on adjacent pins, both PTA2/PTA3 show no output voltage, while other pins work fine.&amp;nbsp; The documentation states that:&lt;/P&gt;&lt;P&gt;&lt;EM&gt; "&lt;SPAN style="font-size: 10.0pt;"&gt;All functional non-supply pins, except for PTA2 and PTA3, are internally clamped to VSS and VDD. &lt;SPAN style="color: #cd232c;"&gt;PTA2 and PTA3 are true&amp;nbsp;open drain I/O pins that are internally clamped to VSS."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 15px; "&gt;I'm not entirely certain what that means, but clearly these pins are different in some way.&amp;nbsp; I attempted to enable the pull-up resistor for the pins, with the same result: no voltage output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 15px; "&gt;What is the proper way to use these pins as GPIO outputs?&amp;nbsp; Are external pull-ups required? If so, why is it not mentioned in the manual?&amp;nbsp; Perhaps I just missed it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.0pt; "&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.0pt; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.0pt; "&gt;-Josiah&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 19:49:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084645#M57610</guid>
      <dc:creator>justusandjustic</dc:creator>
      <dc:date>2020-04-27T19:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: PTA2/PTA3 as GPIO Output on KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084646#M57611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Josiah&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the user's manual:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/105297i6153612A15EC05F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The pins do have programmable pull-ups (which are automatically disconnected when the output is driven low) so you may need to check that you are correctly activating them and also that you don't have too much load to ground that the pull-up resistor can't drive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 22:43:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084646#M57611</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2020-04-27T22:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: PTA2/PTA3 as GPIO Output on KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084647#M57612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;PTA2/PTA3 is a true open-drain pin when operated as output. It means when you control it to output low level, it output low level. If you want it to output high level, it will show&amp;nbsp;high resistance state. So if you want it to output high level, you need &lt;SPAN style="background-color: #ffffff;"&gt;external&amp;nbsp;&lt;/SPAN&gt;pullup.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;------------------------------------------------------------------------------- &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 08:40:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084647#M57612</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2020-04-28T08:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: PTA2/PTA3 as GPIO Output on KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084648#M57613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for confirming!&amp;nbsp; That was my suspicion, but as a software person (not really a hardware person), that was not immediately obvious.&amp;nbsp; Why was this crucial requirement not explicitly stated in the manual?&amp;nbsp; Or did I just miss it?&lt;/P&gt;&lt;P&gt;-Josiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 13:19:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084648#M57613</guid>
      <dc:creator>justusandjustic</dc:creator>
      <dc:date>2020-04-28T13:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: PTA2/PTA3 as GPIO Output on KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084649#M57614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josiah&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the user's manual:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108344iC64A92B70221A9BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It states that on "normal" pins the pull-up is &lt;SPAN style="text-decoration: underline;"&gt;disconnected&lt;/SPAN&gt; when the GPIO is used as an output (seen also form the diagram 11-1)&lt;BR /&gt;From my understanding of the true open drain types (according to figure 11-2) the pull-up 'should' be connected also when used as an output &lt;EM&gt;as long as the output is driving to '1'&lt;/EM&gt; (when the output drives to 0 the pull-up is disconnected).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I test I find, however, that the PTA2/3 GPIO behave as open-drain &lt;SPAN style="text-decoration: underline;"&gt;but&lt;/SPAN&gt; with the normal control (that is, when configured as output &lt;SPAN style="text-decoration: underline;"&gt;the pull-up is disconnected&lt;/SPAN&gt;. This doesn't correspond with the diagram.&lt;BR /&gt;The additional detail about them retaining their pull-up setting in I2C peripheral mode is a different question and no equivalent diagram is given for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though this detail about the pull-ups not being usable when configured as GPIO output (which may be an error either in the GPIO design or in the user's manual diagram) it is not a big issue from the point of view of the firmware. To use the pins as GPIO one can do the following:&lt;/P&gt;&lt;P&gt;1. Configure the pull-up and pin as output, driving 0 - this gives a low impedance '0' at the output.&lt;BR /&gt;2. Configure the pin as input, which gives a '1' output (through pull-up)&lt;BR /&gt;Each time the pin state needs to be changed switch to either output to drive '0' or switch back to input to 'drive' '1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Therefore, it can still be used functionally as open-drian output with pull-up, without needing to add an external resistor. Just the firmware control of these 2 pins needs to be slightly different.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 15:30:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084649#M57614</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2020-04-28T15:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: PTA2/PTA3 as GPIO Output on KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084650#M57615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; margin: 20px 0px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Hi,&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;As a MCU engineer, we should learn both software and hardware. The software has strong link with hardware.&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 14px; margin: 20px 0px 0px;"&gt;&lt;DIV class="" data-comment-id="1304706" style="color: #646464; border: none; font-weight: inherit; font-size: 0.8571rem;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2020 00:10:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084650#M57615</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2020-04-29T00:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: PTA2/PTA3 as GPIO Output on KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084651#M57616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I absolutely agree.&amp;nbsp; Which is why that information would have been great to have been in the manual, so I could have learned it...&lt;/P&gt;&lt;P&gt;In fact, as Mark mentioned, the manual seems to be incongruent with reality.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2020 13:54:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084651#M57616</guid>
      <dc:creator>justusandjustic</dc:creator>
      <dc:date>2020-04-29T13:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: PTA2/PTA3 as GPIO Output on KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084652#M57617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;Thank you for that information.&amp;nbsp; I was&amp;nbsp;puzzled that the pull-up did not function while in output mode, and I'm glad you were able to confirm what I was seeing.&amp;nbsp; I also appreciate your suggested work-around.&amp;nbsp; I had considered that possible solution, but wasn't sure if that was the best way to go about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have been extremely helpful. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Josiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2020 14:00:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PTA2-PTA3-as-GPIO-Output-on-KE02/m-p/1084652#M57617</guid>
      <dc:creator>justusandjustic</dc:creator>
      <dc:date>2020-04-29T14:00:00Z</dc:date>
    </item>
  </channel>
</rss>

