eeprom & i2c

A catchall for PSoC3 discussions not captured by the other forums.

Moderator: ericb

eeprom & i2c

Postby marycilna » Thu Sep 26, 2013 10:33 pm

Hi,
i want to communicate with eeprom (24AA32A-ISN ) using i2c with eeprom as slave. i think i could write data to eeprom, but could'nt read back ..
i have attached program to write data .
actually i want to read data back and display it in lcd .all i2c(master) settings are default .


please help me to solve this. Am new to psoc.


thanks
cilna
Attachments
main.c
(828 Bytes) Downloaded 139 times
marycilna
Newbie
Newbie
 
Posts: 6
Joined: Mon Sep 09, 2013 8:58 pm

Re: eeprom & i2c

Postby bobmarlowe » Fri Sep 27, 2013 6:14 am

The function I2C_M_MasterWriteBuf() returnvalue indicates whether the communication is principially working.
You should read and wait (loop) on the I2C-status until it indicates that the transfer is complete.
Additionally I2C_M_MasterWriteBuf() WRITES to the eeprom, it does not read from it.
I would always suggest to use the lower-level APIs in the beginning.

Bob
User avatar
bobmarlowe
The Big Cheese
The Big Cheese
 
Posts: 1490
Joined: Thu Oct 06, 2011 2:03 am
Location: Germany


Return to “%s” PSoC3 General

Who is online

Users browsing this forum: No registered users and 1 guest