Write Port Width Alignment

The Microchip implementation of these formats interprets data sets in bytes. The implementation used is the same for all memory formats. The following examples show how data in a memory file is interpreted for different write port widths of memory.

The following figure shows data in Intel HEX memory file format. The same data is assumed to be used to initialize RAM in all examples.

Figure 1. Memory File Data - Intel HEX Memory File Format

The Hex data from the memory file is converted into binary and read by the tool as a stream of bits. Based on the memory port width, the required number of bits for each address location in RAM is taken from the stream of bits.
Note: The required number of bits taken from the stream of bits for each address location is always a multiple of 8 (byte).