On Fri, 5 Dec 1997, Starfire Zhu wrote: > Well, as I have watched the signal with a scope, I know that it is > usually mixed with noises,so even an accurate timing for sampling > the signal can not assure a correct reception! I haven't done anything like this with a PIC (most of my experience is with HC05 and HC11 micros) so I can't offer code, but you need to oversample the signal and set up a voting system for each bit so that it can decide on its state based on the number of hits it gets. Brian --------------------------------------------------------------------------- Nexus Computing http://www.eskimo.com/~nexus Software & Electronics for Linux nexus@tatoosh.com Inside is a comfortable 70.35 F and Outside is a freezing 39.91 F