Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

I2C implementation in MSP430

Status
Not open for further replies.

vhn

Member level 4
Joined
Sep 20, 2006
Messages
76
Helped
7
Reputation
14
Reaction score
2
Trophy points
1,288
Activity points
1,803
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
 

tom_hanks

Full Member level 5
Joined
Aug 28, 2003
Messages
243
Helped
14
Reputation
28
Reaction score
1
Trophy points
1,298
Activity points
1,585
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.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top