How to clear LATCHED_BUTTON_STAT ( CY8CMBR3116)

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

cross mob
NiBi_1639801
Level 1
Level 1

Hi all,

   

I work with the CY8CMBR3116 and initialize is from my host controller. Therefore I work with the given cypress API and just change the Host processor files. Everything works fine!

   

My problem is that I would like to use the Latched_Button_STAT register to avoid missing a touch event. Unfortunately in my case the LATCHED_BUTTON_STAT (0xac) will never be cleaned.

   

Example:

   

Steps                                            Is:LATCHED_BUTTON_STAT            Should: LATCHED_BUTTON_STAT

   

Button 1 was pressed and released.          0x0001                                                        0x0001

   

Button 3 is pressed and released.   0x0005   (0x0001 | 0x0004)                   0x0005   (0x0001 | 0x0004)

   

Read sensor status                                    0x0005                                                       0x0005

   

 (Clean after read)

   

 

   

Button 5 is pressed                   0x0015 :…( 0x0001 | 0x0004)                                    0x0010

   

Read sensor status                                    0x0015                                                       0x0010

   

“Latched copies of set bits in BUTTON_STAT since the last time LATCHED_BUTTON_STAT was cleared”

   

 

   

“0: Sensor has been inactive (not touched) since the last time LATCHED_BUTTON_STAT was cleared

   

 1: Sensor has been active (touched) since the last time LATCHED_BUTTON_STAT was cleared”

   

 

   

Docu: CapSense Express Controllers Registers TRM, Document No. 001-91082 Rev. *D

   

Page: 132

   

In my mind, I though every time I read from the touch controller (Sensor states) via I2C the LATCHED_BUTTON_STAT should be automatically cleared, but that doesn’t happen.

   

Could somebody please explain me how to clear the LATCHED_BUTTON_STAT?

   

Thanks a lot.

0 Likes
1 Solution
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi,

   

You can clear the LATCHED_BUTTON_STAT register by writing the Opcode value 0x08 into the  CTRL_CMD register. Please refer page number 111 from MBR3 register TRM obtained from the link below.

   

http://www.cypress.com/file/127221/download

   

Thanks,

   

Ganesh.

View solution in original post

0 Likes
2 Replies
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi,

   

You can clear the LATCHED_BUTTON_STAT register by writing the Opcode value 0x08 into the  CTRL_CMD register. Please refer page number 111 from MBR3 register TRM obtained from the link below.

   

http://www.cypress.com/file/127221/download

   

Thanks,

   

Ganesh.

0 Likes
NiBi_1639801
Level 1
Level 1

Hi Ganesh,

   

thank your very much! That fixed my problem.

   

Thanks,

   

Nik

0 Likes