Be careful relying on the "voltage references" in MCU's. They generally have decent repeatability in the same device, but can have poor absolute accuracy from device to device.
I researched this rather deeply a while back and the final official word from the manufacturer (in this case Microchip, for their PIC series) was +/-7% voltage accuracy. (You get better than that from vanilla voltage regulators, and binned regulators can get under 1%.) There are some more recent units in which they are laser trimming the voltage reference so one might expect better per-device accuracy. Interestingly, they also write the correction they applied into a nonvolatile, readable area on-chip... not sure how I'd use that information unless I was trying to bin "near-process" parts for some reason.