Another archive is here: http://ubasics.com/mcgahee/ -Adam Roland wrote: >Have a look at Tom's code 'picuart.asm' for an axample of catching all >those errors; > > >; PICUART.ASM >; Microchip MPASM format >; >; version 1.04.1 >; Last modified July 24, 2000 >; >; A Program and Document >; designed to help others learn how to use the >; built-in UART features of >; the PIC microcontroller family. >; >;The program has been verified on MANY PIC microcontrollers. >;No one has reported any PIC with built-in UART which the >;program does not work with so far. >; >; Written by >; Fr. Thomas McGahee >; tom_mcgahee@sigmais.com >; primary web site http://redrival.com/mcgahee >; secondary website http://mcgahee.freeservers.com > >.............. > > > >>>Hi all, >>>i4m trying to comunicate a PC with a PIC16f874(clock 4 MHZ) , using the >>>USART asynchronous mode at 9600 bps. The length of each message is 8 bytes >>>(8bits,Non Parity,1Stop bit). This PIC has a FIFO buffer(Register RCREG) of >>>two bytes, so the idea is to clean the buffer before the third byte reach >>>the buffer, i4ve been triying to improve the code in the PIC to clean the >>>buffer as fast as possible, but i 4m still having this problem. Is there >>>any good code to avoid it? Can it be done adding hardware? Thanks a lot >>> >>> >>_________________________________________________________________ >>MSN 9 Dial-up Internet Access fights spam and pop-ups now 3 months FREE! >>http://join.msn.click-url.com/go/onm00200361ave/direct/01/ >> >>-- >>http://www.piclist.com hint: To leave the PICList >>mailto:piclist-unsubscribe-request@mitvma.mit.edu >> >> > > >Regards >Roland Jollivet > >-- >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: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics