nrf21540 interface to 528xx

Hello Support,
I'm looking for reference schematic for the interface between nrf52840 (or similar) and the nrf21540 . Is there a simpler version than the developer kit user guide version in 21540 section? Have to trace it all out and can easily miss something.

Also is there some documentation and examples on how to write to nrf528xx USB port (not the usb/jlink on eval board) so I can configure the nrf21540 gain and some other parameters using the spi interface of the nrf52840?


I should be able to do write to nrf528xx USB port and send it out on the SPI port, right?

Thanks!

Parents
  • Hello Jorgen,

    We do not have any schematic that shows interface between nRF21540 with nRF52840. But you can find hardware file of nRF21540 here. nRF21540 DB - Downloads - nordicsemi.com

    You need to have all the control lines (e.g. rx, tx, power down etc) and the spi interface connected up to the nRF52840, because the software implementation use both.

    Best Regards,

    Kazi Afroza Sultana

  • Thanks Kazi for answers.

    1. When you say you can't change gain "dynamically",
      I assume you you referring to the changing gain on 21540 during runtime of an application?
    2. If I stop application I should be able to change Gain parameter on 21540, right? I.e I don't have to reset the device, right?
    3. If I set a "fix gain" on 21540 to achieve total of +19dbm I assume I can dynamically reduce output power on 52840, through the 52840 USB port, right?
      This is not something "technically feasible" it already works, right?

    Sorry if these are fundamental questions. Just want o make sure I don't spend days on trying to make something work if not supported yet.

    Thank you!
    Jorgen

Reply
  • Thanks Kazi for answers.

    1. When you say you can't change gain "dynamically",
      I assume you you referring to the changing gain on 21540 during runtime of an application?
    2. If I stop application I should be able to change Gain parameter on 21540, right? I.e I don't have to reset the device, right?
    3. If I set a "fix gain" on 21540 to achieve total of +19dbm I assume I can dynamically reduce output power on 52840, through the 52840 USB port, right?
      This is not something "technically feasible" it already works, right?

    Sorry if these are fundamental questions. Just want o make sure I don't spend days on trying to make something work if not supported yet.

    Thank you!
    Jorgen

Children
  • Hello Jorgen,

    1. When you say you can't change gain "dynamically", I assume you you referring to the changing gain on 21540 during runtime of an application?

    yes

    2. If I stop application I should be able to change Gain parameter on 21540, right? I.e I don't have to reset the device, right?

    It would be possible , you need to reset the device. 

    3. If I set a "fix gain" on 21540 to achieve total of +19dbm I assume I can dynamically reduce output power on 52840, through the 52840 USB port, right?

    You can change the tx power on the nRF52, you can see this  https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/bluetooth/hci_pwr_ctrl  samples of hci_pwr_control where dynamic Tx power controls over the LL of the BLE controller via Zephyr HCI VS command. A peripheral advertises by varying the TX power. The initial TX power is the default power set for the application in Kconfig. Later the TX power variation of the peripheral device varies from -4dBm to -30dBm where the power level decreases every 5s. However , we do not have any sample that does this through USB. 

    There is a sample https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/subsys/usb/cdc_acm  which demonstrates use of a USB communication Device Class (CDC) Abstract Control Model (ACM), received data from the serial port the serial port is echoed back to the same port provided by this driver.  

    It should be possible to combine so that you can send commands though USB.

    Thanks.

    Best Regards,

    Kazi Afroza Sultana

Related