主权项 |
1. A microcontroller configured to operate in a primary power mode using a primary supply voltage and a secondary power mode using a secondary supply voltage, the microcontroller being configured to operate in first and second sub-modes of each power mode, the microcontroller comprising:
a first configuration storage register configured to store a calibration value; a first component configured to read the calibration value and calibrate, according to the calibration value, for running in a first operation state or a second operation state, the first component configured to run in the first operation state or the second operation state based on whether the microcontroller is operating in the first or second sub-mode or based on whether the microcontroller is operating in the primary or secondary power mode; and system configuration storage storing, for each of a plurality of components including the first component, a mode specific calibration value for each of the first and second sub-modes for each of the primary and secondary power modes of the microcontroller; wherein the microcontroller is configured to, in response to changing from a previous mode to a present mode, read a present calibration value associated with the first component and corresponding to the present mode from the system configuration storage and write the present calibration value to the first configuration storage register, and wherein the first component is configured to read the present calibration value from the first configuration storage register and calibrate, according to the present calibration value, for running in the first operation state or the second operation state based on the present mode of the microcontroller. |