Searching \ for '[PIC]: PIC16F87x to 24LC32 using page reads/writes' 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/devices.htm?key=16F
Search entire site for: 'PIC16F87x to 24LC32 using page reads/writes'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: PIC16F87x to 24LC32 using page reads/writes'
2001\03\03@125453 by Glenn Mitchell

flavicon
face
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.

Glenn Mitchell.

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\03\03@190235 by Peter Anderson

flavicon
face
See the SSPCON2 register in RAM bank 1.

Set the ackdt bit to the appropriate state.
Set acken and loop until it is clear.

Peter H. Anderson, http://www.phanderson.com, pha(a)phanderson.com



Peter H. Anderson, spam_OUTphaTakeThisOuTspamphanderson.com, http://www.phanderson.com
Sign up for Free-for-Life E-mail at http://www.Africana.com

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\03\05@001555 by Glenn Mitchell

flavicon
face
Thanks.  OK, you use NO_ACK for byte reads and ACK for page reads.

Glenn Mitchell.

----- Original Message -----
From: "Peter Anderson" <.....kz3kKILLspamspam@spam@africana.com>
To: <gmitchspamKILLspam101FREEWAY.COM>; <.....piclistKILLspamspam.....mitvma.mit.edu>
Sent: Saturday, March 03, 2001 4:00 PM
Subject: Re: [PIC]: PIC16F87x to 24LC32 using page reads/writes


{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\03\05@150628 by Mike Mansheim

flavicon
face
> 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.


2001\03\06@203707 by Glenn Mitchell

flavicon
face
----- Original Message -----
From: "Mike Mansheim" <Michael_J_Mansheimspamspam_OUTGRACO.COM>
To: <@spam@PICLISTKILLspamspamMITVMA.MIT.EDU>
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.

{Quote hidden}

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 KILLspamlistservKILLspamspammitvma.mit.edu with SET PICList DIGEST in the body


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