Analog-to-digital converter (ADC)
10.11
Battery charge monitoring
The VBATE bit in the ADC_CCR register is used to switch to the battery voltage. As the
V
voltage could be higher than V
BAT
V
pin is internally connected to a bridge divider by 2. This bridge is automatically enabled
BAT
when VBATE is set, to connect V
the converted digital value is half the V
on the battery, it is recommended to enable the bridge divider only when needed, for ADC
conversion.
10.12
ADC interrupts
An interrupt can be produced on the end of conversion for regular and injected groups,
when the analog watchdog status bit is set and when the overrun status bit is set. Separate
interrupt enable bits are available for flexibility.
Two other flags are present in the ADC_SR register, but there is no interrupt associated with
them:
•
JSTRT (Start of conversion for channels of an injected group)
•
STRT (Start of conversion for channels of a regular group)
End of conversion of a regular group
End of conversion of an injected group
Analog watchdog status bit is set
Overrun
238/1381
, to ensure the correct operation of the ADC, the
DDA
/2 to the ADC1_IN18 input channel. As a consequence,
BAT
BAT
Table 37. ADC interrupts
Interrupt event
RM0033 Rev 9
voltage. To prevent any unwanted consumption
Event flag
EOC
JEOC
AWD
OVR
RM0033
Enable control bit
EOCIE
JEOCIE
AWDIE
OVRIE
Need help?
Do you have a question about the STM32F207 Series and is the answer not in the manual?
Questions and answers