<?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>Combining GPIOTE and high-drive capability</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49376/combining-gpiote-and-high-drive-capability</link><description>Hi, I&amp;#39;ve got a quick question here about using the GPIOTE driver in tandem with the GPIO HAL . For simplicity&amp;#39;s sake, I&amp;#39;m using an in-house library that gives me high-level configuration and usage of GPIOTE pins. Most of the pins that I use are S0S1 outputs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jul 2019 12:03:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49376/combining-gpiote-and-high-drive-capability" /><item><title>RE: Combining GPIOTE and high-drive capability</title><link>https://devzone.nordicsemi.com/thread/196528?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 12:03:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33b78743-4618-4c9e-848d-f27082905b6c</guid><dc:creator>Boris Matešin</dc:creator><description>&lt;p&gt;Hi, H&amp;aring;kon,&lt;br /&gt;&lt;br /&gt;thanks for linking the referent registers and fields. I remember testing out S0H1 mode at one point in the past, but that was for a very specific use-case (not related to induction loads).&lt;br /&gt;&lt;br /&gt;Thanks for the warning about induction loads - I think we&amp;#39;ll switch to driving a FET instead of driving the pin directly.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;-- Boris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combining GPIOTE and high-drive capability</title><link>https://devzone.nordicsemi.com/thread/196525?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 11:53:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acd97140-1618-498c-891f-c2b61546a81e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The drive strength is set in the GPIO PIN_CNF[my_pin] register, field DRIVE:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/gpio.html?cp=3_0_0_5_8_1_9#register.PIN_CNF-0-31"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=3_1_0_19_2_9#register.PIN_CNF-0&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example for setting H0H1 with the help from nrf_gpio.h:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;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;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Set it back to normal S0S1 by calling nrf_gpio_cfg_output.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]in order to actuate a particularly current-hungry relay or other peripheral.[/quote]
&lt;p&gt;&amp;nbsp;You should be very careful with induction loads and driving these directly from a GPIO. You can get high transients directly into the GPIO when pulsing inductive loads, and go outside the maximum&amp;nbsp;ratings of the nRF device, thus permanently damaging the GPIO or chip. Have you considered using a mosfet to drive these loads?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>