Abstract:
By powering an electronic component operating in an ultra-low power mode from a pre-charged measuring capacitor and measuring the time to discharge the capacitor to a trip voltage level, measurement data can be obtained. In some implementations, the capacitance of the capacitor can be obtained by adding a known current to the unknown current drawn from the capacitor and calculating the capacitance using a mathematical formula.
Abstract:
In one embodiment, a method includes deactivating an integrator of a mutual-capacitive measurement circuit and configuring the mutual-capacitive measurement circuit according to a first voltage configuration. The first voltage configuration results in a charge on a sensor capacitor and a compensation capacitor when a supply voltage is applied to the mutual-capacitive measurement circuit. The method also includes adjusting a variable reference voltage input of the integrator to a first reference voltage, wherein the first reference voltage is selected to increase an output range of the mutual-capacitive measurement circuit. The method also includes applying the supply voltage to the mutual-capacitive measurement circuit and obtaining a first reference measurement from an analog-digital-converter coupled to an output of the mutual-capacitance measurement circuit.
Abstract:
A circuit includes a pulse generator coupled to a switch mode power supply. The switch mode power supply includes a switching component configured for transferring a charge to an energy storage component in response to pulses provided by the pulse generator. A pulse counter is coupled to the pulse generator or the switching component and configured to count pulses over a time period and thereby generate a pulse count. A converter coupled to the pulse counter is configured to generate a power measurement for the time period based on the pulse count. If the switch mode power supply has different modes of operation, a different counter may be used for each mode.
Abstract:
An on-chip function call aware software code profiling counter system and method is disclosed. When building software code a compiler/tool-chain can modify prologues and epilogues of functions to add instrumentation code which uniquely identifies the function. Each function included in the instrumented source code tree is assigned a unique identifier (ID) by the compiler/tool-chain. Writing a unique ID for a function to a register starts profiling for the function. The profiling is performed by a counter that counts the number of instruction cycles since the last unique ID was written to the register. When a unique ID for a next function to be profiled is written to the register, the old register value and the counter value are latched to one or more buffers and the counter is cleared to start the next count sequence for the next function to be profiled.
Abstract:
An on-chip system uses a time measurement circuit to trap code that takes longer than expected to execute by breaking code execution on excess time consumption.