Hi,
I have some trouble reading the 8/12bit RSSI register values.
In my setup I am communicating between an LPC4078FBD144 MCU and the CC1125 RF chip over SPI. I have two of these setups. The SPI works and sending a package and reading out the raw RSSI also works. Each second I send a package, and each second I listen and receive the package including the RSSI and LQI values by reading out the FIFO register from the CC1125RF.
Now I want to get the exact 12bit RSSI value each time a package is received.(to determine the distance between these set ups)
I tried reading out the RSSI0 and RSSI1 registers, but both give me a constant value and nothing looks like the raw RSSI value.
Then I tried resetting the AGC_GAIN_ADJUST and AGC_CFG0 register. But still the same values occur.
I don't know what to write to these registers to read out the correct RSSI0 and RSSI1 values. When do these registers(RSSI0/RSSI1) get updated?
*EDIT*
These are my values I receive out of the read registers.
My RSSI0 value I get = 00010111 (0x17)
My RSSI1 value I get = 00011000 (0x17)
The RSSI appending byte I get: 10100010 (0xA2) -> This value does change, the closer the higher it gets, the more further away the smaller it gets.
Thanks!
Niek,