festy wrote:Can you spot the 5-6-7 progression there?
It is checksummed too.
LOL - Nope. not yet.

If I change 1 of the 625 default settings it changes the D9 to a 59 - which no longer adds up with the check sum (D9 26)
festy wrote:Can you spot the 5-6-7 progression there?
It is checksummed too.
Code: Select all
+1 = 01 01 59 A6
Yes it does - but if I change the distance calibration by +1 it changes the D9 to 59 but the 26 stays the same.festy wrote:Your previous 59 example still checked out...Code: Select all
+1 = 01 01 59 A6
ROM and EPROM Lock System
The program lock system, when programmed, protects
the onboard program against software piracy.
The 80C51BH has a one level program lock system
and a 64-byte encryption table. If program protection
is desired, the user submits the encryption table with
their code and both the lock bit and encryption array
are programmed by the factory. The encryption array
is not available without the lock bit. For the lock bit
to be programmed, the user must submit an encryption
table.
Encryption Array
Within the EPROM array are 64 bytes of Encryption
Array that are initially unprogrammed (all 1's). Every
time that a byte is addressed during a verify, 6 address
lines are used to select a byte of the Encryption
Array. This byte is then exclusive-NOR'ed
(XNOR) with the code byte, creating an Encryption
Verify byte. The algorithm, with the array in the unprogrammed
state (all 1's), will return the code in its
original, unmodified form. For programming the Encryption
Array, refer to Table 4 (Programming the
EPROM).
When using the encryption array, one important factor
needs to be considered. lf a code byte has the
value 0FFH, verifying the byte will produce the encryption
byte value. lf a large block (l64 bytes) of
code is left unprogrammed, a verification routine will
display the contents of the encryption array. For this
reason all unused code bytes should be programmed
with some value other than 0FFH, and not
all of them the same value. This will ensure maximum
program protection.
Code: Select all
E8 01 CA A8 00 FF 20 DF F7 08 EC 13 91 6E 0D 0A
F5 F7 08 EC 13 91 6E 0D 0A F5 F7 08 EC 13 91 6E
0D 0A F5