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

CAPSENSE™ & MagSense

mthumm
Level 1
First question asked Welcome!
Level 1

I want to program the CapSense with a µC. Specifically I want to change a SPO register to be used as a driven shield. Since I'm new to this, some of the first instructions in the programming manual are unclear to me: 

//-------------------------------------------------------------------------------
// Note, that this step requires following data from hex-file:
// - I2C Program Address (0x90500002 – offset in hex)
// - I2C Verify Address (0x90500003 – offset in hex)
// Programmer should implement below APIs:
// 1) HEX_GetProgramAddr() and 2) HEX_GetVerifyAddr()
// Reset Target depending on acquire mode – Reset or Power Cycle
If (AcquireMode == “Reset”) ToggleReset(); // Toggle XRES pin, target must be powered.
Else If (AcquireMode == “Power Cycle”) Power(ON);// Supply power to target.
// Loop to find out correct I2C device from hex-file
Program_Address = HEX_GetProgramAddr();
Verify_Address = HEX_GetVerifyAddr();

So do I get this right, that I get the Hex File only by reading it from the chip? What is this the proper way of receiving the hexfile from the CapSense?

So do I need to read the adresses 0x90500002 and 0x90500003 of the CapSense with I2C? Will the result of this reading be the Hex File Record Struct, where I can extract the adresses? If so, how do I know the size of the structure before reading it?

 

0 Likes
1 Solution
LinglingG_46
Moderator
Moderator 750 replies posted First comment on KBA 500 replies posted
Moderator

CY8CMBR3102 is a I2C config chip, the customer don't program it using SWD interface. 

If you want to enable the shield function, please refer to the below linker: 

https://community.infineon.com/t5/Knowledge-Base-Articles/How-to-Monitor-MBR3-CapSense-Signal-Throug...

https://www.infineon.com/dgdl/Infineon-CY8CMBR3xxx_CapSense_Express_Controllers_Registers_TRM-Additi...

The chip register map is fixed.

 

View solution in original post

0 Likes
1 Reply
LinglingG_46
Moderator
Moderator 750 replies posted First comment on KBA 500 replies posted
Moderator

CY8CMBR3102 is a I2C config chip, the customer don't program it using SWD interface. 

If you want to enable the shield function, please refer to the below linker: 

https://community.infineon.com/t5/Knowledge-Base-Articles/How-to-Monitor-MBR3-CapSense-Signal-Throug...

https://www.infineon.com/dgdl/Infineon-CY8CMBR3xxx_CapSense_Express_Controllers_Registers_TRM-Additi...

The chip register map is fixed.

 

0 Likes