Hi Sebastian >Note that the erase/write cycle time typ. value is 10 ms ! > >If in the meanwhile the write is in process you got nothing else >to do for more than 10 ms, a good way to do the waiting delay is >by polling the e2prom write complete interrupt flag (EEIF). > Thanks, True 10 ms , a mistake :-), it was movlw 10 not 1 , anyway, as you said, it's better to check Write complete flag at the begining of a write command. I was using the delay mode (not to check the EEIF) and works good but it's better to check EEIF and also don't stop de uP during 10 ms unnecessarily. >Also it is a good practice to check te WERR bit (reset during a write >cycle...) at the begining of the code. > You think so?, is it possible that a write command do not preform correctly? I always read the value after writing to check if write cmd was succeed, I believe that this is a better way to be shure, don't you think?. also (IMHO) if I include the EEIF check before to write a byte check werr bit will not be necessary. thanks, see you. Leandro J. Laporta (LU2AOQ) mail: lu2aoq@yahoo.com wrk: Arg. Assoc. for Space Tech. ham: TCP/IP high speed group HSG __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com