Digital Storage Address
Dedicated memory locations within a serial peripheral interface device hold the correction values used to nullify baseline errors. Writing to the SPI offset register allows the system controller to adjust the zero point of a sensor without modifying the hardware. This value is subtracted from every raw reading before the data is transmitted.
Initialization Sequence
Calibration routines determine the appropriate value during the power up phase. The SPI offset register stores this digital word in volatile or non volatile memory depending on the chip architecture.
Data Operation
Arithmetic units in the sensor logic perform a real time subtraction of the stored constant from the analog to digital converter output. Because the SPI offset register has a finite bit depth, the range of correction is limited by the resolution of the converter. If the hardware offset is too large, the register will overflow and the signal will remain biased.
Correct settings ensure that the sensor reports zero when no stimulus is present.
Communication Protocol
Master devices send a specific command byte followed by the data payload to update the calibration. Error checking bits verify the integrity of the write operation to the SPI offset register.