<?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>Behavior of SW_CTRL0 on NRF7001</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114682/behavior-of-sw_ctrl0-on-nrf7001</link><description>Hello, 
 We are currently developing a Zephyr-based connectivity solution using the NRF5340 alongside an NRF7001 WiFi chip. Since we also want to use Bluetooth we have implemented a shared antenna setup and want to control an antenna switch with the NRF7001</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Sep 2024 07:04:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114682/behavior-of-sw_ctrl0-on-nrf7001" /><item><title>RE: Behavior of SW_CTRL0 on NRF7001</title><link>https://devzone.nordicsemi.com/thread/502691?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 07:04:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:380b76c1-5e17-4213-a37e-7aaabbb6d7a6</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Nils,&lt;/p&gt;
[quote user=""]What is the default behavior of the SW_CTRL0 pin? In the image above it looks like the NRF7002 is setting SW_CTRL0 high whenever it wants to send.[/quote]
&lt;p&gt;The SW_CTRL0 pin behaves like an output control signal that is set high when the nRF7002 needs to switch to the WiFi antenna,&amp;nbsp;usually when it is transmitting. This is in&amp;nbsp;order to control an external antenna switch (like the one in the schematic)&amp;nbsp;so that the correct radio (WiFi or Bluetooth) has access to the antenna at any given time.&lt;/p&gt;
[quote user=""]Can this behavior be changed?[/quote]
&lt;p&gt;Yes, this behaviour is programmable :&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf7002/page/chapters/functional/doc/coexistence.html#:~:text=The%20behavior%20of%20SW_CTRL0/1%20is%20programmable%20and%20dependent%20on%20the%20configured%20coexistence%20mode%20and%20switch%20control%20interface"&gt;https://docs.nordicsemi.com/bundle/ps_nrf7002/page/chapters/functional/doc/coexistence.html#:~:text=The%20behavior%20of%20SW_CTRL0/1%20is%20programmable%20and%20dependent%20on%20the%20configured%20coexistence%20mode%20and%20switch%20control%20interface&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user=""]Is there any Nordic-specific setup of the coexistence interface I have to do in Zephyr?[/quote]
&lt;p&gt;Zephyr has support for WiFi and Bluetooth coexistence through the 3-wire or 4-wire coexistence interface (typically SW_CTRL0 and SW_CTRL1 for antenna switching). Nordic provides coexistence drivers in the&amp;nbsp;nRF Connect SDK that helps manage this. You need to define the correct coexistence mode in your device tree and configure the coexistence settings for the nRF7002 within the WiFi driver.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>