Issue
133 August 2001
MSP430 News Flash:
Recognizing
the Flexibility of Reprogramming
Start
MSP430F1121 Comparatively
Speaking Battery Monitor
Dynamic Inputs RC
To The Rescue E(OR I)IN
It's Only The Beginning
Sources & PDF
BATTERY
MONITOR
Because the MSP430 devices are designed
for battery operation, it only makes sense that you may
want to pay attention to the battery voltage and indicate
when the battery needs replacing. This is the simplest
operation for the onboard comparator. Configure a connection
between the internal voltage reference and the comparators
() input. Connect the comparators (+) input
to external pin P2.3. Externally add a simple resistive
voltage divider from VCC to P2.3 to ground. Size the resistors
such that a minimum VCC will apply a voltage less than
the reference voltage of 0.550 V. The comparators
output will change state as the system VCC drops to the
point where the analog voltage on P2.3 is lower than the
internal reference voltage (doesnt change with VCC).
In this example, there are no unknowns. Operation is predetermined
by the choice of external components. We are only interested
in the fact that the analog input dropped below a predetermined
point. But what happens when you want to measure the exact
voltage as opposed to a relative one?
 |
| Figure 3Analog
input (P2.3) monitors the charging of RC when P2.0
is set to logic 1 (VCC) and the discharging of RC
when P2.0 is set to logic 0 (Gnd). |