Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top