Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Compiler/CC430F5137: How to Check RSSI Value ?

$
0
0

Part Number: CC430F5137

Tool/software: TI C/C++ Compiler

Hello,

I am using CC430f5137 SoC's. I applied some logic from document for getting RSSI value.

please find below function.

void RSSI_Check(void)

{

if(RSSIcheckFlg)
{
RSSIcheckFlg = 0;
rssi_reg = RxBuffer[RSSI_IDX];
rssi_onescomp = rssi_reg ^0xFF; 
rssi_onescomp = ++rssi_onescomp; 

if (rssi_reg >= 128)
{
rssi_dbm = (long)((long)( rssi_reg - 256) / 2) - 74;//rssi_offset;

}
else
{
rssi_dbm = (rssi_reg / 2) - 74;//rssi_offset;
}

}

}

When I check with on received flag it shown a value above 65000,so how can get correct DBm value.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>