A microcontroller's internal ADC was inadequate to measure its own supply rail, so a circuit using standard discrete components was devised to do this with just one pin of the IC.