Maxq family user’s guide: maxq2000 supplement – Maxim Integrated MAXQ Family Users Guide: MAXQ2000 Supplement User Manual
Page 64

MAXQ Family User’s Guide:
MAXQ2000 Supplement
Family E Commands: Erase Fixed Length (Password Protected)
Command E0h—Erase Code Fixed Length
This command erases (programs to FFFFh) all words in a 256-word block of the program flash memory. The address given should be
located in the 256-word block to be erased. For example, providing address 0000h (in byte mode) to this command will erase the first
256-word block, address 0200h will erase the second block, and so on.
This command also combines the functionality of the “Load Code Variable Length” and “Verify Code Variable Length” commands.
Command E1h—Erase Data Fixed Length
This command erases a single word/byte in data SRAM to zero at (AddressH:AddressL).
ADDENDUM TO SECTION 18: MAXQ FAMILY INSTRUCTION
SET SUMMARY
Refer to the MAXQ Family User’s Guide. The tables from the MAXQ Family User’s Guide are reproduced here.
I/O
Byte 1
Byte 2
Byte 3
Byte 4
Input
E0h
0
AddressL
AddressH
Output
I/O
Byte 1
Byte 2
Byte 3
Byte 4
Input
E1h
0
AddressL
AddressH
Output
MNEMONIC
DESCRIPTION
16-BIT INSTRUCTION
WORD
STATUS BITS
AFFECTED
AP
INC/DEC
NOTES
AND src
Acc
←
Acc AND src
f001 1010 ssss ssss
S, Z
Y
1
OR src
Acc
←
Acc OR src
f010 1010 ssss ssss
S, Z
Y
1
XOR src
Acc
←
Acc XOR src
f011 1010 ssss ssss
S, Z
Y
1
CPL
Acc
←
~Acc
1000 1010 0001 1010
S, Z
Y
NEG
Acc
←
~Acc + 1
1000 1010 1001 1010
S, Z
Y
SLA
Shift Acc left arithmetically
1000 1010 0010 1010
C, S, Z
Y
SLA2
Shift Acc left arithmetically twice
1000 1010 0011 1010
C, S, Z
Y
SLA4
Shift Acc left arithmetically four times
1000 1010 0110 1010
C, S, Z
Y
RL
Rotate Acc left (w/o C)
1000 1010 0100 1010
S
Y
RLC
Rotate Acc left (through C)
1000 1010 0101 1010
C, S, Z
Y
SRA
Shift Acc right arithmetically
1000 1010 1111 1010
C, Z
Y
SRA2
Shift Acc right arithmetically twice
1000 1010 1110 1010
C, Z
Y
SRA4
Shift Acc right arithmetically four times
1000 1010 1011 1010
C, Z
Y
SR
Shift Acc right (0
→
msbit)
1000 1010 1010 1010
C, S, Z
Y
RR
Rotate Acc right (w/o C)
1000 1010 1100 1010
S
Y
LOGICAL OPERATIONS
RRC
Rotate Acc right (though C)
1000 1010 1101 1010
C, S, Z
Y
MOVE C, Acc.
C
←
Acc.
1110 1010 bbbb 1010
C
MOVE C, #0
C
←
0
1101 1010 0000 1010
C
MOVE C, #1
C
←
1
1101 1010 0001 1010
C
CPL C
C
←
~C
1101 1010 0010 1010
C
MOVE Acc., C
Acc.
←
C
1111 1010 bbbb 1010
S, Z
AND Acc.
C
←
C AND Acc.
1001 1010 bbbb 1010
C
OR Acc.
C
←
C OR Acc.
1010 1010 bbbb 1010
C
XOR Acc.
C
←
C XOR Acc.
1011 1010 bbbb 1010
C
MOVE dst., #1
dst.
←
1
1ddd dddd 1bbb 0111
C, S, E, Z
2
MOVE dst., #0
dst.
←
0
1ddd dddd 0bbb 0111
C, S, E, Z
2
BIT OPERATIONS
MOVE C, src.
C
←
src.
fbbb 0111 ssss ssss
C
Maxim Integrated
64