Overvoltage protection on analog input