Searching \ for '[PIC]: How do I read/write from/to a 24C16C serial' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/ios.htm?key=serial
Search entire site for: 'How do I read/write from/to a 24C16C serial'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: How do I read/write from/to a 24C16C serial'
2001\05\28@093204 by Frej

picon face
Hi!

I've been searching and searching the web for some sample code to read and write a 24C16C serial EEPROM, but haven't found anything useful yet.
I've tried some routines from http://www.phanderson.com/PIC/16C84/24lc65.html but that didn't work to well...
Anybody here that happens to have some code snippets? (preferably for PIC 16x84)

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\05\28@110449 by Drew Vassallo

picon face
>I've been searching and searching the web for some sample code to read and
>write a 24C16C serial EEPROM, but haven't found anything useful yet.
>I've tried some routines from
>http://www.phanderson.com/PIC/16C84/24lc65.html but that didn't work to
>well...

Must not have searched the PICLIST archives.  Try this:

http://www.piclist.com/techref/microchip/i2c-dv.htm

--Andrew
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\05\28@132744 by Frej

picon face
Thanks, Drew!

That helped me a bit on my way.

But that routine can just read/write 256 bytes of an 24Cxx EEPROM (I hope I'm right)
What I'm looking for is a routine that can read every single byte of an EEPROM (ie. a 2k eeprom)
Maybe it's called page-shifting or something.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\05\28@181702 by Drew Vassallo

picon face
>But that routine can just read/write 256 bytes of an 24Cxx EEPROM (I hope
>I'm right)
>What I'm looking for is a routine that can read every single byte of an
>EEPROM (ie. a 2k eeprom)
>Maybe it's called page-shifting or something.

You'll have to check out the datasheet for that chip.  Reading can be done
sequentially, without the need for switching pages, I believe.

Writing, however, is dependent on the page size for a given chip.

You can modify the routines from the web page that I mentioned so that they
just read sequentially, rather than what's called "Random Read", as my code
does.  This should be a very minor change.

--Andrew
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...