CE63795 - CSA Software Filters with EzI2Cs Slave on CY8C20x34 | Cypress Semiconductor
CE63795 - CSA Software Filters with EzI2Cs Slave on CY8C20x34
CE63795 describes how to scan one CapSense® button and a five-segment slider regularly and send the data to the master using I2C protocol. This code example also describes how to apply software filters such as average, IIR, and median on raw count and the jitter filter on the slider centroid position.
This code example incorporates the CapSense successive approximation (CSA) and EzI2Cs modules to send CapSense data to the I2C master. The CapSense module scans all the buttons and slider segments and applies filters as enabled and continuously stores the raw count, difference count, baseline, sensor status and slider centroid details in a structure defined by MyI2CRegs. This structure is used by the EzI2Cs module to send data to the master when required.