Table 118. Effect Of Low-Power Modes On The Opamp - ST STM32L4x6 Reference Manual

Table of Contents

Advertisement

Operational amplifiers (OPAMP)
Calibration procedure
Here are the steps to perform a full calibration of either one of the operational amplifiers:
1.
Select correct OPA_RANGE in OPAMP_CSR, then set the OPAEN bit in OPAMP_CSR
to 1 to enable the operational amplifier.
2.
Set the USERTRIM bit in the OPAMP_CSR register to 1.
3.
Choose a calibration mode (refer to
steps 3 to 4 will have to be repeated 4 times. For the first iteration select
The above calibration mode correspond to OPALPM=0 and CALSEL=0 in the
OPAMP_CSR register.
4.
Increment TRIMOFFSETN[4:0] in OPAMP_OTR starting from 00000b until CALOUT
changes to 1 in OPAMP_CSR.
Note:
CALOUT will switch from 0 to 1 for offset cal high and from 1 to 0 for offset cal low.
Note:
Between the write to the OPAMP_OTR register and the read of the CALOUT value, make
sure to wait for the t
the datasheet, to get the correct CALOUT value.
The commutation means that the offset is correctly compensated and that the
corresponding trim code must be saved in the OPAMP_OTR register.
Repeat steps 3 to 4 for:
If a mode is not used it is not necessary to perform the corresponding calibration.
All operational amplifier can be calibrated at the same time.
Note:
During the whole calibration phase the external connection of the operational amplifier
output must not pull up or down currents higher than 500 µA.
During the calibration procedure, it is necessary to set up OPAMODE bits as 00 or 01 (PGA
disable) or 11 (internal follower).
20.4
OPAMP low-power modes
Mode
Sleep
Low-power run
Low-power sleep
Stop 0 / Stop 1
Stop 2
596/1693
Normal mode, offset cal high (N differential pair)
max delay specified in the electrical characteristics section of
OFFTRIM
Normal_mode and offset cal low
Low power mode and offset cal high
Low power mode and offset cal low

Table 118. Effect of low-power modes on the OPAMP

No effect.
No effect.
No effect.
No effect, OPAMP registers content is kept.
OPAMP registers content is kept. OPAMP must be disabled before entering
Stop 2 mode.
DocID024597 Rev 3
Table 117: Operating modes and
Description
RM0351
calibration). The

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents

Save PDF