<?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>Power Optimization in HID Keyboard Example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5989/power-optimization-in-hid-keyboard-example</link><description>Custom Board with MCU NordicSemi nRF51822-QFAA 
 
 
 Softdevice S110 7.1 
 
 
 IAR for ARM 7.1 
 
 
 SDK 7.2 using a merged service (HID keyboard example + NUS example + HRS example) 
 
 
 Testing with iPhone 5S, 6 and iPad air (iOS 8.1.3</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Mar 2015 13:01:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5989/power-optimization-in-hid-keyboard-example" /><item><title>RE: Power Optimization in HID Keyboard Example</title><link>https://devzone.nordicsemi.com/thread/20901?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2015 13:01:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94a4cb21-4e85-4d23-8dec-ca2a05ef5af1</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I would like to point you to &lt;a href="https://devzone.nordicsemi.com/question/5186/how-to-minimize-current-consumption-for-ble-application-on-nrf51822/#reply-5187"&gt;this thread&lt;/a&gt; which is the current consumption guide for the nRF51&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;See section &amp;quot;Low power mode with BLE softdevice&amp;quot; in the linked thread.&lt;/li&gt;
&lt;li&gt;Typically, when the examples are marked as &amp;quot;not power optimized&amp;quot;, they are only lacking the compiler optimization needed for optimized power saving. See the &amp;quot;Compiler optimization&amp;quot; section in the linked thread to enable compiler optimization.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Update 12.3.2015&lt;/strong&gt;
To optimize the code for minimal current consumption, you would need to optimize the code for speed. For that purpose, choose &amp;quot;high&amp;quot; level of optimization and select all the optimization options on the right hand side. Also choose &amp;quot;Speed&amp;quot; and &amp;quot;No size constraints&amp;quot; if you think have enough available ROM for your application on the nRF51. Choose &amp;quot;Multi-file Compilation&amp;quot; in order to apply your optimization settings to all your project files.&lt;/p&gt;
&lt;p&gt;When optimizing, it is a tradeoff if you wish to optimize for speed or size. If there are no ROM size constraints for your application, i.e. the size of the application is relatively small, then you can fully optimize for speed, which will make the CPU execute as few instructions as possible to carry out the desired functionality in your code, which will save power.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Capture-_2D00_-IAR-optimization.JPG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>