HI ALL,
DOES THE PARITY BIT, WHEN SET, INDICATES PARITY PROGRAM NUMBER(2,4,6...) AND WHEN RESET REPESENTS ODD PROGRAM NUMBER (1,3,5...)(CASE OF THE PROGRAM)?
THANK YOU IN ADVANCE
HI ALL,
DOES THE PARITY BIT, WHEN SET, INDICATES PARITY PROGRAM NUMBER(2,4,6...) AND WHEN RESET REPESENTS ODD PROGRAM NUMBER (1,3,5...)(CASE OF THE PROGRAM)?
THANK YOU IN ADVANCE
No ......
You need to look at the program number in the binary form
0000 zero
0001 one
0010 two
0011 three
0100 four
0101 five
0110 six
0111 seven
1000 eight
Etc.
Then you need to count number of bits that are set in each case. Parity is set in accordance to that.
For example value seven has 3 bits set
Three is an odd number so value of parity would need to be set according to that and chosen parity method (even/odd).
If using even parity, parity bit would need need to be set to 1 so that total number of all bits is even (including bits in PGNO and the parity bit itself).