Patent ID: 7646197

Claim:
A semiconductor integrated circuit device having a single or plural function blocks equipped with a sensor that outputs a power consumption structural element signal and a register that can set functions, a nonvolatile semiconductor memory, a volatile semiconductor memory, and a timer, the device comprising an operation clock distribution unit that is equipped with a register that can access from all the function blocks and set power consumption, and further supplies an operation clock to all the function blocks, a power source voltage distribution unit that is equipped with a register that can access from all the function blocks and set power consumption, and further supplies power source voltage to all the function blocks, a power conversion unit that collects and adds all the power consumption structural element signals and converts them into a total required power value and stores it and can access from any of the function blocks and read the total required power value, a power consumption control unit that receives a timer interrupt from the timer and loads the total required power value, and buses that connect the function blocks and the operation clock distribution unit and the power source voltage distribution unit and the power conversion unit and the power consumption control unit and the nonvolatile semiconductor memory and the volatile semiconductor memory and the timer and can make data communications among them, wherein the power consumption control unit, when the power result value obtained by subtracting the total required power value from the power budget value which is the value loaded in prior and obtained by subtracting an arbitrary margin from allowable power of the power source is negative, shuts down the operation clock to the operation clock distribution unit, or decreases the operation frequency, or shuts down the power source voltage to the power source voltage distribution unit, so that the total required power value should be the power budget value or below.