This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LDC1614: Retrieve Fsensor on LDC1614

Part Number: LDC1614

Hi, 

I would like to retrieve the value of Fsensor in my product.

I use scope to measure Fsensor directly from my coil and I found 473,3KHz

When I tried to compute Fsensor in my code, using this formula : 

I found : 155.875 KHz

with DATAx = 1585, OFFSET = 255, Fref = 40 MHz, FIN_DIV = 1

If I use theorical formula for an LC circuit : f= 1/(2*pi*sqrt(LC)), I found a value close to 473KHz too.

However, everything seems OK with my data and offset value. When I approched a metal to my coil, the DATAx's value increase proportionally.

My compatation's code is :

freqSensor = LoopData[device][LoopId].Data + (LoopData[device][LoopId].Offset << 12) ; // reduce the impact of division to avoid to have freqSensor = 0
freqSensor = (LDC_ChannelFinDivider[device][LoopId] * F_REF * freqSensor);
freqSensor = freqSensor >> 28;

Could you able tell me if I messed up some points please?

Thanks a lot.

Regards