Dual slope ad converter