<?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: Correct method to drive GPIO? in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Correct-method-to-drive-GPIO/m-p/778044#M526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I understand your problems correctly.&lt;/P&gt;&lt;P&gt;I guess you are trying to make Port 3 Pin 3 on LPC4370 a GPIO pin?&lt;/P&gt;&lt;P&gt;According to the data sheet I found at&amp;nbsp; &lt;A class="link-titled" href="https://www.nxp.com/docs/en/data-sheet/LPC4370.pdf" title="https://www.nxp.com/docs/en/data-sheet/LPC4370.pdf"&gt;https://www.nxp.com/docs/en/data-sheet/LPC4370.pdf&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;p. 18 shows that P3_3 cannot be configured as a GPIO pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you want to configure P3_4 to a GPIO pin, the above code becomes:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_SCU_PinMuxSet(0x3, 4, (SCU_MODE_INACT | SCU_MODE_FUNC0));&amp;nbsp; /* P3_4 =&amp;gt; GP&amp;nbsp; IO1[14] */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;P3_4 =&amp;gt; GPIO1[14] comes from the first row of description of P3_4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;Got it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;Frank&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2018 05:32:46 GMT</pubDate>
    <dc:creator>frankchiu</dc:creator>
    <dc:date>2018-07-17T05:32:46Z</dc:date>
    <item>
      <title>Correct method to drive GPIO?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Correct-method-to-drive-GPIO/m-p/778041#M523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an LPXCpresso43S67 board which I finally have working with the LPCxpresso IDE.&amp;nbsp; I want to simply drive one of the GPIOs that goes to the Arduino headers.&amp;nbsp; Looking online I found this pic. below describing the pins.&amp;nbsp; So for example if I wanted to drive P2_13, would the code be?&amp;nbsp; I.e. what is the mapping of ports &amp;amp; pins to those Arduino headers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_GPIO_SetPinState(LPC_GPIO_PORT, 2, 13, true);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="lpcxpresso4337_arduino1_enabled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29612i25B7623949D52813/image-size/large?v=v2&amp;amp;px=999" role="button" title="lpcxpresso4337_arduino1_enabled.png" alt="lpcxpresso4337_arduino1_enabled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 13:39:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Correct-method-to-drive-GPIO/m-p/778041#M523</guid>
      <dc:creator>fastwalker2</dc:creator>
      <dc:date>2018-04-30T13:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Correct method to drive GPIO?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Correct-method-to-drive-GPIO/m-p/778042#M524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to make sure, have you download LPCOpen? It contains many code examples.&lt;/P&gt;&lt;P&gt;You said you have an LPCXpresso43S67 board, but the picture you attached is for LPCXpresso4337.&lt;/P&gt;&lt;P&gt;I don't know whether two boards are the same, and I assume you have the first one.&lt;/P&gt;&lt;P&gt;I see P2_13 is in the same position on my board.&lt;/P&gt;&lt;P&gt;You can find the official documents of MCU LPC43S67JET100 on the board at:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/lpc-cortex-m-mcus/lpc4300-cortex-m4-m0/high-performance-32-bit-microcontroller-based-on-arm-cortex-m4-m0:LPC43S67JET100?fpsp=1&amp;amp;tab=Documentation_Tab" title="https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/lpc-cortex-m-mcus/lpc4300-cortex-m4-m0/high-performance-32-bit-microcontroller-based-on-arm-cortex-m4-m0:LPC43S67JET100?fpsp=1&amp;amp;tab=Documentation_Tab"&gt;LPC43S67JET100|Arm® Cortex-M4/M0|32-bit MCU|NXP&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the data sheet, you can find pin description.&lt;/P&gt;&lt;P&gt;For example, the pin P2_13 is in p. 19. It can be configured as GPIO1[13] in FUNC0.&lt;/P&gt;&lt;P&gt;Therefore, you may try the following code:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_SCU_PinMuxSet(0x2, 13, (SCU_MODE_INACT | SCU_MODE_FUNC0));&amp;nbsp; /* P2_13 =&amp;gt; GPIO1[13] */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 1, 13);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinState(LPC_GPIO_PORT, 1, 13, (bool) true);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 May 2018 09:35:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Correct-method-to-drive-GPIO/m-p/778042#M524</guid>
      <dc:creator>frankchiu</dc:creator>
      <dc:date>2018-05-05T09:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Correct method to drive GPIO?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Correct-method-to-drive-GPIO/m-p/778043#M525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;1. Where does the information "&lt;SPAN style="background-color: transparent; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #51626f; font-family: courier new,courier,monospace; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none #51626f;"&gt;/* P2_13 =&amp;gt; GPIO1[13] */&lt;/SPAN&gt;" come from?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;I can't find it in UM1053 LPC User Manual or LPC4370 Data Sheet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. What settings are required for Port 3 Pin 3?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Simon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 13:51:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Correct-method-to-drive-GPIO/m-p/778043#M525</guid>
      <dc:creator>simon_prentice</dc:creator>
      <dc:date>2018-07-16T13:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Correct method to drive GPIO?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Correct-method-to-drive-GPIO/m-p/778044#M526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I understand your problems correctly.&lt;/P&gt;&lt;P&gt;I guess you are trying to make Port 3 Pin 3 on LPC4370 a GPIO pin?&lt;/P&gt;&lt;P&gt;According to the data sheet I found at&amp;nbsp; &lt;A class="link-titled" href="https://www.nxp.com/docs/en/data-sheet/LPC4370.pdf" title="https://www.nxp.com/docs/en/data-sheet/LPC4370.pdf"&gt;https://www.nxp.com/docs/en/data-sheet/LPC4370.pdf&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;p. 18 shows that P3_3 cannot be configured as a GPIO pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you want to configure P3_4 to a GPIO pin, the above code becomes:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_SCU_PinMuxSet(0x3, 4, (SCU_MODE_INACT | SCU_MODE_FUNC0));&amp;nbsp; /* P3_4 =&amp;gt; GP&amp;nbsp; IO1[14] */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;P3_4 =&amp;gt; GPIO1[14] comes from the first row of description of P3_4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;Got it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;Frank&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 05:32:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Correct-method-to-drive-GPIO/m-p/778044#M526</guid>
      <dc:creator>frankchiu</dc:creator>
      <dc:date>2018-07-17T05:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Correct method to drive GPIO?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Correct-method-to-drive-GPIO/m-p/778045#M527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Frank.&lt;/P&gt;&lt;P&gt;I was reading things completely back-to-front.&lt;/P&gt;&lt;P&gt;All good now (although slightly embarrassed).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 09:53:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Correct-method-to-drive-GPIO/m-p/778045#M527</guid>
      <dc:creator>simon_prentice</dc:creator>
      <dc:date>2018-07-17T09:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Correct method to drive GPIO?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Correct-method-to-drive-GPIO/m-p/778046#M528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't be embarrassed, everyone learns like this. :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 09:56:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Correct-method-to-drive-GPIO/m-p/778046#M528</guid>
      <dc:creator>frankchiu</dc:creator>
      <dc:date>2018-07-17T09:56:56Z</dc:date>
    </item>
  </channel>
</rss>

