<?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>Toggle GPIO on BLE transmit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82877/toggle-gpio-on-ble-transmit</link><description>I am curious if the nRF52840 has the ability to assert a gpio when the BLE transmission is active?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Dec 2021 09:24:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82877/toggle-gpio-on-ble-transmit" /><item><title>RE: Toggle GPIO on BLE transmit</title><link>https://devzone.nordicsemi.com/thread/344097?ContentTypeID=1</link><pubDate>Fri, 17 Dec 2021 09:24:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6ce557e-7c01-4f41-9ed4-26547e5f5328</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You can also check out the ble_radio_notification.c in nRF5 SDK, and also here is the documentation for the usage:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/radio_notif/radio_notif_peripheral_events.html"&gt;https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/radio_notif/radio_notif_peripheral_events.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle GPIO on BLE transmit</title><link>https://devzone.nordicsemi.com/thread/344025?ContentTypeID=1</link><pubDate>Thu, 16 Dec 2021 23:00:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7809444-8c0b-4504-a9d9-57db771d7877</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Try this; let me know if it works as I haven&amp;#39;t tested it yet. Choose any one of the events, or multiple events if you have spare io pins and spare PPI channels. Edit: I changed to use Set/Clear, was originally using toggle&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define PIN_RADIO_TEST        26 // Any spare pin eg P0.26
#define RADIO_GPIOTE_CH        0
#define BLAH_BLAH_PPI_CH_SET   0
#define BLAH_BLAH_PPI_CH_CLEAR 1

   // Up to three tasks can be used in each GPIOTE channel for performing write operations to a pin, two
   // are fixed (SET and CLR), and one (OUT) configurable to perform Set, Clear or Toggle
   //  - &amp;quot;HiToLo&amp;quot; Task mode: Clear pin from OUT[n] task
   NRF_GPIOTE-&amp;gt;CONFIG[RADIO_GPIOTE_CH] = GPIOTE_CONFIG_MODE_Task       &amp;lt;&amp;lt; GPIOTE_CONFIG_MODE_Pos | 
                                         GPIOTE_CONFIG_POLARITY_HiToLo &amp;lt;&amp;lt; GPIOTE_CONFIG_POLARITY_Pos | 
                                         PIN_RADIO_TEST                &amp;lt;&amp;lt; GPIOTE_CONFIG_PSEL_Pos | 
                                         GPIOTE_CONFIG_OUTINIT_Low     &amp;lt;&amp;lt; GPIOTE_CONFIG_OUTINIT_Pos;
 // NRF_PPI-&amp;gt;CH[BLAH_BLAH_PPI_CH      ].EEP = (uint32_t)&amp;amp;NRF_RADIO-&amp;gt;EVENTS_READY;       // RADIO has ramped up and is ready to be started
    NRF_PPI-&amp;gt;CH[BLAH_BLAH_PPI_CH_SET  ].EEP = (uint32_t)&amp;amp;NRF_RADIO-&amp;gt;EVENTS_ADDRESS;     // Address sent or received
 // NRF_PPI-&amp;gt;CH[BLAH_BLAH_PPI_CH      ].EEP = (uint32_t)&amp;amp;NRF_RADIO-&amp;gt;EVENTS_PAYLOAD;     // Packet payload sent or received
    NRF_PPI-&amp;gt;CH[BLAH_BLAH_PPI_CH_CLEAR].EEP = (uint32_t)&amp;amp;NRF_RADIO-&amp;gt;EVENTS_END;         // Packet sent or received
 // NRF_PPI-&amp;gt;CH[BLAH_BLAH_PPI_CH      ].EEP = (uint32_t)&amp;amp;NRF_RADIO-&amp;gt;EVENTS_DISABLED;    // RADIO has been disabled
 // NRF_PPI-&amp;gt;CH[BLAH_BLAH_PPI_CH      ].EEP = (uint32_t)&amp;amp;NRF_RADIO-&amp;gt;EVENTS_DEVMATCH;    // A device address match occurred on the last received packet
 // NRF_PPI-&amp;gt;CH[BLAH_BLAH_PPI_CH      ].EEP = (uint32_t)&amp;amp;NRF_RADIO-&amp;gt;EVENTS_DEVMISS;     // No device address match occurred on the last received packet
 // NRF_PPI-&amp;gt;CH[BLAH_BLAH_PPI_CH      ].EEP = (uint32_t)&amp;amp;NRF_RADIO-&amp;gt;EVENTS_RSSIEND;     // Sampling of receive signal strength complete.
 // NRF_PPI-&amp;gt;CH[BLAH_BLAH_PPI_CH      ].EEP = (uint32_t)&amp;amp;NRF_RADIO-&amp;gt;EVENTS_BCMATCH;     // Bit counter reached bit count value.
 // NRF_PPI-&amp;gt;CH[BLAH_BLAH_PPI_CH      ].EEP = (uint32_t)&amp;amp;NRF_RADIO-&amp;gt;EVENTS_CRCOK;       // Packet received with CRC ok
 // NRF_PPI-&amp;gt;CH[BLAH_BLAH_PPI_CH      .EEP = (uint32_t)&amp;amp;NRF_RADIO-&amp;gt;EVENTS_CRCERROR;    // Packet received with CRC error
 // NRF_PPI-&amp;gt;CH[BLAH_BLAH_PPI_CH      ].TEP = (uint32_t)&amp;amp;NRF_GPIOTE-&amp;gt;TASKS_OUT[MOTOR_GPIOTE_CH];
    NRF_PPI-&amp;gt;CHENSET               = ((1UL &amp;lt;&amp;lt; BLAH_BLAH_PPI_CH_SET) | (1UL &amp;lt;&amp;lt; BLAH_BLAH_PPI_CH_CLEAR));&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>