At 05:42 PM 2/25/02 +0000, you wrote: >I'm doing a little project using an f876 storing and retrieving data (a lookup >table) into the EEDATA memory. The routine works fine, except for >receiving data >from the PC. I send the data using VB6 MSComm1 but I get an overrun error >after >about 4 bytes. even if I change the speed from 19200 down to 9600, exactly >the same >thing happens. I have not got any hardware handshaking, so I am assuming >that I >will have to handshake by sending back an acknowledgement byte before >sending the >next byte down to the PIC. Am I missing something or is this the right >way? Thanks. I think you should buffer the data into RAM and write it later. Xon/Xoff handshaking can allow a *lot* of bytes to be sent before it stops sending, or so is my experience. You could also reduce the speed to allow the longest possible write time to be accommodated (10ms per byte or whatever you find is safe). Best regards, Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com 9/11 United we Stand -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu