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.
SPI EEPROM
Moderator: Benj
-
- Posts: 63
- Joined: Mon Dec 23, 2013 5:51 pm
- Been thanked: 8 times
SPI EEPROM
- Attachments
-
- Untitled.png
- (5.64 KiB) Downloaded 2246 times
-
- 25AA1024_v6.fcfx
- (10.37 KiB) Downloaded 248 times
Re: SPI EEPROM
This is what I've got when opened your project. Are you sure you have all pins correctly linked?
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)
- 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
Hello,
Here is a version of your program with the connections setup to match your drawing.
This is news to me, what are you having difficulties with?I've got many troubles with all "high-level" components
Here is a version of your program with the connections setup to match your drawing.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: SPI EEPROM
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.Benj wrote:This is news to me, what are you having difficulties with?
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)
-
- Posts: 63
- Joined: Mon Dec 23, 2013 5:51 pm
- Been thanked: 8 times
Re: SPI EEPROM
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
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
-
- Posts: 63
- Joined: Mon Dec 23, 2013 5:51 pm
- Been thanked: 8 times
Re: SPI EEPROM
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
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