4 – command 03h – password match, 5 – command 04h – get status – Maxim Integrated DS4830A Optical Microcontroller User Manual
Page 185
DS4830A User’s Guide
185
22.3.4 – Command 03h – Password Match
Byte 1
Bytes 2 to 33
Byte 34
Byte 35
Command
Data In
NOP
Return
Input
03h
32-Byte Password
00h
00h
Output
X
X
X
3Eh
This command accepts a 32-byte password value, which is matched against the password in program memory from
byte address 0020h through 003Fh. If the entered value matches the password in program memory, the password
lock bit will be cleared. This command is not password protected.
22.3.5 – Command 04h – Get Status
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Command
NOP
Data Out
Data Out
Return
Input
04h
00h
00h
00h
00h
Output
X
X
Flags
Status Code
3Eh
The Status Flags and Status Code returned by the Get Status command are defined in Tables 22-6 and 22-7. This
command is not password protected. The Status Codes will be set whenever an error condition occurs and will only
reflect the last error. The Status Codes will be cleared
• When the bootloader is initially entered
• At the start of execution of all commands except Family 0 commands
• At the start of execution of the Family 0 Master Erase.
Table 22-6: Bootloader Status Flags
FLAG
BIT
MEANING
8:3
Reserved.
2
Word/Byte Mode Supported.
0 – The bootloader supports byte mode only.
1 – The bootloader supports word mode as well as byte mode.
(Note: The DS4830A supports byte mode only)
1
Word/Byte Mode.
0 – The bootloader is currently in byte mode for memory reads/writes.
1 – The bootloader is currently in word mode for memory reads/writes.
(Note: The DS4830A supports byte mode only)
0
Password Lock. This bit will match the SC.PWL bit.
0 – The password is unlocked or had a default value; password-protected commands may be used.
1 – The password is locked. Password-protected commands may not be used.
Table 22-7: Bootloader Status Codes
STATUS
VALUE
MEANING
00
No Error. The last command completed successfully.
01
Family Not Supported. An attempt was made to use a command from a family which the
bootloader does not support.
02
Invalid Command. An attempt was made to use a nonexistent command within a supported
command family.
03
No Password Match. An attempt was made to use a password-protected command without first
matching a valid password. Or, the Password Match command was called with an incorrect
password value.
04
Bad Parameter. An input parameter passed to the command was out of range or otherwise
invalid.
05
Verify Failed. The verification step failed on a Load/Verify or Verify command.
06
Unknown Register. An attempt was made to read from or write to a nonexistent register.
07
Word Mode Not Supported. An attempt was made to set word mode access, but the bootloader
supports byte mode access only.
08
Master Erase Failed. The bootloader was unable to perform master erase.