Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 16th June 2005, 07:29 AM   #1
Default EEPROM Memory

I am looking into EEPROM memory from Microchip and would like to get some input on how they work. Does anyone have any schematics on how to connect them to a PIC? Also do they hold there memory when their power is cut or do they empty it?
GatorGuy is offline  
Old 16th June 2005, 08:56 AM   #2
Default Re: EEPROM Memory

Quote:
Originally Posted by GatorGuy
I am looking into EEPROM memory from Microchip and would like to get some input on how they work. Does anyone have any schematics on how to connect them to a PIC? Also do they hold there memory when their power is cut or do they empty it?
Why would you like to do that? If your answer is you need more space than Internal EEPROM, that's ok. If not, Internal PIC EEPROMs have a capacity of 256-512 Bytes, that's pretty much. What do you want to store there?
Also, try tu use Internal Program memory to do the job, it's ususally pretty empty and is very fast.
If you still want to use external EEPROM, use one with SPI(25xxx) or I2C(24xxx) serial bus connection.

Ofcourse they Don't "forget" when power is removed.
__________________
"I share, thus I am"
Jay.slovak
Read this!
ICD2 Clone
Best PIC/DsPIC Bootloader

Read my Inchworm ICD2 review!
Jay.slovak is offline  
Old 16th June 2005, 11:18 AM   #3
Default

Pretty much to just add more memory. At this point it is only research. I am learning what I can now for future projects. For now internal memory is enough for what I need to do. But I might see a need for it later.
GatorGuy is offline  
Old 16th June 2005, 11:21 AM   #4
Default

Quote:
Originally Posted by GatorGuy
Pretty much to just add more memory. At this point it is only research. I am learning what I can now for future projects. For now internal memory is enough for what I need to do. But I might see a need for it later.
Oh I see, that's alright.
__________________
"I share, thus I am"
Jay.slovak
Read this!
ICD2 Clone
Best PIC/DsPIC Bootloader

Read my Inchworm ICD2 review!
Jay.slovak is offline  
Old 16th June 2005, 12:04 PM   #5
Default

I encountered this problem with my recent project, if u remember Jay... I needed much more memory, so I had either to get EEPROM or shorten the program... I chose the latter one, though my teacher stated that it isn't hard to work with EEPROMs: connect'em from PIC ports to pins, looking at teh datasheet (obviously) of the EEPROM...
__________________
May God be with you.
My Blog
Agent 009 is offline  
Old 16th June 2005, 12:12 PM   #6
Default

Quote:
Originally Posted by Agent 009
I encountered this problem with my recent project, if u remember Jay... I needed much more memory, so I had either to get EEPROM or shorten the program... I chose the latter one, though my teacher stated that it isn't hard to work with EEPROMs: connect'em from PIC ports to pins, looking at teh datasheet (obviously) of the EEPROM...
Yep I do...

Using external serial memory is not hard, but You should have some experiences before you do so.
__________________
"I share, thus I am"
Jay.slovak
Read this!
ICD2 Clone
Best PIC/DsPIC Bootloader

Read my Inchworm ICD2 review!
Jay.slovak is offline  
Old 16th June 2005, 12:20 PM   #7
Default

Trial and error is the key :wink: ...
No really, I think the datasheet and knowing assembly would just do
__________________
May God be with you.
My Blog
Agent 009 is offline  
Old 16th June 2005, 02:19 PM   #8
Default

The serial EEPROMs have an I2C interface, which is really easy...just two pins and resistor pullups. I have some JAL code if you want to look at it.

Mike
upand_at_them is offline  
Old 16th June 2005, 02:27 PM   #9
Default

I2C... Is that serial communication?
__________________
May God be with you.
My Blog
Agent 009 is offline  
Old 16th June 2005, 03:14 PM   #10
Default

Quote:
Originally Posted by Agent 009
I2C... Is that serial communication?
Yes, it is 2wire, Half-Duplex synchronus serial communication in speeds from 100Khz thru 400Khz to 1Mhz max.
__________________
"I share, thus I am"
Jay.slovak
Read this!
ICD2 Clone
Best PIC/DsPIC Bootloader

Read my Inchworm ICD2 review!
Jay.slovak is offline  
Old 16th June 2005, 03:36 PM   #11
Default

But my PIC is driven by a 4MHz oscillator... What 2 do???
__________________
May God be with you.
My Blog
Agent 009 is offline  
Old 16th June 2005, 03:51 PM   #12
Default

agent009 he said Kilo HZ not MHZ
a 4 mhz PIC should be able to handle 100 KHZ easily..
williB is offline  
Old 16th June 2005, 05:12 PM   #13
Default

Quote:
Originally Posted by williB
agent009 he said Kilo HZ not MHZ
a 4 mhz PIC should be able to handle 100 KHZ easily..
Or you can use PIC with I2C peripheral, and that very easy and fast.
__________________
"I share, thus I am"
Jay.slovak
Read this!
ICD2 Clone
Best PIC/DsPIC Bootloader

Read my Inchworm ICD2 review!
Jay.slovak is offline  
Old 16th June 2005, 05:14 PM   #14
Default

Quote:
Originally Posted by williB
agent009 he said Kilo HZ not MHZ
a 4 mhz PIC should be able to handle 100 KHZ easily..
Yeah, but if he said from 100Khz thru 400Khz to 1Mhz max... 4 MHz in not included???
__________________
May God be with you.
My Blog
Agent 009 is offline  
Old 16th June 2005, 05:26 PM   #15
Default

Quote:
Originally Posted by Agent 009
Quote:
Originally Posted by williB
agent009 he said Kilo HZ not MHZ
a 4 mhz PIC should be able to handle 100 KHZ easily..
Yeah, but if he said from 100Khz thru 400Khz to 1Mhz max... 4 MHz in not included???
That's not PIC frequency, it's the BUS speed.
__________________
"I share, thus I am"
Jay.slovak
Read this!
ICD2 Clone
Best PIC/DsPIC Bootloader

Read my Inchworm ICD2 review!
Jay.slovak is offline  
Reply

Tags
eeprom, memory

Thread Tools
Display Modes




All times are GMT. The time now is 04:59 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker