<?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: Reading GPIO in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593135#M30331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by boris on Fri Mar 23 13:55:31 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Its very helped.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:53:31 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:53:31Z</dc:date>
    <item>
      <title>Reading GPIO</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593124#M30320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by boris on Wed Mar 21 05:35:27 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to do the polling on a particular GPIO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;meaning just the read from the GPIO not interrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But&amp;nbsp; the in the user manual of lpc1343 and exampls there is only interrupt metod.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can&amp;nbsp; i do it by enather (poling )metod.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Boris:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593124#M30320</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reading GPIO</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593125#M30321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by boris on Wed Mar 21 06:04:57 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can somebody help with example code,but not interrut.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593125#M30321</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reading GPIO</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593126#M30322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gbm on Wed Mar 21 07:07:28 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you mean this highly sophisticated and top secret statement?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mypinstate = LPC_GPIO0-&amp;gt;DATA;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593126#M30322</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reading GPIO</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593127#M30323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by boris on Wed Mar 21 07:42:57 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Exactly!!!:):)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what about : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned char GPIOGetValue(unit32_t portNum, uint_32t bitPosi) ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][SIZE=3]Can Help me?[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593127#M30323</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reading GPIO</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593128#M30324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by boris on Wed Mar 21 09:03:38 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][LEFT]uint8_t [B]GPIOGetValue[/B]( uint32_t portNum, uint32_t bitPosi )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint8_t mybitstate;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mybitstate = ( (LPC_GPIO[portNum]-&amp;gt;DATA &amp;amp; (1&amp;lt;&amp;lt;bitPosi)) &amp;gt;&amp;gt; bitPosi);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]return[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] mybitstate;[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593128#M30324</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reading GPIO</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593129#M30325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gbm on Wed Mar 21 13:08:37 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually if you must make a function:&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;inline static _Bool getbit(uint32_t port, uint32_t bit)
{
[SIZE=2]&amp;nbsp;&amp;nbsp;&amp;nbsp; return !! LPC_GPIO[portNum]-&amp;gt;MASKED_ACCESS[1 &amp;lt;&amp;lt; bit];[/SIZE]
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593129#M30325</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reading GPIO</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593130#M30326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by stalisman on Thu Mar 22 02:55:52 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;elegant ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.. but is it proof against someone inadvertently writing a value other than (1&amp;lt;&amp;lt;bit) at some earlier point?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked in &lt;/SPAN&gt;&lt;A href="http://"&gt;http://infocenter.arm.com/help/topic/com.arm.doc.ddi0479b/DDI0479B_cortex_m_system_design_kit_r0p0_trm.pdf&lt;/A&gt;&lt;SPAN&gt; but could not find a definitive answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;edit: brilliant idea ..why not code it up as see duhhh! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so I did and it's fine. :-)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;( um with Serge's edit too)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593130#M30326</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reading GPIO</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593131#M30327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by serge on Thu Mar 22 03:04:39 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Code:&lt;BR /&gt;inline static _Bool getbit(uint32_t port, uint32_t bit)&lt;BR /&gt;{&lt;BR /&gt;[SIZE=2]&amp;nbsp;&amp;nbsp;&amp;nbsp; return !! LPC_GPIO[port[COLOR=red]Num[/COLOR]]-&amp;gt;MASKED_ACCESS[1 &amp;lt;&amp;lt; bit];[/SIZE]&lt;BR /&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the Num part of portNum there correct?:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593131#M30327</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reading GPIO</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593132#M30328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gbm on Thu Mar 22 03:38:25 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course not - should be "port". Also, the exact syntax of GPIO masked access depends on the declarations of GPIO stuff in header files. The above code was just an idea.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593132#M30328</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reading GPIO</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593133#M30329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Thu Mar 22 06:57:20 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you &lt;/SPAN&gt;&lt;A href="http://http://knowledgebase.nxp.com/showthread.php?t=2182"&gt;search the forum&lt;/A&gt;&lt;SPAN&gt; (eg for GPIOReadValue), then you'll find the following post...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showpost.php?p=1276&amp;amp;postcount=2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593133#M30329</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reading GPIO</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593134#M30330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by stalisman on Fri Mar 23 02:57:27 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;here is some stuff to play with on the expresso IDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &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;
 
[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]#define [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]PORT_MASK 0xFFF [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//12 bit port on LPC1114[/COLOR][/SIZE][/COLOR][/SIZE]
 
[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]void [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][B]GPIOSetMultiValue[/B]( [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] portNum, [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] MultiBitMask, [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Value )[/SIZE][/LEFT]
[SIZE=2]{[/SIZE]
 [SIZE=2]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO[portNum]-&amp;gt;MASKED_ACCESS[(PORT_MASK) &amp;amp; MultiBitMask] = Value;[/SIZE]
[SIZE=2]}[/SIZE]
 
 
[LEFT][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t&amp;nbsp; [/COLOR][/SIZE][/COLOR][/SIZE] [SIZE=2][B]GPIOGetMultiValue[/B]( [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] portNum, [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] MultiBitMask )[/SIZE]
[SIZE=2]{[/SIZE][/LEFT]
[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]return[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] ([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])((PORT_MASK)&amp;amp;( LPC_GPIO[portNum]-&amp;gt;MASKED_ACCESS[(PORT_MASK)&amp;amp;MultiBitMask]));[/SIZE]
[SIZE=2]}[/SIZE]
 
 
[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]void&amp;nbsp; [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][B]GPIOSetDaftValue[/B]( [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] portNum, [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] bitPosi, [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] bitVal )[/SIZE][/LEFT]
[SIZE=2]{[/SIZE]
[SIZE=2]LPC_GPIO[portNum]-&amp;gt;MASKED_ACCESS[(1&amp;lt;&amp;lt;bitPosi)] = (bitVal&amp;lt;&amp;lt;bitPosi)+7 ; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//7 is ignored![/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2]}[/SIZE]
 
 
[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]_Bool [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][B]getbit[/B]([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] portNum, [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] bit)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //@gbm[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][B][COLOR=#7f0055][COLOR=#7f0055]return[/COLOR][/COLOR][/B] !! LPC_GPIO[portNum]-&amp;gt;MASKED_ACCESS[1 &amp;lt;&amp;lt; bit];[/SIZE]
[LEFT][SIZE=2]}[/SIZE][/LEFT]
 
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then insetted the following lines in 'main' and monitered the (uint32_t) bitVal as I single stepped through ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &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;
[LEFT][SIZE=2]GPIOSetValue(2,6,0);[/SIZE][/LEFT]
 
[LEFT][SIZE=2]bitVal = ([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])getbit(2,6);[/SIZE][/LEFT]
 
[LEFT][SIZE=2]GPIOSetValue(2,6,1);[/SIZE][/LEFT]
 
[LEFT][SIZE=2]bitVal = ([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])getbit(2,6);[/SIZE][/LEFT]
 
[LEFT][SIZE=2]GPIOSetDaftValue(2,6,0);[/SIZE][/LEFT]
 
[LEFT][SIZE=2]bitVal = ([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])getbit(2,6);[/SIZE][/LEFT]
 
[LEFT][SIZE=2]GPIOSetDaftValue(2,6,1);[/SIZE][/LEFT]
 
[LEFT][SIZE=2]bitVal = ([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])getbit(2,6);[/SIZE][/LEFT]
 
[LEFT][SIZE=2]bitVal = ([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])getbit(2,2);[/SIZE][/LEFT]
 
[LEFT][SIZE=2]GPIOSetValue(2,6,0);[/SIZE][/LEFT]
 
[LEFT][SIZE=2]bitVal = ([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])getbit(2,6);[/SIZE][/LEFT]
 
[LEFT][SIZE=2]GPIOSetDaftValue(2,6,1);[/SIZE][/LEFT]
 
[LEFT][SIZE=2]&amp;amp;#12288;[/SIZE]
[SIZE=2]bitVal = ([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])getbit(2,2);[/SIZE][/LEFT]
 
[LEFT][SIZE=2]bitVal = ([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])getbit(2,6);[/SIZE][/LEFT]
 
[LEFT][SIZE=2]&amp;amp;#12288;[/SIZE]
[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/*[/COLOR][/SIZE]
[SIZE=2][COLOR=#3f7f5f]void GPIOSetMultiValue( uint32_t portNum, uint32_t bitMask, uint32_t Value );[/COLOR][/SIZE]
[SIZE=2][COLOR=#3f7f5f]uint32_t GPIOGetMultiValue( uint32_t portNum, uint32_t bitMask );[/COLOR][/SIZE]
[SIZE=2][COLOR=#3f7f5f]*/[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2]GPIOSetMultiValue( 2, 0xA4, 0x1A4 );[/SIZE][/LEFT]
 
[LEFT][SIZE=2]bitVal = GPIOGetMultiValue( 2, 0x84 );[/SIZE][/LEFT]
 
[LEFT][SIZE=2]bitVal = ([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])getbit( 2, 5); [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//note:0x20 is the mask not the [U]bitno[/U] which is 5[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f5f]
[/COLOR][/SIZE][SIZE=2]bitVal = GPIOGetMultiValue( 2, 0x04 );[/SIZE]
[SIZE=2]bitVal = GPIOGetMultiValue( 2, 0xA0 );[/SIZE]
[SIZE=2]bitVal = GPIOGetMultiValue( 2, 0xA4 );[/SIZE][/LEFT]
 
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2]most iluminating.[/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2]Stali[/SIZE][/LEFT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593134#M30330</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reading GPIO</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593135#M30331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by boris on Fri Mar 23 13:55:31 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Its very helped.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:53:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Reading-GPIO/m-p/593135#M30331</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:53:31Z</dc:date>
    </item>
  </channel>
</rss>

