RM0432
26.2
COMP main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 805
26.3
COMP functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 806
26.3.1
26.3.2
26.3.3
26.3.4
26.3.5
26.3.6
26.3.7
26.3.8
26.4
COMP low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 810
26.5
COMP interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 810
26.6
COMP registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .811
26.6.1
26.6.2
26.6.3
27
Operational amplifiers (OPAMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 817
27.1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 817
27.2
OPAMP main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 817
27.3
OPAMP functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 817
27.3.1
27.3.2
27.3.3
27.3.4
27.3.5
27.4
OPAMP low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 824
27.5
OPAMP registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 825
27.5.1
27.5.2
27.5.3
27.5.4
27.5.5
27.5.6
27.5.7
COMP block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 806
COMP pins and internal signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 806
COMP reset and clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 807
Comparator LOCK mechanism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 807
Window comparator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 808
Hysteresis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 808
Comparator output blanking function . . . . . . . . . . . . . . . . . . . . . . . . . . 809
COMP power and speed modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 810
Comparator 1 control and status register (COMP1_CSR) . . . . . . . . . . 811
Comparator 2 control and status register (COMP2_CSR) . . . . . . . . . . 813
COMP register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 816
OPAMP reset and clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 817
Initial configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 818
Signal routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 818
OPAMP modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 819
Calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 822
OPAMP1 control/status register (OPAMP1_CSR) . . . . . . . . . . . . . . . . 825
OPAMP1 offset trimming register in normal mode (OPAMP1_OTR) . . 826
OPAMP1 offset trimming register in low-power mode
(OPAMP1_LPOTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 826
OPAMP2 control/status register (OPAMP2_CRS) . . . . . . . . . . . . . . . . 827
OPAMP2 offset trimming register in normal mode (OPAMP2_OTR) . . 828
OPAMP2 offset trimming register in low-power mode
(OPAMP2_LPOTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 828
OPAMP register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 829
RM0432 Rev 6
Contents
23/2301
60
Need help?
Do you have a question about the STM32L4+ Series and is the answer not in the manual?