> -----Original Message----- > From: Tony K=FCbek [SMTP:tony.kubek@FLINTAB.COM] > Sent: Wednesday, April 02, 2003 12:52 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: I2C MSSP slave implementation >=20 > Well this case is a bit special, I think I need to know > both the start and stop conditions (particulary stop) as > I need to do some data processing after the message is recived. > The final program will emulate an Philiphs LCD driver chip > but add an hoist of additional features (MMC-card gateway, Realtime > clock, LED display support (7segment)).=20 > I haven't seen an clearcut way to signalise that the data from > the master is complete without hooking onto the stop condition. > Or are there other ways ?=20 >=20 In my case, the structure of my "data link" protocol meant that either the messages were of fixed length (the actual length determined by the first "command" byte, using a lookup table), or the message included a length byte (both master to slave and slave to master). The command was executed after the last byte had been sent by the master. If you have to support arbitrary length message structures then the easiest way by far is to enable the START/STOP interrupts. Regards Mike =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Any questions about Bookham's E-Mail service should be directed to postmast= er@bookham.com. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads