I am currently designing a battery management system and need to get the voltage off of the battery cells so it can be compared in a microcontroller. I am trying to use the TLV431A to set a 3.7 V reference level for the microcontroller. I want the output to have a constant 3.7 V DC value while the battery is anywhere from 2.2 V to 3.7 V. I am using Figure 2 on the datasheet to try to get the desired output, but when I hook up the circuit, the output voltage simply follows the input voltage. Please help! Thank you!