<?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>can i use an analog pin as a digital pin........?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23261/can-i-use-an-analog-pin-as-a-digital-pin</link><description>hai 
 in nrf51822 the pins p0.01 t0 p0.06 are marked as analog pins in the nrf51822 DK.
i know that in arduino we can use an analog pin as an analog input as well as a digital in/out.
so like that can i use any pin from p0.01 t0 p0.06 as a digital</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Jul 2017 11:37:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23261/can-i-use-an-analog-pin-as-a-digital-pin" /><item><title>RE: can i use an analog pin as a digital pin........?</title><link>https://devzone.nordicsemi.com/thread/91468?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2017 11:37:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10f3739d-3c9a-4121-a569-ff478106ee5e</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;hai.
i am using a custom board of nrf51822. now the problem is solved . the issue was with the mbed API.
thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can i use an analog pin as a digital pin........?</title><link>https://devzone.nordicsemi.com/thread/91467?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2017 11:29:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f92e6ba-65b1-4d92-8548-7f3df89b2bb7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Are you using a nRF51-DK? Is it only P0.06 you have problem with? The other pins are working as expected ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can i use an analog pin as a digital pin........?</title><link>https://devzone.nordicsemi.com/thread/91465?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2017 09:22:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:145e13d5-5aaa-4b22-a142-3cfd8b1bfc12</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;actually i am working with mbed compiler to program. and i have tried p6 same as a digital pin. but the behaviour is not as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can i use an analog pin as a digital pin........?</title><link>https://devzone.nordicsemi.com/thread/91466?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2017 09:18:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abc1f68f-4c75-458c-b846-cc742d531775</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, 100% the same as using any digital pin. You can configure the pin as output with the function &lt;code&gt;nrf_gpio_cfg_output(pin number)&lt;/code&gt;. See infocenter page &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/group__nrf__gpio.html?cp=4_0_2_6_6_7_9#ga5c6f584e6e01dd0c65bd1b9eee958cbb"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After that use &lt;code&gt;nrf_gpio_pin_set(pin number)&lt;/code&gt; to set the pin high, and &lt;code&gt;nrf_gpio_pin_clear(pin number)&lt;/code&gt; to set the pin low.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can i use an analog pin as a digital pin........?</title><link>https://devzone.nordicsemi.com/thread/91469?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2017 08:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2bab9b2-3955-44b1-8971-d9386c971e0f</guid><dc:creator>iqbalpalemad</dc:creator><description>&lt;p&gt;how to set an analog pin as digital out. can you give me the syntax. is it same as setting a digital pin...?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can i use an analog pin as a digital pin........?</title><link>https://devzone.nordicsemi.com/thread/91464?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2017 07:50:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc734e17-9d79-4b96-bfaa-366e0aac85c1</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, all the analog pins can also be used as Digital I/O pins.&lt;/p&gt;
&lt;p&gt;From the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51/dita/nrf51/pdflinks/51822_ps.html?cp=3_4_0"&gt;nRF51822 Product Specification&lt;/a&gt; page 13:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6866.gpio.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>