Welcome in the forum, Janne.
Isn't that too complicated what you do? To see the relevant registers it would be easier using the capsense tuner. For transmitting the slider values to another device it will be more efficient to transmit the slider position only. The tuning method selects at the PC side what to display, not on the PSoC side. That implies that all relevant information must be sent to the PC.
Hi Bob and thanks!
Yes indeed, the idea is to use 4000s as a i2c slave sensing device, whereas the i2c master does what ever it gets from the 4000s. The problem is that in order to get e.g. only the slider position, I have to read from 0x00 to 0x53, throw that data out and then save the data what I get from 0x54-0x55. not that efficient use of i2c lines.
Apparently it seems easier to:
- gather data with 4000s
- process data with 4000s
- select only the valuable data and concatenate new data array from it
- pull external pin down as a mark of new scanning (xint) -> Host reads the value from 4000s
- check whether i2c line is active
- release external pin up
- return to top of this loop.
There are a lot of APIs to get data from a capsense slider. Right click on the capsense component and select "Datasheet". At same window is a "Find Code Example" which will help you.