- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ganesh,
thank your very much! That fixed my problem.
Thanks,
Nik