Independent power domain control apparatus and method for microcontroller on-chip configurable logic blocks
By dividing the microcontroller into independent power domains, the on-chip configurable logic blocks are ensured to continuously run user-defined logic functions during processor sleep, solving the problem that logic blocks cannot run continuously in low-power mode in the prior art, and realizing a microcontroller design with low power consumption and flexible wake-up conditions.
Patent Information
- Application Number
- CN202611576488.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-13
- Publication Date
- 2026-11-10
AI Technical Summary
In low-power mode, existing microcontrollers cannot continuously run user-defined logic functions on their on-chip configurable logic blocks, and the wake-up conditions are fixed, making them unsuitable for complex application requirements.
The microcontroller is divided into two independent power domains: the CPU and memory are in one power domain, and the on-chip configurable logic blocks are in the other power domain. They are powered by independent clock sources, and the wake-up conditions are determined autonomously by the configurable logic blocks. The isolation unit maintains signal integrity and logic function during processor power failure.
It enables continuous operation of configurable logic blocks in low-power mode, reduces sleep power consumption, supports complex wake-up conditions, ensures uninterrupted signal monitoring and protocol response functions, has short wake-up latency, and reliable state synchronization.
Smart Images

Figure CN123067692A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of low-power design technology for microcontrollers, and in particular to an independent power domain control method and apparatus for on-chip configurable logic blocks of a microcontroller. Background Technology
[0002] A Configurable Logic Block (CLB) is a programmable logic unit integrated within a microcontroller (MCU) chip. It includes submodules such as lookup tables (LUTs), finite state machines (FSMs), and counters, allowing users to implement customized digital logic functions through software configuration. Because the CLB executes logic functions in hardware, its operation does not depend on CPU instruction execution. Therefore, keeping the CLB running during system sleep periods and having it handle low-speed monitoring and control tasks instead of the CPU is an effective way to reduce overall system power consumption.
[0003] In existing solutions, low-power management of microcontrollers mainly adopts clock gating: when the CPU enters idle, standby, or shutdown mode, the chip shuts down the CPU clock, peripheral clocks, and even the phase-locked loop and oscillator according to the mode. In this architecture, the CLB is in the same power domain as the CPU, memory, and general peripherals, and its clock comes from the system clock tree; when the CPU enters deep sleep mode, the CLB clock stops, and the user-configured logic functions are forced to be interrupted, making it impossible to continue performing tasks such as signal monitoring, protocol response, and fault protection during sleep.
[0004] Other existing solutions allow individual peripherals to continue operating in CPU hibernation mode, but these solutions do not implement a true power shutdown for the processor: the peripherals and the CPU are still on the same power supply network, and leakage current in the entire power domain still exists during hibernation. The lower limit of hibernation power consumption is limited by the leakage current level of the entire domain.
[0005] Another existing approach divides the chip into multiple power domains, placing fixed-function circuits such as wake-up controllers and real-time counters in a constant-power domain and implementing power gating on the processor domain. However, in this approach, the constant-power domain contains circuits with fixed functions, whose monitoring conditions and response behaviors are fixed during chip design. Wake-up conditions can only be selected from a limited number of fixed events (such as pin level changes or timer expiration), making it impossible to implement complex multi-condition combination judgments or state machine-style event sequence detection.
[0006] In addition, the field of programmable logic devices is known to support suspend mode: during the suspension period, the power supply to most of the circuits is cut off and the configuration data and internal state are maintained. However, during the suspension period, the logic of the entire device is frozen, and only the state is maintained without performing logical operations. After waking up, the power supply and clock need to be restored before it can continue to operate.
[0007] Another existing approach implements local power management for select configurable logic blocks within a programmable logic device: power is switched off individually to reduce power consumption by using a power switch. The configuration data and state of these blocks are stored in a separate memory, and the configuration is reloaded and operation resumes upon exiting sleep mode. The power-saving target of this approach is precisely the configurable logic block itself. During sleep mode, the configurable logic block ceases to perform any logical functions; it cannot perform tasks such as signal monitoring or protocol response, nor can it generate a wake-up event when its power is off. The goal is to stop the logic, not to have it perform its functions. Summary of the Invention
[0008] The purpose of this invention is to provide an independent power domain control device and method for on-chip configurable logic blocks of a microcontroller, enabling the on-chip configurable logic blocks to continue running user-defined logic functions during processor power domain power outages and to autonomously wake up the processor power domain according to user-defined conditions.
[0009] The present invention is implemented using the following technical solutions: An independent power domain control device with on-chip configurable logic blocks for a microcontroller is proposed, comprising: The first power domain, which includes the CPU, memory and general peripherals, is connected to the power supply via a power switch; The second power domain, independent of the first power domain, includes an on-chip configurable logic block; the on-chip configurable logic block includes a configurable logic array, a configuration register, and wake-up condition logic constructed via the configurable logic array. The power management unit is configured to control the power switch to turn off the power supply to the first power domain in response to an instruction to enter a low-power mode. An isolation unit is disposed on the signal path between the first power domain and the second power domain, and is configured to clamp the inter-domain signal to a predetermined safe level during the power outage of the first power domain, and release the clamp after the power is restored to the first power domain. During the power outage of the first power domain, the second power domain remains powered, and the configurable logic array continues to run user-defined logic functions; when the wake-up condition logic determines that the wake-up condition is met, it generates a wake-up request signal and outputs it to the power management unit, and the power management unit responds to the wake-up request signal to restore power to the first power domain.
[0010] In some embodiments of the present invention, the isolation unit is also coupled to the chip pin driving circuit. During the power-off period of the first power domain, the output signal of the configurable logic block drives the chip pin through the isolation unit to keep the chip pin output state from being lost.
[0011] In some embodiments of the present invention, the second power domain further includes an independent clock source; the independent clock source is a low-speed oscillator that continues to operate during a power outage of the first power domain and provides a clock for the configurable logic array.
[0012] In some embodiments of the present invention, the configurable logic block further includes: The retain register set is configured to store processor context information before entering low-power mode, so that it can be read after the CPU resumes power, thereby shortening the context recovery time after wake-up.
[0013] In some embodiments of the present invention, the configurable logic block further includes: The event recording unit is configured to record the occurrence time of the wake-up event, the trigger source identifier, and the state transition information of the configurable logic array during the power outage of the first power domain, for the CPU to read after wake-up.
[0014] In some embodiments of the present invention, the wake-up condition logic includes at least one or a combination of the following: The counter submodule's count value matches the preset value; The finite state machine submodule reaches the specified state; The input signal meets the preset level pattern or edge sequence; Boolean combination conditions for multiple signals.
[0015] In some embodiments of the present invention, the device further includes a level conversion unit disposed on an inter-domain signal path where the operating voltages of the first power domain and the second power domain are inconsistent.
[0016] Compared with the prior art, the advantages and positive effects of the present invention are: 1. Sleep power consumption is significantly reduced.
[0017] In existing solutions, the CLB and CPU reside in the same power domain. During deep sleep, only the clock can be stopped, but the power supply cannot be cut off, and leakage current within the domain still exists. This invention establishes the configurable logic block as a separate second power domain, allowing true power gating of the first power domain, which includes the CPU and memory. The lower limit of sleep power consumption is determined by the leakage current of a small-scale circuit in the second power domain. Combined with the hierarchical power management of the second power domain, the power consumption can be further reduced to a level that only maintains configuration and state.
[0018] 2. Logical functions are not interrupted during sleep mode.
[0019] Unlike the suspension mode of programmable logic devices (which freezes all logic and only maintains the state during suspension), this invention allows the logic array to continue running user-defined logic functions during processor power-off. It can continue to perform real-time tasks such as signal monitoring, protocol response, fault protection, and pulse generation, realizing the division of labor of "processor sleep, logic wake-up".
[0020] 3. The wake-up conditions are entirely user-defined.
[0021] Unlike existing solutions where the circuit functions within the power supply domain are fixed and wake-up conditions can only be selected from a limited number of fixed events, the wake-up condition logic of this invention is implemented by the configurable resources of the configurable logic block itself. Users can use any complex conditions such as counter matching, state machine reaching a specified state, input signal pattern matching, multi-signal Boolean combination, or even event sequence detection as wake-up conditions to adapt to diverse application needs.
[0022] 4. Inter-domain signal security.
[0023] The isolation unit clamps the inter-domain signals to a safe level before the first power domain is de-energized, avoiding leakage and logic errors caused by floating or backflow of signals in the de-energized domain; the level conversion unit ensures complete signal transmission when the voltages of the two domains are inconsistent.
[0024] 5. Pin control is not lost.
[0025] The output of the configurable logic block directly drives the chip pins via the isolation unit. During processor power-off, the chip's external control signals are still maintained by the user logic, and system-level functions (such as protection signals, ready signals, and communication responses) are not interrupted due to processor hibernation.
[0026] 6. Low wake-up latency and reliable state synchronization.
[0027] Configuration data and logical state are kept in the second power domain, so there is no need to reconfigure the configurable logic blocks after wake-up; the processor context can be pre-stored in the holding register of the second power domain and read directly after wake-up; events during power-down are accumulated by the event recording unit, and the CPU obtains them all at once through the handshake synchronization step, which shortens the wake-up path and ensures that no information is lost.
[0028] This invention also proposes an independent power domain control method for microcontroller on-chip configurable logic blocks, applied to the independent power domain control device for microcontroller on-chip configurable logic blocks as described above, comprising: The CPU writes configuration data to the configurable logic block via the bus interface and configures wake-up condition logic within the configurable logic block; wherein, the configuration data enables the configurable logic array within the configurable logic block to implement user-defined logical functions; the wake-up condition logic is used to generate a wake-up request based on user-defined conditions; In response to the command to enter a low-power mode, the power management unit controls the isolation unit to clamp the signal between the first power domain and the second power domain to a predetermined safe level; The power management unit controls the power switch to turn off the power supply to the first power domain and maintain the power supply to the second power domain. During the power outage of the first power domain, the independent clock source of the second power domain drives the configurable logic block to continue running user-defined logic functions. When the wake-up condition logic within the configurable logic block determines that the wake-up condition is met, a wake-up request signal is generated and sent to the power management unit. In response to the wake-up request signal, the power management unit restores power supply to the first power domain and releases its reset, and releases the clamp of the isolation unit; The CPU reads the status flags of the configurable logic block, obtains the event information accumulated during the power outage, and completes the wake-up handshake.
[0029] In some embodiments of the present invention, the method further includes a step of implementing hierarchical power management for the second power domain, including: In operation mode, the logic array can be configured to perform logical functions; In hold mode, the clock of the configurable logic array is stopped and the power supply to its logic section is cut off, while the power supply to the configuration register and status register is maintained. After exiting hold mode, the logic continues to execute from the breakpoint state.
[0030] In some embodiments of the present invention, before the power management unit controls the isolation unit to clamp the signal between the first power domain and the second power domain to a predetermined safe level, the method further includes: The CPU writes the processor context information to be retained into the holding register of the second power domain; then, During the handshake synchronization step, the context information is read from the holding register.
[0031] Compared with existing technologies, the advantages and positive effects of this invention are as follows: This invention designs two independent power domains in the microcontroller. The first power domain includes the CPU and its memory subsystem, and the second power domain includes configurable logic blocks. Wake-up condition logic is constructed in the second power domain using configurable logic resources. When the microcontroller enters low-power mode, the second power domain, where the on-chip configurable logic blocks are located, maintains power supply and continues to run the user-configured logic functions until the wake-up condition logic determines that the wake-up condition is met. Then, power supply to the first power domain is restored, and the CPU can obtain the event information accumulated during the power outage from the configurable logic blocks to complete the wake-up handshake. This invention divides the processor and configurable logic blocks at the power domain level, enabling the configurable logic blocks to continue performing tasks such as signal monitoring, protocol response, and fault protection during processor sleep, and to actively wake up the processor. This achieves a system-level low-power architecture where the configurable logic blocks continue to run and autonomously wake up the processor even when the processor is powered off.
[0032] Other features and advantages of the present invention will become clearer after reading the detailed description of the embodiments of the present invention in conjunction with the accompanying drawings. Attached Figure Description
[0033] Figure 1 This invention presents the architecture of an independent power domain control device with on-chip configurable logic blocks for microcontrollers. Figure 2 This is a schematic diagram of the steps of the independent power domain control method for on-chip configurable logic blocks of microcontrollers proposed in this invention. Figure 3 This is a timing diagram of the low-power entry and wake-up recovery of the microcontroller in an embodiment of the present invention. Detailed Implementation
[0034] The specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
[0035] like Figure 1 As shown, the microcontroller chip in this embodiment is divided into two power domains: The first power domain is a power-off domain, including the CPU, memory (flash memory and static memory), general-purpose peripherals (serial interface, timers, analog-to-digital converters, etc.), and high-speed clock circuits (phase-locked loop, crystal oscillator). The first power domain is connected to the constant power supply terminal VDD via a power switch controlled by the power management unit. During normal operation, the power switch is closed, and the first power domain operates at full speed; when entering low-power mode, the power switch is open, and the first power domain is completely powered off, leaving only near-zero switching leakage current.
[0036] The second power domain, the CLB's constant power domain, includes on-chip configurable logic blocks and auxiliary circuitry for powering them. The configurable logic blocks internally contain: a configurable logic array (several lookup tables, finite state machines, counter submodules, and their interconnections), a configuration register set, wake-up condition logic, a holding register set, and an event log unit. The second power domain is directly connected to the constant power supply terminal VDD without a power switch; its clock is provided by an independent low-speed clock source (e.g., an on-chip low-speed oscillator), which is independent of the clock tree of the first power domain and continues to operate during power outages in the first power domain.
[0037] An isolation unit is installed on the signal path between the two power domains. The isolation unit contains several isolation gates, each with a clamping control input. When the power management unit enables clamping, the isolation gate forces its output to a predetermined safe level (high or low, configurable according to signal semantics), preventing the input on the first power domain side from becoming floating. When the two power domains operate at different voltages (e.g., the first power domain is a high-voltage, high-performance domain, and the second power domain is a low-voltage, low-leakage domain), a level shifting unit is also connected in series on the signal path.
[0038] The output path of the configurable logic block has two branches: one leads through the isolation unit to the general peripherals and CPU bus of the first power domain for inter-domain cooperation; the other leads directly to the chip pin driver circuit (through output isolation only) to maintain pin control during power-down of the first power domain.
[0039] like Figure 2 As shown, in the power domain architecture of the microcontroller described above, this embodiment achieves low-power entry and wake-up through the following independent power domain control steps: Step S101 (Configuration Stage): The CPU writes configuration data to the configurable logic block through the bus interface and configures the wake-up condition logic within the configurable logic block.
[0040] During normal CPU operation, configuration data is written to the configurable logic block via the bus interface to implement user-defined logic functions, such as filtering and decoding signals from a specific input pin and monitoring for protocol frame errors. Simultaneously, wake-up condition logic is configured within the configurable logic block, for example, monitoring for three consecutive frame errors or a counter not receiving the expected pulse within a preset time window. The CPU then queries the configuration completion flag and self-test results. After confirming the configuration is valid, it writes the processor context (critical register values, program state) that needs to be quickly restored into the holding register group of the second power domain.
[0041] Step S102 (Isolation Step): In response to the instruction to enter low-power mode, the power management unit controls the isolation unit to clamp the signal between the first power domain and the second power domain to a predetermined safe level.
[0042] When the CPU issues a command to enter low-power mode, the power management unit first enables the clamping control of the isolation unit to clamp all inter-domain signals to a predetermined safe level. At this time, the configurable logic block has achieved electrical isolation from the first power domain side, which will be left floating after power failure.
[0043] Step S103 (Power-off step): The power management unit controls the power switch to turn off the power supply to the first power domain, while maintaining the power supply to the second power domain.
[0044] After confirming that isolation is complete, the power management unit controls the power switch to shut off the power supply to the first power domain, and the CPU, memory, general peripherals and high-speed clock of the first power domain are all powered off.
[0045] Step S104 (Autonomous Operation Step): During the power outage of the first power domain, the independent clock source of the second power domain drives the configurable logic block to continuously run the user-defined logic function.
[0046] During the power outage of the first power domain, the second power domain continues to supply power, and an independent low-speed clock source continuously provides the clock. The configurable logic array continues to run user logic, continue to monitor input signals, maintain protocol responses, and perform fault protection judgments. Its configuration data and logic state (current state machine state, current counter value) are always valid.
[0047] Output retention: In this invention, the isolation unit is coupled to the chip pin driving circuit. During the power-off period of the first power domain, the outputs of the configurable logic block that undertake external control functions (such as protection signals and ready indicators) directly drive the chip pins through the isolation unit, so as to keep the chip pin output state from being lost.
[0048] Step S105 (Wake-up Step): When the wake-up condition logic in the configurable logic block determines that the wake-up condition is met, a wake-up request signal is generated and sent to the power management unit.
[0049] When the wake-up condition logic determines that the wake-up condition is met (e.g., three consecutive frame errors are detected, or a low-level protection signal is valid), a wake-up request signal is generated and sent along the dedicated wake-up path from the second power domain to the power management unit. This dedicated path is always powered and does not pass through the shut-off inter-domain signal path.
[0050] This embodiment provides three typical wake-up condition configurations implemented using configurable logical resources: (1) Count Matching Wake-up: Configure a counter submodule of the configurable logic block to count input pulses, and set the comparison value register to N; when the count value matches N, output a matching signal as a wake-up request. It is suitable for monitoring scenarios where abnormal pulses accumulate to a threshold and then wake up.
[0051] (2) State Machine Sequence Wake-up: The finite state machine submodule is configured as an event sequence detection state machine. A wake-up request is only output when the input signals sequentially meet the preset level / edge sequence and reach the specified final state. It is suitable for scenarios such as serial protocol frame header sequence detection and specific fault sequence identification.
[0052] (3) Boolean combination wake-up: Combines multiple input signals and internal node signals into an arbitrary Boolean expression through a lookup table. When the expression is true, a wake-up request is output. It is suitable for protection scenarios with multiple concurrent conditions, such as overcurrent signals and temperature alarms being effective at the same time.
[0053] The above three conditions can be cascaded and combined to form more complex timing conditions such as event A occurring first and event B occurring within time window T. The complexity is only limited by the configurable logic block resources and is not limited by the fixed wake-up circuit in the chip design.
[0054] Step S106: In response to the wake-up request signal, the power management unit restores power supply to the first power domain and releases its reset, and releases the clamp of the isolation unit.
[0055] Upon receiving a wake-up request, the power management unit closes the power switch, allowing power to ramp up in the first power domain. Once stable, the CPU is released and reset. The clock circuit of the first power domain is relocked, and then the power management unit releases the clamping of the isolation unit, restoring the inter-domain signal path.
[0056] like Figure 3 The wake-up sequence shown is based on a complete low-power cycle: Before time t0, the first power domain is powered (VDD is high), isolation is not enabled, and both domains are operating normally.
[0057] At time t0, the CPU issues a low-power instruction, which pulls the isolation enable signal ISO high and clamps the inter-domain signal.
[0058] At time t1, the power switch is turned off, VDD discharges to zero, and the first power domain is powered off; the second power domain clock CLK_CLB and internal signal S_CLB are unaffected and continue to run, and the configurable logic block output OUT_CLB sustains the pin drive.
[0059] At time t2, the wake-up condition is met, and the wake-up request WAKE_REQ generates a pulse.
[0060] At time t3, the power management unit closes the power switch, and VDD begins to rise. Simultaneously, a power-on reset (RESET1) is generated.
[0061] At time t4, VDD is stable, the first power domain RESET1 is reset and released, and the CPU begins execution; the isolation enable ISO is pulled low, and the inter-domain signal path is restored.
[0062] At time t5, the CPU completes the handshake synchronization with the configurable logic block (READY signal is valid), and the system resumes normal operation.
[0063] The time from t2 to t4 is determined by the power supply ramp-up time of the power switch, which is on the same order of magnitude as the wake-up delay of the existing deep sleep mode; while the configurable logic block never stops running throughout the entire cycle.
[0064] Step S107 (Handshake Synchronization Step): The CPU reads the status flags of the configurable logic block, obtains the event information accumulated during the power outage, and completes the wake-up handshake.
[0065] After the CPU is reset, the firmware running reads the status flags of the configurable logic block through the bus interface to confirm the wake-up source; the event recording unit of the configurable logic block synchronizes the event records (event occurrence time, trigger source identifier, state transition sequence) accumulated during the power outage to the CPU; the CPU restores the context from the holding register group.
[0066] After the handshake is completed, the system returns to normal operation mode where both the first and second power domains are powered.
[0067] In the above embodiments of the present invention, three-level power management is implemented for the second power domain, including: Operating mode: The configurable logic array executes logic functions normally, while the independent clock runs at full speed, suitable for scenarios where the logic needs to continue working during a power outage in the first power domain.
[0068] Hold Mode: The clock of the configurable logic array stops, power supply to the logic sections of the array is cut off, and power supply to only the configuration register group and status register group is maintained. Configuration and status (state machine state, counter value) are fully maintained, minimizing leakage current. Suitable for scenarios where the system is in standby mode for extended periods and logic monitoring is not required; after exiting hold mode, the logic resumes operation from the breakpoint state without reconfiguration.
[0069] Shutdown mode: The second power domain experiences a complete power outage, configuration data is lost, and reconfiguration is required after wake-up. The power consumption mode is automatically switched by the power management unit based on the system state or explicitly specified by the CPU. For example, when the system detects no external activity for a long time, it first enters a mode where the first power domain is powered down and the second power domain is running; if there are still no events, it then degrades to the second power domain hold mode; wake-up requests in either mode are handled uniformly by the power management unit.
[0070] It should be noted that the above description is not intended to limit the present invention, and the present invention is not limited to the examples given above. Any changes, modifications, additions or substitutions made by those skilled in the art within the scope of the present invention should also fall within the protection scope of the present invention.
Claims
1. An independent power domain control device with on-chip configurable logic blocks for a microcontroller, characterized in that, include: The first power domain, which includes the CPU, memory and general peripherals, is connected to the power supply via a power switch; The second power domain, independent of the first power domain, includes on-chip configurable logic blocks. The on-chip configurable logic block includes a configurable logic array, a configuration register, and wake-up condition logic constructed via the configurable logic array; The power management unit is configured to control the power switch to turn off the power supply to the first power domain in response to an instruction to enter a low-power mode. An isolation unit is disposed on the signal path between the first power domain and the second power domain, and is configured to clamp the inter-domain signal to a predetermined safe level during the power outage of the first power domain, and release the clamp after the power is restored to the first power domain. During the power outage of the first power domain, the second power domain remains powered, and the configurable logic array continues to run user-defined logic functions; when the wake-up condition logic determines that the wake-up condition is met, it generates a wake-up request signal and outputs it to the power management unit, and the power management unit restores the power supply to the first power domain in response to the wake-up request signal.
2. The independent power domain control device with on-chip configurable logic blocks for a microcontroller according to claim 1, characterized in that, The isolation unit is also coupled to the chip pin driving circuit. During the power-off period of the first power domain, the output signal of the configurable logic block drives the chip pin through the isolation unit to keep the chip pin output state from being lost.
3. The independent power domain control device with on-chip configurable logic blocks for a microcontroller according to claim 1, characterized in that, The second power domain also includes an independent clock source; the independent clock source is a low-speed oscillator that continues to operate and provides a clock for the configurable logic array during power outages in the first power domain.
4. The independent power domain control device with on-chip configurable logic blocks for a microcontroller according to claim 1, characterized in that, The configurable logic block further includes: The retain register set is configured to store processor context information before entering low-power mode, so that it can be read after the CPU resumes power, thereby shortening the context recovery time after wake-up.
5. The independent power domain control device with on-chip configurable logic blocks for a microcontroller according to claim 1, characterized in that, The configurable logic block further includes: The event recording unit is configured to record the occurrence time of the wake-up event, the trigger source identifier, and the state transition information of the configurable logic array during the power outage of the first power domain, for the CPU to read after wake-up.
6. The independent power domain control device with on-chip configurable logic blocks for a microcontroller according to claim 1, characterized in that, The wake-up condition logic includes at least one or a combination of the following: The counter submodule's count value matches the preset value; The finite state machine submodule reaches the specified state; The input signal meets the preset level pattern or edge sequence; Boolean combination conditions for multiple signals.
7. The independent power domain control device with on-chip configurable logic blocks for a microcontroller according to claim 1, characterized in that, The device further includes: The level conversion unit is located on the inter-domain signal path where the operating voltages of the first power domain and the second power domain are inconsistent.
8. A method for controlling an independent power domain of a microcontroller with on-chip configurable logic blocks, applied in the independent power domain control device of a microcontroller with on-chip configurable logic blocks as described in any one of claims 1-7, characterized in that, include: The CPU writes configuration data to the configurable logic block via the bus interface and configures wake-up condition logic within the configurable logic block; wherein, the configuration data enables the configurable logic array within the configurable logic block to implement user-defined logical functions; the wake-up condition logic is used to generate a wake-up request based on user-defined conditions; In response to the command to enter a low-power mode, the power management unit controls the isolation unit to clamp the signal between the first power domain and the second power domain to a predetermined safe level; The power management unit controls the power switch to turn off the power supply to the first power domain and maintain the power supply to the second power domain. During the power outage of the first power domain, the independent clock source of the second power domain drives the configurable logic block to continue running user-defined logic functions. When the wake-up condition logic within the configurable logic block determines that the wake-up condition is met, a wake-up request signal is generated and sent to the power management unit. In response to the wake-up request signal, the power management unit restores power supply to the first power domain and releases its reset, and releases the clamp of the isolation unit; The CPU reads the status flags of the configurable logic block, obtains the event information accumulated during the power outage, and completes the wake-up handshake.
9. The independent power domain control method for on-chip configurable logic blocks of a microcontroller according to claim 8, characterized in that, The method further includes the step of implementing hierarchical power management for the second power domain, including: In operation mode, the logic array can be configured to perform logical functions; In hold mode, the clock of the configurable logic array is stopped and the power supply to its logic section is cut off, while the power supply to the configuration register and status register is maintained. After exiting hold mode, the logic continues to execute from the breakpoint state.
10. The independent power domain control method for on-chip configurable logic blocks of a microcontroller according to claim 8, characterized in that, Before the power management unit controls the isolation unit to clamp the signal between the first power domain and the second power domain to a predetermined safe level, the method further includes: The CPU writes the processor context information to be retained into the holding register of the second power domain; then, During the handshake synchronization step, the context information is read from the holding register.
