Comtech EF Data DM240XR User Manual
Page 55
DM240XR High-Speed Digital Modulator
User Interfaces
MN-DM240XR– Revision 13
4–33
Table 4-4. Checksum Calculation Example
BYTE FIELD
DATA CONTENT
RUNNING CHECKSUM
00h = 00000000b
00000000b
02h = 00000010b
00000010b
F0h = 11110000b
11110010b
2Ah = 00101010b
00011100b
09h = 00001001b
00100101b
00h = 00000000b
00101000b
03h = 00000011b
00101000b
(Byte 1)
DFh = 11011111b
00000111b
(Byte 2)
FEh = 11111110b
00000101b
Thus, the checksum is 00000101b; which is 05h or 5 decimal. Alternative methods of
calculating the checksum for the same message frame are:
00h + 02h + F0h + 2Ah + 09h + 00h + 03h + DFh + FEh = 305h.
Since the only concern is the modulo 256 (modulo 100h) equivalent (values that can be
represented by a single 8-bit byte), the checksum is 05h.
For a decimal checksum calculation, the equivalent values for each information field are:
0 + 2 + 240 + 42 + 9 + 0 + 3 + 223 + 254 = 773;
773/256 = 3 with a remainder of 5. This remainder is the checksum for the frame.
5 (decimal) = 05h = 0101b =