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... | |
| 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_ldo_voltage_t | Cy_SysPm_LdoGetVoltage (void) |
| Gets the current output voltage value of the core LDO regulator. More... | |
| bool | Cy_SysPm_LdoIsEnabled (void) |
| Reads the current status of the core LDO regulator. More... | |
| void | Cy_SysPm_SdrConfigure (cy_en_syspm_sdr_t sdr, cy_stc_syspm_sdr_params_t *config) |
| Configures the SDR(Step Down Regulator) More... | |
| void | Cy_SysPm_SdrSetVoltage (cy_en_syspm_sdr_t sdr, cy_en_syspm_sdr_voltage_t voltage) |
| Set the SDR(Step Down Regulator) Voltage. More... | |
| cy_en_syspm_sdr_voltage_t | Cy_SysPm_SdrGetVoltage (cy_en_syspm_sdr_t sdr) |
| Get the SDR(Step Down Regulator) Voltage. More... | |
| void | Cy_SysPm_SdrEnable (cy_en_syspm_sdr_t sdr, bool enable) |
| Enable the SDR(Step Down Regulator) More... | |
| bool | Cy_SysPm_IsSdrEnabled (cy_en_syspm_sdr_t sdr) |
| Checks if SDR(Step Down Regulator) is enabled or not. More... | |
| void | Cy_SysPm_HvLdoConfigure (cy_stc_syspm_hvldo_params_t *config) |
| Configures the HVLDO Regulator. More... | |
| void | Cy_SysPm_HvLdoSetVoltage (cy_en_syspm_hvldo_voltage_t voltage) |
| Set the HVLDO Regulator Voltage. More... | |
| cy_en_syspm_hvldo_voltage_t | Cy_SysPm_HvLdoGetVoltage (void) |
| Get the HVLDO Regulator Voltage. More... | |
| void | Cy_SysPm_HvLdoEnable (bool enable) |
| Enable the HVLDO Regulator. More... | |
| bool | Cy_SysPm_IsHvLdoEnabled (void) |
| Checks if HVLDO Regulator is enabled or not. 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 |
| 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.
| cy_en_syspm_ldo_voltage_t Cy_SysPm_LdoGetVoltage | ( | void | ) |
Gets the current output voltage value of the core LDO regulator.
| bool Cy_SysPm_LdoIsEnabled | ( | void | ) |
Reads the current status of the core LDO regulator.
| void Cy_SysPm_SdrConfigure | ( | cy_en_syspm_sdr_t | sdr, |
| cy_stc_syspm_sdr_params_t * | config | ||
| ) |
Configures the SDR(Step Down Regulator)
| sdr | CY_SYSPM_SDR_0 - for SDR0 CY_SYSPM_SDR_1 - for SDR1 |
| config | Structure containing the config parameters, cy_stc_syspm_sdr_params_t |
| void Cy_SysPm_SdrSetVoltage | ( | cy_en_syspm_sdr_t | sdr, |
| cy_en_syspm_sdr_voltage_t | voltage | ||
| ) |
Set the SDR(Step Down Regulator) Voltage.
| sdr | CY_SYSPM_SDR_0 - for SDR0 CY_SYSPM_SDR_1 - for SDR1 |
| voltage | Pick from cy_en_syspm_sdr_voltage_t |
| cy_en_syspm_sdr_voltage_t Cy_SysPm_SdrGetVoltage | ( | cy_en_syspm_sdr_t | sdr | ) |
Get the SDR(Step Down Regulator) Voltage.
| sdr | CY_SYSPM_SDR_0 - for SDR0 CY_SYSPM_SDR_1 - for SDR1 |
| void Cy_SysPm_SdrEnable | ( | cy_en_syspm_sdr_t | sdr, |
| bool | enable | ||
| ) |
Enable the SDR(Step Down Regulator)
| sdr | CY_SYSPM_SDR_0 - for SDR0 CY_SYSPM_SDR_1 - for SDR1 |
| enable | true - enable, false - disable |
| bool Cy_SysPm_IsSdrEnabled | ( | cy_en_syspm_sdr_t | sdr | ) |
Checks if SDR(Step Down Regulator) is enabled or not.
| sdr | CY_SYSPM_SDR_0 - for SDR0 CY_SYSPM_SDR_1 - for SDR1 |
| void Cy_SysPm_HvLdoConfigure | ( | cy_stc_syspm_hvldo_params_t * | config | ) |
Configures the HVLDO Regulator.
| config | Structure containing the config parameters, cy_stc_syspm_hvldo_params_t |
| void Cy_SysPm_HvLdoSetVoltage | ( | cy_en_syspm_hvldo_voltage_t | voltage | ) |
Set the HVLDO Regulator Voltage.
| voltage | Pick from cy_en_syspm_hvldo_voltage_t |
| cy_en_syspm_hvldo_voltage_t Cy_SysPm_HvLdoGetVoltage | ( | void | ) |
Get the HVLDO Regulator Voltage.
| void Cy_SysPm_HvLdoEnable | ( | bool | enable | ) |
Enable the HVLDO Regulator.
| enable | true - enable, false - disable |
| bool Cy_SysPm_IsHvLdoEnabled | ( | void | ) |
Checks if HVLDO Regulator is enabled or not.