Power Adjustment for nRF52840 board.

How to control the Power (change from 8 dBm to -40dBm) we can relate and keep this delta as reference and check the rest of the current?

How to set the Standby and Sleep modes?

with regards,

Bhagyashree Badiger.

Parents Reply
  • Hi Bhagyashree,

    It would be easier to provide a proper answer if I knew what you were working with and what you were trying to achieve. Generally it does not make sense to read peripheral task register, and the event registers are typically cleared by the driver in the interrupt handler.

    Here is a snippet showing how you can write to and read from the RADIO TXPOWER register. Note that this will not work if you are using the Bluetooth stack.

    	/* Write to TXPOWER register in RADIO peripheral */
    	NRF_RADIO->TXPOWER = (RADIO_TXPOWER_TXPOWER_0dBm << RADIO_TXPOWER_TXPOWER_Pos);
    	/* Read back register*/
    	uint32_t dummy = NRF_RADIO->TXPOWER;
    

Children
No Data
Related