Exact match. Not showing close matches.
'[PIC]: PIC16F87x to 24LC32 using page reads/writes'
I want to use a 16F876 with a 24LC32 (or 24LCxxx). I have quite a few
example routines showing page read/writes using bit-bang methods. And I
have one using hardware I2C with everything but page read/writes. I have
gone through the archives and I have not found anything using hardware I2C
page read/writes. Does anyone have example code? On the bit-bang code,
page reads are done by sending consecutive ACKs instead of STOP. How is
this done with hardware I2C? Thanks.
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads
|> Thanks. OK, you use NO_ACK for byte reads and ACK for page reads.
Sort of. At the risk of being obtuse and providing more information than
was asked for:
These devices have a page write, but don't exactly have a page read.
What you can do is read bytes consecutively without repeating the start
and send device address operation for each byte. This is done by acking
each byte as it is received - the internal address pointer in the EEPROM
is automatically incremented. After the last byte that you want, send a
no_ack and then the stop. That is why a no_ack is required for reading
a single byte. This also means that you can read the entire contents of
the EEPROM is a single start/stop operation.
Mr. Anderson pointed how to do the acking and no_acking with the MSSP
hardware - I just wanted to make it clear that you don't just send an
ack and then you'll automatically receive a "page" of bytes.
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
----- Original Message -----
From: "Mike Mansheim" <GRACO.COM> Michael_J_Mansheim
To: <MITVMA.MIT.EDU> PICLIST
Sent: Monday, March 05, 2001 12:01 PM
Subject: Re: [PIC]: PIC16F87x to 24LC32 using page reads/writes
> > Thanks. OK, you use NO_ACK for byte reads and ACK for page reads.
> Sort of. At the risk of being obtuse and providing more information than
> was asked for:
Not at all. All help is welcome.
Gotcha. It is a consecutive read not a page read. Thanks for your help. I
should have some code together tonight.
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email mitvma.mit.edu with SET PICList DIGEST in the body listserv
More... (looser matching)
- Last day of these posts
- In 2001
, 2002 only
- New search...