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.

EEPROM memory interface problem

Status
Not open for further replies.

divakar.raj

Newbie level 2
Joined
Aug 11, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,347
Hello all,


I am new to dsPIC30 series. I have been using PIC18 and interfaced 24LC512 successfully.. Now I try to interface 24LC1026 with dsPIC30F6010a, but couldnt. Can someone help me with this transition from 18F to 30F for I2C.


The dsPIC datasheet speaks well about the I2C master reading the data from memory (at pg 15 -- family ref. manual DS70068F), but not about master writing data into the memory. I tried to write a byte to a location in memory and read it, all I get is 0xff.. I tried to turn on a I/O pin by comparing the received data with the sent data. The pin doesnt go high at all. It goes high only when I compare received byte with 0xff. Not sure if d problem with writing or the reading process.


I use 7.3728MHz ext crystal, configured as XT_PLL4. I am not understanding Acknowledge polling concepts (to include at the end of write sequence), hence I just gave a delay of 1 second and then I initiate the data read sequence. All I thought is to give proper time delay to complete writing sequence. Please correct me and help me to successfully interface the memory please.. I have also attached the codes, please correct me or give me some sample code to use.


Thanks Divakar Raj. R
 

Attachments

  • memory_write_read.txt
    3.9 KB · Views: 42

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top