The microcontrollers I worked on 15 years ago had low voltage detection:
https://en.wikipedia.org/wiki/Low-voltage_detect