I2C implementation in MSP430

Status
Not open for further replies.

vhn

Member level 4
Joined
Sep 20, 2006
Messages
74
Helped
7
Reputation
14
Reaction score
3
Trophy points
1,288
Activity points
1,776
msp430 i2c implementation

Hi all,
Have any of you used I2C engine in MSP430 microcontroller?
I'm using MSP430F1612 microcontroller and have interfaced three slaves to it. I've configured the speed to 100 KHz. I'm observing that sometimes the complete sequence will execute properly but sometimes the code gets stuck because it won't get acknowledgement from slave.
I've checked the hardware and it is fine. There is not dry soldering anywhere.

Have any of you faced the same problem? Do you have any working sample code for I2C master on MSP430F1612 microcontroller? Please reply.

Thanks,
Vhn
 

msp430 i2c

Hi

You can find a small application report from TI about how to interface the MSP430 with a serial EEPROM using the I2C protocol...

**broken link removed**
**broken link removed**

Best Regards
Pendragon
 

1. when do rd/wr,add interrupt disable before andf enable after rd/wr operation complete.
2. first try a slow clock,i.e. 56khz..then increase
3. for rd/wr operation usea timer flag, instead of counter..
4. increase the error& tries counter to 100
 

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…