Try writing fixed data to the eeprom first; writing a loop value in binary. That way you will be sure the proper data gets written to the proper address. Using FF isn't giving you a fair test of your logic, something like:
0000 0001 pos. 1
0000 0010 2
0000 0011 3
0000 0100 4
0000 0101 5
0000 0110 6
0000 0111 7
0000 1000 8
0000 1001 9
0000 1010 10
0000 1011 11
0000 1100 12
0000 1101 13
0000 1110 14
0000 1111 15
0001 0000 16
0001 0001 17
0001 0010 18
0001 0011 19
0001 0100 20
0001 0101 21
0001 0110 22
0001 0111 23
0001 1000 24
0001 1001 25
0001 1010 26
0001 1011 27
0001 1100 28
0000 0001 pos. 29
0000 0010 30
0000 0011 31
0000 0100 32
0000 0101 33
0000 0110 34
0000 0111 35
0000 1000 36
0000 1001 37
0000 1010 38
0000 1011 39
0000 1100 40
0000 1101 41
0000 1110 42
0000 1111 43
0001 0000 44
0001 0001 45
0001 0010 46
0001 0011 47
0001 0100 48
0001 0101 49
0001 0110 50
0001 0111 51
0001 1000 52
0001 1001 53
0001 1010 54
0001 1011 55
0001 1100 56
etc
Robert




Bookmarks