English
Language : 

CY8C20111 Datasheet, PDF (21/34 Pages) Cypress Semiconductor – CapSense Express-One Button and Two Button Capacitive Controllers
PRELIMINARY
CY8C20111, CY8C20121
7.27 CS_READ_STATUS
Sensor On Status Register
CS_READ_STATUS: 88h
1 Button
7
6
5
4
3
2
1
0
Access: FD
R: 0
Bit Name
BT_ST[0]
2 Button
7
6
5
4
3
2
1
0
Access: FD
R: 00
Bit Name
BT_ST[1:0]
This register gives the sensor ON/OFF status. A bit ‘1’ indicates sensor is ON and ‘0’ indicates sensor is OFF.
Bit
Name
1:0
BT_ST [1:0]
Description
These bits used to represent sensor status.
0
Sensor OFF
1
Sensor ON
7.28 COMMAND_REG
Command Register
COMMAND_REG: A0h
1/2 Button
7
6
5
4
3
2
1
0
Access: FD
W: 00
Bit Name
Cmnd [7:0]
Commands are executed by writing the command code to the command register.
Bit
Name
7:0
Cmnd [7:0]
Description
Refer to the following table for command register opcodes.
Command
Code
00h
01h
02h
03h
Name
Get Firmware Revision
Store Current Configu-
ration to NVM
Restore Factory
Configuration
Write POR Defaults
Description
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.
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.
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.
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
Document Number: 001-53516 Rev. **
Page 21 of 34
[+] Feedback