CE63796 - CSD Software Filters with EzI2Cs Slave on CY8C21x34 | Cypress Semiconductor
CE63796 - CSD Software Filters with EzI2Cs Slave on CY8C21x34
CE63796 describes how to scan one CapSense® button and 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, median filters on raw count and the jitter filter on slider centroid position.
This code example incorporates the CapSense sigma delta (CSD) module and EzI2Cs module to send CapSense data to the I2C master. The CapSense module scans all the buttons, 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 master whenever required.