Add lock write command for AT89S51/2

This commit is contained in:
Stefan Rueger
2023-03-15 18:48:56 +00:00
parent 6c8f7e10fd
commit ac55a86e9a
2 changed files with 8 additions and 2 deletions

View File

@@ -3111,7 +3111,13 @@ part
memory "lock"
size = 1;
read = "0010.0100--xxxx.xxxx--xxxx.xxxx--xxxo.ooxx";
# Nonstandard lock write is available but not implemented
# Nonstandard write
# See datasheet Page 20, Note 1 https://ww1.microchip.com/downloads/en/DeviceDoc/doc2487.pdf
# Activating lock mode 0: -U lock:w:0:m
# Activating lock mode 1: -U lock:w:0:m -U lock:w:1:m
# Activating lock mode 2: -U lock:w:0:m -U lock:w:1:m -U lock:w:2:m
# Activating lock mode 3: -U lock:w:0:m -U lock:w:1:m -U lock:w:2:m -U lock:w:3:m
write = "1010.1100--1110.00ii--xxxx.xxxx--xxxx.xxxx";
;
memory "signature"

View File

@@ -176,7 +176,7 @@ enum ctl_stack_t {
typedef struct cmdbit {
int type; /* AVR_CMDBIT_* */
int bitno; /* which input bit to use for this command bit */
int value; /* bit value if type == AVR_CMDBIT_VALUD */
int value; /* bit value if type == AVR_CMDBIT_VALUE */
} CMDBIT;
typedef struct opcode {