Created Mon, 05 May 2014 12:42:55 +0000 by samdesd
Mon, 05 May 2014 12:42:55 +0000
Here is the 3rd party library url for 25LC1024: https://bitbucket.org/spirilis/spieep/wiki/Home
As I opened up the .cpp file.... I observed the register names are all reflecting the AVR uC.
My question is WHETHER THIS 3rd party library can be used directly (without any modification) on WF32 (PIC32MX695), MPIDE tools?
By the way, I am using SPI port 1 (chipkit equivalent pin 3, 38, 71,72, )... hence I have to include DSPI.h and later instantiate as follows:
#include <DSPI.h>
... ..
DSPI1 spi1EEPROM;
... ..
Please help, if possible with some snippets on the above library. Any alternative to handle the named EEPROM much appreciated.
Thank you.
SAM
Mon, 05 May 2014 15:22:23 +0000
You don't need anything fancy for a little eeprom chip like that. It's a fairly simple SPI device, and the protocol is very simple.
Yes, you could have a library wrapper around the functions, but you really don't need it to get it going. There's only about 10 lines of code needed.
You can take my SPI SRAM library and modify it for EEPROM usage if you like - the protocols are almost the same.
[url]https://github.com/majenkotech/SPIRAM[/url]
Mon, 05 May 2014 23:07:13 +0000
Hi Majenko,
Thank you very much for the speedy help.
SAM