Originally Posted by SOMRU
Well, for one thing, your receiver has 'random' (not really random, but the transmitter doesn't know that) pauses in it. It's not always sitting there waiting for a serial input. It might be off doing something else (like pausing), which might cause it to miss a serial byte, maybe not the whole byte, but it only takes a missed start bit to ruin the whole byte.
My advice - get rid of the SerIn, and use the hardware serial module, the timer module, and some hardware interrupts to get the job done. Especially if you are dealing with something to do with timing where it actually counts. (get it...counts...timing...ha...joke...ok I'm done).
Good luck...
JDG
Bookmarks