<?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: K60 open drain output GPIO  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-open-drain-output-GPIO/m-p/893933#M52765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to remove R78 of&amp;nbsp;TWR-K60D100M board.&lt;/P&gt;&lt;P&gt;During debug, after last line I get 0.1v on this pin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2019 07:11:29 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2019-05-17T07:11:29Z</dc:date>
    <item>
      <title>K60 open drain output GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-open-drain-output-GPIO/m-p/893928#M52760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm try to usage gpio PTE9 as open drain output on K60DN, but looks like it's still push-pull.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Init code:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;    &lt;SPAN class="token function"&gt;CLOCK_EnableClock&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;kCLOCK_PortE&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;  &lt;SPAN class="comment token"&gt;//enable clock on port E&lt;/SPAN&gt;
    GPIOE&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;PCOR &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1U&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;9&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;  &lt;SPAN class="comment token"&gt;//clear output register on PTE9&lt;/SPAN&gt;
    GPIOE&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;PDDR &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1U&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;9&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//configure PTE9 as output&lt;/SPAN&gt;
    GPIOE&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;PCOR &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1U&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;9&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//clear output register on PTE9&lt;/SPAN&gt;
    PORTE&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;PCR&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;9&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;  &lt;SPAN class="token function"&gt;PORT_PCR_ODE&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;PORT_PCR_MUX&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//enable opendrain and set mux to "gpio mode" on PORTE, pin9 (all pull - disabled)&lt;/SPAN&gt;
    GPIOE&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;PSOR &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1U&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;9&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//set output register on PTE9‍‍‍‍‍‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After last line i expect zero voltage on this pin (couse it's connect to ground) - but i'm still have 3V on this pin. This pin don't have any external pull-up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i clear output register:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;GPIOE&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;PCOR &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1U&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;9&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;voltage level on this pin drops to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expect to have GND on this pint in case&amp;nbsp; setted output register and float pin on cleared register.&amp;nbsp; Is any way to solve this situation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 14:20:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-open-drain-output-GPIO/m-p/893928#M52760</guid>
      <dc:creator>andreykorol1</dc:creator>
      <dc:date>2019-05-14T14:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: K60 open drain output GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-open-drain-output-GPIO/m-p/893929#M52761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try connecting the output to ground using a 10..100k resistor to see whether than pulls the voltage to '0' when the output is in "OD" state.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;- If it does it means it is a measurement issue.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- If it doesn't it means that the OD mode hasn't been set as expected&lt;/EM&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;/P&gt;&lt;P&gt;&lt;EM&gt;Complete Kinetis solutions for professional needs, training and support: &lt;A href="http://www.utasker.com/kinetis.html" target="test_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Kinetis K60/K10:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/TWR-K60N512.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TWR-K60N512.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/TWR-K60D100M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TWR-K60D100M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/TWR-K60F120M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TWR-K60F120M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/ELZET80_NET-KBED.html" target="test_blank"&gt;http://www.utasker.com/kinetis/ELZET80_NET-KBED.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/ELZET80_NET-K60.html" target="test_blank"&gt;http://www.utasker.com/kinetis/ELZET80_NET-K60.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 16:25:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-open-drain-output-GPIO/m-p/893929#M52761</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-05-14T16:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: K60 open drain output GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-open-drain-output-GPIO/m-p/893930#M52762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Mark, thanks for you help. I was added external pull-down resistor and got zero voltage on pin.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;As results:&lt;/P&gt;&lt;P&gt;1) seems, on K60 pin in open drain mode still have weak pullup, even you switch it off in PCD register&lt;/P&gt;&lt;P&gt;2) i was expect same behavior to control open drain as on STM32 - writing "1" to output register will open internal mosfet and connect pin to ground. For K60 is inverse control - to connect pin to ground we need to write "0" to output register. It's my delusion.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; i was got answer to my question. Many thanks to you again, Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 13:50:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-open-drain-output-GPIO/m-p/893930#M52762</guid>
      <dc:creator>andreykorol1</dc:creator>
      <dc:date>2019-05-15T13:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: K60 open drain output GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-open-drain-output-GPIO/m-p/893931#M52763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you please check if the PTE9 connect to other device?&lt;/P&gt;&lt;P&gt;For example: the PTE9 connect to U7 by R78 on TWR-K60D100M board. If you remove the R78, then the output value should meet what you needs.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PTE9 TWR-K60D100M.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81478i6E8DCEE333577565/image-size/large?v=v2&amp;amp;px=999" role="button" title="PTE9 TWR-K60D100M.png" alt="PTE9 TWR-K60D100M.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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>Fri, 17 May 2019 06:33:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-open-drain-output-GPIO/m-p/893931#M52763</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2019-05-17T06:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: K60 open drain output GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-open-drain-output-GPIO/m-p/893932#M52764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm use custom board and at this time PTE9 is leaved floated. i'm planning to use this pin to control smd led - will be connected to anode. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 06:50:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-open-drain-output-GPIO/m-p/893932#M52764</guid>
      <dc:creator>andreykorol1</dc:creator>
      <dc:date>2019-05-17T06:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: K60 open drain output GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-open-drain-output-GPIO/m-p/893933#M52765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to remove R78 of&amp;nbsp;TWR-K60D100M board.&lt;/P&gt;&lt;P&gt;During debug, after last line I get 0.1v on this pin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 07:11:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-open-drain-output-GPIO/m-p/893933#M52765</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2019-05-17T07:11:29Z</dc:date>
    </item>
  </channel>
</rss>

