Controlling Digital Outputs of CapSense® Express (CY8C201xxx) Devices - KBA82461

Version: **

 

Question: Can you control the status of a digital output if it is controlled by a CapSense input?

 

Answer:

Yes, it is possible to control the status of a digital output using I2C host control. The host must write the desired output value to the corresponding bit of the OUTPUT_PORTx register, and then write a "0" to the digital output’s Op_En bit of the OP_SEL_x register. To return to normal operation with the CapSense input controlling the digital output, the host must write a "1" to the digital output’s Op_En bit of the OP_SEL_x register.