I have a issue with nrf21540 in the Transmit state after the Receive state with using of GPIO for control Transmit / Receive switch.
I'm doing next steps for reproducing the issue (I'm doing this steps on the debug mode):
1 - power on amplifier and master MCU (nrf52840)
2 - configure and pulled Down all gpio that use for control amplifier : MODE, RX_EN, TX_EN, PDN, CSN.
3 - puled Up PDN, long delay (> 1s)
4 - configuring amplifier over SPI: write TX_GAIN field to register CONFREG0 (5 dBm)
5 - checking configuration: read the register CONFREG0
6- pull Up TX_EN, long delay (> 1s)
7 - start radio transmit . With using RF spectrum analyzer, check that amplifier works as expected (first cycle everything is OK, amplifier works as expected).
8 - stop radio transmit, long delay (> 1s)
9 - puled Down TX_EN, long delay (> 1s)
10 - puled Up RX_EN, puled Down CSN long delay (> 1s)
11 - puled Up CSN, puled Down RX_EN long delay (> 1s)
12 - go to step 6
On the second and next cycles, I can't see radio signal on my spectrum analyzer at the step 7.
Are my configuration and manner of switching Tx/Rx mode is correct ? Why does amplifier can't works in the Transmit state on the second and next cycles of my flow?
Also I am not sure that amplifier switching to the Receive state.