MCU analog reference voltage and Voh question
Vref is used to set the maximum voltage that the DAC analogue output can provide. It is also used to define the maximum input voltage when making analogue to digital conversions. It has nothing to do with logic levels CMOS, TTL or otherwise.