Hello,
I use ST's mcu + Atmel radio IC + nRF21540 as the FEM. Use Atmel radio IC's IO to control the TX_EN and RX_EN pins for nRF21540 automatically.
I want to change the nRF21540 Tx gain, but not use the default value. I only configure the nRF21540 NRF21540_REG_CONFREG0's TX_GAIN to 0~31, MODE and TX_EN clear to 0. And then use two IO to control the TX_EN and RX_EN pins, MODE pin connect to GND. But seems the Tx Gain always is the default value (about 20dB), the user Tx gain is invalid.
If I set the NRF21540_REG_CONFREG0's TX_EN bit to 1 when write TX gain, the user TX gain is valid.
Can I use like this? If it's not, How to change the diffrent Tx gain and use the IO switch the Tx and Rx.
My question is if I clear TX_EN bit of CONFREG0, and the TX gain of CONFREG0 I set was invalid, it seems use the default value (20dB).