<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF51822 IO P0.01‘s  Problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59317/nrf51822-io-p0-01-s-problem</link><description>HI: 
 My IC: nRF51822QFAA My SDK Project: ...\nRF51_SDK_9.0.0_2e23562\examples\ble_peripheral\ble_app_template\pca10028\s110\arm5_no_packs 
 Appearance： 
 When I Powerup or reset the device, I can control the P0.01 , It&amp;#39;s perfect.. But 30 minutes After</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Mar 2020 09:52:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59317/nrf51822-io-p0-01-s-problem" /><item><title>RE: nRF51822 IO P0.01‘s  Problem</title><link>https://devzone.nordicsemi.com/thread/241060?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2020 09:52:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b96c8c1d-5d0d-450f-a2ab-5d1f1cda1b89</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;No problem at all, I am happy to help!&lt;br /&gt;I am glad we were able to resolve your issue.&lt;br /&gt;&lt;br /&gt;Let me know if you should encounter any more issues in the future.&lt;br /&gt;Best of luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 IO P0.01‘s  Problem</title><link>https://devzone.nordicsemi.com/thread/240973?ContentTypeID=1</link><pubDate>Sat, 21 Mar 2020 05:00:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:043b40e5-1639-4bf8-bf85-af686aafb026</guid><dc:creator>yzfy_12345</dc:creator><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Thank you for your reply. I have been find the problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; That&amp;#39;s because I set the P0.01 into AIN Mode When I powerup the device in the &amp;quot;&lt;span&gt;Battery_Sample_Function()&amp;quot; ;&lt;/span&gt;. So I lose to control the Pin of P0.01.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Thank you very much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 IO P0.01‘s  Problem</title><link>https://devzone.nordicsemi.com/thread/240813?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 10:24:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06767547-02d3-47db-8192-674ad1f55fe3</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;That does sound strange. Could you elaborate for me, what do you mean when you say that it is out of your control - are you not able to toggle it after 30 minutes, or does it seemingly toggle on its own?&lt;br /&gt;I do not know the contents of your&amp;nbsp;&lt;em&gt;Multi_LED_Ctr_Function()&amp;nbsp;&lt;/em&gt;but I am guessing it is supposed to toggle the LED in question?&lt;br /&gt;Do you have any other event happening around the 30 minute mark?&lt;/p&gt;
[quote user=""]&amp;nbsp;I try to reinitial the IO, But it is invalid[/quote]
&lt;p&gt;What do you mean by this, how are you reinitializing the IO, and how does it come back invalid?&lt;/p&gt;
&lt;p&gt;Perhaps you would consider sharing the entire source code, so that I may take a closer look.&lt;/p&gt;
&lt;p&gt;[quote user=""][/quote]&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;nrf_gpio_cfg_output(1);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;NRF_GPIO-&amp;gt;OUTSET = (1&amp;lt;&amp;lt;1);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; NRF_GPIO-&amp;gt;OUTCLR = (1&amp;lt;&amp;lt;1);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I highly recommend that you avoid using magic numbers, and instead use the appropriate defines - it significantly increases readability and makes debugging easier in general.&lt;br /&gt;If you do not insist on changing the registers manually, I would also recommend that you check out the provided libraries for easier configuration and use.&lt;br /&gt;In your case, you could check out the &lt;em&gt;nrf_gpio.h&lt;/em&gt; module, to see the provided GPIO configuration and usage functions.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>