Chapter 8 Communication Functions
8-46
Complement setting : Complement calculation as below
example> 1’s and 2’s Complements of D3
bit 7 bit 0
1 1 0 1 0 0 1 1
bit 7 bit 0
0 0 1 0 1 1 0 0
bit 7 bit 0
0 0 1 0 1 1 0 1
Mask setting : Masking method is as below
bit 7 bit 0
1 1 0 1 0 0 1 1
bit 7 bit 0
1 1 1 1 1 1 1 1
bit 7 bit 0
1 1 0 1 0 0 1 1
bit 7 bit 0
1 1 0 1 0 0 1 1
bit 7 bit 0
0 0 1 0 1 1 0 0
= h D3(sum check value)
1’ complement = h 2C(the last sum check value)
2’ complement = 1’ complement + 1 = h 2D
(
the last sum chec
k
l)
= h D3 (sum check value)
= hFF (masking value)
AND masking = hD3
OR masking = hFF
Exclusive OR masking = h2C