Quantcast
Channel: Cypress Semiconductor - PSoC 4 Architecture
Viewing all articles
Browse latest Browse all 761

I2C read and write pointers overlap with databytes

$
0
0

I'm currently working on a sensor (MAX30105) connected to a PSoC 4200M via I2C that delivers data through an 18 bit ADC.

The write and read registers are 5 bits, and I'm reading samples by taking the difference between the read and write pointers and reading that amount.

Whenever I do this, it seems the read and write pointers are part of the data I'm sampling and sending through to my receiver.

I cannot seem to see how this is happening.

The image attached from top to bottom: IR_L, IR_M, IR_L, with a difference of 256, and the bottom increment is resetting at 31, which made me question if this was the pointers.

Is this a normal problem, and how to remove it?


Viewing all articles
Browse latest Browse all 761

Trending Articles