You are here

CE54362 - CSA with I2CHW Slave on CY8C20x34 | Cypress Semiconductor

CE54362 - CSA with I2CHW Slave on CY8C20x34

Last Updated: 
May 06, 2015
Version: 
*E

CE54362 describes how to scan five CapSense® buttons regularly and send the data to the master using I2C protocol.

This code example incorporates CapSense Successive Approximation (CSA) module and I2CHW module to send the CapSense data to the I2C master. The CapSense module scans all the buttons continuously and stores the raw count, difference count, and baseline details in a structure defined by MyI2CRegs. This structure is used by the I2CHW module to send the data to master when required.