Page 1 of 1
I can't receive Bytes from MCP9800
Posted: Sun Jul 10, 2011 12:36 pm
by HjH
Hi
I can't receive Bytes from MCP9800. This is my first I2C project.
Have anybody a smal example that can receive Bytes from MCP9800.
Re: I can't receive Bytes from MCP9800
Posted: Sun Jul 10, 2011 2:53 pm
by Spanish_dude
Could you upload/attach your flowcode file and .c file ?
Re: I can't receive Bytes from MCP9800
Posted: Sun Jul 17, 2011 11:35 pm
by HjH
Re: I can't receive Bytes from MCP9800
Posted: Mon Jul 18, 2011 10:28 am
by Benj
Hello,
I think I can see a potential problem with the code.
In the I2C_Read_MCP9800 macros you are passing the same address for both the read and write operations.
The least significant bit should be set for one of these transmit byte functions. I forget which one but the datasheet should detail this.