A9101 FIFO mode (Auto RSSI measurement for TX Power)
RC_A9101-F4_x3_915MHz Band Ref. Code for FIFO mode CL=18pF_V0.5 - RSSI For TX power.zip
1. Set wanted FRXLO.
2. Set RSS= 1 (081Fh), FSARS= 0 (0822h, 4.096MHz ADC clock).
3. Enable ARSSI= 1 (0802h).
4. Send RX Strobe command.
5. In RX mode, 8-times average a RSSI measurement periodically.
6. Exit RX mode, user can read digital RSSI value from ADC [7:0] (0821h) for TX power.
In step 6, if A9101 is set in direct mode, MCU shall let A9101 exit RX mode within 40 us to prevent RSSI inaccuracy
代碼分析:
Master:修改成純Tx Mode
Slave:呼叫RSSI_measurement()函數
RSSI_measurement()函數內容: