update vref for comparator