Hi, Russ

If your Analog measurements are ... not so precise, or slow ...comparators AND the trimmable voltage ref , or the RCTime function can do it ...

Without any ADCs ...

Alain