2 Replies Latest reply on Apr 27, 2017 12:38 AM by NiBi_1639801

    How to clear LATCHED_BUTTON_STAT ( CY8CMBR3116)


      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.




      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.