Generate a series of hexadecimal numbers (0x45, 0x50, 0x55…0x90), starting with 0x45 and ending with 0x90, using the Index Addressing Mode. You are to place the numbers in consecutive data memory addresses starting at 0x30, 0x31…0x39.
First Value Increment Sequence Length
0x45 0x05 0x10
Use a loop to generate and store the numbers as indicated, using the FSR and INDF registers to implement the array of elements in contiguous file registers. After the numbers are stored in the array of file registers, use a loop to read and add the numbers to determine the sum of the elements in the array. You must specify the two file registers to store the lo-byte of the sum and the hi-byte of the sum if needed.