Posts

Showing posts from April, 2016
Image
What Is Inside Hex File ?( PIC microcontroller Hex file):                 The program is compiled and assembled and produces a binary .hex file as seen the Figure  This file was opened in a notepad text editor so this is the raw file. It would seem very difficult to understand the code from that strange set of characters but let’s break it down and you’ll see it's not that confusing. First off, understand that this .hex file is in Intel Hex32 format. This means it can support 32 bit wide address memory devices. But the format is broken up into an upper 16 bits and a lower 16 bits. The upper 16 bits are known as the extended address. Every new line begins with a colon. Then the numbers and letters that follow are hexadecimal codes that are control characters, address locations or data bytes. Each line in the file has this format: :BBaaAATTDDCC BB contains the number of data bytes on line. aaAA is address in memory where the bytes