17.6.9.3 Sampling Mode

The Sampling mode is a low-power mode where the BOD33 is being repeatedly enabled on a sampling clock’s ticks. The BOD33 will monitor the supply voltage for a short period of time and then go to a low-power disabled state until the next sampling clock tick.

When the BOD is in sampling mode, it requests its reference only when needed. This reference will be ready when the supply voltage has reached at least 95% of its target voltage. This can lead to a shift of the BOD threshold level of up to 5% if the bandgap is not requested by anything else during standby (i.e., internal regulator is not on the LDO (VREG.RUNSTDBY=0); the bandgap is not used by the ADC, AC, or DAC; and the voltage doubler of the AC is disabled).

Sampling mode is enabled by writing one to BOD33.MODE. The frequency of the clock ticks (Fclksampling) is controlled by the BOD33 Prescaler Select bit group (BOD33.PSEL) in the BOD33 register.

F clksampling = F clkprescaler 2 PSEL+ 1

The prescaler signal (Fclkprescaler) is a 1 kHz clock, output from the32 kHz Ultra Low-Power Oscillator, OSCULP32K.

As the Sampling mode clock is different from the APB clock domain, synchronization among the clocks is necessary. The next figure shows a block diagram of the Sampling mode. The BOD33Synchronization Ready bit (PCLKSR.B33SRDY) in the Power and Clocks Status register show the synchronization ready status of the synchronizer. Writing attempts to the BOD33 register are ignored while PCLKSR.B33SRDY is zero.

Figure 17-7. Sampling Mode Block Diagram

The BOD33 Clock Enable bit (BOD33.CEN) in the BOD33 register should always be disabled before changing the prescaler value. To change the prescaler value for the BOD33 during Sampling mode, the following steps need to be taken:

1. Wait until the PCLKSR.B33SRDY bit is set.

2. Write the selected value to the BOD33.PSEL bit group.