IP Library Granted Patent US 12681649
Granted Patent B2
US 12681649 · App. 18/209,638 · Granted Jul 14, 2026

System with MCU and flash memory and control method for deep power down control thereof

Inventor: Yang Gao (Beijing, CN)
Assignee: GIGADEVICE SEMICONDUCTOR INC.
G06F3/0625G06F3/0634G06F3/0658G06F3/0679G11C16/30
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12681649
App. No.
18/209,638
Granted
Jul 14, 2026
Kind
B2
Abstract

The present invention provides a system with an MCU and flash memory and a method for DPD control thereof. A new DPD mode (first DPD mode) is provided by simply adding a power supply pin to the MCU. The power supply pin is coupled to a power supply terminal of the flash memory. In a deep power down mode, the flash memory is configured to be entirely powered down, leading to even lower system power consumption than in a conventional DPD mode (second DPD mode).

Claims (35)

1 . A system with a microcontroller unit (MCU) and a flash memory, wherein the flash memory is configured to store codes and/or data for the MCU and comprises a first circuit portion and a second circuit portion, and wherein the MCU comprises at least one power supply pin coupled to a power supply terminal of the flash memory,

wherein, in a normal mode, the MCU is configured to utilize a power supply control signal to enable power to be supplied to the power supply terminal of the flash memory, thereby allowing a normal operation of each of the first and second circuit portions; and in a first deep power down (DPD) mode, the MCU is configured to utilize the power supply control signal to cut off power to the power supply terminal of the flash memory, thereby powering down each of the first and second circuit portions,

wherein the MCU comprises a power supply switching module that is arranged outside the flash memory, wherein in the normal mode, the MCU is configured to utilize the power supply control signal to maintain the power supply switching module turned on, maintaining a power supply to supply power to the flash memory, and wherein in the first DPD mode, the MCU is configured to utilize the power supply control signal to turn off the power supply switching module, stopping the power supply to supply power to the flash memory,

wherein the MCU further comprises a processing core, a flash memory controller and a power management unit,

wherein the processing core is coupled to a first terminal of the flash memory controller and a first terminal of the power management unit, the flash memory controller is coupled to a second terminal of the power management unit and the flash memory, and a third terminal of the power management unit is coupled to the power supply switching module, and

wherein an input terminal of the power supply switching module is coupled to a power supply required for the flash memory; an output terminal of the power supply switching module is coupled to the power supply pin of the MCU; and a control terminal of the power supply switching module is coupled to the third terminal of the power management unit.

2 . The system of claim 1 , wherein in a second DPD mode, the MCU is configured to utilize the power supply control signal to enable power to be supplied to the power supply terminal of the flash memory, thereby allowing a normal operation of the first circuit portion while powering down the second circuit portion, and/or wherein the first circuit portion comprises a circuitry configured to restore the flash memory from the second DPD mode to the normal mode.

3 . The system of claim 2 , wherein in the second DPD mode, the MCU is configured to utilize the power supply control signal to maintain the power supply switching module turned on, enabling the power supply to supply power to the flash memory.

4 . The system of claim 3 , wherein the power supply switching module is integrated in a circuit of an analog domain of the MCU.

5 . The system of claim 2 ,

wherein the flash memory controller is configured to send, through the communication bus interface, instructions for control of read, write and erase operations performed on the flash memory and instructions for control of operating modes, and to detect a status of the flash memory when receiving a DPD mode signal; and

wherein when receiving the DPD mode signal, the power management unit is configured to utilize the power supply control signal to maintain or cut off power supplied to the power supply terminal of the flash memory, based on the DPD mode signal and the status detected by the flash memory controller.

6 . The system of claim 5 , wherein a DPD mode control bit is configured in the MCU, and wherein,

when the DPD mode signal is not received by the power management unit, the system operates in the normal mode in which the power management unit is configured to utilize the power supply control signal to maintain power supplied to the power supply terminal of the flash memory;

when the DPD mode signal is received by the power management unit and the DPD mode control bit is unset, the power management unit is configured to utilize the power supply control signal to maintain power supplied to the power supply terminal of the flash memory, the flash memory controller sends a DPD mode instruction to the flash memory, and the flash memory enters the second DPD mode in response to the DPD mode instruction; and

when the DPD mode signal is received by the power management unit and the DPD mode control bit is set, the power management unit is configured to utilize the power supply control signal to cut off power to the power supply terminal of the flash memory, enabling the system to enter the first DPD mode.

7 . The system of claim 6 , wherein when the DPD mode signal is received by the power management unit and the DPD mode control bit is set, in case of detecting the flash memory being idle by the flash memory controller, the power management unit is configured to utilize the power supply control signal to cut off power to the power supply terminal of the flash memory.

8 . The system of claim 6 , wherein the DPD mode control bit is configured in a configuration register in the power management unit.

9 . The system of claim 5 , wherein in case of receiving a deep sleep instruction, the processing core sends the DPD mode signal to each of the flash memory controller and the power management unit.

10 . The system of claim 5 , wherein the MCU further comprises an unauthorized access monitoring module coupled to the power management unit, wherein in case of detecting an unauthorized external access, the unauthorized access monitoring module is configured to output an access signal to the power management unit, and based on the access signal, the power management unit is configured to utilize the power supply control signal to cut off power to the power supply terminal of the flash memory.

11 . The system of claim 10 , wherein an access control bit is further configured in the MCU, and wherein when the power management unit receives the access signal and the access control bit is set, the power management unit is configured to utilize the power supply control signal to cut off power to the power supply terminal of the flash memory.

12 . The system of claim 11 , wherein the access control bit is configured in a configuration register in the power management unit.

13 . The system of claim 1 , wherein the MCU and the flash memory are integrated in a single package using a system-in-package (SIP) technique.

14 . The system of claim 1 , wherein the power supply switching module comprises an analog switch circuit, wherein an input terminal of the analog switch circuit is coupled to the power supply; an output terminal of the analog switch circuit is coupled to the power supply pin; and a control terminal of the analog switch circuit is coupled to the power supply control signal.

15 . The system of claim 14 , wherein the power supply switching module further comprises a voltage conversion circuit, wherein an input terminal of the voltage conversion circuit is coupled to the output terminal of the analog switch circuit; and an output terminal of voltage conversion circuit is coupled to the power supply pin.

16 . A method for deep power down (DPD) control of a system with a microcontroller unit (MCU) and a flash memory, wherein the flash memory is configured to store codes and/or data for the MCU and comprises a first circuit portion and a second circuit portion; the MCU comprises at least one power supply pin coupled to a power supply terminal of the flash memory; and the method comprises:

when entry of the system into a deep sleep mode is required, the MCU is configured to utilize a power supply control signal to cut off power to the power supply terminal of the flash memory, enabling the flash memory to enter a first DPD mode in which each of the first and second circuit portions is powered down,

wherein the MCU comprises a power supply switching module that is arranged outside the flash memory, wherein in a normal mode, the MCU is configured to utilize the power supply control signal to maintain the power supply switching module turned on, thereby maintaining a power supply to supply power to the flash memory, and wherein in the first DPD mode, the MCU is configured to utilize the power supply control signal to turn off the power supply switching module, thereby stopping the power supply to supply power to the flash memory,

wherein the MCU further comprises a processing core, a flash memory controller and a power management unit,

wherein the processing core is coupled to a first terminal of the flash memory controller and a first terminal of the power management unit, the flash memory controller is coupled to a second terminal of the power management unit and the flash memory, and a third terminal of the power management unit is coupled to the power supply switching module, and

wherein an input terminal of the power supply switching module is coupled to a power supply required for the flash memory; an output terminal of the power supply switching module is coupled to the power supply pin of the MCU; and a control terminal of the power supply switching module is coupled to the third terminal of the power management unit.

17 . The method of claim 16 , wherein when entry of the system into the deep sleep mode is required and a DPD mode control bit in the MCU is set, the MCU detects whether the flash memory is idle, and wherein in case of detecting of the flash memory being idle, the MCU is configured to utilize the power supply control signal to cut off power to the power supply terminal of the flash memory.

18 . The method of claim 16 , further comprising: when entry of the system into the deep sleep mode is required and a DPD mode control bit in the MCU is unset, maintaining power supplied to the power supply terminal of the flash memory and sending a DPD mode instruction from the MCU to the flash memory, wherein the flash memory enters a second DPD mode in response to the DPD mode instruction, in which the first circuit portion of the flash memory remains in operation while the second circuit portion of the flash memory is powered down.

19 . The method of claim 18 , wherein after the flash memory enters the first DPD mode or the second DPD mode, associated circuits of the MCU are powered down, enabling the system to enter the deep sleep mode.

20 . The method of claim 17 , wherein the DPD mode control bit is configured in a configuration register in a power management unit of the MCU.