JAJSOX0B March 2024 – November 2024 ADS127L14 , ADS127L18
PRODMIX
The write register command writes register data. The write register operation is performed in one frame. The first byte of the command is the base value (80h) added to the 7-bit register address. The second byte of the command is the register data. When the address verification is enabled when out of range address occurs, the write operation is rejected and the ADDR_ERR flag is set in the STATUS byte. The register data format is MSB first.
Figure 7-46 shows an example of writing register data with STATUS and CRC disabled, resulting in a two-byte command operation. If the previous operation was a write register command, the first output byte is the echo of the previously written register data. Otherwise, the first output byte is the register data from the register read operation.
Figure 7-47 shows an example of a write register operation with STATUS and CRC enabled. The frame is three bytes long because CRC is enabled. If the previous operation was a write register command, the first output byte is the echo of the previously written register data. If a CRC or out-of-range address error occurred in the previous frame, the write operation is rejected. The echo byte is then inverted, and the SPI_FLAG bit is set in the STATUS byte. Further register write operations are blocked until the SPI_FLAG is reset by writing 1b to clear. If the previous operation is a register read, the first output byte is the register data.