Power Supply System responsible for controlling analog aspects of the device core. More...
Macros | |
#define | PSS_KEY_VALUE PSS_KEY_KEY_VAL |
#define | PSS_SVSMH PSS_IE_SVSMHIE |
#define | PSS_FULL_PERFORMANCE_MODE 0x01 |
#define | PSS_NORMAL_PERFORMANCE_MODE 0x00 |
Functions | |
void | PSS_enableHighSidePinToggle (bool activeLow) |
void | PSS_disableHighSidePinToggle (void) |
void | PSS_enableHighSide (void) |
void | PSS_disableHighSide (void) |
void | PSS_setHighSidePerformanceMode (uint_fast8_t powerMode) |
uint_fast8_t | PSS_getHighSidePerformanceMode (void) |
void | PSS_enableHighSideMonitor (void) |
void | PSS_disableHighSideMonitor (void) |
void | PSS_setHighSideVoltageTrigger (uint_fast8_t triggerVoltage) |
uint_fast8_t | PSS_getHighSideVoltageTrigger (void) |
void | PSS_enableInterrupt (void) |
void | PSS_disableInterrupt (void) |
uint32_t | PSS_getInterruptStatus (void) |
void | PSS_clearInterruptFlag (void) |
void | PSS_enableForcedDCDCOperation (void) |
void | PSS_disableForcedDCDCOperation (void) |
void | PSS_registerInterrupt (void(*intHandler)(void)) |
void | PSS_unregisterInterrupt (void) |
Power Supply System responsible for controlling analog aspects of the device core.
Below is a very brief code example showing how to disable the high side power supervisor:
#define PSS_KEY_VALUE PSS_KEY_KEY_VAL |
#define PSS_SVSMH PSS_IE_SVSMHIE |
#define PSS_FULL_PERFORMANCE_MODE 0x01 |
Referenced by PSS_getHighSidePerformanceMode(), and PSS_setHighSidePerformanceMode().
#define PSS_NORMAL_PERFORMANCE_MODE 0x00 |
Referenced by PSS_getHighSidePerformanceMode().
void PSS_enableHighSidePinToggle | ( | bool | activeLow | ) |
Enables output of the High Side interrupt flag on the device SVMHOUT pin
activeLow | True if the signal should be logic low when SVSMHIFG is set. False if signal should be high when SVSMHIFG is set. |
void PSS_disableHighSidePinToggle | ( | void | ) |
Disables output of the High Side interrupt flag on the device SVMHOUT pin
void PSS_enableHighSide | ( | void | ) |
Enables high side voltage supervisor/monitor.
void PSS_disableHighSide | ( | void | ) |
Disables high side voltage supervisor/monitor.
void PSS_setHighSidePerformanceMode | ( | uint_fast8_t | powerMode | ) |
Sets the performance mode of the high side regulator. Full performance mode allows for the best response times while normal performance mode is optimized for the lowest possible current consumption.
powerMode | is the performance mode to set. Valid values are one of the following:
|
References PSS_FULL_PERFORMANCE_MODE.
uint_fast8_t PSS_getHighSidePerformanceMode | ( | void | ) |
Gets the performance mode of the high side voltage regulator. Refer to the user's guide for specific information about information about the different performance modes.
References PSS_FULL_PERFORMANCE_MODE, and PSS_NORMAL_PERFORMANCE_MODE.
void PSS_enableHighSideMonitor | ( | void | ) |
Sets the high side voltage supervisor to monitor mode
void PSS_disableHighSideMonitor | ( | void | ) |
Switches the high side of the power supply system to be a supervisor instead of a monitor
void PSS_setHighSideVoltageTrigger | ( | uint_fast8_t | triggerVoltage | ) |
Sets the voltage level at which the high side of the device voltage regulator triggers a reset. This value is represented as an unsigned eight bit integer where only the lowest three bits are most significant.
triggerVoltage | Voltage level in which high side supervisor/monitor triggers a reset. See the device specific data sheet for details on these voltage levels. |
Typical values will vary from part to part (so it is very important to check the SVSH section of the data sheet. For reference only, the typical MSP432 101 values are listed below:
References ASSERT.
uint_fast8_t PSS_getHighSideVoltageTrigger | ( | void | ) |
Returns the voltage level at which the high side of the device voltage regulator triggers a reset.
void PSS_enableInterrupt | ( | void | ) |
Enables the power supply system interrupt source.
void PSS_disableInterrupt | ( | void | ) |
Disables the power supply system interrupt source.
uint32_t PSS_getInterruptStatus | ( | void | ) |
Gets the current interrupt status.
void PSS_clearInterruptFlag | ( | void | ) |
Clears power supply system interrupt source.
void PSS_enableForcedDCDCOperation | ( | void | ) |
Enables the "forced" mode of the DCDC regulator. In this mode, the fail safe mechanism that disables the regulator to LDO mode when the supply voltage falls below the minimum supply voltage required for DCDC operation is turned off.
void PSS_disableForcedDCDCOperation | ( | void | ) |
Disables the "forced" mode of the DCDC regulator. In this mode, the fail safe mechanism that disables the regulator to LDO mode when the supply voltage falls below the minimum supply voltage required for DCDC operation is turned on.
void PSS_registerInterrupt | ( | void(*)(void) | intHandler | ) |
Registers an interrupt handler for the power supply system interrupt.
intHandler | is a pointer to the function to be called when the power supply system interrupt occurs. |
This function registers the handler to be called when a power supply system interrupt occurs. This function enables the global interrupt in the interrupt controller; specific PSS interrupts must be enabled via PSS_enableInterrupt(). It is the interrupt handler's responsibility to clear the interrupt source via PSS_clearInterruptFlag().
References INT_PSS, Interrupt_enableInterrupt(), and Interrupt_registerInterrupt().
void PSS_unregisterInterrupt | ( | void | ) |
Unregisters the interrupt handler for the power supply system
This function unregisters the handler to be called when a power supply system interrupt occurs. This function also masks off the interrupt in the interrupt controller so that the interrupt handler no longer is called.
References INT_PSS, Interrupt_disableInterrupt(), and Interrupt_unregisterInterrupt().