This application claims priority to Italian Patent Application No. 102019000002963, filed on Feb. 28, 2019, which application is hereby incorporated herein by reference.
The present disclosure relates generally to an electronic system and method, and, in particular embodiments, to a power management method, corresponding system and apparatus.
Various emerging application scenarios, such as the Internet of Things (IoT) or the automotive area have fostered increased interest for microcontroller base applications with radiofrequency (RF) capability.
A certain degree of integration between microcontrollers and RF circuits, in particular third party circuit(s) cores for RF transceiving, is thus desirable also for general purpose products such as consumer products (e.g., home appliances such as TV screens, refrigerators, washing machines and so on) employing microcontrollers in order to ensure proper handling of these aspects. An increased attention is thus paid to sharing functions between such RF circuits, in particular RF circuit cores and general purpose microcontrollers or Systems-on-Chip (SoC).
In processing units for general purpose application, such as microcontrollers or SoCs (e.g., like the STM32 microcontroller), which have low power operation and a reduced package pin count, problems of power consumption reduction, which is generally a strong requirement for IoT applications, may be encountered, and also problems regarding the necessity of silicon area reduction.
Independent power management of the microcontroller and the RF unit may result in a less power efficient system, which is more costly in term of area, Bill Of Materials (BOM) and other aspect, and also adds software complexity.
Having a system where the power management of the microcontroller and the RF unit are not independent may result in less power reduction and more software complexity.
Some embodiments provide power consumption reduction and silicon area reduction in processing system like microcontrollers associated to RF circuits.
One or more embodiments may relate to a corresponding electronic circuit.
One or more embodiments may relate to a corresponding apparatus (e.g., a consumer product such as a microcontroller-based consumer product such as a home appliance).
Some embodiments relate to techniques for managing the power supply in an electronic circuit comprising a processing system. In some embodiments, the electronic circuit is a general purpose microcontroller or a SoC, or a subsystem thereof, with an RF embedded circuit.
In some embodiments, the processing system comprises at least a processing core and a first power regulation module supplying a first regulated voltage to the processing core.
In some embodiments, the RF embedded circuit comprises a second power regulation module supplying a second regulated voltage to circuits of the RF embedded circuit including a RF transceiving portion, the second power regulation module comprising a switched-mode power supply and generating a second regulated voltage.
In some embodiments, a method comprises:
coupling the second regulated voltage as voltage input of the first power regulation module, wherein the first power regulation module generates as an output a respective first regulated voltage for the processing core;
controlling the second power regulation module to operate according to a plurality of operation modes, including one or more sleep modes in which both the DC-DC converter and the second linear regulator are off, and one or more active modes in which both the DC-DC converter and the second linear regulator are on.
One or more embodiments may be applied to a system comprising microcontrollers or SoC arrangements for general purpose applications operating in association with RF transceivers, such as for LoRa applications.
One or more embodiments provide advantages in terms of application/product differentiation. For example, even if power management is shared, the RF circuit and processing system can independently operate (e.g., the RF circuit can be active with the processing system in low power mode and vice versa). In some embodiments, a reduced application BOM is obtained as well as an optimized pinout (e.g., more GPIOs).
One or more embodiments provide an optimization of the silicon area by sparing a DC-DC converter.
One or more embodiments will now be described, by way of example only, with reference to the annexed figures, wherein:
In the ensuing description, one or more specific details are illustrated, aimed at providing an in-depth understanding of examples of embodiments of this description. The embodiments may be obtained without one or more of the specific details, or with other methods, components, materials, etc. In other cases, known structures, materials, or operations are not illustrated or described in detail so that certain aspects of embodiments will not be obscured.
Reference to “an embodiment” or “one embodiment” in the framework of the present description is intended to indicate that a particular configuration, structure, or characteristic described in relation to the embodiment is comprised in at least one embodiment. Hence, phrases such as “in an embodiment” or “in one embodiment” that may be present in one or more points of the present description do not necessarily refer to one and the same embodiment. Moreover, particular conformations, structures, or characteristics may be combined in any adequate way in one or more embodiments.
The references used herein are provided merely for convenience and hence do not define the extent of protection or the scope of the embodiments.
In
The RF circuit 12 may be a low power low range (LoRa) transceiver. A possible example is the LoRa transceiver Semtech SX1262.
In the microcontroller 11 are shown some of the components relevant to understand the present solution. Thus, microcontroller 11, which includes a microprocessor core 30 (not shown in
Microcontroller 11 also includes a GPIO (General Purpose Input Output) interface module 113. GPIO interface module 113 includes GPIO interfaces 1131. GPIO interface module 113 also includes SPI (Serial Parallel Interface) master interface 1132. A corresponding interface in the RF circuit 12 is the SPI interface 1231 in control module 123. An external oscillator management module 114 is coupled to an external oscillator 115 to obtain a clock reference.
RF circuit 12 includes RF power regulator block 121. RF power regulator block 121 includes switched-mode power supply (i.e., a DC/DC converter) 1211, linear voltage regulator 1212, such as an LDO (Low Drop Out) regulator, and power on reset voltage monitor 1213. Power on reset voltage monitor 1213 monitors the voltage upon a power on after reset of the RF circuit 12.
Filter 128 is connected between a voltage regulated pin VREG and a DC-DC switcher output terminal DCC_SW. A regulated output voltage Vreg is generated from RF power regulator block 121 generates at the VREG pin. Regulated output voltage Vreg may have a value between 1.45 V and 1.62V, such as of 1.55V.
DC-DC switcher output terminal DCC_SW is coupled to the output of DC/DC converter 1211. The pin VREG (i.e., the external terminal of the package of the RF circuit 12) and the other pins of the circuit 12 are shown as wire bonded to a corresponding internal pad, the label referring to the whole of pin, wire bond and pad for simplicity of representation.
RF circuit 12 also includes RF module 122. RF module 122 includes a digital interface and control module 123 (i.e., a digital front end) that comprises all payload data and protocol processing as well as access to configuration of the radio via SPI interface 1231. Digital interface and control module 123 includes interface and control terminals IS. Control terminals IS includes SPI terminals comprising a MISO SPI slave output, a MOSI SPI slave input, a SCK SPI clock, and an NSS SPI Slave Select. Control terminals IS also include a busy indicator BUSY, and digital input output pins DIO1, DIO2, DIO3.
Interface and control terminals IS of RF circuit 12 are associated to the GPIO interface module 113. In particular, the MISO, MOSI, SCK terminals, representing SPI slave interface 1231 are coupled to the Master SPI interface 1132 of the GPIO interface module 113, while the remaining terminals are coupled to the GPIO interfaces, to, e.g., exchange SPI commands to control power state and RF operation, under the control of a LoRa SW Stack 1133. More in general the SPI interface allows the full control of the RF modules (e.g., send data to be transferred, read received data, set band, etc.)
A power amplifier 1242 receives a regulated power amplifier supply at a pin VR_PA from the matching network 125. Power amplifier block 1242 includes power amplifier regulator 1243 (not shown in
Power amplifier regulator 1243 supplies regulated power to a high pass section and a low pass section of power amplifiers 1244, 1245, supplying the output RF signal under the control of modems of the RF circuit 12 (here not shown). In
An external oscillator 126 is coupled to an RF external oscillator management unit 127 inside the RF circuit 12 through terminals XTA and XTB.
The RF circuit 12 has two power supply pins, one for the core of the transceiver 122 called battery voltage VBAT, and one for the host controller interface (SPI, DIOs, BUSY) called input output battery voltage VBAT_IO. The input output battery voltage VBAT_IO is coupled to a digital voltage supply VDD (e.g., 3.3 V). Digital voltage supply VDD also powers the digital circuits of the microcontroller 11. Both power supplies (VBAT and VBAT_IO) can be connected together in application. In case a low voltage micro-controller (typically with IO pads at 1.8 V) is used to control the transceiver 12, the user can:
use terminal corresponding to the battery voltage VBAT at 3.3 V for optimal RF performance;
directly couple terminal corresponding to the input output battery voltage VBAT_IO to the same supply used for the microcontroller 11; or
couple the digital input output directly to the micro-controller digital input output.
Generally, at any time, the voltage on pin VBAT_IO must be lower than or equal to the voltage on pin VBAT. Thus, in
In
A functionality which is merged regards the external oscillator. The external oscillator control module 114 and the external oscillator 115 are not present in the microcontroller if. Instead, the functionality of oscillator control module 114 and external oscillator 115 is obtained by the external oscillator 126 of the RF circuit 12.
Power management of the microcontroller if includes a power on reset voltage monitor 1113, which was previously in the power regulator 121 of the RF circuit 12 (see 1213 in
Regulators 1211 and 1212 receive the input voltage VDDRF from the VBAT pin and each regulator is connected to the pin VREG to supply the voltage Vreg.
The main power regulator 111′ receives preferably as input voltage also the digital voltage VDD, as the second low power regulator 112 so that the microcontroller 11′ can select between the regulated voltage Vreg, and the digital voltage VDD, if necessary. The power regulator 121 of the RF circuit 12 receives the RF digital voltage supply VDDRF (e.g., between 1.8 V and 3.7 V) as voltage input of regulators 1211 and 1212.
In some embodiments, at any time, the voltage on pin VBAT_IO must be lower than or equal to the voltage on pin VBAT, e.g., at any time, the voltage VDD must be lower than or equal to the voltage VDDRF.
Thus, in some embodiments, the system 10′ shares the RF DC/DC 1211 with the microcontroller 11′ in order to optimize power efficiency, BOM, and pinout. In some embodiments, such as in embodiments described herein, the specification of the power efficiency of the RF DC/DC are in the range of 80-90% (depending on load). Also the microcontroller 11 DC/DC silicon area is spared. Regarding the BOM, in some embodiments, only one filter (filter 128) is needed on the PCB. Regarding the pin-out, in some embodiments, by default two dedicated pins of the microcontroller 11 are saved.
As shown better in
Some embodiments control the power management of the RF circuit for sharing DC/DC converter 1211.
In
The power regulator block 121 receives the digital voltage VDD and outputs the regulated voltage Vreg (e.g., 1.5 V) at pin VREG to the main regulator 111′ of the microcontroller 11′, specifically to the linear regulator 1111′. Linear regulator 1111′ then outputs a microcontroller regulated voltage Vregm (which may be at 1.2 V) to a core of the microcontroller 11′. Microcontroller 11′ is here represented as comprising a first interruptible digital voltage domain V12I (i.e., a domain to which supply can be interrupted although other parts of the microcontroller 11 are powered), and a second “always on” digital voltage domain V120 (i.e., a domain which is always on if the microcontroller is powered).
In low power operation, low power regulator 112 (not shown in
The arrangement of system 11′ uses an updated control of the power management in circuit 12 (since there is only one shared DC-DC converter: DC-DC converter 1212 in the RF circuit 12).
RF circuit 12 includes the following standard operation modes, e.g., usually implemented by a SX 1262 transceiver: a set of low power modes or states, at power off, and a set of active operation modes or states.
The set of low power modes or states, at power off, includes a first low power deep sleep mode LP1 and a second sleep mode LP2. In the first low power deep sleep mode LP1 all the blocks of the RF circuit 12 are off (with the exception of circuits, e.g., an oscillator, used to wake up the circuit in sleep mode). This for instance, in implementation with a SW1262 like transceiver, may involve a 50 nA power consumption.
In the second sleep mode LP2 all the blocks of the RF circuit 12 are off (with the exception of SSC, Backup RAM 122a and optionally RC64K). This for instance, in implementation with a SW1262 like transceiver, may involve 150 nA power consumption.
The set of active operation modes or states includes a first active standby mode A1 and a second active operating mode A2. The first active standby mode A1 includes circuits ready and the 13 MHz RC oscillator (RC13M) is enabled for all SPI communication. Within the first active standby mode A1, in some embodiments, a sub-mode with oscillator 126 on requires that the DC-DC converter 1211 is on and a sub-mode with oscillator 126 off requires that the LDO 1212 is on.
The second active operating mode A2 is, e.g., for frequency synthesis FD, transmission and reception, where such functions are fully enabled.
According to one or more embodiments, two further lower power modes are added to sleep modes LP1, LP2:
a third low power sleep LDO mode LP3, in which the LDO regulator 1212 is maintained on. Optionally the Backup RAM 122a is maintained on, while the oscillator 126 can be on or off, depending on the specified configuration; and
a fourth low power sleep buck mode LP4, in which the DC-DC converter 1212 (e.g., a buck converter) is maintained on.
The active modes remain unchanged (as first active standby mode A1 and second active operating mode A2).
The signal exchanged between microcontroller if and RF circuit 12 are modified accordingly as shown in
With regards to
The signal slp_ldo_bat is an LDO enable signal issued by logic power control module ma to allow the microcontroller 11′ to command the adoption of the third low power mode LP3 by commanding the RF circuit 12 to enable the LDO regulator 1212.
The slp_buck_bat signal is a DC-DC converter enable issued by logic power control module 111a to allow the microcontroller 11′ to command the adoption of the fourth low power mode LP4, enabling the converter 1211. Corresponding ready signals ldo_ready_bat and buck_ready_bat signals are issued by the corresponding logic module (not shown) of the RF circuit 12 to the microcontroller 11′.
Other logic control modules/interfaces for managing exchange of signals with corresponding modules in the circuit 12, include 112a, 113a, 114a, 115a, 116a, 117a, which may be implemented through one or more processors in the core 30.
A logic isolation module 112a receives from the RF circuit 12 a set_iso_n_bat signal to signal that the domain of the digital voltage Vdig is on or off. The digital voltage Vdig, sent to module 112a as well, is obtained from the digital RF voltage supply VDDRF which represents the input voltage of the regulator 121.
The signal of the interface 113a has been already described. As mentioned, the digital input output pin DIO are GPIO which are configured as interrupt request IRQ signal lines.
A monitor interface 117a exchanges Eol (End of Life) monitoring signals, Eol_bat and Eol_en_bat (enabling the monitor).
A power oscillator logic module 114a includes power enabling signals tcxo_pwr_en_bat and tcxo_en_bat to enable a power supply power_tcxo, obtained from RF supply VDDRF, to be passed to the microcontroller 11′.
A oscillator clock logic module 115a includes exchanging handshake signals clk_32m_en_bat (enable) and clk_32m_rdy_bat (ready) to allow an external clock signal clk_32m_1v2 from oscillator 126 to be used in the microcontroller if. The microcontroller 11′ supplies a driver of the clock signal clk_32m_1v2 with the microcontroller regulated voltage Vregm at 1.2V.
A test logic module 116a in circuit 11′ receives test signals DTB and ATB from the circuit 12 and sends a SCAN signal to circuit 12.
In
In
The power regulator 121 is switch-on controlled in hardware at power-on/wake-up and supplies the main regulator 111′, which in its turn powers the first interruptible voltage domain V12i and the second “always on” voltage domain V120 of the microcontroller if. A wake up of the RF portion 122 is performed by software.
In
In
In
The microcontroller if modes or states, such as the STM32 modes, are:
In shutdown state MSD, the RF circuit 12 is forced in a strongest rested state, corresponding to the deep sleep mode LP2. As a consequence, autonomous operation of the RF circuit 12 is not possible. This choice may be needed to prevent out of specification RF operating conditions, since the voltage monitor 117a is off.
In states MSB, MS2, MS1 and MLP, the switch off of the regulators, DC-DC converter 1211 and linear regulator 1212 in the power regulator 121 is selected. Such regulators 1211, 1212 can still be switched-on by RF (autonomous operation).
In states MR, MS0, the linear regulator 1212 switch-on is forced by the microcontroller if. The linear regulator 1212 cannot be switched-off by the circuit 12.
The sleep mode power states, LP3, LP4 can be switched-on by the microcontroller 11′ by programming a dedicated register in the power controller.
The RF circuit modes or stats LP1, LP2, LP3, LP4, A1, A2 have been illustrated previously.
The table in
The “X” indicates forbidden states.
As shown, when microcontroller 11′ is in Shutdown MSD, low power LP2, LP3, LP4 cannot be adopted, since the system restarts with a power on reset. Also active states A1, A2 cannot be adopted since RF, in particular LoRa, functionality cannot be ensured as voltage monitor 1113 is OFF.
When the RF circuit 12 is in deep sleep Run and Stop are forbidden, since as the main regulator 111′ needs supply, regulators 1211 or 1212 must be active.
With NR are indicated states which are set as non reachable since keeping regulators 1211 and 1212 on in LP mode, if not requested for LoRa, may lead to an excessive extra consumption. Entry in these states is prevented by hardware.
All the remaining combinations of LoRa and STM32 power modes are possible and reachable by sw configuration in the control logic modules of the microcontroller 11′.
Summing up, the method here described provides preventing entry by hardware in determined modes of operation, specifically MSB, MSBw, MS2, MS1/MLP of the microcontroller if when the RF circuit 12 is in the first further sleep mode LP3 or second further sleep mode LP4. Other states may not be adopted because of lack of functionalities.
In
On a power reset condition or state, indicated with RC, it can directly perform a transition only to the third low power sleep LDO mode LP3, with slp_ldo_bat signal at high logic level and slp_buck_bat signal at low logic level or the fourth low power sleep buck mode LP4, with slp_ldo_bat signal at low logic level and slp_buck_bat signal at high logic level. Reaching the standby mode A1 directly at the power reset condition RC, if slp_ldo_bat signal at low logic level and slp_buck_bat signal at low logic level is forbidden. Also from the power reset condition RC if the slp_ldo_bat signal is set at low logic level or high logic level and slp_buck_bat signal is asserted at high logic level, a transition to buck mode LP4 is forbidden.
From the fourth low power sleep buck mode LP4:
upon receiving a wakeup signal a transition to the standby mode A1 is performed;
also, if the slp_ldo_bat signal is set at low logic level and slp_buck_bat signal at low logic level, a transition from LP3 to one of standard sleep mode LP1 or LP2 is performed;
if the slp_ldo_bat signal is set at high logic level and slp_buck_bat signal is set at low logic level, a transition to LDO mode LP3 is performed
From the third low power sleep LDO mode LP3:
upon receiving a wakeup signal a transition to the standby mode A1 is performed;
also, if the slp_ldo_bat signal is set at low logic level and slp_buck_bat signal at low logic level, a transition from LP3 to one of standard sleep mode LP1 or LP2 is performed;
if the slp_ldo_bat signal is set at low logic level or high logic level and slp_buck_bat signal is asserted at high logic level, a transition to buck mode LP4 is performed.
From the standard sleep modes LP1/LP2:
upon receiving a wakeup signal a transition to the standby mode A1 is performed;
if the slp_ldo_bat signal is set at high logic level and slp_buck_bat signal is set at low logic level, a transition to LDO mode LP3 is performed if the slp_ldo_bat signal is set at low logic level or high logic level and slp_buck_bat signal is asserted at high logic level, a transition to buck mode LP4 is performed.
Al the sleep modes LP1/LP2, LP3, LP4 are accessed if the control logic issues a corresponding sleep request slp_req.
In a condition in which the system 10′ switches from a state in which the RF circuit 12 is active, and the microcontroller 11′ is in standby (e.g., state of
In order to avoid that, a synchronization circuit 200, shown schematically in
In
Initially the slp_ldo_bat signal is at logic zero, i.e., the microcontroller 11′ is not requesting the switch off of the linear regulator 1212, the int_ldo_en signal is set logic one since the linear regulator 1212 is on powering the circuit 12, and the LDO ready signal ldo_ready_bat is logic one as well as the linear regulator 1212 is operating.
Then at the first switch time T1 the RF circuit 12 commands the int_ldo_en signal to transition to logic zero to switch off the linear regulator 1212. The linear regulator 1212 switches off. However, the ldo_ready bat signal goes to logic zero not at first time T1, but only after the first delay ΔT. At the second time T2 the microcontroller if commands the switch on of the linear regulator 1212 to draw power. The slp_ldo_bat signal goes high and the linear regulator 1212 switches on, with a certain wake up time WT. The signal ldo_ready_bat therefore goes high only after the wake up time WT has elapsed. However, because of delay circuit T11 the second input of the AND gate G12, which outputs the gated ready signal for the microcontroller 11′, goes high only after a time T2+ΔT2, which is after the wake up time WT. Thus the second delay block T12 applies a time delay which is greater than the wake up time WT so that ensures that the gated LDO ready signal ldo_ready_bat is received by the microcontroller if after the wake up time WT. Since the worst case is the time T1 is equal to time T2, i.e., the circuit 200 avoids that the microcontroller if draws power before the wake up is completed.
It will be appreciated that the embodiments are not limited to application in the context of microcontrollers (e.g., STM32 microcontroller) applications with embedded RF circuit(s) for IoT (e.g., SW1262 Semtech) for LoRa applications, e.g., for multi-purpose microprocessor-based consumer applications such as home appliances and the like.
One or more embodiments may thus provide a method for managing the power supply in an electronic circuit comprising a processing system, in particular a general purpose microcontroller or a System-on-Chip or a subsystem thereof, with an RF embedded circuit, the processing system comprising
at least a processing core and a first power regulation module supplying a first regulated voltage to the processing core,
the RF embedded circuit comprising a second power regulation module supplying a second regulated voltage to circuits of the RF embedded circuit including a RF transceiving portion, the second power regulation module comprising a switched-mode power supply and generating a second regulated voltage,
the method comprising coupling the second regulated voltage as voltage input of the first power regulation module, the first power regulation module which generates as an output a respective first regulated voltage for the processing core,
controlling the second power regulation module to operate according to a plurality of operation modes including
one or more sleep modes in which both the DC-DC converter and the second linear regulator are off, and
one or more active modes in which both the DC-DC converter and the second linear regulator are on,
wherein the second power regulation module comprises a second linear regulator, and
the plurality of modes includes
a first further sleep mode in which the switched-mode power supply is off and the second linear regulator is on, and
a second further sleep mode in which the switched-mode power supply is on and the second linear regulator is off.
In one or more embodiments the first further sleep mode and second further sleep mode are controlled by the processing system.
In one or more embodiments the method includes controlling the first further sleep mode and second further sleep mode by a dedicated asynchronous power control interface operating in the processing system which includes a signal to allow the microcontroller to command the first further sleep mode and a signal to allow the microcontroller to command the second further sleep mode, corresponding ready signals being issued in response by a corresponding interface of the RF circuit to the microcontroller.
In one or more embodiments such dedicated asynchronous power control interface includes a logic module issuing a signal commanding the power on reset of the RF circuit.
In one or more embodiments, the method includes forbidding entry in determined modes of operation of the processing system when the RF circuit is first further sleep mode or a second further sleep mode.
In one or more embodiments, the method includes allowing the RF circuit to access directly from a power on reset state only the first further sleep mode.
In one or more embodiments, the method includes providing a first digital power supply voltage and second RF power supply voltage at any time, the first digital power supply voltage being lower than or equal to the second RF power supply voltage, the second RF power supply voltage being supplied as input voltage to the second power regulator to obtain the regulated voltage, which has in particular a value lower than said first digital power supply voltage and second RF power supply voltage.
In one or more embodiments, the method includes applying a delay to a ready signal, of the second linear regulator and a second delay to the signal to allow the microcontroller to command the first further sleep mode, the second delay having a value greater than an wake up time of the second linear regulator to perform a gating of the ready signal, before supplying it to the processing system, allowing the RF circuit to enable the linear regulator when the signal to allow the processing system to command the first further sleep mode commands switch off in order to avoid a race condition between the processing system and transceiving circuit.
One or more embodiments may also provide an electronic circuit comprising a processing system, in particular a general purpose microcontroller or a System-on-Chip or a subsystem thereof, with a RF embedded circuit, the processing system comprising
at least a processing core and a first power regulation module supplying a first regulated voltage to said processing core,
the RF embedded circuit comprising a second power regulation module supplying a second regulated voltage to circuits of the radiofrequency embedded circuit including a RF transceiving portion, the second power regulation module comprising a switched-mode power supply and generating a second regulated voltage,
the second regulated voltage being coupled as voltage input of the first power regulation module configured to generate as an output a respective first regulated voltage for the processing core,
the second power regulation module comprising a second linear regulator configured to generate the second regulated voltage.
In one or more embodiments the electronic circuit operates the power management according to the method according to one or more embodiments.
In one or more embodiments the apparatus (e.g., a microcontroller-based appliance) may include a system according to one or more embodiments.
Without prejudice to the underlying principles, the details and embodiments may vary, even significantly, with respect to what has been described, by way of example only, without departing from the extent of protection.
The extent of protection is defined by the annexed claims.
Number | Date | Country | Kind |
---|---|---|---|
102019000002963 | Feb 2019 | IT | national |