Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
How do I output PSoC® 4 CapSense® data to the I2C master with using EZI2C?
When not using the CapSense Tuner tool, do the following to use EZI2C to output CapSense data to an I2C master:
1. Define a customized I2C data buffer. The buffer type can be an array or a struct.
2. Define each shift register in the buffer to specify the CapSense parameter to load in each register.
3. Set up the I2C data buffer to be exposed to the I2C master on a primary slave address request with using the following API: void [SCB_Instance_Name]_EzI2CSetBuffer1(uint32 bufSize, uint32 rwBoundary, volatile uint8 * buffer)
4. Manually load the CapSense data in the I2C data buffer in runtime.
The attached project uses EZI2C to output the raw count, diff count, baseline, modulator IDAC, compensation IDAC, and sensor ON/OFF status of 2 CapSense buttons.
You can use the attached test script of Bridge Control Panel. Contact Cypress sales or tech support for more information.