This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

HOW TO get the tx status of NRF53810, just like vddpa of NRF24L01

Hi Supportor 

I want to enable a LAN  to receive the ack payload. after   proprietary_rf   PTX sending

I  switch ON LAN in nrf_esb_event_handler, and test  the timing in scope, but I fiind the LAN time is too short ,. I think I need a interrupt to 

switch my LAN,   thianks for support.

void nrf_esb_event_handler(nrf_esb_evt_t const *p_event)
{
switch (p_event->evt_id)
{
case NRF_ESB_EVENT_TX_SUCCESS:
TXEN = 0;    // switch off PA, and switch on LNA
radio_evt_roger = 3;
//NRF_LOG_INFO("TX SUCCESS EVENT");
break;
case NRF_ESB_EVENT_TX_FAILED:
NRF_LOG_INFO("TX FAILED EVENT");
TXEN = 1;
radio_evt_roger = 1;
(void)nrf_esb_flush_tx();
(void)nrf_esb_start_tx();
break;
case NRF_ESB_EVENT_RX_RECEIVED:
//NRF_LOG_INFO("RX RECEIVED EVENT");
while (nrf_esb_read_rx_payload(&rx_payload) == NRF_SUCCESS)
{

Parents
  • Hi

    You'll have to use PA during TX and LNA for RX. Unfortunately, I think the radio in the nRF52810 don't have separate TXREADY and RXREADY events. What you have to do would be to edit the PPI settings in your ESB interrupt so that after a TX event you'll have to set up a PPI for RX, and after RX, set up a PPI for TX. 

    Best regards,

    Simon

Reply
  • Hi

    You'll have to use PA during TX and LNA for RX. Unfortunately, I think the radio in the nRF52810 don't have separate TXREADY and RXREADY events. What you have to do would be to edit the PPI settings in your ESB interrupt so that after a TX event you'll have to set up a PPI for RX, and after RX, set up a PPI for TX. 

    Best regards,

    Simon

Children
No Data
Related