Table 70. Adc Interrupts; Battery Charge Monitoring - STMicroelectronics STM32F405 Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

RM0090
The internal temperature sensor is more suited for applications that detect temperature
variations instead of absolute temperatures. If accurate temperature reading is required, an
external temperature sensor should be used.
13.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.
BAT
When the VBATE is set, the bridge is automatically enabled to connect:
VBAT/2 to the ADC1_IN18 input channel, on STM32F40xx and STM32F41xx devices
VBAT/4 to the ADC1_IN18 input channel, on STM32F42xx and STM32F43xx devices
Note:
On STM32F42xx and STM32F43xx devices,VBAT and temperature sensor are connected
to the same ADC internal channel (ADC1_IN18). Only one conversion, either temperature
sensor or VBAT, must be selected at a time. When both conversion are enabled
simultaneously, only the VBAT conversion is performed.
13.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
, to ensure the correct operation of the ADC, the
DDA

Table 70. ADC interrupts

Interrupt event
DocID018909 Rev 11
Analog-to-digital converter (ADC)
Event flag
Enable control bit
EOC
JEOC
AWD
OVR
EOCIE
JEOCIE
AWDIE
OVRIE
417/1731
434

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F405 and is the answer not in the manual?

Table of Contents

Save PDF