<?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: Vref interfering with GPIO PTB2 on KL03 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Vref-interfering-with-GPIO-PTB2-on-KL03/m-p/436887#M25495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;After had a brief look through the statement above, I think I already had an overview of your question.&lt;/P&gt;&lt;P&gt;However I still have some inquiries and want to confirmed with you.&lt;/P&gt;&lt;P&gt;1. After you remove the R17, you can hook the oscilloscope the PTB2 directly and without connect the the UART0_RX-TGTMCU, I think it will be more accuracy.&lt;/P&gt;&lt;P&gt;2. Does the interference still exist after you disable the VREF?&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Thu, 13 Aug 2015 02:25:38 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2015-08-13T02:25:38Z</dc:date>
    <item>
      <title>Vref interfering with GPIO PTB2 on KL03</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Vref-interfering-with-GPIO-PTB2-on-KL03/m-p/436886#M25494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to ask for your kind help with some problem involving Vref and GPIO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the Vref voltage internally with a low-power buffer. At the same time, I use GPIO, in particular PTB2. However I see some interference on PTB2 presumably caused by Vref. To test my point, I did a sample program listed below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran this program on my Freedom KL03. I removed R17 that connects PTB2 to the UART of the programming interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; configure_gpio();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; init_vref();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; enable=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PTB -&amp;gt; PTOR|=0x1&amp;lt;&amp;lt;10; //LED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(enable) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT_HAL_SetMuxMode(PORTB_BASE_PTR, 2u,kPortMuxAsGpio);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_HAL_SetPinDir(GPIOB_BASE_PTR, 2U, kGpioDigitalOutput);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIOB-&amp;gt;PCOR = 0x1 &amp;lt;&amp;lt;2u;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT_HAL_SetMuxMode(PORTB_BASE_PTR, 2u,kPortPinDisabled);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; enable ^= 1u;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(j=0;j&amp;lt;1;j++) { //delay&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i=0;i&amp;lt;150000u;i++) { }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I hook the oscilloscope to PTB2, I see an oscillation between 1.2V and 0.4V, which is not what I expect, I would have expected to see an oscillation between 1.2V and 0V. I also used breakpoints to test my point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have any of you experienced that problem? any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 16:50:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Vref-interfering-with-GPIO-PTB2-on-KL03/m-p/436886#M25494</guid>
      <dc:creator>carlostadeoorte</dc:creator>
      <dc:date>2015-08-12T16:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Vref interfering with GPIO PTB2 on KL03</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Vref-interfering-with-GPIO-PTB2-on-KL03/m-p/436887#M25495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;After had a brief look through the statement above, I think I already had an overview of your question.&lt;/P&gt;&lt;P&gt;However I still have some inquiries and want to confirmed with you.&lt;/P&gt;&lt;P&gt;1. After you remove the R17, you can hook the oscilloscope the PTB2 directly and without connect the the UART0_RX-TGTMCU, I think it will be more accuracy.&lt;/P&gt;&lt;P&gt;2. Does the interference still exist after you disable the VREF?&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Thu, 13 Aug 2015 02:25:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Vref-interfering-with-GPIO-PTB2-on-KL03/m-p/436887#M25495</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2015-08-13T02:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Vref interfering with GPIO PTB2 on KL03</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Vref-interfering-with-GPIO-PTB2-on-KL03/m-p/436888#M25496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jeremy, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, that what I did, I removed R16, R17 and I put the oscilloscope on the Arduino-like headers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for looking into this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 13:35:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Vref-interfering-with-GPIO-PTB2-on-KL03/m-p/436888#M25496</guid>
      <dc:creator>carlostadeoorte</dc:creator>
      <dc:date>2015-08-13T13:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Vref interfering with GPIO PTB2 on KL03</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Vref-interfering-with-GPIO-PTB2-on-KL03/m-p/436889#M25497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;I was wondering if you can share the whole demo, then I can reproduce this phenomenon on my board.&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&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, 14 Aug 2015 01:31:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Vref-interfering-with-GPIO-PTB2-on-KL03/m-p/436889#M25497</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2015-08-14T01:31:27Z</dc:date>
    </item>
  </channel>
</rss>

