The board is a very simple design and easy to use:
- Insert your 8-pin serial EEPROM into the 8-pin DIP socket.
- Select the serial protocol with the switch, either SPI or I2C.
- Insert the board directly into the PICkit 2.
The EEPROM can then be read, programmed, or erased via the PK2CMD command line utility or the PICkit2 Windows application. To read an EEPROM into a binary file with PK2CMD, use the following format:
$ pk2cmd -p<EEPROM> -j -gf<file.bin>
For example, to read a 25AA1024 1024 Kb (128 K x 8) SPI EEPROM into the file dump.bin, the command would be:
$ pk2cmd -p25LC1024 -j -gfdump.bin
You'll notice the part number is 25LC1024 vice 25AA1024. The PK2CMD utility will only recognize the LC variant on the command line, but don't worry, it works fine. To program an EEPROM, use the following format:
$ pk2cmd -p<EEPROM> -f<file.bin> -j -mFor example, to write file data.bin to the same 25AA1024 as mentioned before, the command would be:
$ pk2cmd -p25LC1024 -fdata.bin -j -mFor more information, see the Readme file included with PK2CMD.