Hello,
I'm trying to use an MCP9808 temp sensor with a CR1000x. The first step is to write a register with a pointer to the temp register. I'm using the I2C Write command:
I2CWrite (C7, &h18, MCP9808_Pointer, 1, &H03)
The pointer is defined:
Dim MCP9808_Pointer = {&h05000000}
Looking at a scope that decodes I2C, the bytes written are
18 4C {address followed by data}
In other words, the data that's written to the bus isn't what's in the Write command.
I tried writing some other values with the following results appearing on the bus:
{&h01000000} 4B
{&h06000000} 4C
{&h08000000} 4D
{&h0F000000} 4D
{&h06} 40
{&h60} 42
I'm baffled. Any thoughts?
Thanks!
Brian