Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 4 Forum Discussions

lili_285866
Level 1
Level 1
5 replies posted 5 questions asked 5 sign-ins

Hi All,

I use PSoC Creator 4.4 KIT-147(CY8C4145LQI-PS433) to i2c read Capsense Cp anormal ,The every time Cp is not same  ,can help me check the code ?  

 

Thanks,

Lin

0 Likes
1 Solution
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi @lili_285866 

 

The CapSense component version 7.0 returns the capacitance in FemtoFarads - not picofarads. I see in the code that you are taking the least significant byte. 

This is why you see variations in Cp read as femtoFarad changes are within the margin of error. 
You can check the uint32 value returned and divide it by 1000 for picofarad values.

 

Best regards, 
Hari

View solution in original post

0 Likes
2 Replies
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi @lili_285866 

 

The CapSense component version 7.0 returns the capacitance in FemtoFarads - not picofarads. I see in the code that you are taking the least significant byte. 

This is why you see variations in Cp read as femtoFarad changes are within the margin of error. 
You can check the uint32 value returned and divide it by 1000 for picofarad values.

 

Best regards, 
Hari

0 Likes
lili_285866
Level 1
Level 1
5 replies posted 5 questions asked 5 sign-ins

Hi Hari,

 I test it is OK,Thank you for your great support! 

Thanks,

Lin

0 Likes