STRONG, Neil -Syntegra wrote: > I've written PIC code to decode a serial 12 bit word received via a > radio module. > > My problem is noise > .... > Unfortunately, if there is a noise spike in the middle of all this I > see it as a state change and lose synchronisation. > .... > should I be measuring the length of each pulse and throwing away > anything shorter than a data bit? Yes. -Andy === Andrew Warren - fastfwd@ix.netcom.com === Fast Forward Engineering - Vista, California === http://www.geocities.com/SiliconValley/2499