LOCKEEPROM Locks or unlocks the EEPROM write protection |
Syntax
Binary code
0 – Disables EEPROM write protection 1 – Enables write protection for the last quarter of the EEPROM 2 – Enables write protection for the last half of the EEPROM 3 – Enables write protection for the entire EEPROM
//An EEPROM has 8Kwords. In the TML program space occupies the //address range: 4000-5FFFh. LOCKEEPROM 0; // disable EEPROM write protection LOCKEEPROM 1; // protect the address range: 5800-5FFFh, LOCKEEPROM 2; // protect the address range: 5000-5FFFh LOCKEEPROM 3; // protect the entire address range: 4000-5FFFh |