The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University, TAIWAN
HANEL
EXPLAINING INTEL HEX

FILE(cont’)


Example 8-4Verify the checksum byte for line 3 of Figure 8-9. Verify also that the information is not corrupted.Solution::07 0020 00 DBFEDCFADDF622


35

07+00+20+00+DB+FE+DC+FA+DD+F6+22=5CBH

CBH 35H

If we add all the information including the checksum byte, and drop the carries, we get 00.5CBH + 35H = 600H

Dropping the carry 52’s complement

:07 0020 00 DBFEDCFADDF622

35
Free download pdf