Hi everyone
I have an issue/question regarding the software code which was provided with the software of the EVM-board LDC1000.
Since the last improvments the sensor frequency of my sensor is now way lower than a few days ago, causing the frequency counter getting higher.
If I understand the code correctly
c=sport.BytesAvailable; while(c<1*2048) c=sport.BytesAvailable; end d=fread(sport,2048); d1=d(1:2:1024); d2=d(2:2:1024); Rp=d1*256+d2; Rp_buf([1:512]'+mod(dcount,N),:)=Rp; d1=d(1025:2:2048); d2=d(1026:2:2048); Tp=d1*256+d2; Tp_buf([1:512]'+mod(dcount,N),:)=Tp;
the value of Tp is calculated with a low byte and a high byte. But the LDC1000 provides a 24-bit resolution.
How has the code to be improved to use all three registers for the calculation?
Thanks in advance
Stephan