Searching \ for 'IIC with slow devices' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/i2cs.htm?key=iic
Search entire site for: 'IIC with slow devices'.

Truncated match.
PICList Thread
'IIC with slow devices'
1998\04\29@054801 by Clewer,Brian

flavicon
face
Hi all,

>the data takes about 1 second to obtain. Is there a way
>I can get the master that sent the request to wait for
>the PIC without the PIC becoming the master and
>transmitting the data back.

Clock streching is the answer.  For an example of this, you can look on
microchip's web site and look for the data sheet on 16C7X.  On page 96
you will find that the slave holds the clock line low while it serveces
it's interupt routine.

Regards,
Brian.

--------------------------------------------------------------------------
---------------------------------

Code examples on www3.mistral.co.uk/brian.clewer/

--------------------------------------------------------------------------
---------------------------------

1998\04\29@060108 by tjaart

flavicon
face
Clewer,Brian wrote:

> Hi all,
>
> >the data takes about 1 second to obtain. Is there a way
> >I can get the master that sent the request to wait for
> >the PIC without the PIC becoming the master and
> >transmitting the data back.
>
> Clock streching is the answer.  For an example of this, you can look on
> microchip's web site and look for the data sheet on 16C7X.  On page 96
> you will find that the slave holds the clock line low while it serveces
> it's interupt routine.

You are quite right, except that this method only works (well)
for single slave setups. For multi-slaves, you really should use
a polling technique.

--
Friendly Regards

Tjaart van der Walt
spam_OUTtjaartTakeThisOuTspamwasp.co.za

|--------------------------------------------------|
|                WASP International                |
|R&D Engineer : GSM peripheral services development|
|--------------------------------------------------|
|SMS .....0832123443KILLspamspam@spam@wasp.co.za  (160 chars max)|
|     http://www.wasp.co.za/~tjaart/index.html     |
|Voice: +27-(0)11-622-8686  Fax: +27-(0)11-622-8973|
|          WGS-84 : 26¡10.52'S 28¡06.19'E          |
|--------------------------------------------------|

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