SPI EEPROM

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
Emanuel Lourenco
Posts: 63
Joined: Mon Dec 23, 2013 5:51 pm
Been thanked: 8 times

SPI EEPROM

Post by Emanuel Lourenco »

Hello

I'm trying to use an EEPROM 25AA1024.
I got an example here in the forum.

http://www.matrixtsl.com/mmforums/viewt ... t=25aa1024

But I am not able to get to work. The value of EEPROM shot is always 255.
I ask for help to solve this problem.
I leave my connections to my dsPIC and the program.
Attachments
Untitled.png
(5.64 KiB) Downloaded 2246 times
25AA1024_v6.fcfx
(10.37 KiB) Downloaded 248 times

User avatar
mikn
Posts: 209
Joined: Mon Mar 03, 2014 10:11 pm
Has thanked: 54 times
Been thanked: 41 times

Re: SPI EEPROM

Post by mikn »

This is what I've got when opened your project. Are you sure you have all pins correctly linked?
ww.GIF
ww.GIF (19.69 KiB) Viewed 5041 times
Try to use CAL_SPI instead of SPI_Master component. I've got many troubles with all "high-level" components and use only low-level CAL_SPI/ADC/I2C now.
FC 6.1.3.2 (18.02.2016)

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SPI EEPROM

Post by Benj »

Hello,
I've got many troubles with all "high-level" components
This is news to me, what are you having difficulties with?

Here is a version of your program with the connections setup to match your drawing.
25AA1024_v6-1.fcfx
(10.36 KiB) Downloaded 322 times

User avatar
mikn
Posts: 209
Joined: Mon Mar 03, 2014 10:11 pm
Has thanked: 54 times
Been thanked: 41 times

Re: SPI EEPROM

Post by mikn »

Benj wrote:This is news to me, what are you having difficulties with?
For example, I couldn't initialize 24lc512 with I2CMaster, but same was done with CAL_I2C. Same bytes sent, same addresses used. Don't know what's the reason.
Also I've got total application freeze on ADCBase GetAverageByte macro. I've wrote about this http://www.matrixtsl.com/mmforums/viewt ... yte#p60399, but the issue was not resolved, so I had to use C code to work with ADC directly.
I've got some other problems with different components but don't report them all since I used C code to replace failed macro or component and had to move forward with projects as they are time dependent, and you reply too long.
FC 6.1.3.2 (18.02.2016)

Emanuel Lourenco
Posts: 63
Joined: Mon Dec 23, 2013 5:51 pm
Been thanked: 8 times

Re: SPI EEPROM

Post by Emanuel Lourenco »

Hi
Was experiencing the file and did not work.
I have to put a resistance ... or something?
The rest of the EEPROM pin is necessary to connect?
Best Regards

Emanuel Lourenco
Posts: 63
Joined: Mon Dec 23, 2013 5:51 pm
Been thanked: 8 times

Re: SPI EEPROM

Post by Emanuel Lourenco »

hi

After exploring the best forum I found this post.
Joint now made a program in this post.

http://www.matrixtsl.com/mmforums/viewt ... nes#p27054

I leave attached the program

I've been to analyze the signals of the SPI.
And chegei the conclusion that I do not get signal from my EEPROM.
Let down the signs I got.
However transmit a signal to EEPROM 0101010101 instead of receiving the EEPROM signal.
What could it be?
Chip damaged?

I hope I have explained well and that can help me.

Best Regards
Emanuel
Attachments
SPI Memory Routines_v6_V3.fcfx
(21.99 KiB) Downloaded 255 times
Untitled.png
(12.2 KiB) Downloaded 2197 times

Post Reply