Nonlinearity analysis of resistor string A/D converters