<?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中的主题 Re: GPIO output problem on Kinetis KL02</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-output-problem-on-Kinetis-KL02/m-p/389597#M21145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luiz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the uTasker project one sees such things without needing to search:&lt;/P&gt;&lt;P&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47808iBE7167189AF298B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and can avoid lost development time ;-)&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Dec 2014 20:31:01 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2014-12-03T20:31:01Z</dc:date>
    <item>
      <title>GPIO output problem on Kinetis KL02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-output-problem-on-Kinetis-KL02/m-p/389594#M21142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having a super weird problem with two pin outputs in my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a Kinetis MKL02Z16VFK4 part and trying to put logical level 3.3V on PTB3 and PTB4. And here is the strange thing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If I measure them with a multimeter, the measurement is ~3.76V (ON) and 0.0V (OFF)&lt;/P&gt;&lt;P&gt;2. If I measure them with a scope, there is almost no signal at all (it reaches something like 120mV during on state - which looks more like noise)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've two boards with the same problem - and in order to isolate my problem I've mounted a third one leaving all pins open, using only the basic components, which are shown in figure below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="sch2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47805i20A218B538C3017C/image-size/large?v=v2&amp;amp;px=999" role="button" title="sch2.png" alt="sch2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="sch1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47806i17723B3F71266D3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="sch1.png" alt="sch1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I'm connecting a 12Vdc power supply directly on LDO input 12Viso (red and yellow wires on picture below). &lt;/P&gt;&lt;P&gt;- 3.3Viso net is connected to VCC_RASMCU net. &lt;/P&gt;&lt;P&gt;- I've soldered all capacitors and resistors (except R206, of course).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the picture below the PCB area of interest is shown:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IMG_20141203_131047338_HDR.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47807i1B85773FB0C23F18/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_20141203_131047338_HDR.jpg" alt="IMG_20141203_131047338_HDR.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another important facts:&lt;/P&gt;&lt;P&gt;1. All other PTB pins are working well - I can even measure them in the scope (using the same reference, so it is probably not a reference issue)&lt;/P&gt;&lt;P&gt;2. There is no load or other component connected to the device&lt;/P&gt;&lt;P&gt;3. The LDO output is OK - I've checked it multiple times&lt;/P&gt;&lt;P&gt;4. I've already developed a product based on another Freescale's Cortex-M0+, so this MCU is not new to me, neither PE and other related stuff. I hope I haven't done anything stupid!&lt;/P&gt;&lt;P&gt;5. It is happening in the same way in all three boards I've mounted, even replacing the MCU twice in one of them - so I guess there is no soldering problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to make sure there are no other external influences, I've developed a simple software, which loop through a 'set, delay, clear, delay' routine. The software was programmed using KDS + PE. I've tried the Bit and GPIO components already, and also using directly GPIO PDD.. all giving me the same results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Loop code snippet&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;PE_low_level_init();&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;/*** End of Processor Expert internal initialization.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ***/&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;dev_GPIO1 = GPIO1_Init(NULL);&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;for (;;) {&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;GPIO1_SetFieldBits(dev_GPIO1, PB_ALL, GPIO1_PB_ALL_MASK);&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;delay(3000);&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;GPIO1_ClearFieldBits(dev_GPIO1, PB_ALL, GPIO1_PB_ALL_MASK);&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;delay(3000);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 8pt; font-family: 'courier new', courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out how the MCU is putting 3.76V in an open output if it is supplied with 'only' 3.3V (3.31V measured).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm kind of lost here, so any feedback will be appreciated. I'm starting to think that it is maybe a silicon problem! If some of you have the same chip with PTB3 and PTB4 working well, please let me know in this topic!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Luiz Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 16:46:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-output-problem-on-Kinetis-KL02/m-p/389594#M21142</guid>
      <dc:creator>lfschrickte</dc:creator>
      <dc:date>2014-12-03T16:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO output problem on Kinetis KL02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-output-problem-on-Kinetis-KL02/m-p/389595#M21143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luiz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that you know that these two ports are true open-drain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47801i05D77C9D765F59A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are reading more than 3.3V with the multimeter the multimeter is probably supplying some current and causing a higher voltage to me measured. Your oscilloscope is probably very high impedent in comparison and so will measure almost no change.&lt;/P&gt;&lt;P&gt;Simply connect multimeter and oscilloscope "at the same time" to see the effect of the measurement instruments - remember that measurement instruments can effect the measurement being made so always consider this carefully.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 17:51:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-output-problem-on-Kinetis-KL02/m-p/389595#M21143</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-12-03T17:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO output problem on Kinetis KL02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-output-problem-on-Kinetis-KL02/m-p/389596#M21144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, Mark, I didn't know that! I've been searching for the wrong keywords in the reference manual - after you replied me I could find this information on it! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Things are working as expected now, thank you very much for your fast response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Luiz Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 18:19:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-output-problem-on-Kinetis-KL02/m-p/389596#M21144</guid>
      <dc:creator>lfschrickte</dc:creator>
      <dc:date>2014-12-03T18:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO output problem on Kinetis KL02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-output-problem-on-Kinetis-KL02/m-p/389597#M21145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luiz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the uTasker project one sees such things without needing to search:&lt;/P&gt;&lt;P&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47808iBE7167189AF298B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and can avoid lost development time ;-)&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 20:31:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/GPIO-output-problem-on-Kinetis-KL02/m-p/389597#M21145</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-12-03T20:31:01Z</dc:date>
    </item>
  </channel>
</rss>

