- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In the code sample CE222867, TuneMagSense() function handles component bug fixes.
What is the purpose of this process?
If I want to use my own coil pattern, what code should I modify?
Regards,
Shimamrua
Solved! Go to Solution.
- Tags:
- magsense
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Shimamura-san,
Auto-calibration routine routine would be called during MagSense_Start API.
There maybe scenarios where the auto-calibration might return less sensitive IDAC codes. To enhance the sensitivity of sensors, we have added the TuneMagSense API after the auto-calibration is completed.
Yes, you could either enable auto-calibration and use TuneMagSense API, as done in the code example.
Else, you could refer to the guide and perform manual tuning.
Thanks,
Shanmathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, you can refer to the KBA: Updated Code Example to Fix Out-of-box Project for CY8CKIT-148 – KBA225730
The CE was updated so that all the buttons in the -148 kit would work as expected. TuneMagSense function basically calibrates the IDAC codes (to increase sensitivity) and Lx clock frequency (sensitive frequency region).
To tune your board, you can refer to Section 5: Tuning MagSense Component Parameters of the design guide: https://www.cypress.com/file/427771/download.
You could also develop from the CE, keeping it as a reference.
Thanks,
Shanmathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Shanmathi-san,
Thank you for your reply.
Does your answer mean that when using MagSense we must manually calibrate Lx and IDAC without enabling Auto-calibration?
Because, when Auto-calibration is enabled, Lx and IDAC will be overwritten.
Regards,
Shimamura
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Shimamura-san,
Auto-calibration routine routine would be called during MagSense_Start API.
There maybe scenarios where the auto-calibration might return less sensitive IDAC codes. To enhance the sensitivity of sensors, we have added the TuneMagSense API after the auto-calibration is completed.
Yes, you could either enable auto-calibration and use TuneMagSense API, as done in the code example.
Else, you could refer to the guide and perform manual tuning.
Thanks,
Shanmathi