Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cubexHal.pdf
Скачиваний:
110
Добавлен:
10.02.2016
Размер:
16.16 Mб
Скачать

UM1725

HAL PWR Extension Driver

Notes

This mode is only available for

 

STM32F42xxx/STM324F3xxx/STM32F446xx devices.

This mode can be selected only when the Under-Drive is already active

This mode is enabled only with STOP low power mode. In this mode, the 1.2V domain is preserved in reduced leakage mode. This mode is only available when the main regulator or the low power regulator is in low voltage mode

If the Under-drive mode was enabled, it is automatically disabled after exiting Stop mode. When the voltage regulator operates in Under-drive mode, an additional startup delay is induced when waking up from Stop mode.

In Stop mode, all I/O pins keep the same state as in Run mode.

When exiting Stop mode by issuing an interrupt or a wake-up event, the HSI RC oscillator is selected as system clock.

When the voltage regulator operates in low power mode, an additional startup delay is incurred when waking up from Stop mode. By keeping the internal regulator ON during Stop mode, the consumption is higher although the startup time is reduced.

43.2PWREx Firmware driver defines

43.2.1PWREx

PWRx CSR Register alias address

BRE_BIT_NUMBER

CSR_BRE_BB

PWREx Exported Constants

__HAL_PWR_OVERDRIVE_ENABLE

__HAL_PWR_OVERDRIVE_DISABLE

__HAL_PWR_OVERDRIVESWITCHING_ENABL E

__HAL_PWR_OVERDRIVESWITCHING_DISAB LE

__HAL_PWR_UNDERDRIVE_ENABLE

Notes:

These macros can be used only for STM32F42xx/STM3243xx devices.

Notes:

These macros can be used only for STM32F42xx/STM3243xx devices.

Notes:

This mode is enabled only with STOP low power mode. In this mode, the 1.2V domain is preserved in reduced leakage mode. This mode is only available when the main regulator or the low power regulator is in low

DOCID025834 Rev 2

529/900

HAL PWR Extension Driver

UM1725

 

voltage mode. If the Under-drive

 

mode was enabled, it is

 

automatically disabled after

 

exiting Stop mode. When the

 

voltage regulator operates in

 

Under-drive mode, an additional

 

startup delay is induced when

 

waking up from Stop mode.

__HAL_PWR_UNDERDRIVE_DISABLE

 

__HAL_PWR_GET_ODRUDR_FLAG

Description:

 

Check PWR flag is set or not.

 

Parameters:

 

__FLAG__: specifies the flag to

 

check. This parameter can be one

 

of the following values:

 

PWR_FLAG_ODRDY: This

 

flag indicates that the Over-

 

drive mode is ready

 

PWR_FLAG_ODSWRDY:

 

This flag indicates that the

 

Over-drive mode switching is

 

ready

 

PWR_FLAG_UDRDY: This

 

flag indicates that the Under-

 

drive mode is enabled in

 

Stop mode

 

Return value:

 

The: new state of __FLAG__

 

(TRUE or FALSE).

 

Notes:

 

These macros can be used only

 

for STM32F42xx/STM3243xx

 

devices.

__HAL_PWR_CLEAR_ODRUDR_FLAG

Notes:

 

These macros can be used only

 

for STM32F42xx/STM3243xx

 

devices.

PWREx Private macros to check input parameters

IS_PWR_REGULATOR_UNDERDRIVE

IS_PWR_VOLTAGE_SCALING_RANGE

PWREx Over Under Drive Flag

PWR_FLAG_ODRDY

PWR_FLAG_ODSWRDY

PWR_FLAG_UDRDY

PWREx Private Constants

530/900

DOCID025834 Rev 2

UM1725 HAL PWR Extension Driver

PWR_OVERDRIVE_TIMEOUT_VALUE

PWR_UDERDRIVE_TIMEOUT_VALUE

PWR_BKPREG_TIMEOUT_VALUE

PWR_VOSRDY_TIMEOUT_VALUE

PWREx Register alias address

FPDS_BIT_NUMBER

CR_FPDS_BB

ODEN_BIT_NUMBER

CR_ODEN_BB

ODSWEN_BIT_NUMBER

CR_ODSWEN_BB

MRLVDS_BIT_NUMBER

CR_MRLVDS_BB

LPLVDS_BIT_NUMBER

CR_LPLVDS_BB

PWREx Regulator state in UnderDrive mode

PWR_MAINREGULATOR_UNDERDRIVE_ON

PWR_LOWPOWERREGULATOR_UNDERDRIVE_ON

DOCID025834 Rev 2

531/900

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]