Hi
This is my code for antenna switching. I've got 8 antennas I want to switch between.
NRF_RADIO->PSEL.DFEGPIO[0] = 0x00000011; //(P0.17)
NRF_RADIO->PSEL.DFEGPIO[1] = 0x00000013; //(P0.19)
NRF_RADIO->PSEL.DFEGPIO[2] = 0x00000014; //(P0.20)
NRF_RADIO->SWITCHPATTERN = 0x0; // before CTE - antenna 1
NRF_RADIO->SWITCHPATTERN = 0x0; // reference - antenna 1
NRF_RADIO->SWITCHPATTERN = 0x1;
NRF_RADIO->SWITCHPATTERN = 0x2;
NRF_RADIO->SWITCHPATTERN = 0x3;
NRF_RADIO->SWITCHPATTERN = 0x4;
NRF_RADIO->SWITCHPATTERN = 0x5;
NRF_RADIO->SWITCHPATTERN = 0x6;
NRF_RADIO->SWITCHPATTERN = 0x7;
I was just wondering if I have mapped the PSEL.DFEGPIO pins correctly and if i can use the pins 0.17, 0.19 and 0.20 on the nRF52833 DK.
Also if I have done the right switch pattern for 8 antennas.
Thanks