>I remember a list discussion about parity generation a while back >but a search of the piclist archive doesn't turn it up. Could someone >share with me either the code, a pointer to the code or just the >theory >of the code please ?? Easy The parity bit can be set in five ways. Even, Odd, mark, space, or none. None is easy, nonexistent, don't send it. Mark and space are easy, transmit your data bits, then set the parity bit to 1 or 0, and send Even results in always an even number of set bits in the byte: 00000000 P=0 00000001 P=1 Odd results in always an odd number of set bits in the byte: 00000000 P=1 00000001 P=0 That's all there is! :)