hi
Can anybody please help me in understanding the formula used for converting RSSI register value into RSSI_dBm ,I`m using CC1110 in a custom hardware ;
UINT8 rssi_dec;
INT16 rssi_dBm;
UINT8 rssi_offset = 72;
rssi_dec = RSSI; //For CC1110 SOC
if (rssi_dec >= 128)
{rssi_dBm = (INT16)((INT16)( rssi_dec - 256) / 2) - rssi_offset;} //negative value
else
{rssi_dBm = (rssi_dec / 2) - rssi_offset;.
Here why are we using the terms (rssi_dec - 256)/ 2 and (rssi_dec / 2) ? Is this the correct way to read RSSI in cc1110 ?