You are here

CE63793 - CSD Software Filters with EzI2Cs Slave on CY8C20xx6 | Cypress Semiconductor

CE63793 - CSD Software Filters with EzI2Cs Slave on CY8C20xx6

Last Updated: 
Jan 01, 2015
Version: 
*C

CE63793 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, and median filters on raw count and jitter filter on slider centroid position.

This code example incorporates the CapSense sigmal 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.