<?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>Setting a Port Pin to 0 on Power ON</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/18178/setting-a-port-pin-to-0-on-power-on</link><description> I would like to set a port pin for example P1.7 to zero &amp;quot;0&amp;quot; on &amp;quot;Power On&amp;quot; condition. I would like to do it in init.a51 or startup.a51. Please let me know how to do it? 
 
I am using keil UV2.37. Compiler 7.05 
 
 
 
regards 
Ganesh </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Setting a Port Pin to 0 on Power ON</title><link>https://community.arm.com/thread/96714?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2004 10:14:07 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d3275c52-2140-44c3-8141-34338ffd9a3b</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;i&gt;Wouldn&amp;#39;t a relay count as &amp;quot;dead slow&amp;quot; in this context?&lt;/i&gt;&lt;br /&gt;
I have run relays on when pin high using the following&lt;br /&gt;
1) a supervisor that reset for the required time &lt;b&gt;and no more&lt;/b&gt;&lt;br /&gt;
2) Pn.n = 0 as the first instruction after the jump at 0.&lt;br /&gt;
&lt;br /&gt;
Of course, this excludes things like wide tolerance supervisors and RC resets.&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting a Port Pin to 0 on Power ON</title><link>https://community.arm.com/thread/43131?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2004 15:58:44 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:207f1d42-7da1-4d3c-815c-8f2af2e41b5f</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;I would like to do it in init.a51 or startup.a51. Please let me know how to do it?&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
There is absolutely nothing special nor magic about startup.a51 - it&amp;#39;s just an assembler source file like any other assembler source file.&lt;br /&gt;
Thus, the way to control a port pin in startup.a51 is no different to the way to do it in any other assembler source file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting a Port Pin to 0 on Power ON</title><link>https://community.arm.com/thread/72855?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2004 15:56:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:65454a90-b41b-4c9e-917f-ea3641e478eb</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;3) if whatever is connected to the pin is dead slow...&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Wouldn&amp;#39;t a relay count as &lt;i&gt;&amp;quot;dead slow&amp;quot;&lt;/i&gt; in this context?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting a Port Pin to 0 on Power ON</title><link>https://community.arm.com/thread/43133?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2004 12:07:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:efb6aeda-34bf-4d45-8b96-788a2ab6a410</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;this is the old classic.  I guess a realy clatters at power on.&lt;br /&gt;
&lt;br /&gt;
1) there is no way to set a pin low during reset.&lt;br /&gt;
2) add an inverter to fix it&lt;br /&gt;
3) if whatever is connected to the pin is &lt;b&gt;dead slow&lt;/b&gt; setting the pin low at startup1 may do it for you.&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>