I can't receive Bytes from MCP9800

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
HjH
Posts: 108
Joined: Sat Jul 03, 2010 4:38 pm
Been thanked: 2 times

I can't receive Bytes from MCP9800

Post 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.

Spanish_dude
Posts: 594
Joined: Thu Sep 17, 2009 7:52 am
Location: Belgium
Has thanked: 63 times
Been thanked: 102 times

Re: I can't receive Bytes from MCP9800

Post by Spanish_dude »

Could you upload/attach your flowcode file and .c file ?

HjH
Posts: 108
Joined: Sat Jul 03, 2010 4:38 pm
Been thanked: 2 times

Re: I can't receive Bytes from MCP9800

Post by HjH »

Hi

here is my code
Temp_MCP9800_Modified.fcf
(12.46 KiB) Downloaded 315 times

User avatar
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

Post 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.

Post Reply