Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataCheck Error in MLX90641_GetFrameData #9

Open
LiangZai-Embedded opened this issue Nov 2, 2024 · 0 comments
Open

DataCheck Error in MLX90641_GetFrameData #9

LiangZai-Embedded opened this issue Nov 2, 2024 · 0 comments

Comments

@LiangZai-Embedded
Copy link

LiangZai-Embedded commented Nov 2, 2024

Hi,
I found an I2C write-and-then-read mismatch in MLX90641_GetFrameData function and returns an error.

int MLX90641_GetFrameData(uint8_t slaveAddr, uint16_t *frameData)
{
....
error = MLX90641_I2CWrite(slaveAddr, 0x8000, 0x0030);
....

Thru logic analyzer I find that the controller write 0x8000(reg) and 0x0030(data) to dev and read back with data= 0x0011. Is it normal?

The bit 5 is asserted in 0x0030, in datasheet it describes“Set Start Of Measurement – Bit5 in 0x8000” in step mode. What is step mode? And I see the definition of reg 0x8000, Bit 5 is reserved. It makes me very confused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant