<?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>how to configure two  gpio  pin in High drivemode 5mA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10697/how-to-configure-two-gpio-pin-in-high-drivemode-5ma</link><description>Hello everyone, 
 I am trying to congifure two gpio pin (pin 6and 7) in standard high drive mode 5MA because am trying to connect those pin to the speaker inorder to increase the loudness by having 10mA at the input of the speaker so can anyone suggest</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Dec 2016 09:25:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10697/how-to-configure-two-gpio-pin-in-high-drivemode-5ma" /><item><title>RE: how to configure two  gpio  pin in High drivemode 5mA</title><link>https://devzone.nordicsemi.com/thread/39930?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2016 09:25:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29e1857c-d1c8-4b8e-9d54-ba0b066ba3f3</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You can make your own function for configuring a gpio as output in high drive:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;__STATIC_INLINE void nrf_gpio_cfg_output_high_drive(uint32_t pin_number)
{
    nrf_gpio_cfg(
        pin_number,
        NRF_GPIO_PIN_DIR_OUTPUT,
        NRF_GPIO_PIN_INPUT_DISCONNECT,
        NRF_GPIO_PIN_NOPULL,
        NRF_GPIO_PIN_H0H1,
        NRF_GPIO_PIN_NOSENSE);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure two  gpio  pin in High drivemode 5mA</title><link>https://devzone.nordicsemi.com/thread/39929?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2016 21:54:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c254e2d0-9050-448e-9be9-9ef16341eff0</guid><dc:creator>Mikkael</dc:creator><description>&lt;p&gt;Hi,
I&amp;#39;m going to use VisualStudio with VisualGDB for programming my nRf51 project.
I have two 2mA low-current LEDs I&amp;#39;d like to set high in high-drive mode.&lt;/p&gt;
&lt;p&gt;There&amp;#39;s a simple sample code for blinking an LED:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#include &amp;lt;stdbool.h&amp;gt;
#include &amp;lt;stdint.h&amp;gt;

#ifdef __cplusplus
extern &amp;quot;C&amp;quot; {
#endif
	
#include &amp;quot;nrf_delay.h&amp;quot;
#include &amp;quot;nrf_gpio.h&amp;quot;
	
#ifdef __cplusplus
}
#endif


int main(void)
{
	nrf_gpio_cfg_output(13);

	for (;;)
	{
		nrf_gpio_pin_set(13);
		nrf_delay_ms(500);
		nrf_gpio_pin_clear(13);
		nrf_delay_ms(500);
	}
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now I would like to use this sample use pins 12 &amp;amp; 13 in high-drive mode.
Is there any example available for this?
On those pins I&amp;#39;ve connected low-current LEDs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure two  gpio  pin in High drivemode 5mA</title><link>https://devzone.nordicsemi.com/thread/39927?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2015 17:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f593a91-0443-4a81-8185-bb12b4dbf3dd</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Yes, you need to measure in series with the buzzer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure two  gpio  pin in High drivemode 5mA</title><link>https://devzone.nordicsemi.com/thread/39926?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2015 16:04:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1871e5bb-4453-4555-816a-c50ba8ee6494</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;i tested the voltage in the development kit but if i need to measure the current then i ned to break the circuit inorder to measure current right? if theres is nay other possibility to measure the current of that pin please let me know&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure two  gpio  pin in High drivemode 5mA</title><link>https://devzone.nordicsemi.com/thread/39925?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2015 16:00:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7780e1d-a7a0-4f11-b85a-c901e0e27d1b</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Can you measure how high the current draw is?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure two  gpio  pin in High drivemode 5mA</title><link>https://devzone.nordicsemi.com/thread/39928?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2015 15:15:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ad80ef6-8b90-41cc-954d-57e85f29bf47</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;thank you for your kind response i ahve configured like this in my code but am not the geeting the beep sound louder enough i tried to check by connecting separately the buzzer to pin 6 and pin7 only the pin 6 is malking the buzer sound and pin 7 does not making anything when i check the voltages of the both pins it is showing 2.9v i dont understand what is this issue can you please verify my code and le t me know if there is anything wrong or suggest me some ideas it could be helpful for me to make the buzzer beep louder&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to configure two  gpio  pin in High drivemode 5mA</title><link>https://devzone.nordicsemi.com/thread/39924?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2015 14:57:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e9329e4-2c0e-40e6-99f4-ae2e4a09d594</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;S0S1 means standard drive in sink (&amp;#39;0&amp;#39;) and standard drive in source (&amp;#39;1&amp;#39;). To source and sink in high drive you can use H0H1:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_GPIO-&amp;gt;PIN_CNF[6] |= (GPIO_PIN_CNF_DRIVE_H0H1 &amp;lt;&amp;lt; GPIO_PIN_CNF_DRIVE_Pos);
NRF_GPIO-&amp;gt;PIN_CNF[7] |= (GPIO_PIN_CNF_DRIVE_H0H1 &amp;lt;&amp;lt; GPIO_PIN_CNF_DRIVE_Pos);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;See the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.pdf.rm/nRF51_RM_v3.0.pdf"&gt;Reference Manual&lt;/a&gt; for more information (chapter 14 - GPIO).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>