
PRELIMINARY
CY8C20111, CY8C20121
Document Number: 001-53516 Rev. **
Page 21 of 34
7.27 CS_READ_STATUS
Sensor On Status Register
CS_READ_STATUS: 88h
This register gives the sensor ON/OFF status. A bit ‘1’ indicates sensor is ON and ‘0’ indicates sensor is OFF.
7.28 COMMAND_REG
Command Register
COMMAND_REG: A0h
Commands are executed by writing the command code to the command register.
1 Button
7654321
0
Access: FD
R: 0
Bit Name
BT_ST[0]
2 Button
7654321
0
Access: FD
R: 00
Bit Name
BT_ST[1:0]
Bit
Name
Description
1:0
BT_ST [1:0]
These bits used to represent sensor status.
0
Sensor OFF
1
Sensor ON
1/2 Button
7654321
0
Access: FD
W: 00
Bit Name
Cmnd [7:0]
Bit
Name
Description
7:0
Cmnd [7:0]
Refer to the following table for command register opcodes.
Command
Code
Name
Description
00h
Get Firmware Revision
The I2C buffer is loaded with the one byte firmware revision value. Reading one byte
after writing this command returns the firmware revision. The upper nibble of the
firmware revision byte is the major revision number and the lower nibble is the minor
revision number.
01h
Store Current Configu-
ration to NVM
The current register settings are saved in nonvolatile memory (Flash). This setting is
automatically loaded after the next device reset/power up or if the Reconfigure Device
(06h) command is issued.
02h
Restore Factory
Configuration
Replaces the saved user configuration with the factory default configuration. Current
settings are unaffected by this command. New settings are loaded after the next device
reset/power up or if the 06h command is issued.
03h
Write POR Defaults
Sends new power up defaults to the CapSense controller without changing current
settings unless the 06h command is issued afterwards. This command is followed by
123 data bytes according to the POR Default Data Structure table. The CRC is calculated
as the XOR of the 122 data bytes (00h-79h). If the CRC check fails or an incomplete
block is sent, the slave responds with an ACK and the data is NOT saved to Flash.
To define new POR defaults:
■ Write command 03h
■ Write 122 data bytes with new values of registers (use the _flash.iic file generated
from s/w tool)
■ Write one CRC byte calculated as XOR of previous 122 data bytes
[+] Feedback