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

nRF52833 DK get DFEGPIO outputs

Hi,

I'm now using nRF52833 DK to do the AoA test. I achieved the IQ sampling for a single antenna, but when I tried to switch between multiple antennas, the IQ results seems not changed. So I need to figure out whether the problem comes from the external RF switch or the software. Now I have these codes:

#define ANT0 NRF_GPIO_PIN_MAP(0,17)
nrf_gpio_pin_clear(ANT0);
nrf_gpio_cfg_output(ANT0);
NRF_RADIO->PSEL.DFEGPIO[0] = ANT0;
NRF_RADIO->SWITCHPATTERN = 0;
NRF_RADIO->SWITCHPATTERN = 0;
NRF_RADIO->SWITCHPATTERN = 0;
NRF_RADIO->SWITCHPATTERN = 1;

And between the EVENTS_END and EVENTS_PHYEND, I tried to use nrf_gpio_pin_out_read(ANT0) to get the gpio status, but I got 0 times of high. Does it means that the DFEGPIO switch is not successful, or the gpio status cannot be read in this way? Thanks.

Regards,

WU Fan

Parents Reply Children
No Data
Related