Voltage divider and battery monitor