Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions subsys/mpsl/fem/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,18 @@ config MPSL_FEM_NRF21540_RUNTIME_PA_GAIN_CONTROL

If this option is disabled the PA gain is constant and equal MPSL_FEM_NRF21540_TX_GAIN_DB.

config MPSL_FEM_NRF21540_PA_LEAD_TIME_ADDITIONAL_US
int "Additional lead time in microseconds by which the PA of the nRF21540 is enabled earlier."
default 15
help
Radio protocol drivers in the nRF Connect SDK usually set the target time point
when the PA of a Front-End Module is expected to be fully ramped-up and ready
for a transmission as the moment of the EVENTS_READY event of the RADIO peripheral.
However the RF power on the SoC output starts to rise before this event.
To avoid any spurious emission, at the moment when RF power starts to rise
on the SoC output the PA of the FEM should be fully ramped-up.
This parameter is added to the PA tx-en-settle-time-us device tree property
to enable the PA of the FEM earlier and avoid spurious emission.

endif # (MPSL_FEM_NRF21540_GPIO || MPSL_FEM_NRF21540_GPIO_SPI) && MPSL_FEM

Expand Down
3 changes: 2 additions & 1 deletion subsys/mpsl/fem/nrf21540_gpio/mpsl_fem_nrf21540_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ static int fem_nrf21540_gpio_configure(void)
.fem_config = {
.pa_time_gap_us =
DT_PROP(DT_NODELABEL(nrf_radio_fem),
tx_en_settle_time_us),
tx_en_settle_time_us) +
CONFIG_MPSL_FEM_NRF21540_PA_LEAD_TIME_ADDITIONAL_US,
.lna_time_gap_us =
DT_PROP(DT_NODELABEL(nrf_radio_fem),
rx_en_settle_time_us),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ static int fem_nrf21540_gpio_spi_configure(void)
.fem_config = {
.pa_time_gap_us =
DT_PROP(DT_NODELABEL(nrf_radio_fem),
tx_en_settle_time_us),
tx_en_settle_time_us) +
CONFIG_MPSL_FEM_NRF21540_PA_LEAD_TIME_ADDITIONAL_US,
.lna_time_gap_us =
DT_PROP(DT_NODELABEL(nrf_radio_fem),
rx_en_settle_time_us),
Expand Down