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.

pls help me to read/write 24lc512 eeprom by msp430f5438

Status
Not open for further replies.

london

Member level 4
Joined
Jun 30, 2006
Messages
79
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,945
hi all,
if any one done with msp430f5438 and microchip serial eeprom (24lc512) I2C bus communication by using I2C module pls hel me to do. I cant able to communicate properly. these are the main functions,
EEPROM_ByteWrite(0x0000,0x12);
EEPROM_AckPolling(); // Wait for EEPROM write cycle completion
EEPROM_ByteWrite(0x0001,0x34);
EEPROM_AckPolling(); // Wait for EEPROM write cycle completion
EEPROM_ByteWrite(0x0002,0x56);
EEPROM_AckPolling(); // Wait for EEPROM write cycle completion
EEPROM_ByteWrite(0x0003,0x78);
EEPROM_AckPolling(); // Wait for EEPROM write cycle completion
EEPROM_ByteWrite(0x0004,0x9A);
EEPROM_AckPolling(); // Wait for EEPROM write cycle completion
EEPROM_ByteWrite(0x0005,0xBC);
EEPROM_AckPolling(); // Wait for EEPROM write cycle completion

Data[0] = EEPROM_RandomRead(0x0000); // Read from address 0x0000
Data[1] = EEPROM_CurrentAddressRead(); // Read from address 0x0001
Data[2] = EEPROM_CurrentAddressRead(); // Read from address 0x0002
Data[3] = EEPROM_CurrentAddressRead(); // Read from address 0x0003
Data[4] = EEPROM_CurrentAddressRead(); // Read from address 0x0004
Data[5] = EEPROM_CurrentAddressRead(); // Read from address 0x0005

thanks
 

Hi

Look at TI slaa208 application note for reading and writing Eeprom using the MSP430F169

The F169 is using the old I2C module and you probebly need to change the I2C hardware access routine - looks at ti C code for F5438

Also looks at data sheet of 24LC512 it has a different access form 24C16 as it need longer address

All the best

Bobi
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top