Functions | |
cy_en_syspm_status_t | Cy_SysPm_LdoSetVoltage (cy_en_syspm_ldo_voltage_t voltage) |
Set output voltage on the core LDO regulator. More... | |
__STATIC_INLINE cy_en_syspm_ldo_voltage_t | Cy_SysPm_LdoGetVoltage (void) |
Gets the current output voltage value of the core LDO regulator. More... | |
__STATIC_INLINE bool | Cy_SysPm_LdoIsEnabled (void) |
Reads the current status of the core LDO regulator. More... | |
cy_en_syspm_status_t | Cy_SysPm_LdoSetMode (cy_en_syspm_ldo_mode_t mode) |
Configures the core LDO regulator operating mode to one of three modes. More... | |
cy_en_syspm_ldo_mode_t | Cy_SysPm_LdoGetMode (void) |
Returns the current core LDO regulator operating mode. More... | |
cy_en_syspm_status_t Cy_SysPm_LdoSetVoltage | ( | cy_en_syspm_ldo_voltage_t | voltage | ) |
Set output voltage on the core LDO regulator.
When changing from a higher voltage to a lower voltage as when the device enters system ULP mode, ensure that:
Setting wait states values for flash
The flash access time when the core voltage is 0.9 V (nominal) is longer than at 1.1 V (nominal). Therefore, the number of the wait states must be adjusted. Use the Cy_SysLib_SetWaitStates() function to set the appropriate wait state values for flash.
To change from a higher voltage to a lower voltage 0.9 V (nominal), call the Cy_SysLib_SetWaitStates(true, hfClkFreqMz) function before changing the voltage, where hfClkFreqMz is the frequency of HfClk0 in MHz.
To change from a lower voltage to a higher voltage 1.1 V (nominal), calling the Cy_SysLib_SetWaitStates(false, hfClkFreqMz) function to set the wait states is optional, but can be done to improve performance. The clock frequency may now be increased up to LP Limitations.
For more detail, refer to the Switching the System into Ultra Low Power and Switching the System into Low Power sections. Refer to the SysLib (System Library) driver for more detail about setting the wait states.
voltage | The desired output regulator voltage. See cy_en_syspm_ldo_voltage_t voltage |
__STATIC_INLINE cy_en_syspm_ldo_voltage_t Cy_SysPm_LdoGetVoltage | ( | void | ) |
Gets the current output voltage value of the core LDO regulator.
__STATIC_INLINE bool Cy_SysPm_LdoIsEnabled | ( | void | ) |
Reads the current status of the core LDO regulator.
cy_en_syspm_status_t Cy_SysPm_LdoSetMode | ( | cy_en_syspm_ldo_mode_t | mode | ) |
Configures the core LDO regulator operating mode to one of three modes.
Disabled - turns off the LDO regulator and should be selected only after the Buck regulator is operating. Normal mode configures the LDO for operation at the maximum output current limit. Minimal current mode optimizes the LDO at a reduced output current limit. Specific device current limits can be found in the device datasheet.
mode | The desired LDO regulator operating mode. See cy_en_syspm_ldo_mode_t mode |
cy_en_syspm_ldo_mode_t Cy_SysPm_LdoGetMode | ( | void | ) |
Returns the current core LDO regulator operating mode.