Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to write 24LC eeprom with PicKit2

Status
Not open for further replies.

elrulo86

Newbie level 3
Joined
Jun 14, 2007
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,299
Hi!
I have made this PicKit2: https://sergiols.blogspot.com/2009/02/pickit-2-clone-reloaded.html
It works perfectly whit PICs but i cant program 24LC eeprom.

i have tried:

Vdd 8 Vcc
GND 4 Vss
PGC 6 SCL (2k pull-up)
AUX 5 SDA (2k pull-up))
GND 7 WP

im realy not sure how to conect A0, A1 and A2. I have tried putting all of them to VCC but nothing...
what im doing wrong???
 

Hello!

A0~2 are address pins.
If you use a single device, you may connect them all to GND.

I don't remember the original address, I think it's 0x50, but you should
verify. What you have to send to communicate to the device is the address
and the read / write bit. 0 for write, 1 for read.
CAREFUL: the address is 0x50, but since it is a 7 bit address and the 8th
bit is the read-write bit, then you have to send 0x50 << + rwbit.

To be crystal clear, let's suppose that A0A1A2 is 010 and you want to
read, therefore you have to send (0x50+(A0A1A2)) << 1 + rwbit.

device Address : 0x50 ([0 1 0 1 0 0 0 0] in binary)
A1A2A3 : 0x02 ([0 0 0 0 0 0 1 0] in binary).
Summing the above 2, you get [0 1 0 1 0 0 1 0] in binary.
Shifting left by 1, you get [1 0 1 0 0 1 0 0]
And finally adding the read bit, you get [1 0 1 0 0 1 0 1] in binary or 0xA5 in
hexa. Then the device should send you an acknowledge.

So if you set A0A1A2 to ground, redo the above calculation with 000 instead
of 010. then you will send 0xA0 to write an 0xA1 to read.

Dora.
 

But dora, i want to use the PicKit2 to write the eeprom. I cant configure that byte....

Added after 1 minutes:

ohh sorry, i can chek the A0, A1 and A2 in the pickit2 software, sorry and thank you.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top