<?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: Using alternative pin function in LPCxpresso4337 in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Using-alternative-pin-function-in-LPCxpresso4337/m-p/593840#M30641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Pignuts on Thu Oct 01 01:58:43 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, guys!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Starblue, your are completely right!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even after checking the manual and the comments in the code, several times, i did not realize that difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It´s working, now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:53:43 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:53:43Z</dc:date>
    <item>
      <title>Using alternative pin function in LPCxpresso4337</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Using-alternative-pin-function-in-LPCxpresso4337/m-p/593837#M30638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Pignuts on Wed Sep 30 09:58:40 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello everyone!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to configure an alternative function for any pin?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this question, even after searching for it in the forum and google.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I´m new to programming ARM and NPX boards, but i did figure how to set GPIO pins and toggle them by going through the examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What i can´t figure out is how to use the GPIO function in pins that do not have this function as the first one on the list (function 0).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried it with this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
Chip_SCU_PinMuxSet( 0x5,0x6, SCU_MODE_FUNC4);
Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT,0x5, 0x6);
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then toggle the pin using this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
Chip_GPIO_SetPinState(LPC_GPIO_PORT, 0x5, 0x6, false);
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
Chip_GPIO_SetPinState(LPC_GPIO_PORT, 0x5, 0x6, true);
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This worked for pins that have GPIO as their function0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I´m using LPCXpresso v7.9.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Using-alternative-pin-function-in-LPCxpresso4337/m-p/593837#M30638</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using alternative pin function in LPCxpresso4337</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Using-alternative-pin-function-in-LPCxpresso4337/m-p/593838#M30639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Thu Oct 01 00:47:28 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;On the LPC43xx there is a distinction between pins and port bits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example GPIO5[6] is on pin P2_6, see the chapter "Pin configuration".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SCU uses pin numbers, while for GPIO it's port number and bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I think&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
Chip_SCU_PinMuxSet( 0x2,0x6, SCU_MODE_FUNC4);
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;should do the job (untested, and I'm just guessing about Chip_SCU_PinMuxSet).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Using-alternative-pin-function-in-LPCxpresso4337/m-p/593838#M30639</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using alternative pin function in LPCxpresso4337</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Using-alternative-pin-function-in-LPCxpresso4337/m-p/593839#M30640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vtw.433e on Thu Oct 01 01:15:25 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Try the NXP LPC Initializer and pinmux tool to configure pins:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2FLPCUtilities" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/LPCUtilities&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Using-alternative-pin-function-in-LPCxpresso4337/m-p/593839#M30640</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using alternative pin function in LPCxpresso4337</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Using-alternative-pin-function-in-LPCxpresso4337/m-p/593840#M30641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Pignuts on Thu Oct 01 01:58:43 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, guys!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Starblue, your are completely right!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even after checking the manual and the comments in the code, several times, i did not realize that difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It´s working, now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Using-alternative-pin-function-in-LPCxpresso4337/m-p/593840#M30641</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:43Z</dc:date>
    </item>
  </channel>
</rss>

