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.
I can't receive Bytes from MCP9800
Moderator: Benj
-
Spanish_dude
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: I can't receive Bytes from MCP9800
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel