I’m trying to use an LM339 as a voltage comparator to translate a 0-2.5 volt DC level into 0-5 volt logic level. With a 1.6 volt reference on the negative input created with a 100k and 47k divider and 2.5 volts on the positive input, the output will only go to 2.5 volts even with a 1k pull-up to 5 volts on the output. What am I doing wrong?
