System with mcu and flash and low power consumption control method thereof

By adding power pins and a power switch module to the MCU, the entire Flash memory is powered down, solving the problem of residual power consumption in existing systems. This provides lower system power consumption and faster entry into deep sleep mode, making it suitable for products that require lower power consumption.

CN118228657BActive Publication Date: 2026-11-24GIGADEVICE SEMICON (BEIJING) INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211631988.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-19
Publication Date
2026-11-24
Estimated Expiration
2042-12-19

AI Technical Summary

Technical Problem

The existing MCU+Flash system architecture still has some circuits working in deep sleep mode, resulting in residual static and dynamic power consumption, which cannot meet the requirements for lower power consumption. In addition, it takes time for Flash to enter low power mode, which prolongs the time for the entire system to enter a low power state.

Method used

By adding a power pin to the MCU to couple to the power supply of the Flash memory, and using a power control signal to cut off the power when needed, combined with a power supply switch module and a voltage conversion circuit, the Flash memory can be powered down as a whole, providing a new low-power mode.

Benefits of technology

It achieves lower system power consumption, shortens the time it takes for the system to enter deep sleep mode, and provides additional protection in special circumstances to meet the low power consumption requirements under special conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118228657B_ABST
    Figure CN118228657B_ABST
Patent Text Reader

Abstract

This invention provides a system integrating an MCU and Flash memory, along with its low-power control method. Compared to existing system architectures, it provides a new low-power mode (i.e., a first low-power mode) by adding only one power pin to the MCU to couple the Flash power supply. When the system needs to enter a low-power state, the Flash memory is completely powered off, providing lower system power consumption than the existing low-power mode (i.e., a second low-power mode). Furthermore, it can enter the low-power mode faster when the Flash memory is idle (IDLE). In addition, it is compatible with existing deep sleep modes to meet the low-power requirements of the system under both normal and special conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of integrated circuit design technology, and in particular to a system that combines MCU and Flash memory, and its low-power control method. Background Technology

[0002] Flash memory is an electronically erasable and programmable memory that allows for rapid data access and data retention even when power is off. Currently, many microcontroller units (MCUs) utilize built-in or external Flash memory to create an MCU+Flash system architecture. This allows for the rapid storage of the MCU's firmware and other sensitive data into the Flash memory. The Flash and MCU are typically connected via a communication bus interface conforming to protocols such as SPI (Serial Peripheral Interface). The MCU uses this SPI interface to send commands supported by the Flash to control its read, write, erase, and operating modes. Specifically, when the system needs to enter deep sleep mode, the MCU sends a deep power down (DPD) command to the Flash via the SPI interface. Upon responding to the DPD command, the Flash enters its own low-power mode to coordinate with the overall system's entry and exit from low-power mode.

[0003] However, in the current MCU+Flash system architecture, even after the entire system enters a deep sleep mode, some circuits in the Flash memory are still working, resulting in a certain amount of static and dynamic power consumption. This makes it impossible to achieve the lowest power consumption of the system and makes it difficult to meet the needs of lower power consumption products. Summary of the Invention

[0004] The purpose of this invention is to provide a system that combines MCU and FLASH and its low-power control method, which is compatible with existing low-power modes and further realizes a new even lower power mode to meet the lower power requirements of certain products under special circumstances.

[0005] To achieve the above objectives, the present invention provides a system that combines an MCU and a FLASH, wherein the FLASH stores the firmware code and / or sensitive data of the MCU and has a first circuit section and a second circuit section, and the MCU has at least one power supply pin, which is coupled to the power supply terminal of the FLASH.

[0006] In normal operating mode, the MCU controls the power supply terminal of the Flash to be powered through the power control signal, and both the first circuit section and the second circuit section operate normally. In the first low-power mode, the MCU controls the power supply terminal of the Flash to be powered off through the power control signal, so that both the first circuit section and the second circuit section are powered off.

[0007] Optionally, in the second low-power mode, the MCU controls the power supply terminal of the Flash to be energized via the power control signal, and the first circuit section operates normally while the second circuit section is powered off, wherein the first circuit section includes the circuit required for the Flash to recover from the second low-power mode to the normal operating mode.

[0008] Optionally, the system combining MCU and Flash further includes a power supply switch module. The input terminal of the power supply switch module is coupled to the power supply required by the Flash, the output terminal of the power supply switch module is coupled to the power supply pin, and the control terminal of the power supply switch module is coupled to the power control signal. In the normal operating mode and the second low-power mode, the MCU controls the power supply switch module to remain closed and conducting through the power control signal, and the power supply supplies power to the Flash. In the first low-power mode, the MCU controls the power supply switch module to be disconnected through the power control signal.

[0009] Optionally, the power supply switch module includes an analog switch circuit, the input terminal of which is coupled to the power supply, the output terminal of which is coupled to the power supply pin, and the control terminal of which is coupled to the power supply control signal.

[0010] Optionally, the power supply switch module further includes a voltage conversion circuit, the input terminal of which is coupled to the output terminal of the analog switch circuit, and the output terminal of which is coupled to the power supply pin.

[0011] Optionally, the power supply switch module is located outside the MCU, or the power supply switch module is integrated into the analog domain circuit of the MCU.

[0012] Optionally, the MCU also includes:

[0013] The Flash controller is connected to the Flash via a communication bus interface and sends instructions for reading, writing, erasing, and controlling the operating mode of the Flash via the communication bus interface. It also checks the status of the Flash after receiving a signal to enter low-power mode.

[0014] A power control module is coupled to the Flash controller and the power control signal, and is used to control the power supply terminal of the Flash to remain powered or de-energized according to the low-power mode signal and the state detected by the Flash controller after receiving the low-power mode signal.

[0015] Optionally, the MCU also includes a low-power mode control bit, and:

[0016] When the power control module does not receive the signal to enter low-power mode, the system is in the normal operating mode, and the power control module controls the power terminal of the Flash to maintain power through the power control signal;

[0017] When the power control module receives the signal to enter low power mode and the low power mode control bit is not set, the power control module controls the power terminal of the Flash to keep it powered through the power control signal, and the Flash controller sends an instruction to enter low power mode to the Flash. The Flash responds to the instruction to enter low power mode and enters the second low power mode.

[0018] When the power control module receives the signal to enter low-power mode and the low-power mode control bit is set, the power control module controls the power supply terminal of the Flash to be powered off through the power control signal, and the system enters the first low-power mode.

[0019] Optionally, when the power control module receives the signal to enter low-power mode and the low-power mode control bit is set, the power control module controls the power supply terminal of the Flash to be powered off through the power control signal after the Flash controller detects that the Flash is in an idle state.

[0020] Optionally, the MCU further includes a processing core, which, upon receiving a deep sleep command, sends the signal to enter low-power mode to the Flash controller and the power control module.

[0021] Optionally, the MCU further includes an illegal intrusion detection module, which is coupled to the power control module and is used to output an intrusion signal to the power control module when an illegal intrusion is detected. The power control module controls the power supply terminal of the Flash to be powered off based on the intrusion signal and the power control signal.

[0022] Optionally, the MCU also has an intrusion control bit, wherein when the power control module receives the intrusion signal and the intrusion control bit is set, the power control module controls the power supply terminal of the Flash to be powered off through the power control signal.

[0023] Optionally, a low-power mode control bit and / or an intrusion control bit are set in at least one configuration register of the power control module.

[0024] Optionally, the MCU and the Flash are packaged together using a system-in-package (SIP) process.

[0025] Based on the same inventive concept, the present invention also provides a low-power control method for a system that combines an MCU and a Flash memory. The Flash memory stores the firmware code and / or sensitive data of the MCU and has a first circuit section and a second circuit section. The MCU has at least one power supply pin, which is coupled to the power supply terminal of the Flash memory. The low-power control method includes: when the system needs to enter a deep sleep mode, the MCU controls the power supply terminal of the Flash memory to be powered off through a power control signal, so that the Flash memory enters a first low-power mode, and both the first circuit section and the second circuit section are powered off.

[0026] Optionally, when the system needs to enter a deep sleep mode and the low-power mode control bit inside the MCU is set, the MCU first checks whether the Flash is in an idle state. Only after the Flash is found to be in an idle state will the power control signal cut off the power supply to the Flash.

[0027] Optionally, the low-power control method further includes: when the system needs to enter a deep sleep mode and the low-power mode control bit inside the MCU is not set, the power supply terminal of the Flash remains powered, the MCU sends an instruction to the Flash to enter a low-power mode, the Flash responds to the low-power mode instruction and enters a second low-power mode, the first circuit section of the Flash continues to work and the second circuit section of the Flash is powered off.

[0028] Optionally, after the Flash enters the first low-power mode or the second low-power mode, the MCU controls its own related circuits to power down, and the system as a whole enters the corresponding low-power state.

[0029] Compared with the prior art, the technical solution of the present invention has at least the following beneficial effects:

[0030] 1. Compared to the existing system architecture, a new low-power mode (i.e., the first low-power mode) can be provided by simply adding a power supply pin on the MCU to couple the power supply of the Flash. When the system needs to enter deep sleep mode, the Flash can be powered off, which can provide lower system power consumption than the existing deep sleep mode (i.e., the second low-power mode).

[0031] 2. When the Flash (IDLE) is idle, the system can enter deep sleep mode more quickly.

[0032] 3. It can be further compatible with existing deep sleep modes to meet the low power consumption requirements of the system under normal and special conditions.

[0033] 4. Furthermore, in the event of unauthorized external intrusion, the entire Flash memory can be powered off in a timely manner to protect sensitive information. Attached Figure Description

[0034] Those skilled in the art will understand that the accompanying drawings are provided to better understand the invention and do not constitute any limitation on the scope of the invention. Wherein:

[0035] Figure 1 This is a schematic diagram of the architecture of an existing SIP MCU system that combines MCU and Flash.

[0036] Figure 2A and Figure 2B This is a schematic diagram illustrating different architecture examples of a system combining MCU and Flash according to the first embodiment of the present invention.

[0037] Figure 3A This is an example flowchart of a low-power control method for a system that combines MCU and Flash memory, according to the first embodiment of the present invention.

[0038] Figure 3B This is another example flowchart of a low-power control method for a system combining MCU and Flash according to the first embodiment of the present invention.

[0039] Figure 4A and Figure 4B This is a schematic diagram illustrating different architecture examples of a system combining MCU and Flash according to the second embodiment of the present invention.

[0040] Figures 5A to 5D This is a schematic diagram illustrating different architecture examples of a SIP MCU system chip that combines MCU and Flash according to the third embodiment of the present invention.

[0041] Figure 6 This is a flowchart of a low-power control method for a system combining MCU and Flash memory, according to the third embodiment of the present invention. Detailed Implementation

[0042] In the following description, numerous specific details are set forth in order to provide a more thorough understanding of the invention. However, it will be apparent to those skilled in the art that the invention may be practiced without one or more of these details. In other instances, certain technical features well-known in the art have not been described in order to avoid confusion with the invention. It should be understood that the invention can be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, providing these embodiments will make the disclosure thorough and complete, and will fully convey the scope of the invention to those skilled in the art. The same reference numerals denote the same elements throughout. It should be understood that when an element is referred to as "connected to" or "coupled to" other elements, it may be directly connected to other elements, or there may be intervening elements. Conversely, when an element is referred to as "directly connected to" other elements, there are no intervening elements. As used herein, the singular forms "a," "an," and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "comprising" is used to identify the presence of features, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or groups. When used herein, the term "and / or" includes any and all combinations of the associated listed items.

[0043] Please refer to Figure 1 A commonly used MCU+Flash system architecture is the SIP MCU system architecture. Specifically, it uses SIP (System-in-Package) technology to encapsulate the MCU die and Flash die in a single package (10), allowing the Flash memory to be externally mounted on the MCU. This architecture simplifies the manufacturing process, shortens the design cycle, and can also utilize advanced 2.5D / 3D / wafer-level packaging technologies to integrate other dies with different functions (e.g.,...). Figure 1 The low-voltage linear regulator (LDO) is also packaged together in the same package 10, thus meeting the system's higher requirements for performance, power consumption, density, etc.

[0044] The power supply of the Flash memory is typically connected to the VDD power supply on the PCB board (not shown) on which the package 10 is mounted via an LDO. The Flash memory generally stores the MCU's firmware code (also known as firmware program) and other sensitive data, and provides its own low-power mode to cooperate with the overall low-power mode entry and exit of the SIP MCU system. The Flash and MCU are generally connected via a communication bus interface using a protocol such as SPI (not shown; SPI is used as an example below, but this invention is not limited to this). The MCU sends SPI IF commands supported by the Flash through this SPI communication bus interface to read, write, erase, and control the Flash content, as well as the Flash operating mode (such as normal operating mode or deep power down mode).

[0045] When the SIP MCU system architecture needs to enter deep sleep mode, the MCU sends a low-power mode command (DPD) to the Flash memory via the SPI communication bus interface. The Flash memory responds to the command and enters its own low-power mode after a certain period. Then, the MCU controls its internal circuitry to power down, and the entire SIP MCU system architecture enters low-power mode.

[0046] The above-described SIP MCU system architecture has some drawbacks. When the SIP MCU system architecture is in deep sleep mode, the Flash is in its own low-power mode. In this mode, the power supply from VDD to the Flash power supply terminal is not cut off. Only a part of the circuit inside the Flash (i.e., the second circuit U22) is powered down, while another part of the circuit (i.e., the first circuit U21) is still working. The first circuit U21 usually includes the circuit required for the Flash to recover from its low-power mode to its normal working mode. This results in the Flash having a certain amount of static and dynamic power consumption, which limits the further reduction of system power consumption.

[0047] In addition, the Flash must wait for the MCU to send a low-power mode command (DPD) before it can enter its own low-power mode. This takes time and prolongs the time required for the SIP MCU system architecture as a whole to enter a low-power state.

[0048] Based on this, the present invention provides a system that integrates an MCU and Flash memory. Building upon existing solutions, a power pin is added to the MCU, coupled to the Flash memory's power supply terminal (VDD_FLASH). When the entire system needs to enter deep sleep mode, the Flash memory's power supply terminal can be powered off via a power control signal, thus disabling all internal circuitry within the Flash memory. This avoids residual static and dynamic power consumption in the Flash memory, further reducing system power consumption in deep sleep mode. Furthermore, by powering off the Flash memory's power supply terminal, the time required for the entire MCU and Flash memory system to enter deep sleep mode can be shortened.

[0049] The technical solution proposed by the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer from the following description. It should be noted that the drawings are all in a very simplified form and use non-precise proportions, and are only used to facilitate and clarify the illustration of the embodiments of the present invention.

[0050] First Embodiment

[0051] Please refer to Figure 2A and Figure 2B One embodiment of the present invention provides a system that combines MCU and Flash, which includes an MCU, Flash and a power supply switch module U0.

[0052] The Flash memory has a first circuit section U21 and a second circuit section U22. The first circuit section U21 may include some wake-up circuits, internal clock circuits, etc., and the second circuit section U22 may include a memory array, address decoder, etc. The second circuit section U22 stores the firmware program of the MCU and other sensitive data.

[0053] The MCU has at least one power supply pin (unlabeled) for coupling to the Flash power supply terminal VDD_FLASH. Preferably, the power supply switch module U0 is located inside the MCU and includes an analog switch circuit S. The input terminal (not shown) of the analog switch circuit S is coupled to the power supply VDD, and the output terminal of the analog switch circuit S is coupled to the MCU's power supply pin for coupling to the Flash power supply terminal VDD_FLASH. The control terminal (not shown) of the analog switch circuit S is coupled to the MCU's power control signal Sd.

[0054] As an example, please refer to Figure 2A As shown, the MCU and Flash chips can be soldered onto the same PCB board.

[0055] As another example, please refer to Figure 2BAs shown, the MCU and Flash modules are two bare dies, and the bare dies of the MCU and Flash are packaged together in the same package 10 using SIP packaging technology. The two bare dies of the MCU and Flash can be arranged side by side in the package 10, or they can be further stacked in three dimensions using 2.5D / 3D / wafer-level advanced packaging technology (i.e., stacked).

[0056] It should be understood that, in specific applications of this embodiment, the output terminal of the analog switch circuit S can also be directly packaged as a power supply pin added to the MCU chip of this embodiment compared to the MCU chip in the existing solution.

[0057] Furthermore, the analog switch circuit S can be any suitable circuit design capable of functioning as a controllable switch, such as a relay switch, CMOS switch, bootstrap switch, or logic gate switch. Simultaneously, the MCU can integrate any suitable electronic devices and circuit structures, such as an analog-to-digital converter (not shown) and its analog domain circuitry (not shown), or registers (not shown), the processing CPU core, the power control module (PMU), and the flash controller (FMC) and their digital domain circuitry. Among these, the processing CPU core is the most crucial part of the MCU. Almost all operations within the MCU, including calculations, receiving / storing commands, and processing data, are handled by the processing CPU core. The processing CPU core can contain corresponding L1 cache, L2 cache, execution units, instruction-level units, etc. When the system needs to enter deep sleep mode, the processing CPU core receives a deep sleep instruction (which can be triggered by the MCU's software or hardware) and, based on this instruction, sends a low-power mode signal (standby) to both the power control module (PMU) and the flash controller (FMC). The Flash Controller (FMC) communicates with the Flash memory via a communication bus interface (not shown) conforming to protocols such as SPI (Serial Peripheral Interface). Through this communication bus interface, the FMC sends SPI IF commands for reading, writing, erasing, and controlling the operating mode of the Flash memory. It also checks the Flash memory status upon receiving a corresponding low-power mode signal (standby). For ease of description, the term "communication bus interface" will be used in the following text as an example of the "SPI communication bus interface."

[0058] In this embodiment, the system, which integrates both MCU and Flash memory, operates in normal mode. The MCU powers the Flash memory's power supply terminal VDD_FLASH via a power control signal Sd. Specifically, the MCU's power control module (PMU) controls the analog switch circuit S to conduct (or "close") using the power control signal Sd. The power supply VDD supplies power to the Flash memory's power supply terminal VDD_FLASH through the conducting analog switch circuit S, thus ensuring that the Flash memory's power supply terminal VDD_FLASH is powered, and both the first circuit section U21 and the second circuit section U22 of the Flash memory function normally. In the first low-power mode, the MCU powers off the Flash memory's power supply terminal VDD_FLASH via the power control signal Sd, causing both the first circuit section U21 and the second circuit section U22 of the Flash memory to be de-energized. Specifically, the MCU's power control module (PMU) controls the analog switch circuit S to turn off (also known as "cut-off" or "disconnect") through the power control signal Sd. The power supply VDD cannot supply power to the Flash power supply terminal VDD_FLASH, so the Flash power supply terminal VDD_FLASH is de-energized, and both the first circuit section U21 and the second circuit section U22 of the Flash are powered down.

[0059] Therefore, as an example, please combine... Figure 2A and Figure 3A This embodiment provides a low-power control method for a system that combines an MCU and Flash memory, which includes the following steps:

[0060] First, when the system needs to enter deep sleep mode, the CPU core (not shown), which is independent of the power control module PMU and the flash controller FMC inside the MCU, will receive a deep sleep instruction (this instruction can be triggered by the MCU's software or hardware) and issue a low-power mode signal standby according to the deep sleep instruction. Both the power control module PMU and the flash controller FMC inside the MCU will receive this low-power mode signal standby.

[0061] Next, the Flash controller (FMC) checks whether the Flash is in an idle state via the SPI communication bus interface, that is, whether the MCU is performing read, write, or erase operations on the Flash, and informs the power control module (PMU) of the detected state. For example, when the Flash controller (FMC) detects that the Flash is in an idle state, it pulls down its internal busy flag signal and sends it to the power control module (PMU).

[0062] If the Flash is currently idle, the Power Control Module (PMU) outputs a valid power control signal Sd (e.g., a high-level signal), which controls the analog switch circuit S to disconnect. The Flash's power supply terminal VDD_FLASH is powered off, and both the first circuit section U21 and the second circuit section U22 of the Flash are powered down, allowing the Flash to enter the first low-power mode. If the Flash is currently busy, the PMU waits for the Flash's current operation to complete. Once the Flash Controller (FMC) detects that the Flash is currently idle, it outputs a valid power control signal Sd (e.g., a high-level signal), which controls the analog switch circuit S to disconnect.

[0063] After the power supply VDD_FLASH of the Flash is turned off, the power control module PMU further shuts off the power supply to the relevant circuits in the MCU (such as digital domain circuits and related analog domain circuits), thereby putting the entire system into a deep sleep mode.

[0064] The low-power control method described above can provide lower system power consumption compared to existing technologies.

[0065] It should be understood that the standby signal for entering low-power mode output by the processing CPU core can be a pulse signal. When the system needs to enter deep sleep mode, the processing CPU core will generate a pulse representing the standby signal for entering low-power mode according to the corresponding deep sleep instruction, and send the pulse to the PMU and FMC. When the system is in normal working mode, the processing CPU core will not generate a pulse representing the standby signal for entering low-power mode.

[0066] As another example, in the system combining an MCU and Flash memory in this embodiment, the MCU also has a low-power mode control bit (not shown). This low-power mode control bit can be set in the configuration register inside the power control module (PMU). After receiving the low-power mode entry signal, the PMU further considers whether the low-power mode control bit set in the configuration register is "1" (i.e., the low-power mode control bit is set) or "0" (i.e., the low-power mode control bit is not set) to select whether to output a valid power control signal Sd. The power control signal Sd then controls the power supply terminal VDD_FLASH of the Flash memory to either power off or remain powered on, thus enabling the Flash memory to enter either the first low-power mode or the second low-power mode. Therefore, the combination of the low-power mode signal "standby" and the low-power mode control bit can correspond to the system's normal operating mode, the first low-power mode, and the second low-power mode. Specifically, when the power control module (PMU) does not receive the low-power mode signal "standby", the system is in normal operating mode. The PMU has no power control signal Sd output to the analog switch circuit S, or outputs an invalid power control signal Sd (e.g., a low-level signal) to the analog switch circuit S, keeping the analog switch circuit S on, thereby keeping the Flash power supply terminal VDD_FLASH powered. When the power control module (PMU) receives the low-power mode signal "standby" and the low-power mode control bit is "1" (i.e., the low-power mode control bit is set), the system enters normal operating mode. When the power control module (PMU) receives a valid power control signal Sd (e.g., a high-level signal) to the analog switch circuit S, the analog switch circuit S is turned off. This allows the power supply terminal VDD_FLASH of the Flash memory to be powered down via the valid power control signal Sd, and the system enters the first low-power mode. When the power control module (PMU) receives the low-power mode entry signal standby and the low-power mode control bit is "0" (i.e., the low-power mode control bit is not set), the power control module (PMU) either does not output a power control signal Sd to the analog switch circuit S or outputs an invalid power control signal Sd to the analog switch circuit S, keeping the analog switch circuit S on. This keeps the power supply terminal VDD_FLASH of the Flash memory powered, and the system enters the second low-power mode. In this second low-power mode, the first circuit section U21 of the Flash memory continues to operate normally, while the second circuit section U22 is powered down. In this case, the system power consumption is slightly higher than in the first low-power mode, but because the first circuit section U21 of the Flash memory continues to operate, the system exits the low-power mode faster.

[0067] Based on this, please combine Figure 2A and Figure 3BThe system in this embodiment, which combines an MCU and Flash memory, can also provide another low-power control method, which specifically includes the following steps:

[0068] First, when the system needs to enter deep sleep mode, the CPU core (not shown) inside the MCU will receive the deep sleep instruction and generate a low-power mode entry signal standby. The power control module PMU and the flash controller FMC inside the MCU will also receive this low-power mode entry signal standby.

[0069] Next, the Flash controller (FMC) checks whether the Flash is in an idle state via the SPI communication bus interface, that is, whether the MCU is performing read, write, or erase operations on the Flash, and informs the power control module (PMU) of the detected state. For example, when the Flash controller (FMC) detects that the Flash is in an idle state, it pulls down its internal busy flag signal and sends it to the power control module (PMU).

[0070] Meanwhile, after receiving the low-power mode entry signal standby, the power control module (PMU) checks whether the low-power mode control bit is set. When the low-power mode control bit is set and the Flash is currently idle, the PMU outputs a valid power control signal Sd (e.g., a high-level signal) to disconnect the analog switch circuit S, thereby controlling the power supply terminal VDD_FLASH of the Flash to power off. The first circuit section U21 and the second circuit section U22 of the Flash are both powered down, and the Flash enters the first low-power mode. When the low-power mode control bit is set and the Flash is currently busy, the PMU waits for the current operation of the Flash to finish. After the Flash controller (FMC) detects that the Flash is currently idle, it outputs a valid power control signal Sd to disconnect the analog switch circuit S, thereby controlling the power supply terminal VDD_FLASH of the Flash to power off after the Flash is idle.

[0071] When the low-power mode control bit is not set, regardless of whether the Flash is currently in a busy or idle state, the power control module (PMU) will not output a power control signal Sd to the analog switch circuit S or will output an invalid power control signal Sd (e.g., a low-level signal) to the analog switch circuit S. This keeps the analog switch circuit S on, thereby controlling the power supply terminal VDD_FLASH of the Flash to remain powered. The Flash controller (FMC) sends a low-power mode command (DPD) to the Flash through the SPI communication bus interface. The Flash responds to the DPD command and enters the second low-power mode after a certain period of time.

[0072] After the Flash enters the first low-power mode or the second low-power mode, the power control module (PMU) further shuts off the power supply to the relevant circuits in the MCU (such as digital domain circuits and related analog domain circuits), thereby putting the entire system into a deep sleep mode.

[0073] It should be understood that in the above examples, when the system needs to enter deep sleep mode, the completion of the current Flash operation is considered, which can prevent system crashes and avoid affecting the product's lifespan. However, the technical solution of this embodiment is not limited to this. In other examples of this embodiment, when the system needs to enter deep sleep mode as quickly as possible and the completion of the current Flash operation is not considered, such as when the system needs to be forced into deep sleep mode, the power control module (PMU) can also disregard the check result of the Flash controller (FMC) and output a valid power control signal Sd (e.g., a high-level signal) based solely on the received low-power mode entry signal standby or in combination with the received low-power mode entry signal standby and the set low-power mode control bit information. This causes the analog switch circuit S to disconnect, thereby controlling the power supply terminal VDD_FLASH of the Flash to be powered off. After the power supply terminal VDD_FLASH of the Flash is powered off, the power supply to the relevant circuits in the MCU (e.g., digital domain circuits and related analog domain circuits) is further shut down, thereby enabling the entire system to enter deep sleep mode as quickly as possible.

[0074] Furthermore, it should be understood that when the system is in normal operating condition, the analog switch circuit S is closed and conducting, ensuring continuous power to the Flash power supply terminal VDD_FLASH, and allowing both the first circuit section U21 and the second circuit section U22 of the Flash to function normally. For example, in normal operating mode, the MCU's Flash controller (FMC) sends read, write, and erase commands to the Flash via the SPI communication bus interface to control the reading, writing, and erasing of Flash content. In addition, the communication protocol accepted by the communication bus interface between the MCU and the Flash is not limited to the SPI protocol mentioned above; it can be any other suitable communication protocol, as long as it enables the Flash controller (FMC) to send read, write, erase commands, and operating mode control commands to the Flash via the communication bus interface to control the reading, writing, and erasing of Flash content and the operating mode.

[0075] As described above, the system and low-power control method of this embodiment, which combines MCU and Flash, provides a new low-power mode (i.e., the first low-power mode) by simply adding a power pin to the MCU to couple the power supply to the Flash, compared to existing system architectures. When the system needs to enter a deep sleep state, it can completely power down the Flash, providing lower system power consumption than the existing deep sleep mode (i.e., the second low-power mode). Moreover, it can enter deep sleep mode faster when the Flash (IDLE) is idle. In addition, it is compatible with existing deep sleep modes to meet the low-power requirements of the system under normal and special conditions.

[0076] Second Embodiment

[0077] In some products, the VDD power supply voltage is not the voltage that the Flash memory can directly use. Therefore, please refer to [the relevant documentation / reference]. Figure 4A and 4B This embodiment provides a system that integrates both MCU and Flash memory. The difference from the first embodiment is that its power supply switch module U0 further includes a voltage conversion circuit LDO. The input terminal of the voltage conversion circuit LDO is coupled to the output terminal of the analog switch circuit S, and the output terminal of the voltage conversion circuit LDO is coupled to the power supply pin of the MCU, VDD_FLASH, used for coupling to the Flash memory's power supply terminal VDD_FLASH. This voltage conversion circuit LDO can convert the voltage of the power supply VDD into the power supply voltage required by the Flash memory's power supply terminal VDD_FLASH.

[0078] The voltage conversion circuit LDO can be any suitable circuit design, such as a low dropout linear regulator, a constant voltage source, or an SMPS (Switch Mode Power Supply), etc.

[0079] As an example, please refer to Figure 4A As shown, the power supply switch module U0 is integrated into the MCU chip, and the MCU and Flash chips can be soldered onto the same PCB board respectively.

[0080] As another example, please refer to Figure 4B As shown, both the MCU and Flash modules are bare dies, and the power supply switch module U0 is integrated inside the bare die of the MCU. The two bare dies of the MCU and Flash are packaged together in the same package 10 using SIP packaging technology. The two bare dies of the MCU and Flash can be arranged side by side in this package 10, or they can be further stacked in three dimensions using 2.5D / 3D / wafer-level advanced packaging technology (i.e., stacked).

[0081] The low-power control method for the system with both MCU and Flash memory in this embodiment is basically the same as that in the first embodiment, and will not be described again here.

[0082] The system and low-power control method of this embodiment, which combines MCU and Flash, can be applied to the design of more products and has a wider range of applications because a voltage conversion circuit LDO is provided between the power supply VDD and the power supply terminal of Flash.

[0083] It should be understood that, in specific applications of this embodiment, the output terminal of the voltage conversion circuit LDO can also be directly packaged as a power supply pin added to the MCU chip of this embodiment compared to the MCU chip in the existing solution.

[0084] Third Embodiment

[0085] In some real-world product applications, unauthorized external intrusions may occur, attempting to read or tamper with the content stored in Flash memory. For this, please refer to... Figures 5A to 5D This embodiment provides a system that combines an MCU and Flash memory. The difference between this system and the second embodiment is that the MCU also has an illegal intrusion detection module SS. This illegal intrusion detection module SS is coupled to the power control module PMU of the MCU and is used to output an intrusion signal (not shown) to the power control module PMU when an illegal intrusion is detected. Thus, the power control module PMU can control the power supply terminal VDD_FLASH of the Flash memory to be powered down through the power control signal Sd (for example, outputting a valid control signal to the power control signal Sd) based on the intrusion signal, thereby protecting the contents stored in the Flash memory.

[0086] The illegal intrusion monitoring module SS can be any suitable electronic component or circuit design. It can implement any suitable external illegal intrusion monitoring mechanism through software, hardware, or a combination of software and hardware. For example, the illegal intrusion monitoring module SS can include overvoltage detection circuit, undervoltage detection circuit, temperature detection circuit (including sensor), clock glitch detection circuit, etc. The monitoring mechanism it adopts can include at least one of the following: overvoltage protection, undervoltage protection, high temperature protection, low temperature protection, MCU abnormal protection, clock abnormal protection, address protection, and read protection level setting.

[0087] As an example, please refer to Figure 5A As shown, the power supply switch module U0 can be a chip independent of the MCU chip, and the MCU, power supply switch module U0, and Flash chip can be soldered onto the same PCB board. In this case, the power supply pin added to the MCU chip compared to existing MCU chips is led out from the power control signal Sd.

[0088] As another example, please refer to Figure 5B As shown, the power supply switch module U0, along with the processing core CPU core, power control module PMU, flash controller FMC, and unauthorized intrusion detection module SS, are integrated into the MCU chip. Furthermore, the MCU and Flash chips can be soldered onto the same PCB board. In this case, the power supply pin added to the MCU chip compared to existing MCU chips is an LDO used to couple the power supply terminal VDD_FLASH of the Flash chip.

[0089] As an example, please refer to Figure 5C As shown, the MCU, power switch module U0, and Flash are all bare dies. The processing core CPU core, power control module PMU, Flash controller FMC, and unauthorized intrusion detection module SS are integrated together in the MCU bare die. The bare die of power switch module U0 is independent of the bare die of MCU. The three bare dies of MCU, power switch module U0, and Flash are packaged together in the same package 10 using SIP packaging technology. The three bare dies of MCU, power switch module U0, and Flash can be arranged side by side in this package 10, or they can be further stacked in three dimensions using 2.5D / 3D / wafer-level advanced packaging technology (i.e., stacked).

[0090] As an example, please refer to Figure 5DAs shown, the power supply switch module U0, along with the processing core CPU core, power control module PMU, flash controller FMC, and unauthorized intrusion detection module SS, are integrated within the MCU die. The MCU and flash dies are packaged together in the same package 10 using SIP packaging technology. The MCU and flash dies can be arranged side-by-side within this package 10, or they can be further stacked in three dimensions using 2.5D / 3D / wafer-level advanced packaging technology (i.e., stacked). In this case, the power supply pin added to the MCU die compared to existing MCU dies is an LDO used to couple the power supply terminal VDD_FLASH output terminal (not shown).

[0091] Optionally, the MCU also has an intrusion control bit (not shown). When the power control module PMU receives the intrusion signal sent by the illegal intrusion detection module SS, and the intrusion control bit is set (e.g., "1"), the power control module PMU outputs a valid control signal to the power control signal Sd to control the power supply terminal VDD_FLASH of the Flash to power off.

[0092] In one example of this embodiment, the low-power mode control bit and / or intrusion control bit are set in a configuration register (not shown) inside the MCU, for example, in the same configuration register of the power control module (PMU). In another example of this embodiment, the low-power mode control bit and / or intrusion control bit are set in different configuration registers of the power control module (PMU). This configuration register can be set by the user. When the user or software needs the system to enter a deep sleep state and enter a first low-power mode to completely shut down the Flash power and further reduce power consumption, the low-power mode control bit can be set. And / or when the user or software needs the system to enter the first low-power mode when an intrusion is detected to completely shut down the Flash power and protect the sensitive data stored in the Flash from being stolen, the intrusion control bit can be set. In addition to configuring registers, in other embodiments, different low-power mode signals can be sent to the PMU / FMC to make it enter the first low-power mode and the second low-power mode respectively. For example, when a deep sleep instruction is received, if the MCU's CPU core wants to power off the Flash to enter the lower power consumption first low-power mode, it will send the first low-power mode signal standby1 to the PMU / FMC; otherwise, it will send the second low-power mode signal standby2 to the PMU / FMC.

[0093] The low-power control method for the system with both MCU and Flash memory in this embodiment is basically the same as that in the first embodiment, and will not be described again here.

[0094] The system in this embodiment, which combines an MCU and Flash memory, also features unauthorized intrusion protection. For details, please refer to... Figure 6 When the unauthorized intrusion detection module SS detects an external intrusion, it raises (or sets) an intrusion signal to the power management module PMU. In some embodiments, the unauthorized intrusion detection module SS may include a monitoring unit of software and / or hardware (e.g., overvoltage detection circuit, undervoltage detection circuit, temperature sensor, or clock glitch detection circuit, etc.) to raise (or set) the intrusion signal as a flag after detecting an external intrusion event (e.g., overvoltage, undervoltage, high temperature, low temperature, MCU abnormality, clock abnormality, address abnormality). The information of the intrusion signal (or the "meaning of the intrusion signal") is transmitted to the power control module PMU after debouncing and other processing. The PMU then determines, based on the information of the intrusion control bit in the configuration register, whether the user wants to power down the Flash to protect sensitive information. If the intrusion control bit is set, the PMU disconnects the analog switch circuit S by outputting a valid power control signal Sd (e.g., a high-level signal) and restores the intrusion signal to the "not set" state to defend against the next unauthorized external intrusion. If the Flash power supply is not turned off due to issues such as the working mechanism (i.e., the intrusion control bit in the configuration register is not set), the PMU can output a power control signal Sd to the analog switch circuit S without power supply control signal Sd or output an invalid power control signal Sd to the analog switch circuit Sd to keep the analog switch circuit S on, thereby keeping the power supply terminal VDD_FLASH of the Flash powered. In this case, the PMU can either not operate on the intrusion signal or restore it to the "not set" state.

[0095] Obviously, the system in this embodiment that combines MCU and Flash has an added illegal intrusion detection module SS. Therefore, when encountering external illegal intrusion, it can promptly power off the entire Flash to protect sensitive data from being stolen.

[0096] The above description is only a description of preferred embodiments of the present invention and is not intended to limit the scope of the present invention in any way. Any changes or modifications made by those skilled in the art based on the above disclosure shall fall within the protection scope of the present invention.

Claims

1. A system combining MCU and Flash memory, characterized in that, The Flash stores the firmware code and / or sensitive data of the MCU, and has a first circuit section and a second circuit section. The MCU has at least one power supply pin, which is coupled to the power supply terminal of the Flash. In normal operating mode, the MCU controls the power supply terminal of the Flash to be powered through the power control signal, and both the first circuit section and the second circuit section are working normally. In the first low power mode, the MCU controls the power supply terminal of the Flash to be powered off through the power control signal, so that both the first circuit section and the second circuit section are powered off. The system, which integrates both MCU and Flash, also includes a power supply switch module. The input terminal of the power supply switch module is coupled to the power supply required by the Flash, the output terminal of the power supply switch module is coupled to the power supply pin, and the control terminal of the power supply switch module is coupled to the power control signal. In the normal operating mode, the MCU controls the power supply switch module to remain closed and conducting through the power control signal, and the power supply supplies power to the Flash. In the first low-power mode, the MCU controls the power supply switch module to be disconnected through the power control signal.

2. The system combining MCU and Flash as described in claim 1, characterized in that, In the second low-power mode, the MCU controls the power supply terminal of the Flash to be powered through the power control signal, and the first circuit section is working normally while the second circuit section is powered off. The first circuit section includes the circuit required for the Flash to recover from the second low-power mode to the normal working mode.

3. The system combining MCU and Flash as described in claim 2, characterized in that, In the second low-power mode, the MCU controls the power supply switch module to remain closed and on through the power control signal, and the power supply supplies power to the Flash.

4. The system combining MCU and Flash as described in claim 1, characterized in that, The power supply switch module includes an analog switch circuit. The input terminal of the analog switch circuit is coupled to the power supply, the output terminal of the analog switch circuit is coupled to the power supply pin, and the control terminal of the analog switch circuit is coupled to the power supply control signal.

5. The system combining MCU and Flash as described in claim 4, characterized in that, The power supply switch module also includes a voltage conversion circuit, the input terminal of which is coupled to the output terminal of the analog switch circuit, and the output terminal of which is coupled to the power supply pin.

6. The system combining MCU and Flash as described in claim 1, characterized in that, The power supply switch module is located outside the MCU, or the power supply switch module is integrated into the analog domain circuit of the MCU.

7. The system combining MCU and Flash as described in claim 2, characterized in that, The MCU also contains: The Flash controller is connected to the Flash via a communication bus interface and sends instructions for reading, writing, erasing, and controlling the operating mode of the Flash via the communication bus interface. It also checks the status of the Flash after receiving a signal to enter low-power mode. A power control module is coupled to the Flash controller and the power control signal, and is used to control the power supply terminal of the Flash to remain powered or de-energized according to the low-power mode signal and the state detected by the Flash controller after receiving the low-power mode signal.

8. The system combining MCU and Flash as described in claim 7, characterized in that, The MCU also has a low-power mode control bit, and: When the power control module does not receive the signal to enter low-power mode, the system is in the normal operating mode, and the power control module controls the power terminal of the Flash to maintain power through the power control signal; When the power control module receives the signal to enter low power mode and the low power mode control bit is not set, the power control module controls the power terminal of the Flash to keep it powered through the power control signal, and the Flash controller sends an instruction to enter low power mode to the Flash. The Flash responds to the instruction to enter low power mode and enters the second low power mode. When the power control module receives the signal to enter low-power mode and the low-power mode control bit is set, the power control module controls the power supply terminal of the Flash to be powered off through the power control signal, and the system enters the first low-power mode.

9. The system combining MCU and Flash as described in claim 8, characterized in that, When the power control module receives the signal to enter low-power mode and the low-power mode control bit is set, the power control module controls the power supply terminal of the Flash to be powered off through the power control signal after the Flash controller detects that the Flash is in an idle state.

10. The system combining MCU and Flash as described in claim 7, characterized in that, The MCU also includes a processing core. When the processing core receives a deep sleep command, it sends the signal to enter low power mode to the Flash controller and the power control module.

11. The system combining MCU and Flash as described in claim 7, characterized in that, The MCU also includes an illegal intrusion detection module, which is coupled to the power control module and is used to output an intrusion signal to the power control module when an illegal intrusion is detected. The power control module controls the power supply terminal of the Flash to be powered off based on the intrusion signal and the power control signal.

12. The system combining MCU and Flash as described in claim 11, characterized in that, The MCU also has an intrusion control bit. When the power control module receives the intrusion signal and the intrusion control bit is set, the power control module controls the power supply terminal of the Flash to power down through the power control signal.

13. The system combining MCU and Flash as described in claim 8 or 12, characterized in that, Low-power mode control bits and / or intrusion control bits are set in at least one configuration register of the power control module.

14. The system combining MCU and Flash memory as described in any one of claims 1-12, characterized in that, The MCU and the Flash are packaged together using a system-in-package (SIP) process.

15. A low-power control method for a system combining MCU and Flash memory, characterized in that, The Flash memory stores the firmware code and / or sensitive data of the MCU, and has a first circuit section and a second circuit section. The MCU has at least one power supply pin, which is coupled to the power supply terminal of the Flash memory. The low-power control method includes: in normal operating mode, the MCU controls the power supply terminal of the Flash memory to be powered through a power control signal, and both the first circuit section and the second circuit section operate normally; when the system needs to enter a deep sleep mode, the MCU controls the power supply terminal of the Flash memory to be powered off through a power control signal, so that the Flash memory enters a first low-power mode, and both the first circuit section and the second circuit section are powered off. The system, which integrates both MCU and Flash, also includes a power supply switch module. The input terminal of the power supply switch module is coupled to the power supply required by the Flash, the output terminal of the power supply switch module is coupled to the power supply pin, and the control terminal of the power supply switch module is coupled to the power control signal. In the normal operating mode, the MCU controls the power supply switch module to remain closed and conducting through the power control signal, and the power supply supplies power to the Flash. In the first low-power mode, the MCU controls the power supply switch module to be disconnected through the power control signal.

16. The low-power control method as described in claim 15, characterized in that, When the system needs to enter deep sleep mode and the low-power mode control bit inside the MCU is set, the MCU first checks whether the Flash is in an idle state. Only after the Flash is found to be in an idle state will the power supply terminal of the Flash be turned off through the power control signal.

17. The low-power control method as described in claim 15, characterized in that, Also includes: When the system needs to enter deep sleep mode and the low-power mode control bit inside the MCU is not set, the power supply terminal of the Flash remains powered. The MCU sends a command to the Flash to enter low-power mode. The Flash responds to the low-power mode command and enters the second low-power mode. The first circuit section of the Flash continues to work and the second circuit section of the Flash is powered off.

18. The low-power control method as described in claim 17, characterized in that, After the Flash enters the first low-power mode or the second low-power mode, the MCU controls its own related circuits to power down, and the entire system enters the corresponding deep sleep state.

Citation Information

Patent Citations

  • Flash memory card with power control register and jumpers

    US5428579A