https://engineering.virginia.edu/high-performance-low-power
This is a design with five 4-bit up-counters for monitoring the voltage changes
https://github.com/AyaseErii/gf180-FiveGuys.git
gf180mcuC