Is the Cp (parasitic capacitance) within limits supported by SmartSense?
Also, pls send your CapSense configuration parameters for manual and SmartSense tuning mode.
The cp I got 124 in manual mode for the cp with 'CapSense_GetSensorCapacitance(0u,0u)'
So I did one test full smartsense and auto calibration and always 16bits,
0,16pf, sense clock 3000,modulator clock 12000,idac sourcing and scan time
5ms and when I check the idac its constant around 26 idac mod and 23 for
idac comp. I got my rawcount around 55000.
I try then with manual mode without auto calibration and setting the idac
with the value before (26/23). And thoses parameters for the theshold even
if Im not interested in the to touch and the threshold. Just the raw
count. But here it is and its the same set by smartsense also.
Proximity threshold 144
Touch threshold 144
Noise threshold 24
negative noise threshold 24
low baseline reset 30
On denounce 3
But then my raw count is not moving and is like a line around 63000. And I
dont understand why because all the parameters are the same, or I miss
Last test is the same manual one but with auto calibration and I got all
same paremeters but an idac around 108 and 92!
If I test that value of idac in a manual mode its ok
So why I got a idac different with smartsense and with manual mode +auto
calibration idac ?
And why my raw count are like saturated with an Idac around 26/23??
Thak you so much
Is the clock source and the sense clock divider same when you are comparing smartsense and manual modes?
In SmartSense mode, the clock source is always PRS Auto, so it will chose either direct or PRS and you can find out by entering debug mode or probing the sensor.
Try using the same clock source in manual, you should get similar response as smartsense. Also, note that idac codes don't depend on resolution, but they do depend on sense clock source and frequency.
I found the right sense clock frequency that smartsense was using and I got the sames values.
I would like to set the Sense clock source but How can I find which one smartsense is using with the debug mode ? I do not find the place or the data structure command to get it.
Thank you very much
1 of 1 people found this helpful
You can check the sense clock source by using GetParam() API and SNS_CLK_SOURCE_PARAM_ID in RegisterMap.h.
You can refer toAccess and Modify CapSense Register Map in Firmware – KBA2226674
Else, as Priya had mentioned you can probe the CapSense sensor to check if the clock source is direct or PRS.
Pls confirm if your Cp is 124 pF. SmartSense supported Cp range is 5-61 pF. Sp, if Cp is not within supported limits, you can't rely on SmartSense calibration.