CY8C20110, CY8C20180
CY8C20160, CY8C20140
CY8C20142
Appendix
Examples of Frequently Used I2C Commands
S. No.
Requirement
I2C commands [31]
1 Enter into setup mode
W 00 A0 08
2 Enter into normal mode
W 00 A0 07
3 Load factory defaults to RAM
registers
W 00 A0 02
4 Do a software reset
W 00 A0 08
W 00 A0 06
5 Save current configuration to
flash[32]
W 00 A0 01
6 Load factory defaults to RAM
registers and save as user
configuration
W 00 A0 08
W 00 A0 02
W 00 A0 01
W 00 A0 06
7 Enable GP00 as CapSense
button
W 00 A0 08
W 00 06 01
W 00 A0 01
W 00 A0 06
8 Read CapSense button(GP00)
scan results
W 00 81 01
W 00 82
R 00 RD. RD. RD.
9 Read CapSense button status
register
W 00 88
R 00 RD
Comment
Enter into setup mode
Do software reset
Enter into setup mode
Load factory defaults to SRAM
Save the configuration to flash. Wait for time specified in
CapSense Express Commands on page 17.
Do software reset
Enter into setup mode
Configuring CapSense buttons
Save the configuration to flash. Wait for time specified in
CapSense Express Commands on page 17.
Do software reset
Select CapSense button for reading scan result
Set the read point to 82h
Consecutive 6 reads get baseline, difference count and raw
count (all two byte each)
Set the read pointer to 88
Reading a byte gets status CapSense inputs
Notes
31. The ‘W’ indicates the write transfer and the next byte of data represents the 7-bit I2C address. The I2C address is assumed to be ‘0’ in the above examples. Similarly
‘R’ indicates the read transfer followed by 7-bit address and data byte read operations.
32. Errata: Save to flash command fails when the sleep interval is set to 512 or 64 Hz. For more information, see “Errata” on page 41.
Document Number: 001-54606 Rev. *J
Page 29 of 46