<?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>New to ARM programming and specifically nrf51822.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8031/new-to-arm-programming-and-specifically-nrf51822</link><description>I searched over the website, I couldn&amp;#39;t find a good introductory documentation for programming the nrf51822, specifically the nrf51-dk. I have a transistor hooked to p0.01, I want to set that pin to high... first of all what&amp;#39;s the function to call? It</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Sep 2015 12:25:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8031/new-to-arm-programming-and-specifically-nrf51822" /><item><title>RE: New to ARM programming and specifically nrf51822.</title><link>https://devzone.nordicsemi.com/thread/28787?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2015 12:25:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75131aea-5872-4ecf-bd10-e69ff318c162</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Second thought. The pin change interrupt example does not use any softdevice, so just erase the chip and flash the example, don&amp;#39;t flash any softdevice&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New to ARM programming and specifically nrf51822.</title><link>https://devzone.nordicsemi.com/thread/28786?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2015 12:22:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bcc9cc1-e7ba-45c0-a9f2-9be6ef4f6f03</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Make sure you removed any other code on the device. Do that in e.g. nRFgo Studio by selecting the device and press the ERASE ALL button.&lt;/p&gt;
&lt;p&gt;Check if there is an flashing algorithm selected for the project. Select KEil -&amp;gt; Options for target -&amp;gt; Debug tab -&amp;gt; Settings -&amp;gt; Flash Download tab. There should be selected nRF51xxx algorithm. If it is not present, press the Add button and find it in the list of algorithms. Also in the same location, make sure that &amp;quot;RAM for algorithm&amp;quot; -&amp;gt; Size field has value 0x2000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New to ARM programming and specifically nrf51822.</title><link>https://devzone.nordicsemi.com/thread/28785?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2015 04:38:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa10665b-3dd1-4781-836b-df4a664e47db</guid><dc:creator>HSA</dc:creator><description>&lt;p&gt;@Stefan Birnir Sverrisson,&lt;/p&gt;
&lt;p&gt;Suggested example not running with SD110 with SDK8.1. (error: flash download failed cortex-M0)&lt;/p&gt;
&lt;p&gt;Please suggest. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New to ARM programming and specifically nrf51822.</title><link>https://devzone.nordicsemi.com/thread/28783?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2015 13:27:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46707522-4eaf-4f78-9ce1-e59a32d7ea57</guid><dc:creator>Gabriel C.</dc:creator><description>&lt;p&gt;First check the schematic of nRF51822 to see which pin definitions you have. This one below is from nRF51822 Dev. Board R2:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF51822_5F00_dev_5F00_board_5F00_simple_5F00_rev2.jpg" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;After you define the pin like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define PIN1       1
#define PIN2       2
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And you set it as output like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_gpio_cfg_output(PIN1);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then you set it high like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_gpio_pin_set(PIN1);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Or low:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_gpio_pin_clear(PIN1);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Hope it helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New to ARM programming and specifically nrf51822.</title><link>https://devzone.nordicsemi.com/thread/28784?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2015 13:10:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f345555-5c5f-41c7-9dfc-3fd9004db486</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You could start with looking at &lt;a href="https://devzone.nordicsemi.com/tutorials/2/setting-up-an-example-project-on-the-nrf51-dk/"&gt;this tutorial&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You could use the &lt;a href="https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.1.0/s110/html/a00039.html"&gt;pin change interrupt example&lt;/a&gt; in the &lt;a href="https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/"&gt;nRF51 SDK v8.1&lt;/a&gt; for your experiment. You press button 1 and LED 1 is lid. LED 1 on the nRF51 DK is connected to pin 21, so if you connect your transistor to pin P0.21 you should see a reaction when you press button 1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>