CE63794 - CSA Software Filters with EzI2Cs Slave on CY8C20xx6 | Cypress Semiconductor
CE63794 - CSA Software Filters with EzI2Cs Slave on CY8C20xx6
This code example 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 the software filters such as average, IIR, and median filters on raw count and the jitter filter on the slider centroid position.
This code example incorporates the CapSense successive approximation (CSA) module and EzI2Cs module to send CapSense data to the I2C master. The CapSense module scans all the buttons and the 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 the data to the master whenever required.