<?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: BitIO enable/disable pin in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BitIO-enable-disable-pin/m-p/432925#M3833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2015 09:02:11 GMT</pubDate>
    <dc:creator>avnergidron</dc:creator>
    <dc:date>2015-11-24T09:02:11Z</dc:date>
    <item>
      <title>BitIO enable/disable pin</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BitIO-enable-disable-pin/m-p/432921#M3829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want&amp;nbsp; to use the processor expert BitIoLddin order to enable and&amp;nbsp; disable output and input pins.&lt;/P&gt;&lt;P&gt;I&amp;nbsp; read this tutorial: &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fmcuoneclipse.com%2F2012%2F11%2F12%2Ftutorial-bits-and-pins-with-kinetis%2F" rel="nofollow" target="_blank"&gt;Tutorial: Bits and Pins with Kinetis and the FRDM-KL25Z Board | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I am&amp;nbsp; currently able to turn the red led on and off using the BitIO component (which have the BitIOLdd).&lt;/P&gt;&lt;P&gt;My code is doing the following:&lt;/P&gt;&lt;P&gt;(1) Turn on&amp;nbsp; Red led. (Bit1_SetVal();)&lt;/P&gt;&lt;P&gt;(2) Turn off Red Led. (Bit1_ClrVal();)&lt;/P&gt;&lt;P&gt;The problem is that after (2) runs and turn off the led it turns on again&amp;nbsp; in the next line of code...&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Avner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 09:25:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/BitIO-enable-disable-pin/m-p/432921#M3829</guid>
      <dc:creator>avnergidron</dc:creator>
      <dc:date>2015-11-23T09:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: BitIO enable/disable pin</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BitIO-enable-disable-pin/m-p/432922#M3830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share your code? I would put it into an endless loop with some waiting method (you can get the Wait component from SourceForge: &lt;A href="http://mcuoneclipse.com/2014/10/21/mcuoneclipse-releases-on-sourceforge/" title="http://mcuoneclipse.com/2014/10/21/mcuoneclipse-releases-on-sourceforge/"&gt;McuOnEclipse Releases on SourceForge&lt;/A&gt;), like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for(;;) {&lt;/P&gt;&lt;P&gt;&lt;CODE class="spaces cpp"&gt;&amp;nbsp; &lt;/CODE&gt;&lt;CODE class="cpp plain"&gt;RED_SetVal(RED_DeviceData);&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; WAIT1_Waitms(100); /* wait 100 ms */&lt;/P&gt;&lt;P class="alt2 index10 line number11 highlighted"&gt;&lt;CODE class="spaces cpp"&gt;&amp;nbsp; &lt;/CODE&gt;&lt;CODE class="cpp plain"&gt;RED_ClrVal(RED_DeviceData);&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; WAIT1_Waitms(100); /* wait 100 ms */&lt;/P&gt;&lt;P&gt;&lt;CODE class="spaces cpp"&gt;}&amp;nbsp; &lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P class="alt2 index10 line number11 highlighted"&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 10:07:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/BitIO-enable-disable-pin/m-p/432922#M3830</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-11-23T10:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: BitIO enable/disable pin</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BitIO-enable-disable-pin/m-p/432923#M3831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;Sorry for the long delay in replying.&lt;/P&gt;&lt;P&gt;I tested what you suggested and this is working,&amp;nbsp; turning the led on&amp;nbsp; and off.&lt;/P&gt;&lt;P&gt;When I changed it to run only&amp;nbsp; five times, it acted the same, but at the end it left the led turned on.&lt;/P&gt;&lt;P&gt;This is how I define the BitIO:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8969i03D5F1EF143467D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled1.png" alt="Untitled1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and my main is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="code_print_screen.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/9007iA486C19303F65C98/image-size/large?v=v2&amp;amp;px=999" role="button" title="code_print_screen.png" alt="code_print_screen.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Avner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 08:25:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/BitIO-enable-disable-pin/m-p/432923#M3831</guid>
      <dc:creator>avnergidron</dc:creator>
      <dc:date>2015-11-24T08:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: BitIO enable/disable pin</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BitIO-enable-disable-pin/m-p/432924#M3832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avner,&lt;/P&gt;&lt;P&gt;the LED is low active, so putting the pin LOW with ClrVal() will turn the LED on.&lt;/P&gt;&lt;P&gt;Check the schematics of your board :-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 08:59:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/BitIO-enable-disable-pin/m-p/432924#M3832</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-11-24T08:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: BitIO enable/disable pin</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BitIO-enable-disable-pin/m-p/432925#M3833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 09:02:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/BitIO-enable-disable-pin/m-p/432925#M3833</guid>
      <dc:creator>avnergidron</dc:creator>
      <dc:date>2015-11-24T09:02:11Z</dc:date>
    </item>
  </channel>
</rss>

