Command Register bit field definitions and helper functions.
The Command Register is 8-bit, write-only, and must be written with CMD pin HIGH before any register access. It determines the type and format of the follow-on SPI transfer.
Bit Layout
Bit: 7 6 5 4 3 2 1 0
RB/W RFU RFU A_BNK[3] A_BNK[2] A_BNK[1] A_BNK[0] 8bit/n32
Protocol Sequence
- Set CMD pin HIGH
- Write Command Register (1 byte transfer)
- Device responds with STATUS[7:0] on SDO (Fault Flag Byte)
- Check for communication error: STATUS[7:0] = 0x04 (COMER flag)
- Set CMD pin LOW
- Perform data transfer (1 byte for 8-bit mode, 4 bytes for 32-bit mode)
- Note
- Once the Command Register is written, all subsequent SPI transfers remain of the same type (8-bit or 32-bit) until the Command Register is rewritten.
-
The CMD pin must be held HIGH during the rising edge of CSB (chip select).