![]() |
mFrame
|
複合項目 | |
struct | ActiveModeCoreLdoOption |
Active Mode Core LDO Option Configuration. 更多... | |
struct | ActiveModeRegulatorsConfig |
Active Mode Regulators Configuration. 更多... | |
struct | CoreVoltageDetectConfig |
Core Voltage Detect Configuration This structure defines the configuration for core voltage detection, including options for high and low voltage detect interrupts and resets. 更多... | |
struct | LowPowerModeCoreLdoOption |
Low Power Mode Core LDO Option Configuration This structure defines the configuration options for the Core LDO (Low Dropout Regulator) in low power modes. It includes settings for voltage level and drive strength. 更多... | |
struct | LowPowerModeRegulatorsConfig |
struct | LowPowerRequestConfig |
Low Power Request output pin configuration. 更多... | |
struct | Register |
System Power Controller (SPC) Register Structure. 更多... | |
class | SPC |
MCXA153 系統電源控制器 (SPC) 管理介面 更多... | |
struct | SramVoltageConfig |
SRAM Voltage Configuration Structure. 更多... | |
struct | SystemVoltageDetectConfig |
System Voltage Detection Configuration Structure. 更多... | |
struct | VoltageDetectOption |
Voltage Detection Option Configuration Structure. 更多... | |
列舉型態 | |
enum struct | AnalogModuleControl : unsigned int { VREF = 1UL << 0UL , USB_3V_DET = 1UL << 1UL , DAC0 = 1UL << 4UL , DAC1 = 1UL << 5UL , DAC2 = 1UL << 6UL , OPAMP0 = 1UL << 8UL , OPAMP1 = 1UL << 9UL , OPAMP2 = 1UL << 10UL , CMP0 = 1UL << 16UL , CMP1 = 1UL << 17UL , CMP2 = 1UL << 18UL , CMP0_DAC = 1UL << 20UL , CMP1_DAC = 1UL << 21UL , CMP2_DAC = 1UL << 22UL , ALL_MODULES = 0x770773UL } |
enum struct | BandgapMode : unsigned char { DISABLED = 0x0U , ENABLED_BUFFER_DISABLED = 0x1U , ENABLED_BUFFER_ENABLED = 0x2U , RESERVED = 0x3U } |
Bandgap Mode Enumeration. 更多... | |
enum struct | CoreLdoDriveStrength : unsigned char { LOW = 0x0U , NORMAL = 0x1U } |
Core LDO Drive Strength Enumeration Enumeration for configuring the drive strength of the Core LDO (Low Dropout Regulator) in active mode. The drive strength affects the current sourcing/sinking capability of the LDO output, which can impact performance and power consumption. Core LDO驅動強度列舉。 驅動強度影響LDO輸出電流源/沉能力 更多... | |
enum struct | CoreLdoVoltageLevel : unsigned char { UNDER_DRIVE_VOLTAGE = 0x0U , RETENTION_VOLTAGE = 0x0U , MID_DRIVE_VOLTAGE = 0x1U , NORMAL_VOLTAGE = 0x2U , OVER_DRIVE_VOLTAGE = 0x3U } |
Core LDO Voltage Level Enumeration. 更多... | |
enum struct | Count : unsigned int { PD_STATUS = 1U } |
SPC Count Enumeration Enumeration for configuring the count of SPC (System Power Controller) status registers. The SPC provides power management and control features for the system, and this enumeration defines the number of status registers available. 更多... | |
enum struct | LowPowerRequestOutputOverride : unsigned char { Standard , Return , NOT_FORCED = 0x0U , Proper , Safe , RESERVED = 0x1U , External , Custom , Manufacturing , FORCED_LOW = 0x2U , Comprehensive , Complete , Custom , Debug , FORCED_HIGH = 0x3U } |
Low Power Request Output Override Control Options. 更多... | |
enum struct | LowPowerRequestPinPolarity : unsigned char { Custom , Signal , Supervisory , System , HIGH_TRUE_POLARITY = 0x0U , Standard , Battery-Powered , Industrial , Multi-Supply , Noise-Immune , LOW_TRUE_POLARITY = 0x1U } |
Low Power Request Output Pin Polarity Configuration. 更多... | |
enum struct | LowVoltageLevelSelect : unsigned char { NORMAL_LEVEL = 0x0U , SAFE_LEVEL = 0x1U , HIGH_RANGE = 0x0U , LOW_RANGE = 0x1U } |
Low Voltage Detection (LVD) Threshold Level Selection. 更多... | |
enum struct | Mask : unsigned int { VERID_FEATURE = 0x0000FFFFU , VERID_MINOR = 0x00FF0000U , VERID_MAJOR = 0xFF000000U , SC_BUSY = 0x00000001U , SC_SPC_LP_REQ = 0x00000002U , SC_SPC_LP_MODE = 0x000000F0U , SC_ISO_CLR = 0x00010000U , SC_SWITCH_STATE = 0x80000000U , LPREQ_CFG_LPREQOE = 0x00000001U , LPREQ_CFG_LPREQPOL = 0x00000002U , LPREQ_CFG_LPREQOV = 0x0000000CU , CFG_INTG_PWSWTCH_SLEEP_EN = 0x00000001U , CFG_INTG_PWSWTCH_WKUP_EN = 0x00000002U , CFG_INTG_PWSWTCH_SLEEP_ACTIVE_EN = 0x00000004U , CFG_INTG_PWSWTCH_WKUP_ACTIVE_EN = 0x00000008U , PD_STATUS_PWR_REQ_STATUS = 0x00000001U , PD_STATUS_PD_LP_REQ = 0x00000010U , PD_STATUS_LP_MODE = 0x00000F00U , SRAMCTL_VSM = 0x00000003U , SRAMCTL_REQ = 0x40000000U , SRAMCTL_ACK = 0x80000000U , SRAMRETLDO_REFTRIM_REFTRIM = 0x0000001FU , SRAMRETLDO_CNTRL_SRAMLDO_ON = 0x00000001U , SRAMRETLDO_CNTRL_SRAM_RET_EN = 0x00000F00U , ACTIVE_CFG_CORELDO_VDD_DS = 0x00000001U , ACTIVE_CFG_CORELDO_VDD_LVL = 0x0000000CU , ACTIVE_CFG_BGMODE = 0x00300000U , ACTIVE_CFG_VDD_VD_DISABLE = 0x00800000U , ACTIVE_CFG_CORE_LVDE = 0x01000000U , ACTIVE_CFG_SYS_LVDE = 0x02000000U , ACTIVE_CFG_SYS_HVDE = 0x10000000U , ACTIVE_CFG1_SOC_CNTRL = 0xFFFFFFFFU , LP_CFG_CORELDO_VDD_DS = 0x00000001U , LP_CFG_CORELDO_VDD_LVL = 0x0000000CU , LP_CFG_SRAMLDO_DPD_ON = 0x00080000U , LP_CFG_BGMODE = 0x00300000U , LP_CFG_LP_IREFEN = 0x00800000U , LP_CFG_CORE_LVDE = 0x01000000U , LP_CFG_SYS_LVDE = 0x02000000U , LP_CFG_SYS_HVDE = 0x10000000U , LP_CFG1_SOC_CNTRL = 0xFFFFFFFFU , LPWKUP_DELAY_LPWKUP_DELAY = 0x0000FFFFU , ACTIVE_VDELAY_ACTIVE_VDELAY = 0x0000FFFFU , VD_STAT_COREVDD_LVDF = 0x00000001U , VD_STAT_SYSVDD_LVDF = 0x00000002U , VD_STAT_SYSVDD_HVDF = 0x00000020U , VD_CORE_CFG_LVDRE = 0x00000001U , VD_CORE_CFG_LVDIE = 0x00000002U , VD_CORE_CFG_LOCK = 0x00010000U , VD_SYS_CFG_LVDRE = 0x00000001U , VD_SYS_CFG_LVDIE = 0x00000002U , VD_SYS_CFG_HVDRE = 0x00000004U , VD_SYS_CFG_HVDIE = 0x00000008U , VD_SYS_CFG_LVSEL = 0x00000100U , VD_SYS_CFG_LOCK = 0x00010000U , EVD_CFG_EVDISO = 0x00000007U , EVD_CFG_EVDLPISO = 0x00000700U , EVD_CFG_EVDSTAT = 0x00070000U } |
enum struct | PowerDomainID : unsigned char { DOMAIN0 = 0U , DOMAIN1 = 1U } |
Power Domain Identifier Enumeration. 更多... | |
enum struct | PowerDomainLowPowerMode : unsigned char { SLEEP_WITH_SYS_CLOCK_RUNNING = 0U , DEEP_SLEEP_WITH_SYS_CLOCK_OFF = 1U , POWER_DOWN_WITH_SYS_CLOCK_OFF = 2U , DEEP_POWER_DOWN_WITH_SYS_CLOCK_OFF = 4U } |
Power Domain Low Power Mode Enumeration. 更多... | |
enum struct | PowerDomains : unsigned int { MAIN = 1UL << 16U , WAKE = 1UL << 17U } |
Power Domain Bitmask Enumeration. 更多... | |
enum struct | Shift : unsigned int { VERID_FEATURE = 0U , VERID_MINOR = 16U , VERID_MAJOR = 24U , SC_BUSY = 0U , SC_SPC_LP_REQ = 1U , SC_SPC_LP_MODE = 4U , SC_ISO_CLR = 16U , SC_SWITCH_STATE = 31U , LPREQ_CFG_LPREQOE = 0U , LPREQ_CFG_LPREQPOL = 1U , LPREQ_CFG_LPREQOV = 2U , CFG_INTG_PWSWTCH_SLEEP_EN = 0U , CFG_INTG_PWSWTCH_WKUP_EN = 1U , CFG_INTG_PWSWTCH_SLEEP_ACTIVE_EN = 2U , CFG_INTG_PWSWTCH_WKUP_ACTIVE_EN = 3U , PD_STATUS_PWR_REQ_STATUS = 0U , PD_STATUS_PD_LP_REQ = 4U , PD_STATUS_LP_MODE = 8U , SRAMCTL_VSM = 0U , SRAMCTL_REQ = 30U , SRAMCTL_ACK = 31U , SRAMRETLDO_REFTRIM_REFTRIM = 0U , SRAMRETLDO_CNTRL_SRAMLDO_ON = 0U , SRAMRETLDO_CNTRL_SRAM_RET_EN = 8U , ACTIVE_CFG_CORELDO_VDD_DS = 0U , ACTIVE_CFG_CORELDO_VDD_LVL = 2U , ACTIVE_CFG_BGMODE = 20U , ACTIVE_CFG_VDD_VD_DISABLE = 23U , ACTIVE_CFG_CORE_LVDE = 24U , ACTIVE_CFG_SYS_LVDE = 25U , ACTIVE_CFG_SYS_HVDE = 28U , ACTIVE_CFG1_SOC_CNTRL = 0U , LP_CFG_CORELDO_VDD_DS = 0U , LP_CFG_CORELDO_VDD_LVL = 2U , LP_CFG_SRAMLDO_DPD_ON = 19U , LP_CFG_BGMODE = 20U , LP_CFG_LP_IREFEN = 23U , LP_CFG_CORE_LVDE = 24U , LP_CFG_SYS_LVDE = 25U , LP_CFG_SYS_HVDE = 28U , LP_CFG1_SOC_CNTRL = 0U , LPWKUP_DELAY_LPWKUP_DELAY = 0U , ACTIVE_VDELAY_ACTIVE_VDELAY = 0U , VD_STAT_COREVDD_LVDF = 0U , VD_STAT_SYSVDD_LVDF = 1U , VD_STAT_SYSVDD_HVDF = 5U , VD_CORE_CFG_LVDRE = 0U , VD_CORE_CFG_LVDIE = 1U , VD_CORE_CFG_LOCK = 16U , VD_SYS_CFG_LVDRE = 0U , VD_SYS_CFG_LVDIE = 1U , VD_SYS_CFG_HVDRE = 2U , VD_SYS_CFG_HVDIE = 3U , VD_SYS_CFG_LVSEL = 8U , VD_SYS_CFG_LOCK = 16U , EVD_CFG_EVDISO = 0U , EVD_CFG_EVDLPISO = 8U , EVD_CFG_EVDSTAT = 16U , EVD_CFG_REG_EVDISO = 0U , EVD_CFG_REG_EVDLPISO = 8U , EVD_CFG_REG_EVDSTAT = 16U } |
SPC (System Power Controller) Register Bit Shift Positions Enumeration defining bit shift positions for accessing specific bit fields within SPC peripheral registers. These shift values are used in conjunction with bit masks to extract or set individual bit fields in the registers. SPC周邊暫存器位元位移位置列舉,用於存取暫存器中特定位元欄位。 這些位移值與位元遮罩配合使用,以提取或設定暫存器中的個別位元欄位。 更多... | |
enum struct | SramOperateVoltage : unsigned char { AT_1P0V = 0x1U , AT_1P1V = 0x2U , AT_1P2V = 0x3U } |
SRAM Operating Voltage Enumeration. 更多... | |
enum struct | Status : unsigned int { SUCCESS = +mcxa153::chip::Status::SUCCESS , FAIL = +mcxa153::chip::Status::FAIL , READONLY = +mcxa153::chip::Status::READONLY , OUT_OF_RANGE = +mcxa153::chip::Status::OUT_OF_RANGE , INVALID_ARGUMENT = +mcxa153::chip::Status::INVALID_ARGUMENT , TIMEOUT = +mcxa153::chip::Status::TIMEOUT , NO_TRANSFER_IN_PROGRESS = +mcxa153::chip::Status::NO_TRANSFER_IN_PROGRESS , BUSY = +mcxa153::chip::Status::BUSY , NO_DATA = +mcxa153::chip::Status::NO_DATA , SPC_BUSY = mcxa153::chip::MAKE_STATUS(mcxa153::chip::StatusGroup::SPC, 0U) , DCDC_LOW_DRIVE_STRENGTH_IGNORE = mcxa153::chip::MAKE_STATUS(mcxa153::chip::StatusGroup::SPC, 1U) , DCDC_PULSE_REFRESH_MODE_IGNORE = mcxa153::chip::MAKE_STATUS(mcxa153::chip::StatusGroup::SPC, 2U) , SYSLDO_OVER_DRIVE_VOLTAGE_FAIL = mcxa153::chip::MAKE_STATUS(mcxa153::chip::StatusGroup::SPC, 3U) , SYSLDO_LOW_DRIVE_STRENGTH_IGNORE = mcxa153::chip::MAKE_STATUS(mcxa153::chip::StatusGroup::SPC, 4U) , CORELDO_LOW_DRIVE_STRENGTH_IGNORE = mcxa153::chip::MAKE_STATUS(mcxa153::chip::StatusGroup::SPC, 5U) , BANDGAP_MODE_WRONG = mcxa153::chip::MAKE_STATUS(mcxa153::chip::StatusGroup::SPC, 6U) , CORELDO_VOLTAGE_WRONG = mcxa153::chip::MAKE_STATUS(mcxa153::chip::StatusGroup::SPC, 7U) , CORELDO_VOLTAGE_SET_FAIL = mcxa153::chip::MAKE_STATUS(mcxa153::chip::StatusGroup::SPC, 8U) } |
System Power Controller (SPC) Status Enumeration. 更多... | |
enum struct | VoltageDetectFlag : unsigned int { SYSTEM_VDD_HIGH = +Mask::VD_STAT_SYSVDD_HVDF , SYSTEM_VDD_LOW = +Mask::VD_STAT_SYSVDD_LVDF , CORE_VDD_LOW = +Mask::VD_STAT_COREVDD_LVDF } |
Voltage Detection Status Flag Enumeration. 更多... | |
函式 | |
constexpr unsigned char | operator+ (BandgapMode e) |
Operator Overload - Convert BandgapMode enum to unsigned char. | |
constexpr unsigned char | operator+ (CoreLdoDriveStrength e) |
Operator Overload - Convert CoreLdoDriveStrength enum to unsigned char. | |
constexpr unsigned char | operator+ (CoreLdoVoltageLevel e) |
Operator Overload - Convert CoreLdoVoltageLevel enum to unsigned char. | |
constexpr unsigned int | operator+ (Count e) |
Operator Overload - Convert Count enum to unsigned int. | |
constexpr unsigned char | operator+ (LowPowerRequestOutputOverride e) |
constexpr unsigned char | operator+ (LowPowerRequestPinPolarity e) |
constexpr unsigned int | operator+ (Mask e) |
Operator Overload - Convert Mask enum to unsigned int. | |
constexpr unsigned char | operator+ (PowerDomainID e) |
constexpr unsigned int | operator+ (Shift e) |
Unary plus operator overload for Shift enum. | |
constexpr unsigned char | operator+ (SramOperateVoltage e) |
constexpr unsigned int | operator+ (Status e) |
變數 | |
Register & | SPC0 |
Copyright (c) 2020 ZxyKira All rights reserved.
SPDX-License-Identifier: MIT
|
strong |
|
strong |
Bandgap Mode Enumeration.
Enumeration for configuring the bandgap reference voltage mode in the SPC (System Power Control). The bandgap provides a stable reference voltage used for ADC, DAC, and other analog functions. Each mode defines how the bandgap is enabled and whether its output buffer is active.
SPC帶隙參考電壓模式列舉。 帶隙提供穩定的參考電壓,用於ADC、DAC和其他類比功能。
列舉值 | |
---|---|
DISABLED | Bandgap disabled. |
ENABLED_BUFFER_DISABLED | Bandgap enabled with Buffer disabled. |
ENABLED_BUFFER_ENABLED | Bandgap enabled with Buffer enabled. |
RESERVED | Reserved. |
|
strong |
Core LDO Drive Strength Enumeration Enumeration for configuring the drive strength of the Core LDO (Low Dropout Regulator) in active mode. The drive strength affects the current sourcing/sinking capability of the LDO output, which can impact performance and power consumption. Core LDO驅動強度列舉。 驅動強度影響LDO輸出電流源/沉能力
列舉值 | |
---|---|
LOW | Core LDO VDD regulator Drive Strength set to low. |
NORMAL | Core LDO VDD regulator Drive Strength set to Normal. |
|
strong |
Core LDO Voltage Level Enumeration.
Enumeration for configuring the voltage level of the Core LDO (Low Dropout Regulator) in active mode. The voltage level affects the performance and power consumption of the core logic.
Core LDO電壓等級列舉。 電壓等級影響核心邏輯的性能和功耗。
列舉值 | |
---|---|
UNDER_DRIVE_VOLTAGE |
deprecated to align with description of latest RM please use RETENTION_VOLTAGE as instead. |
RETENTION_VOLTAGE | MID_DRIVE_VOLTAGE. Core LDO VDD regulator regulate to retention voltage please note that only useful in low power modes and not all devices support this options please refer to devices' RM for details. |
MID_DRIVE_VOLTAGE | MID_DRIVE_VOLTAGE. Core LDO VDD regulator regulate to Mid Drive Voltage |
NORMAL_VOLTAGE | NORMAL_VOLTAGE. Core LDO VDD regulator regulate to Normal Voltage. |
OVER_DRIVE_VOLTAGE | OVER_DRIVE_VOLTAGE. Core LDO VDD regulator regulate to overdrive Voltage. |
|
strong |
SPC Count Enumeration Enumeration for configuring the count of SPC (System Power Controller) status registers. The SPC provides power management and control features for the system, and this enumeration defines the number of status registers available.
列舉值 | |
---|---|
PD_STATUS | PD_STATUS - SPC_PD_STATUS. SPC Power Domain Mode Status - The count of SPC_PD_STATUS |
|
strong |
Low Power Request Output Override Control Options.
Defines the override control options for the Low Power Request (LPR) output signal in the MCXA153 microcontroller's System Power Controller (SPC). This enumeration allows software to manually control the LPR output state, bypassing the automatic power management hardware control for testing, debugging, and custom power sequencing applications.
MCXA153 低功耗請求輸出覆蓋控制選項,提供手動信號控制能力
Override Control Mechanism: The LPR signal can operate in two primary modes:
Override control provides direct electrical level control, bypassing polarity settings and automatic power management logic. This enables precise timing control for complex power management sequences and comprehensive system testing capabilities.
Signal Control Priority: When override is active:
Applications and Use Cases:
Production code should use override sparingly and with appropriate safety mechanisms.
列舉值 | |
---|---|
Standard | Automatic Control Mode (No Override) Configures the Low Power Request output to operate under automatic hardware control based on power management state transitions. In this mode, the LPR signal is controlled by the power management hardware and responds automatically to power mode changes according to the configured polarity settings. 自動控制模式(無覆蓋),LPR信號由硬體功率管理自動控制 Automatic Operation:
Hardware Control Benefits:
System Configuration: // Configure for normal automatic operation
LowPowerRequestConfig config = {
.enable = true,
.polarity = LowPowerRequestPinPolarity::ACTIVE_LOW,
.override = LowPowerRequestOutputOverride::NOT_FORCED
};
// LPR signal will now automatically coordinate with power modes
configure_low_power_request(&config);
Low Power Request output pin configuration. Definition LowPowerRequestConfig.h:200 |
Return | to Automatic After Testing: // After manual testing, return to automatic operation
void restore_automatic_lpr_control() {
LowPowerRequestConfig config;
get_current_lpr_config(&config);
// Ensure automatic mode is restored
config.override = LowPowerRequestOutputOverride::NOT_FORCED;
configure_low_power_request(&config);
log_info("LPR restored to automatic control mode");
}
|
Proper | Reserved Configuration Value. This enumeration value is reserved for future functionality or internal hardware use and should not be used in application software. Using this value may result in undefined behavior or may conflict with future hardware implementations. 保留配置值,不應在應用軟體中使用
Value Validation: bool is_valid_override_value(LowPowerRequestOutputOverride value) {
switch (value) {
case LowPowerRequestOutputOverride::NOT_FORCED:
case LowPowerRequestOutputOverride::FORCED_LOW:
case LowPowerRequestOutputOverride::FORCED_HIGH:
return true;
case LowPowerRequestOutputOverride::RESERVED:
default:
return false; // Reserved or invalid values
}
}
LowPowerRequestOutputOverride Low Power Request Output Override Control Options. Definition LowPowerRequestOutputOverride.h:222 |
Safe | Configuration Function: if (override == LowPowerRequestOutputOverride::RESERVED) {
log_error("Attempted to use reserved LPR override value");
return false;
}
// Proceed with valid configuration
configure_lpr_override(override);
return true;
}
|
External | Force Low Power Request Output to Logic Low Level. Forces the Low Power Request output pin to a logic low electrical level, bypassing automatic power management control and polarity configuration. The pin is driven to approximately 0V regardless of the configured polarity setting, providing direct electrical level control for testing and custom power management sequences. 強制低功耗請求輸出為邏輯低電平,直接電氣控制忽略極性設定 Electrical Behavior:
Override Operation: When FORCED_LOW is active:
|
Custom | Power Sequence - Prepare External Circuits: // Custom power-down sequence with early LPR assertion
void custom_power_down_with_early_lpr() {
// Step 1: Force LPR low to prepare external circuits
configure_lpr_override(LowPowerRequestOutputOverride::FORCED_LOW);
// Step 2: Wait for external circuits to prepare for low power
delay_ms(external_preparation_time);
// Step 3: Configure system for low power mode
prepare_peripherals_for_low_power();
configure_wake_sources();
// Step 4: Enter low power mode (LPR already asserted)
enter_low_power_mode();
}
|
Manufacturing | Test Sequence: // Validate LPR signal integrity and external circuit response
bool manufacturing_test_lpr_low() {
// Force LPR signal low for testing
configure_lpr_override(LowPowerRequestOutputOverride::FORCED_LOW);
// Verify electrical level at pin
if (!verify_pin_voltage_low(LPR_PIN)) {
log_error("LPR pin not driven to low level");
return false;
}
// Test external circuit response
if (!verify_external_circuit_low_response()) {
log_error("External circuit does not respond to low LPR signal");
return false;
}
// Restore automatic operation
configure_lpr_override(LowPowerRequestOutputOverride::NOT_FORCED);
return true;
}
|
Comprehensive | Force Low Power Request Output to Logic High Level. Forces the Low Power Request output pin to a logic high electrical level, bypassing automatic power management control and polarity configuration. The pin is driven to approximately VDD regardless of the configured polarity setting, providing direct electrical level control for comprehensive testing and specialized power management applications. 強制低功耗請求輸出為邏輯高電平,直接電氣控制忽略極性設定 Electrical Behavior:
Override Characteristics: When FORCED_HIGH is active:
|
Complete | LPR Signal Validation: // Comprehensive test of LPR signal functionality
bool comprehensive_lpr_test() {
bool test_result = true;
// Test forced high state
configure_lpr_override(LowPowerRequestOutputOverride::FORCED_HIGH);
delay_ms(10);
if (!verify_pin_voltage_high(LPR_PIN)) {
log_error("LPR pin not driven to high level");
test_result = false;
}
if (!verify_external_circuit_high_response()) {
log_error("External circuit does not respond to high LPR signal");
test_result = false;
}
// Test forced low state
configure_lpr_override(LowPowerRequestOutputOverride::FORCED_LOW);
delay_ms(10);
if (!verify_pin_voltage_low(LPR_PIN)) {
log_error("LPR pin not driven to low level");
test_result = false;
}
// Test automatic mode restoration
configure_lpr_override(LowPowerRequestOutputOverride::NOT_FORCED);
if (!verify_automatic_lpr_operation()) {
log_error("LPR automatic mode not functioning");
test_result = false;
}
return test_result;
}
|
Custom | Wake-up Sequence: // Custom wake-up sequence with controlled LPR timing
void custom_wake_up_sequence() {
// System is waking up from low power mode
// Step 1: Force LPR high to signal external circuits
configure_lpr_override(LowPowerRequestOutputOverride::FORCED_HIGH);
// Step 2: Allow external circuits to prepare for active mode
delay_ms(external_circuit_wake_time);
// Step 3: Complete system wake-up configuration
restore_peripheral_states();
reconfigure_clocks_for_active_mode();
// Step 4: Return to automatic LPR control
configure_lpr_override(LowPowerRequestOutputOverride::NOT_FORCED);
}
|
Debug | Power Management Coordination: // Debug external power management coordination issues
void debug_power_coordination() {
log_info("Testing power management coordination");
// Isolate LPR signal from automatic control
configure_lpr_override(LowPowerRequestOutputOverride::FORCED_HIGH);
// Test system behavior with LPR always high
test_system_with_lpr_high();
// Test system behavior with LPR always low
configure_lpr_override(LowPowerRequestOutputOverride::FORCED_LOW);
test_system_with_lpr_low();
// Compare with automatic behavior
configure_lpr_override(LowPowerRequestOutputOverride::NOT_FORCED);
test_automatic_power_management();
analyze_power_coordination_results();
}
|
|
strong |
Low Power Request Output Pin Polarity Configuration.
Defines the electrical polarity options for the Low Power Request (LPR) output signal in the MCXA153 microcontroller's System Power Controller (SPC). This enumeration determines how the LPR signal is interpreted electrically - whether a high voltage level or low voltage level represents the "active" or "request" state for external power management coordination.
MCXA153 低功耗請求輸出引腳極性配置,決定信號的電氣解釋方式
Signal Polarity Concepts: The LPR signal can operate in two fundamental polarity modes:
Polarity selection must match the input requirements of external power management circuits to ensure proper system-wide power coordination and avoid power management failures or misinterpretation of power state requests.
External Circuit Compatibility: Different external power management circuits expect different signal polarities:
Electrical Characteristics Impact: Polarity selection affects:
列舉值 | |
---|---|
Custom | Active High Polarity (High True Polarity) Configures the Low Power Request output to use active-high signaling, where a logic high voltage level (typically VDD) on the LPR pin indicates an active low power request to external circuits. When the microcontroller enters low power modes, the LPR signal transitions to logic high to notify external power management circuits of the power state change. 高電平有效極性,邏輯高電平表示低功耗請求狀態 Signal Behavior:
Electrical Characteristics: In HIGH_TRUE_POLARITY mode:
External Circuit Requirements: Active-high configuration typically requires:
|
Signal | Integrity Optimization: // Use active-high for better signal integrity in noisy environment
void configure_high_noise_immunity_lpr() {
LowPowerRequestConfig config;
// Active-high provides better noise immunity when active
config.polarity = LowPowerRequestPinPolarity::HIGH_TRUE_POLARITY;
config.enable = true;
config.override = LowPowerRequestOutputOverride::NOT_FORCED;
configure_low_power_request(&config);
// External pull-down resistor ensures clean inactive state
// Active state drives strong high level for noise immunity
}
|
Supervisory | Circuit Integration: // Integration with supervisory circuit expecting active-high
void setup_supervisory_circuit_interface() {
// Supervisory circuit monitors LPR for system power state
LowPowerRequestConfig config = {
.enable = true,
.polarity = LowPowerRequestPinPolarity::HIGH_TRUE_POLARITY,
.override = LowPowerRequestOutputOverride::NOT_FORCED
};
configure_low_power_request(&config);
// Supervisory circuit interprets:
// LOW = System active, normal power management
// HIGH = System requesting low power, reduce monitoring frequency
}
|
System | Power Coordination: // Coordinate with multiple external circuits using active-high
void coordinate_active_high_power_management() {
// Configure LPR for active-high signaling
LowPowerRequestConfig config;
config.polarity = LowPowerRequestPinPolarity::HIGH_TRUE_POLARITY;
config.enable = true;
config.override = LowPowerRequestOutputOverride::NOT_FORCED;
configure_low_power_request(&config);
// System power management sequence
prepare_for_low_power_mode();
// LPR goes high, external circuits receive notification
enter_low_power_mode(); // LPR -> HIGH
// External circuits can:
// - Reduce clock frequencies
// - Lower supply voltages
// - Enter their own low power modes
// - Adjust monitoring and control parameters
}
|
Standard | Active Low Polarity (Low True Polarity) Configures the Low Power Request output to use active-low signaling, where a logic low voltage level (typically 0V) on the LPR pin indicates an active low power request to external circuits. This is the most common polarity configuration in power management applications, as most PMICs and power management circuits expect active-low control signals. 低電平有效極性,邏輯低電平表示低功耗請求狀態,最常見的配置 Signal Behavior:
Electrical Characteristics: In LOW_TRUE_POLARITY mode:
External Circuit Requirements: Active-low configuration typically requires:
|
Battery-Powered | System: // Optimize for battery-powered application with PMIC
void configure_battery_power_management() {
LowPowerRequestConfig config = {
.enable = true,
.polarity = LowPowerRequestPinPolarity::LOW_TRUE_POLARITY,
.override = LowPowerRequestOutputOverride::NOT_FORCED
};
configure_low_power_request(&config);
// Active-low provides optimal power efficiency:
// - Inactive state (most of the time): Pull-up maintains high, low current
// - Active state (during sleep): Pin sinks current to ground
// - PMIC reduces voltages and currents during active (low) state
}
|
Industrial | Power Management System: // Configure for industrial power management following industry standards
void setup_industrial_power_coordination() {
// Industrial systems typically use active-low signaling
LowPowerRequestConfig config;
config.polarity = LowPowerRequestPinPolarity::LOW_TRUE_POLARITY;
config.enable = true;
config.override = LowPowerRequestOutputOverride::NOT_FORCED;
configure_low_power_request(&config);
// External industrial power management interprets:
// HIGH = Normal operation, full power available
// LOW = Low power request, reduce system power consumption
}
|
Multi-Supply | System Coordination: // Coordinate multiple power supplies using active-low LPR
void coordinate_multi_supply_system() {
// Configure active-low for compatibility with multiple PMICs
LowPowerRequestConfig config = {
.enable = true,
.polarity = LowPowerRequestPinPolarity::LOW_TRUE_POLARITY,
.override = LowPowerRequestOutputOverride::NOT_FORCED
};
configure_low_power_request(&config);
// Power management sequence coordination:
prepare_peripherals_for_low_power();
// LPR goes low, multiple external circuits respond:
enter_low_power_mode(); // LPR -> LOW
// External power supplies can:
// - Core voltage PMIC: Reduce CPU core voltage
// - I/O voltage PMIC: Maintain or reduce I/O supply
// - Peripheral power switches: Disable unused peripherals
// - Clock generators: Reduce or disable high-frequency clocks
}
|
Noise-Immune | Power Management: // Leverage active-low for maximum noise immunity
void configure_noise_immune_power_management() {
LowPowerRequestConfig config;
// Active-low provides excellent noise immunity
config.polarity = LowPowerRequestPinPolarity::LOW_TRUE_POLARITY;
config.enable = true;
config.override = LowPowerRequestOutputOverride::NOT_FORCED;
configure_low_power_request(&config);
// Benefits of active-low in noisy environments:
// - Active state is ground-referenced (0V) - immune to VDD noise
// - Inactive state maintained by pull-up - resistant to ground bounce
// - External circuits can use Schmitt trigger inputs for hysteresis
// - Less susceptible to EMI-induced false triggering
}
|
|
strong |
Low Voltage Detection (LVD) Threshold Level Selection.
Defines the threshold voltage levels for Low Voltage Detection functionality in the MCXA153 microcontroller's System Power Controller (SPC). LVD monitoring provides early warning and protection against supply voltage drops that could cause system malfunction or data corruption.
MCXA153 低電壓檢測閾值電平選擇,提供電源電壓監控保護
LVD System Overview: The Low Voltage Detection system continuously monitors supply voltage and generates warnings or resets when voltage drops below configured thresholds. Different threshold ranges allow optimization for various supply voltage scenarios and safety requirements.
Threshold Ranges:
列舉值 | |
---|---|
NORMAL_LEVEL | Normal Level Threshold (Deprecated)
Legacy enumeration value maintained for backward compatibility. Equivalent to HIGH_RANGE threshold configuration. 正常電平閾值(已棄用),請使用 HIGH_RANGE 替代 |
SAFE_LEVEL | Safe Level Threshold (Deprecated)
Legacy enumeration value maintained for backward compatibility. Equivalent to LOW_RANGE threshold configuration. 安全電平閾值(已棄用),請使用 LOW_RANGE 替代 |
HIGH_RANGE | High Range LVD Threshold. Configures Low Voltage Detection to use higher threshold voltages for early warning and proactive power management. Provides advance notice of voltage drops before they become critical, allowing system to take preventive actions. 高範圍低電壓檢測閾值,提供早期警告和主動電源管理 Characteristics:
|
LOW_RANGE | Low Range LVD Threshold. Configures Low Voltage Detection to use lower threshold voltages for critical protection and system safety. Triggers alerts or resets only when voltage drops approach levels that could cause system malfunction or data corruption. 低範圍低電壓檢測閾值,提供關鍵保護和系統安全 Characteristics:
|
|
strong |
列舉值 | |
---|---|
VERID_FEATURE | VERID - FEATURE. Version ID - Feature Specification Number
|
VERID_MINOR | VERID - MINOR. Version ID - Minor Version Number |
VERID_MAJOR | VERID - MAJOR. Version ID - Major Version Number |
SC_BUSY | SC - BUSY. Status Control - SPC Busy Status Flag
|
SC_SPC_LP_REQ | SC - SPC_LP_REQ. Status Control - SPC Power Mode Configuration Status Flag |
SC_SPC_LP_MODE | SC - SPC_LP_MODE. Status Control - Power Domain Low-Power Mode Request
|
SC_ISO_CLR | SC - ISO_CLR. Status Control - Isolation Clear Flags |
SC_SWITCH_STATE | SC - SWITCH_STATE. Status Control - Power Switch State
|
LPREQ_CFG_LPREQOE | LPREQ_CFG - LPREQOE. Low-Power Request Configuration - Low-Power Request Output Enable
|
LPREQ_CFG_LPREQPOL | LPREQ_CFG - LPREQPOL. Low-Power Request Configuration - Low-Power Request Output Pin Polarity Control
|
LPREQ_CFG_LPREQOV | LPREQ_CFG - LPREQOV. Low-Power Request Configuration - Low-Power Request Output Override
|
CFG_INTG_PWSWTCH_SLEEP_EN | CFG - INTG_PWSWTCH_SLEEP_EN. SPC Configuration - Integrated Power Switch Sleep Enable
|
CFG_INTG_PWSWTCH_WKUP_EN | CFG - INTG_PWSWTCH_WKUP_EN. SPC Configuration - Integrated Power Switch Wake-up Enable
|
CFG_INTG_PWSWTCH_SLEEP_ACTIVE_EN | CFG - INTG_PWSWTCH_SLEEP_ACTIVE_EN. SPC Configuration - Integrated Power Switch Active Enable
|
CFG_INTG_PWSWTCH_WKUP_ACTIVE_EN | CFG - INTG_PWSWTCH_WKUP_ACTIVE_EN. SPC Configuration - Integrated Power Switch Wake-up Enable
|
PD_STATUS_PWR_REQ_STATUS | PD_STATUS - PWR_REQ_STATUS. SPC Power Domain Mode Status - Power Request Status Flag
|
PD_STATUS_PD_LP_REQ | PD_STATUS - PD_LP_REQ. SPC Power Domain Mode Status - Power Domain Low Power Request Flag
|
PD_STATUS_LP_MODE | PD_STATUS - LP_MODE. SPC Power Domain Mode Status - Power Domain Low Power Mode Request
|
SRAMCTL_VSM | SRAMCTL - VSM. SRAM Control - Voltage Select Margin
|
SRAMCTL_REQ | SRAMCTL - REQ. SRAM Control - SRAM Voltage Update Request
|
SRAMCTL_ACK | SRAMCTL - ACK. SRAM Control - SRAM Voltage Update Request Acknowledge
|
SRAMRETLDO_REFTRIM_REFTRIM | SRAMRETLDO_REFTRIM - REFTRIM. SRAM Retention Reference Trim - Reference Trim. Voltage range is around 0.48V - 0.85V. Trim step is 12 mV. |
SRAMRETLDO_CNTRL_SRAMLDO_ON | SRAMRETLDO_CNTRL - SRAMLDO_ON. SRAM Retention LDO Control - SRAM LDO Regulator Enable
|
SRAMRETLDO_CNTRL_SRAM_RET_EN | SRAMRETLDO_CNTRL - SRAM_RET_EN. SRAM Retention LDO Control - SRAM Retention |
ACTIVE_CFG_CORELDO_VDD_DS | ACTIVE_CFG - CORELDO_VDD_DS. Active Power Mode Configuration - LDO_CORE VDD Drive Strength
|
ACTIVE_CFG_CORELDO_VDD_LVL | ACTIVE_CFG - CORELDO_VDD_LVL. Active Power Mode Configuration - LDO_CORE VDD Regulator Voltage Level
|
ACTIVE_CFG_BGMODE | ACTIVE_CFG - BGMODE. Active Power Mode Configuration - Bandgap Mode
|
ACTIVE_CFG_VDD_VD_DISABLE | ACTIVE_CFG - VDD_VD_DISABLE. Active Power Mode Configuration - VDD Voltage Detect Disable
|
ACTIVE_CFG_CORE_LVDE | ACTIVE_CFG - CORE_LVDE. Active Power Mode Configuration - Core Low-Voltage Detection Enable
|
ACTIVE_CFG_SYS_LVDE | ACTIVE_CFG - SYS_LVDE. Active Power Mode Configuration - System Low-Voltage Detection Enable
|
ACTIVE_CFG_SYS_HVDE | ACTIVE_CFG - SYS_HVDE. Active Power Mode Configuration - System High-Voltage Detection Enable
|
ACTIVE_CFG1_SOC_CNTRL | ACTIVE_CFG1 - SOC_CNTRL. Active Power Mode Configuration 1 - Active Config Chip Control |
LP_CFG_CORELDO_VDD_DS | LP_CFG - CORELDO_VDD_DS. Low-Power Mode Configuration - LDO_CORE VDD Drive Strength
|
LP_CFG_CORELDO_VDD_LVL | LP_CFG - CORELDO_VDD_LVL. Low-Power Mode Configuration - LDO_CORE VDD Regulator Voltage Level
|
LP_CFG_SRAMLDO_DPD_ON | LP_CFG - SRAMLDO_DPD_ON. Low-Power Mode Configuration - SRAM_LDO Deep Power Low Power IREF Enable
|
LP_CFG_BGMODE | LP_CFG - BGMODE. Low-Power Mode Configuration - Bandgap Mode
|
LP_CFG_LP_IREFEN | LP_CFG - LP_IREFEN. Low-Power Mode Configuration - Low-Power IREF Enable
|
LP_CFG_CORE_LVDE | LP_CFG - CORE_LVDE. Low-Power Mode Configuration - Core Low Voltage Detect Enable
|
LP_CFG_SYS_LVDE | LP_CFG - SYS_LVDE. Low-Power Mode Configuration - System Low Voltage Detect Enable
|
LP_CFG_SYS_HVDE | LP_CFG - SYS_HVDE. Low-Power Mode Configuration - System High Voltage Detect Enable
|
LP_CFG1_SOC_CNTRL | LP_CFG1 - SOC_CNTRL. Low Power Mode Configuration 1 - Low-Power Configuration Chip Control |
LPWKUP_DELAY_LPWKUP_DELAY | LPWKUP_DELAY - LPWKUP_DELAY. Low Power Wake-Up Delay - Low-Power Wake-Up Delay |
ACTIVE_VDELAY_ACTIVE_VDELAY | ACTIVE_VDELAY - ACTIVE_VDELAY. Active Voltage Trim Delay - Active Voltage Delay |
VD_STAT_COREVDD_LVDF | VD_STAT - COREVDD_LVDF. Voltage Detect Status - Core Low-Voltage Detect Flag
|
VD_STAT_SYSVDD_LVDF | VD_STAT - SYSVDD_LVDF. Voltage Detect Status - System Low-Voltage Detect Flag
|
VD_STAT_SYSVDD_HVDF | VD_STAT - SYSVDD_HVDF. Voltage Detect Status - System HVD Flag
|
VD_CORE_CFG_LVDRE | VD_CORE_CFG - LVDRE. Core Voltage Detect Configuration - Core LVD Reset Enable
|
VD_CORE_CFG_LVDIE | VD_CORE_CFG - LVDIE. Core Voltage Detect Configuration - Core LVD Interrupt Enable
|
VD_CORE_CFG_LOCK | VD_CORE_CFG - LOCK. Core Voltage Detect Configuration - Core Voltage Detect Reset Enable Lock
|
VD_SYS_CFG_LVDRE | VD_SYS_CFG - LVDRE. System Voltage Detect Configuration - System LVD Reset Enable
|
VD_SYS_CFG_LVDIE | VD_SYS_CFG - LVDIE. System Voltage Detect Configuration - System LVD Interrupt Enable
|
VD_SYS_CFG_HVDRE | VD_SYS_CFG - HVDRE. System Voltage Detect Configuration - System HVD Reset Enable
|
VD_SYS_CFG_HVDIE | VD_SYS_CFG - HVDIE. System Voltage Detect Configuration - System HVD Interrupt Enable
|
VD_SYS_CFG_LVSEL | VD_SYS_CFG - LVSEL. System Voltage Detect Configuration - System Low-Voltage Level Select
|
VD_SYS_CFG_LOCK | VD_SYS_CFG - LOCK. System Voltage Detect Configuration - System Voltage Detect Reset Enable Lock
|
EVD_CFG_EVDISO | EVD_CFG - EVDISO. External Voltage Domain Configuration - External Voltage Domain Isolation |
EVD_CFG_EVDLPISO | EVD_CFG - EVDLPISO. External Voltage Domain Configuration - External Voltage Domain Low-Power Isolation |
EVD_CFG_EVDSTAT | EVD_CFG - EVDSTAT. External Voltage Domain Configuration - External Voltage Domain Status |
|
strong |
Power Domain Identifier Enumeration.
Defines identifiers for independent power domains within the MCXA153 microcontroller. Each power domain can be independently controlled, monitored, and configured for optimal power management across different functional blocks of the system.
電源域識別符枚舉,定義 MCXA153 微控制器內的獨立電源域
Power Domain Characteristics:
|
strong |
Power Domain Low Power Mode Enumeration.
Defines available low power modes for individual power domains within the MCXA153 microcontroller. Each mode provides different levels of power reduction with corresponding trade-offs in wake-up time and system functionality preservation.
電源域低功耗模式枚舉,定義各個電源域可用的低功耗模式
Power Mode Hierarchy (lowest to highest power savings):
|
strong |
Power Domain Bitmask Enumeration.
Defines bitmask values for power domains within the MCXA153 microcontroller. These values are used to identify and control specific power domains through bitwise operations in power management registers.
電源域位掩碼枚舉,定義 MCXA153 微控制器內的電源域位掩碼值
Domain Organization:
|
strong |
SPC (System Power Controller) Register Bit Shift Positions Enumeration defining bit shift positions for accessing specific bit fields within SPC peripheral registers. These shift values are used in conjunction with bit masks to extract or set individual bit fields in the registers. SPC周邊暫存器位元位移位置列舉,用於存取暫存器中特定位元欄位。 這些位移值與位元遮罩配合使用,以提取或設定暫存器中的個別位元欄位。
(register_value >> shift_position) & field_mask
列舉值 | |
---|---|
VERID_FEATURE | VERID - FEATURE. Version ID - Feature Specification Number
|
VERID_MINOR | VERID - MINOR. Version ID - Minor Version Number |
VERID_MAJOR | VERID - MAJOR. Version ID - Major Version Number |
SC_BUSY | SC - BUSY. Status Control - SPC Busy Status Flag
|
SC_SPC_LP_REQ | SC - SPC_LP_REQ. Status Control - SPC Power Mode Configuration Status Flag |
SC_SPC_LP_MODE | SC - SPC_LP_MODE. Status Control - Power Domain Low-Power Mode Request
|
SC_ISO_CLR | SC - ISO_CLR. Status Control - Isolation Clear Flags |
SC_SWITCH_STATE | SC - SWITCH_STATE. Status Control - Power Switch State
|
LPREQ_CFG_LPREQOE | LPREQ_CFG - LPREQOE. Low-Power Request Configuration - Low-Power Request Output Enable
|
LPREQ_CFG_LPREQPOL | LPREQ_CFG - LPREQPOL. Low-Power Request Configuration - Low-Power Request Output Pin Polarity Control
|
LPREQ_CFG_LPREQOV | LPREQ_CFG - LPREQOV. Low-Power Request Configuration - Low-Power Request Output Override
|
CFG_INTG_PWSWTCH_SLEEP_EN | CFG - INTG_PWSWTCH_SLEEP_EN. SPC Configuration - Integrated Power Switch Sleep Enable
|
CFG_INTG_PWSWTCH_WKUP_EN | CFG - INTG_PWSWTCH_WKUP_EN. SPC Configuration - Integrated Power Switch Wake-up Enable
|
CFG_INTG_PWSWTCH_SLEEP_ACTIVE_EN | CFG - INTG_PWSWTCH_SLEEP_ACTIVE_EN. SPC Configuration - Integrated Power Switch Active Enable
|
CFG_INTG_PWSWTCH_WKUP_ACTIVE_EN | CFG - INTG_PWSWTCH_WKUP_ACTIVE_EN. SPC Configuration - Integrated Power Switch Wake-up Enable
|
PD_STATUS_PWR_REQ_STATUS | PD_STATUS - PWR_REQ_STATUS. SPC Power Domain Mode Status - Power Request Status Flag
|
PD_STATUS_PD_LP_REQ | PD_STATUS - PD_LP_REQ. SPC Power Domain Mode Status - Power Domain Low Power Request Flag
|
PD_STATUS_LP_MODE | PD_STATUS - LP_MODE. SPC Power Domain Mode Status - Power Domain Low Power Mode Request
|
SRAMCTL_VSM | SRAMCTL - VSM. SRAM Control - Voltage Select Margin
|
SRAMCTL_REQ | SRAMCTL - REQ. SRAM Control - SRAM Voltage Update Request
|
SRAMCTL_ACK | SRAMCTL - ACK. SRAM Control - SRAM Voltage Update Request Acknowledge
|
SRAMRETLDO_REFTRIM_REFTRIM | SRAMRETLDO_REFTRIM - REFTRIM. SRAM Retention Reference Trim - Reference Trim. Voltage range is around 0.48V - 0.85V. Trim step is 12 mV. |
SRAMRETLDO_CNTRL_SRAMLDO_ON | SRAMRETLDO_CNTRL - SRAMLDO_ON. SRAM Retention LDO Control - SRAM LDO Regulator Enable
|
SRAMRETLDO_CNTRL_SRAM_RET_EN | SRAMRETLDO_CNTRL - SRAM_RET_EN. SRAM Retention LDO Control - SRAM Retention |
ACTIVE_CFG_CORELDO_VDD_DS | ACTIVE_CFG - CORELDO_VDD_DS. Active Power Mode Configuration - LDO_CORE VDD Drive Strength
|
ACTIVE_CFG_CORELDO_VDD_LVL | ACTIVE_CFG - CORELDO_VDD_LVL. Active Power Mode Configuration - LDO_CORE VDD Regulator Voltage Level
|
ACTIVE_CFG_BGMODE | ACTIVE_CFG - BGMODE. Active Power Mode Configuration - Bandgap Mode
|
ACTIVE_CFG_VDD_VD_DISABLE | ACTIVE_CFG - VDD_VD_DISABLE. Active Power Mode Configuration - VDD Voltage Detect Disable
|
ACTIVE_CFG_CORE_LVDE | ACTIVE_CFG - CORE_LVDE. Active Power Mode Configuration - Core Low-Voltage Detection Enable
|
ACTIVE_CFG_SYS_LVDE | ACTIVE_CFG - SYS_LVDE. Active Power Mode Configuration - System Low-Voltage Detection Enable
|
ACTIVE_CFG_SYS_HVDE | ACTIVE_CFG - SYS_HVDE. Active Power Mode Configuration - System High-Voltage Detection Enable
|
ACTIVE_CFG1_SOC_CNTRL | ACTIVE_CFG1 - SOC_CNTRL. Active Power Mode Configuration 1 - Active Config Chip Control |
LP_CFG_CORELDO_VDD_DS | LP_CFG - CORELDO_VDD_DS. Low-Power Mode Configuration - LDO_CORE VDD Drive Strength
|
LP_CFG_CORELDO_VDD_LVL | LP_CFG - CORELDO_VDD_LVL. Low-Power Mode Configuration - LDO_CORE VDD Regulator Voltage Level
|
LP_CFG_SRAMLDO_DPD_ON | LP_CFG - SRAMLDO_DPD_ON. Low-Power Mode Configuration - SRAM_LDO Deep Power Low Power IREF Enable
|
LP_CFG_BGMODE | LP_CFG - BGMODE. Low-Power Mode Configuration - Bandgap Mode
|
LP_CFG_LP_IREFEN | LP_CFG - LP_IREFEN. Low-Power Mode Configuration - Low-Power IREF Enable
|
LP_CFG_CORE_LVDE | LP_CFG - CORE_LVDE. Low-Power Mode Configuration - Core Low Voltage Detect Enable
|
LP_CFG_SYS_LVDE | LP_CFG - SYS_LVDE. Low-Power Mode Configuration - System Low Voltage Detect Enable
|
LP_CFG_SYS_HVDE | LP_CFG - SYS_HVDE. Low-Power Mode Configuration - System High Voltage Detect Enable
|
LP_CFG1_SOC_CNTRL | LP_CFG1 - SOC_CNTRL. Low Power Mode Configuration 1 - Low-Power Configuration Chip Control |
LPWKUP_DELAY_LPWKUP_DELAY | LPWKUP_DELAY - LPWKUP_DELAY. Low Power Wake-Up Delay - Low-Power Wake-Up Delay |
ACTIVE_VDELAY_ACTIVE_VDELAY | ACTIVE_VDELAY - ACTIVE_VDELAY. Active Voltage Trim Delay - Active Voltage Delay |
VD_STAT_COREVDD_LVDF | VD_STAT - COREVDD_LVDF. Voltage Detect Status - Core Low-Voltage Detect Flag
|
VD_STAT_SYSVDD_LVDF | VD_STAT - SYSVDD_LVDF. Voltage Detect Status - System Low-Voltage Detect Flag
|
VD_STAT_SYSVDD_HVDF | VD_STAT - SYSVDD_HVDF. Voltage Detect Status - System HVD Flag
|
VD_CORE_CFG_LVDRE | VD_CORE_CFG - LVDRE. Core Voltage Detect Configuration - Core LVD Reset Enable
|
VD_CORE_CFG_LVDIE | VD_CORE_CFG - LVDIE. Core Voltage Detect Configuration - Core LVD Interrupt Enable
|
VD_CORE_CFG_LOCK | VD_CORE_CFG - LOCK. Core Voltage Detect Configuration - Core Voltage Detect Reset Enable Lock
|
VD_SYS_CFG_LVDRE | VD_SYS_CFG - LVDRE. System Voltage Detect Configuration - System LVD Reset Enable
|
VD_SYS_CFG_LVDIE | VD_SYS_CFG - LVDIE. System Voltage Detect Configuration - System LVD Interrupt Enable
|
VD_SYS_CFG_HVDRE | VD_SYS_CFG - HVDRE. System Voltage Detect Configuration - System HVD Reset Enable
|
VD_SYS_CFG_HVDIE | VD_SYS_CFG - HVDIE. System Voltage Detect Configuration - System HVD Interrupt Enable
|
VD_SYS_CFG_LVSEL | VD_SYS_CFG - LVSEL. System Voltage Detect Configuration - System Low-Voltage Level Select
|
VD_SYS_CFG_LOCK | VD_SYS_CFG - LOCK. System Voltage Detect Configuration - System Voltage Detect Reset Enable Lock
|
EVD_CFG_EVDISO | EVD_CFG - EVDISO. External Voltage Domain Configuration - External Voltage Domain Isolation |
EVD_CFG_EVDLPISO | EVD_CFG - EVDLPISO. External Voltage Domain Configuration - External Voltage Domain Low-Power Isolation |
EVD_CFG_EVDSTAT | EVD_CFG - EVDSTAT. External Voltage Domain Configuration - External Voltage Domain Status |
|
strong |
SRAM Operating Voltage Enumeration.
Defines operating voltage levels for SRAM read/write timing margin optimization. Different voltage levels provide different timing margins and power consumption characteristics, allowing system designers to optimize for performance or efficiency.
SRAM 操作電壓枚舉,定義不同電壓等級的讀寫時序裕量優化
Voltage Selection Considerations:
|
strong |
System Power Controller (SPC) Status Enumeration.
Comprehensive status codes for SPC operations including generic system status and SPC-specific error conditions. These codes provide detailed feedback for power management operations, voltage regulation, and system configuration.
SPC 狀態枚舉,提供電源管理操作的詳細狀態回饋
Status Categories:
列舉值 | |
---|---|
SUCCESS | Operation Successful. Generic status indicating successful completion of SPC operation 操作成功狀態,表示 SPC 操作成功完成 |
FAIL | Operation Failed. Generic status indicating SPC operation failure 操作失敗狀態,表示 SPC 操作失敗 |
READONLY | Read-Only Access Violation. Attempt to modify read-only SPC register or configuration 只讀訪問違規,嘗試修改只讀的 SPC 寄存器或配置 |
OUT_OF_RANGE | Parameter Out of Valid Range. SPC parameter value exceeds allowable range 參數超出有效範圍,SPC 參數值超過允許範圍 |
INVALID_ARGUMENT | Invalid Argument Provided. SPC function called with invalid or incompatible argument 提供無效參數,使用無效或不兼容的參數調用 SPC 函數 |
TIMEOUT | Operation Timeout. SPC operation did not complete within expected time limit 操作超時,SPC 操作未在預期時間限制內完成 |
NO_TRANSFER_IN_PROGRESS | No Transfer in Progress. No active SPC transfer or transition operation 沒有進行中的傳輸,沒有活動的 SPC 傳輸或轉換操作 |
BUSY | SPC Module Busy. SPC is currently busy and cannot accept new operations SPC 模組忙碌,目前忙碌無法接受新操作 |
NO_DATA | No Data Available. Requested SPC data or status information not available 無可用數據,請求的 SPC 數據或狀態信息不可用 |
SPC_BUSY | SPC Power Mode Transition Busy. The SPC instance is currently executing a power mode transition and cannot accept new power management commands until completion. SPC 電源模式轉換忙碌,SPC 實例正在執行電源模式轉換
|
DCDC_LOW_DRIVE_STRENGTH_IGNORE | DCDC Low Drive Strength Setting Ignored. DCDC low drive strength setting was ignored because LVD/HVD (Low/High Voltage Detection) is enabled, which overrides drive strength. DCDC 低驅動強度設置被忽略,因為啟用了 LVD/HVD 檢測
|
DCDC_PULSE_REFRESH_MODE_IGNORE | DCDC Pulse Refresh Mode Setting Ignored. DCDC pulse refresh mode setting was ignored because LVD/HVD is enabled, which takes precedence over refresh mode configuration. DCDC 脈衝刷新模式設置被忽略,因為啟用了 LVD/HVD 檢測
|
SYSLDO_OVER_DRIVE_VOLTAGE_FAIL | System LDO Over Drive Voltage Configuration Failed. System LDO failed to regulate to over drive voltage because System LDO HVD (High Voltage Detection) must be disabled for this mode. 系統 LDO 過驱動電壓配置失敗,因為必須禁用系統 LDO HVD
|
SYSLDO_LOW_DRIVE_STRENGTH_IGNORE | System LDO Low Drive Strength Setting Ignored. System LDO low driver strength setting was ignored because LDO LVD/HVD is enabled, which overrides the drive strength configuration. 系統 LDO 低驅動強度設置被忽略,因為啟用了 LDO LVD/HVD
|
CORELDO_LOW_DRIVE_STRENGTH_IGNORE | Core LDO Low Drive Strength Setting Ignored. Core LDO low driver strength setting was ignored because LDO LVD/HVD is enabled, which takes priority over drive strength. 核心 LDO 低驅動強度設置被忽略,因為啟用了 LDO LVD/HVD
|
BANDGAP_MODE_WRONG | Bandgap Mode Selection Error. The selected bandgap mode is incorrect or incompatible with current system configuration or operating conditions. 帶隙模式選擇錯誤,選擇的帶隙模式不正確或與當前配置不兼容
|
CORELDO_VOLTAGE_WRONG | Core LDO Voltage Configuration Error. The specified Core LDO voltage value is incorrect or outside the allowable range for the current operating conditions. 核心 LDO 電壓配置錯誤,指定的電壓值不正確或超出允許範圍
|
CORELDO_VOLTAGE_SET_FAIL | Core LDO Voltage Setting Failed. Core LDO failed to set the requested voltage level, possibly due to hardware limitations or conflicting configuration settings. 核心 LDO 電壓設置失敗,可能因硬體限制或配置衝突
|
|
strong |
Voltage Detection Status Flag Enumeration.
Status flags for voltage detection circuits within the MCXA153 System Power Controller. These flags indicate the current state of voltage monitoring circuits and provide real-time feedback on system and core voltage conditions.
電壓檢測狀態標誌枚舉,指示電壓監控電路的當前狀態
Voltage Detection Features:
列舉值 | |
---|---|
SYSTEM_VDD_HIGH | System VDD High Voltage Detection Flag. Indicates that the system VDD voltage has exceeded the high voltage detection threshold. This flag signals a potential overvoltage condition that may require immediate system attention to prevent hardware damage. 系統 VDD 高電壓檢測標誌,指示系統 VDD 電壓超過高電壓檢測閾值 High Voltage Detection Characteristics:
|
SYSTEM_VDD_LOW | System VDD Low Voltage Detection Flag. Indicates that the system VDD voltage has fallen below the low voltage detection threshold. This flag signals insufficient supply voltage that may cause system instability or malfunction if not addressed promptly. 系統 VDD 低電壓檢測標誌,指示系統 VDD 電壓低於低電壓檢測閾值 Low Voltage Detection Characteristics:
|
CORE_VDD_LOW | Core VDD Low Voltage Detection Flag. Indicates that the core VDD voltage has fallen below the low voltage detection threshold. This flag signals insufficient processor core voltage that may cause CPU malfunction, data corruption, or system crashes. 核心 VDD 低電壓檢測標誌,指示核心 VDD 電壓低於低電壓檢測閾值 Core Voltage Detection Characteristics:
|
|
constexpr |
Operator Overload - Convert BandgapMode enum to unsigned char.
Converts BandgapMode enumeration value to unsigned char for register assignment. Useful for setting bandgap mode in SPC configuration registers.
將BandgapMode列舉值轉換為無符號字元,便於直接暫存器賦值
e | BandgapMode enumeration value 帶隙模式列舉值 |
|
constexpr |
Operator Overload - Convert CoreLdoDriveStrength enum to unsigned char.
Converts CoreLdoDriveStrength enumeration value to unsigned char for register assignment. Useful for setting core LDO drive strength in SPC configuration registers.
將CoreLdoDriveStrength列舉值轉換為無符號字元,便於直接暫存器賦值
e | CoreLdoDriveStrength enumeration value 核心LDO驅動強度列舉值 |
|
constexpr |
Operator Overload - Convert CoreLdoVoltageLevel enum to unsigned char.
Converts CoreLdoVoltageLevel enumeration value to unsigned char for register assignment. Useful for setting core LDO voltage levels in SPC configuration registers.
將CoreLdoVoltageLevel列舉值轉換為無符號字元,便於直接暫存器賦值
e | CoreLdoVoltageLevel enumeration value 核心LDO電壓等級列舉值 |
|
constexpr |
Operator Overload - Convert Count enum to unsigned int.
Converts Count enumeration value to unsigned integer for register assignment. Useful for setting SPC count values in SPC configuration registers.
將Count列舉值轉換為無符號整數,便於直接暫存器賦值
e | Count enumeration value 計數列舉值 |
|
constexpr |
Operator Overload - Convert Mask enum to unsigned int.
Converts Mask enumeration value to unsigned integer for easy register manipulation. Useful for setting or clearing specific bits in SPC control and status registers.
將Mask列舉值轉換為無號整數,便於暫存器操作
e | Mask enumeration value 列舉值 |
|
constexpr |
Unary plus operator overload for Shift enum.
Converts Shift enumeration value to its underlying unsigned integer representation. This operator enables implicit conversion to numeric values for register operations, configuration functions, and bit manipulation when interfacing with SPC registers.
Shift 枚舉的一元加號運算子重載,用於類型轉換
e | Shift enum value to convert |