<?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 Control GPIO Using Registers in Zephyr?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119306/how-to-control-gpio-using-registers-in-zephyr</link><description>Hi, 
 As the title suggests, I need to simulate I2C-like functionality using software. Therefore, I want to control GPIO using registers. I attempted the following approach, but the GPIO did not respond at all. 
 My hardware is nRF5340 , and the project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Feb 2025 09:19:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119306/how-to-control-gpio-using-registers-in-zephyr" /><item><title>RE: How to Control GPIO Using Registers in Zephyr?</title><link>https://devzone.nordicsemi.com/thread/524765?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 09:19:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1db7dfd-5583-4a2b-965a-ef0609cf303a</guid><dc:creator>SunHuang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.I have already resolved the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Control GPIO Using Registers in Zephyr?</title><link>https://devzone.nordicsemi.com/thread/524551?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2025 10:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b2da965-f2ec-48b2-9552-9e57e84f588d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]My hardware is &lt;strong&gt;nRF5340&lt;/strong&gt;, and the project example is &lt;strong&gt;Matter Lock&lt;/strong&gt;.[/quote]
&lt;p&gt;First and foremost: To test this new feature, add it to a simple project first, such as hello worlds. Then integrate it into more complex projects when it works standalone.&lt;/p&gt;
[quote user=""]As the title suggests, I need to simulate I2C-like functionality using software. [/quote]
&lt;p&gt;Cant you just use the I2C peripheral? That is usually a better idea than &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/i2c/i2c_bitbang.c"&gt;bit-banging&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>