AtomSoft
Well-Known Member
Im using a PIC18F micro and wanted to know how would i go about making a parity ODD bit for a byte. Any help would be great!
I know what it is and stuff just cant wrap my mind on how to check them all? i know i can loop through each bit in the byte and have a count byte and increment it with every 1 but how to i check if its even or odd number?
Im thinking of: Modulus
But how would i use it?
I know what it is and stuff just cant wrap my mind on how to check them all? i know i can loop through each bit in the byte and have a count byte and increment it with every 1 but how to i check if its even or odd number?
Im thinking of: Modulus
But how would i use it?
Last edited: