- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Hari,
I test it is OK,Thank you for your great support!
Thanks,
Lin