The WREGS command writes data to multiple registers. The command steps through each register incrementally, thus allowing the user to incrementally write to each register. This process extends the data frame by (n) device words to complete the command. If the resulting address extends beyond the usable register space, any following data for non-existent registers are ignored. The 16 bits contained in the first device word contain the command, the starting register address, and the number of registers to write, followed by additional device words for the register data. The command details are shown below:
First user command device word: 011a aaaa nnnn nnnn, where a aaaa is the starting register address and nnnn nnnn is the number of registers to write minus one (n-1).
Additional user command device words: dddd dddd eeee eeee, where dddd dddd is the data to write to the first register and eeee eeee is the register data for the second register.
The user command device word uses the 16 MSBs regardless of word length (that is, only the 16 MSBs are used in 16-bit, 24-bit, or 32-bit word lengths). When additional command device words are required, only a maximum of two 8-bit registers can be written per command and any additional LSBs beyond 16 bits are ignored. The command status response for the WREGS command is 010a aaaa nnnn nnnn, where a aaaa is the starting register address and nnnn nnnn is the number of registers written minus one. An example of a multiple register write and the command status response is shown in Figure 78.