SLVUCU5 December 2025 UCD91160 , UCD91320
The read/write block PASSKEY command works in combination with the ACCESS_CONTROL command described in Section 22.4 to restrict access to updating the ACCESS_CONTROL values by setting the internal lock and unlock state of the device. The passkey is an 8-byte value, that cannot be read out from the device once written.
Byte Number (Write) | Bye Number (Read) | Payload Number | Write Description | Read Description |
|---|---|---|---|---|
0 | COMMAND BYTE = 0x0E | |||
1 | 0 | BYTE COUNT = 08h | ||
2 | 1 | 0 | Passkey Byte (LSB) | Passkey Status Byte |
3 | 2 | 1 | Passkey Byte | Reserved |
... | ... | ... | ... | ... |
9 | 8 | 7 | Passkey Byte (MSB) | Reserved |
Writing a non-zero passkey value to the UCD91xxx device when no passkey is set will set the passkey to the written value. When a paskey is set but the device is not locked, writing all 0x00 values to the PASSKEY command will unset the passkey, and allow for setting a new passkey if desired. Writing a set passkey value will lock the device, preventing writes to the ACCESS_CONTROL command from taking effect.
If the PASSKEY is locked, the UCD91xxx allows up to 7 attempts to unlock the device per POR. Failure to unlock the device in those 7 attempts will lock the ACCESS_CONTROL command until a device reset is perfomed. Writing a correct PASSKEY when the number of allowed attempts has been exceeded will not unlock the device. If a set PASSKEY value is stored by a STORE_DEFAULTS_ALL command, upon reset the device will start in a LOCKED state, and no access control values will be updateable until the PASSKEY is unlocked. The user may read the PASSKEY command to determine the current lock/unlock state of the device, and if any unlock attempts remain. The formatting for this information is as shown in Table 22-3.
Passkey Read Byte Value | Meaning |
|---|---|
0x00 | Passkey state is unlocked (May be set or unset). |
0x1X | Passkey state is locked. X indicates the number of failed unlock attempts since last device reset. |
0x1F | Passkey state is locked. The maximum number of unlock attempts has been exceeded. |