Hello, and welcome to the forum.
llester wrote:
I know that the reset can only be used as a Input but is is possible for it to detect different voltage levels?
PTA2/KBIP2/CLK/nRst/VPP
The short answer is no! This input is only capable of detecting logic high or logic low levels.
Your only hope would be to reallocate the comparator input for the pair of switches (with the other input of the comparator connected to the bandgap), but this would only be likely to work for Vdd 5.0 volts. The method will not work for Vdd 3.3 volts, and lower.
This concept is to utilize the difference between logic low switching threshold (1.5 volts minimum @ 5V Vdd) and the bandgap reference voltage (1.16-1.23 volts). One of the switches must present an input level within the limits 1.23-1.5 volts, and the other switch an input level of less than 1.16 volts.
You would firstly sense that a logic low condition was present, and then enable the comparator input to determine which switch was the active one.
Regards,
Mac