Enquiry on PIC and External EEPROM

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Enquiry on PIC and External EEPROM

Postby slurp » Tue Apr 12, 2011 9:58 am

Hi all,

I am using the UIC00A to programme my PIC, which I also use the PICkit2 v.2.55, this version is the one that comes with the prgrammer.
However, I would like to Test my External EEPROM with this UIC00A as I found that in the PICkit2 INTERFACE, there is a tab that allows me to choose the DEVICE FAMILY.

Q1) CAN I use UIC00A to place my 24LC04B (external EEPROM) and then view it using the PICkit2?
Q2) if Yes, then How do I place the chip? Because there are only 8pins to the 24LC04B, do I follow the positioning of PIC 18pins?
Q3) if No, then any suggestions as to how can I view the contents of my External EEROM (24LC04B)?

Thanks.
slurp.lolipop@yahoo.com
slurp
Greenhorn
 
Posts: 2
Joined: Thu Mar 31, 2011 11:08 am

Re: Enquiry on PIC and External EEPROM

Postby Brian Griffin » Tue Apr 12, 2011 10:19 am

slurp WROTE:Hi all,

I am using the UIC00A to programme my PIC, which I also use the PICkit2 v.2.55, this version is the one that comes with the prgrammer.
However, I would like to Test my External EEPROM with this UIC00A as I found that in the PICkit2 INTERFACE, there is a tab that allows me to choose the DEVICE FAMILY.

Q1) CAN I use UIC00A to place my 24LC04B (external EEPROM) and then view it using the PICkit2?
Q2) if Yes, then How do I place the chip? Because there are only 8pins to the 24LC04B, do I follow the positioning of PIC 18pins?
Q3) if No, then any suggestions as to how can I view the contents of my External EEROM (24LC04B)?

Thanks.
slurp.lolipop@yahoo.com


Of course you can view the EEPROM using the Pickit 2.

For the 24LC series (pins in parentheses), according to the readme, the connection is as follows:
Vdd -> Vcc (8)
Gnd -> Vss (4)
PGC -> SCL (6)
AUX -> SDA (5) (pullup required)
Pin (7) -> GND
Pins (1,2,3) -> look up the datasheet for that EEPROM.

Hope that helps.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: Enquiry on PIC and External EEPROM

Postby slurp » Tue Apr 12, 2011 4:53 pm

Hi Brian Griffin.

Thank you for your reply.
However I do not quite understand what does the pin assignment meant.

My question is on how to place my chip (24LC04B) onto the UIC00A programmer?
To make things clearer, there are different positions to place the PICs (be it 18pins/28pins/40pins) correct?

So, how should I place my 24LC04B onto the UIC00A programmer (from cytron).
Do I wire them up? e.g. place a wire at pin SDA of 24LC04B and then pull it to the UIC004B programmer and place into one of the pin-holes?

I asked, because the PICkit2 v.2.55 interface where i can select to view "device family" >> 24LC >> 24LC04B..
However, I notice that the active section is the "PROGRAM MEMORY" where even after i press the "READ" button, the values displayed by the PICkits2 are all equals to ZERO...

Hope this is clearer.

Many thanks.
slurp
Greenhorn
 
Posts: 2
Joined: Thu Mar 31, 2011 11:08 am

Re: Enquiry on PIC and External EEPROM

Postby Brian Griffin » Tue Apr 12, 2011 6:50 pm

slurp WROTE:Hi Brian Griffin.

Thank you for your reply.
However I do not quite understand what does the pin assignment meant.

My question is on how to place my chip (24LC04B) onto the UIC00A programmer?
To make things clearer, there are different positions to place the PICs (be it 18pins/28pins/40pins) correct?

So, how should I place my 24LC04B onto the UIC00A programmer (from cytron).
Do I wire them up? e.g. place a wire at pin SDA of 24LC04B and then pull it to the UIC004B programmer and place into one of the pin-holes?

I asked, because the PICkit2 v.2.55 interface where i can select to view "device family" >> 24LC >> 24LC04B..
However, I notice that the active section is the "PROGRAM MEMORY" where even after i press the "READ" button, the values displayed by the PICkits2 are all equals to ZERO...

Hope this is clearer.

Many thanks.


Apologies for the unclear instructions. I assume you are using the UP00B/A programmer here, since there is the selection switch.

However, you have to wire up the UIC00A to the EEPROM manually. The pinouts for the EEPROM do not correspond to any of the microcontrollers pinouts and you have to wire it up one by one.

The pin names on your left is the pins from the UIC00A (or Pickit 2), and the pin names on your right are the EEPROM pins:

Vdd -> Vcc (8)
Gnd -> Vss (4)
PGC -> SCL (6)
AUX -> SDA (5) (pullup required)
Pin (7) -> GND
Pins (1,2,3) -> look up the datasheet for that EEPROM.

If you still can't get it - I'll draw up a diagram for you. I've previously programmed an EEPROM, but mine's through SPI.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: Enquiry on PIC and External EEPROM

Postby Brian Griffin » Tue Apr 12, 2011 7:43 pm

Here's the connection diagram. Wire it up according to the diagram and connect it to the programmer. If you don't have the UIC-A adaptor you need to improvise it yourself. The GND, +5V, PGC and AUX are at the UIC00B programmer.
eeprom-i2c.png


Here's the detected EEPROM, mine's the 24LC256, containing data. I'm erasing it now, so the status bar shows that.
pickit2-eeprom.jpg


And btw prior to viewing stuff inside, select the desired EEPROM first, and then "Read Data".
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 2 guests

cron