Bob, yes, that was a typo. the program does run to completion in the sense that it times out but without any data received at the other end. however, i should mention that the program works smoothly if xmodem is run in checksum mode as opposed to CRC mode hence my saying earlier that the problem has been narrowed down to my crc implementation. cheers seyi Bob Barr wrote: > Oluseyi Odeinde wrote: > > > > >main(void){ > > ........... > > .......... > > ClearCrc(); > > for (i=0;i > UpdateCrc(xmodem_buffer1[i]); > > } > > This may be an error introduced when you copied the code to the email, but > without an 'i++' in this for loop, it will never terminate. (The second for > loop wouldn't terminate either for the same reason.) > > Does your program run to completion? > > Regards, Bob > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads