Programmable mixed-voltage sensor readout circuit and bus interface with built-in self-test