All,
Shown below is a circuit that I designed to monitor the battery voltage using one of the A-to-D converters inside of the CC2541. When we want to determine what the battery voltage is, we use a GPIO to provide to the VBATT_EN signal to the base of transistor Q2. Q2 turns ON and pulls the gate of P-Channel MOSFET Q1 to ground.
When Q1 is ON the battery voltage is then divided by R17 and R19 and provided as an input voltage to the A-to-D converter input of the CC2541.
What we are seeing when we enable the circuit is that the voltage divider is not working properly. For a 3V VBATT voltage we expect to see a VBATT_MON_ADC voltage of 1 volt via the divider. The voltage that we measure for VBATT_MON_ADC is around 2 volts instead of 1 volts. Does anyone have any ideas on why our voltage divider is not working properly for this circuit? Any comments, suggestions, etc would be greatly appreciated.
Thanks,
James