>-----Original Message----- >From: Bob Axtell [mailto:cr_axtell@YAHOO.COM] >Sent: 06 January 2004 00:52 >To: PICLIST@MITVMA.MIT.EDU >Subject: Re: [PIC:] Pic as an i2c slave > > >I have a lot of experience with the PIC in I2C applications, >but always >when the PIC was the Master, because of timeout issues with the ACK in >slave mode, and of course the problem that START and STOP events are >difficult to detect; you can't respond fast enough to satisfy a >hardware-driven MASTER. > >To do this well, the PIC would have to be almost dedicated to ONLY >servicing the I2C Master and doing nothing else. And it would still be >too slow. While the C873 and F873/876 families have an I2C START/STOP >interrupt, it is still too slow for most applications. In a nutshell, >Microchip isn't very sold on I2C and has no interest in >designing in a proper I2C engine in the PIC product line. It sounds like you haven't thoroughly investigated the datasheet regarding the MSSP peripheral. All the components are provided to provide a high speed (400kbit/s) I2C slave. A correctly implemented MASTER device will respond to clock stretching by the slave, so the time taken to process each byte by the slave should not matter within reason. Most bit bashed I2C masters do not implement clock stretching however. Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= Any questions about Bookham's E-Mail service should be directed to postmaster@bookham.com. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu