JAJSGG2C October 2018 – June 2019 ADS125H02
Use the WREG command to write register data. Take CS1 low to access registers within the ADC register block. Take CS2 low to access registers within the PGA register block (see the Register Map section for the register block map). The WREG command writes the register data one byte at a time using the WREG command for each operation. Add the register address (rrh) to the base opcode (40h) to complete the command byte (40h + rrh). Table 25 lists the WREG command byte sequence. Writing to certain registers results in conversion restart. Table 28 lists the affected registers. Do not write to registers outside the address range.
Register-write access is enabled and disabled by the UNLOCK and LOCK commands, respectively. The default mode is register UNLOCK. See the LOCK Command section.
|DIRECTION||BYTE 1||BYTE 2||BYTE 3||BYTE 4|
|DIN||40h + rrh||Register data||CRC-2||00h|
|DOUT/DRDY||FFh||Echo byte 1||Echo byte 2||Out CRC-2|