Program an I2C-memory with the PICKit 2

connection of the PICkit2-programmer and the I2C-chip

Connect the I2C-chip (eg. 24LC512) on a free area on a breadboard. connect 6 wires to PICKit 2. One "pullup"-resistor with value 2,2 kOhm is needed on the breadboard.

Start PICKit 2 and choose Device Family EEPROMS, and then 24LC.

Under EEPROMS/24LC Configuration choose Device: and in this example 24LC512.

Read, Write, Verify, Erase, Blank Check

Under File-menu one can load and save files in Hex-format, but also in Bin -format. Import Hex/Bin and Export Hex/BIN.
You can now Read, Write, Verify, Erase, or perform a Blank Check with the memory.

Will you experiment with the pre-programmed memory (which is pre-programmed with the English language allophones) you should first read the memory and save the contents on a file, if you might need to restore it!

Simple editing

If the memory contends textstrings you chose to view Byte ASCII. The memory content interpreted as text will then be visible at the right in the window.

If you have access to an ASCII table, you could edit the text byte for byte by entering the ASCII code in hexadecimal.

To use the I2C-memory

Sparcfun's I2C Tutorial



Back ]

© William Sandqvist   william@kth.se