I am fairly new to PIC programming and I am building a radio clock to decode Rugby MSF transmissions. It all works, but I have not done any parity checking. I have some BCD variables and a checksum bit and I need to check that all the bits add up to an odd number. I have thought of checking the lsb, then shifting right and repeating etc, adding all the bits together, but I am sure that there is an easier way I just cannot think of it Apologies for seeming to be a bit dense, but I am trying to master it. By the way, I am using CCS 'C' compiler. Thanks for any help you may be able to give. Regards ... Brian -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist