<?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>GPIO byte writes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8108/gpio-byte-writes</link><description>I wonder if GPIO could safely be used for byte writes to the OUT port.
I have an 8bit (+control signals) peripheral connected to the GPIO and so far I was doing read-modify-write, which is slow and not all that atomic either. 
 I have used the peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jul 2015 10:01:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8108/gpio-byte-writes" /><item><title>RE: GPIO byte writes</title><link>https://devzone.nordicsemi.com/thread/29090?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2015 10:01:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00e341df-7f24-4320-965e-5f95c7841a39</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you are talking about writing 8bits to 8GPIO pins,  then using nrf_gpio_port_write will work with same 2-3 cycles write same as writing to a single pin.&lt;/p&gt;
&lt;p&gt;Thing to remember is that the ports are pre-selected pins&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;typedef enum
{
    NRF_GPIO_PORT_SELECT_PORT0 = 0,           ///&amp;lt;  Port 0 (GPIO pin 0-7)
    NRF_GPIO_PORT_SELECT_PORT1,               ///&amp;lt;  Port 1 (GPIO pin 8-15)
    NRF_GPIO_PORT_SELECT_PORT2,               ///&amp;lt;  Port 2 (GPIO pin 16-23)
    NRF_GPIO_PORT_SELECT_PORT3,               ///&amp;lt;  Port 3 (GPIO pin 24-31)
} nrf_gpio_port_select_t;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>