I2C-Libary for MSP430F16x

Status
Not open for further replies.

mgiaco82

Newbie level 2
Joined
Jan 28, 2006
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,295
Hello, I have started to write a Libary for the Hardware Modul of the MSP430F16x and I have some problems with it.

I want to read from a LM75 and I can only read the high byte.
I wrote something like this.

i2c_start(SLAVE1);

temp0 = i2c_readAck();
lcd_puts_int(temp0,0,1);

temp1 = i2c_readAck();
lcd_puts_int(temp1,0,2);

And then I get.:

23
23

on my LCD, and not

23
128 or something like else

I think there is some wrong i my lib.

please have a look on it.

mathias (austria)
 

Is there no one who can help me with my I2C code?

mathias
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…