Patent ID: 11934245
Assignee: CYPRESS SEMICONDUCTOR CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 15:
16. An apparatus comprising:
a microcontroller comprising an energy estimating circuit, a first component, and a second component, wherein the energy estimating circuit is configured to:
receive first activity signals indicative of first bus transfer events by the first component, wherein the first activity signals comprise at least one of data transfer signals, event signals, or duration activity signals;
receive second activity signals indicative of second bus transfer events by the second component;
determine a first data transfer count indicating a first number of data transfers based on the first activity signals;
determine a second data transfer count indicating a second number of data transfers based on the second activity signals; and

an external system coupled to the microcontroller, wherein the external system is configured to:
receive the first data transfer count and the second data transfer count;
determine a first estimate of energy consumption by the first component based on the first number of data transfers; and
determine a second estimate of energy consumption by the second component based on the second number of data transfers, wherein:

the energy estimating circuit is further configured to:
receive the event signals of the first component;
determine a first number of events executed based on the event signals;
provide the first data transfer count indicating the first number of events executed to the external system;
receive duration activity signals indicating a first active time during which the first component executes a first duration activity;
determine a first duration of the first active time based on the duration activity signals; and
provide duration signals indicating the first duration to the external system; and

the external system is further configured to:
receive the first data transfer count and determine a second measure of energy consumption of the first component based on the first data transfer count and a second energy coefficient, wherein the second energy coefficient corresponds to an amount of energy associated with one of the events;
receive the duration signals and determine a third measure of energy consumption of the first component based on the duration signals and a third energy coefficient, wherein the third energy coefficient corresponds to an amount of power associated with the first duration activity; and
determine the first estimate of energy consumption based on at least the second measure of energy consumption and the third measure of energy consumption.