<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Need Help on GPIO funtions of LPC2378</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/27606/need-help-on-gpio-funtions-of-lpc2378</link><description> 
Hi, 

 
I am new to ARM processor and i am working on Kit MCB2300 (LPC
2378 Processor) . I am having a problem of sending the data on
entire port like in other 8 bit microcontrollers(AT89c51). So what
are the procedure to intialize the entire port of</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Need Help on GPIO funtions of LPC2378</title><link>https://community.arm.com/thread/130754?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 02:03:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2c43d151-4027-4fd5-985c-21c5d6a6d03b</guid><dc:creator>Harpreet brar</dc:creator><description>&lt;p&gt;&lt;p&gt;
my fault, i was reffering to wrong manual.&lt;br /&gt;
Thanks for all the stuff.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Help on GPIO funtions of LPC2378</title><link>https://community.arm.com/thread/126676?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 01:55:36 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4d185aee-e84b-4895-a7d2-2bd7e7f2928b</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
1) There are no specific requirements for accessing all 32 pins of
a GPIO port or just accessing single bits. But if you have gone
through the whole manual, you should be able to quote any sections
that does say that there is a difference.&lt;/p&gt;

&lt;p&gt;
2) Have you retrieved the User Manual for the processor? Have you
tried to search for SCS or GPIOM in it? Really no references
found?&lt;/p&gt;

&lt;p&gt;
In the end - if you are going to use fast GPIO for first two ports
(ports not pins) you must enable that. I did mention what register
and what bit. The other ports are always in fast GPIO mode.&lt;/p&gt;

&lt;p&gt;
You have then to figure out if you want the signals to be inputs
or outputs.&lt;/p&gt;

&lt;p&gt;
Then you can write to your outputs or read from your inputs. You
can either write to all output pins. Or explicitly set pins. Or
explicitly clear pins. Or you can use the mask feature to specify
which pins that should be affected by changes.&lt;/p&gt;

&lt;p&gt;
No need to read all of the user manual. The GPIO chapter contains
of lots of nice information.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Help on GPIO funtions of LPC2378</title><link>https://community.arm.com/thread/126687?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 01:52:44 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:12fc59c8-488c-46b1-a0e2-7c601faf27b8</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;and i gone through whole manual, there is nothing to access to
whole port?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Come on man. You did not encounter a chapter called &amp;quot;general
purpose input/output (GPIO)? Get a life...!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Help on GPIO funtions of LPC2378</title><link>https://community.arm.com/thread/116266?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 01:24:48 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:22510c3d-a479-4b46-ae64-fdf1372f575d</guid><dc:creator>Harpreet brar</dc:creator><description>&lt;p&gt;&lt;p&gt;
Sorry i didn&amp;#39;t get you, can you please tell me more on this?&lt;/p&gt;

&lt;p&gt;
and i gone through whole manual, there is nothing to access to
whole port?&lt;/p&gt;

&lt;p&gt;
i think i&amp;#39;m missing some insructions to getting the whole
access.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Help on GPIO funtions of LPC2378</title><link>https://community.arm.com/thread/104633?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2011 23:22:45 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6fde2ab2-70ed-4d65-8a70-8e12e5314213</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
So, suddenly a tiny bit of explicit information in your post.&lt;/p&gt;

&lt;p&gt;
See description of register SCS - System Control and Status
register - in the user manual.&lt;/p&gt;

&lt;p&gt;
See specifically bit GPIOM - it controlls if port0 and port1 can
be accessed as Fast GPIO (FIO0SET) - they default to legacy mode. Set
this bit, and the port registers starting with &amp;quot;F&amp;quot; will work for
port0 and 1 too.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Help on GPIO funtions of LPC2378</title><link>https://community.arm.com/thread/79074?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2011 23:15:15 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d7c2d0a0-b445-4e1d-88b8-067fb65baf20</guid><dc:creator>Harpreet brar</dc:creator><description>&lt;p&gt;&lt;p&gt;
yeah i gone through all the manual but can&amp;#39;t find anything like
this. and i can acess individual pins like
&lt;b&gt;&lt;i&gt;FIO0SET=0x01;&lt;/i&gt;&lt;/b&gt; but when i am want to acess the whole
port like &lt;b&gt;&lt;i&gt;PORT0=0x0;&lt;/i&gt;&lt;/b&gt;. the compiler gives the error
&lt;b&gt;&lt;i&gt;identifier &amp;quot;PORT0&amp;quot; is undefined&lt;/i&gt;&lt;/b&gt; .&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need Help on GPIO funtions of LPC2378</title><link>https://community.arm.com/thread/66330?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2011 23:05:44 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1eccc94e-e861-47e1-be61-c112a47e5c55</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Do you see any trouble with initializing an entire port, compared
to initializing individual pins? You have read the user manual for
the processor? Guess what - it does tell what is needed to do to use
GPIO pins as outputs.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>