cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

New Contributor II

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
Reply
1 Solution
Employee

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
Reply
3 Replies
Employee

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
Reply
New Contributor II

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
Reply
Employee

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
Reply