What is the intent of the fix for CE222867?

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

cross mob
SuSh_1535366
Level 5
Level 5
Distributor - Macnica (Japan)
10 solutions authored 10 likes given 10 likes received

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

0 Likes
1 Solution

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

View solution in original post

0 Likes
3 Replies
ShanmathiN_06
Employee
Employee
100 replies posted 50 replies posted 25 replies posted

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

0 Likes
SuSh_1535366
Level 5
Level 5
Distributor - Macnica (Japan)
10 solutions authored 10 likes given 10 likes received

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

0 Likes

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

0 Likes