The invention discloses a method for reducing the static and dynamic
power consumption of a multi-pin
microcontroller. The
microcontroller is powered by a battery, a static read-only memory which is equal to the storage capacity of an embedded-type nonvolatile memory for storing a user program is embedded inside a
chip of the
microcontroller, after the microcontroller is electrified, a user
program code of the embedded-type nonvolatile memory is imaged onto the static read-only memory through a
direct memory access module, then the power of the embedded-type nonvolatile memory is turned off, a program pointer pointing towards original embedded-type nonvolatile memory is mapped onto the imaged static read-only memory, and the user program is executed on the static read-only memory. The invention also discloses a
microprocessor for realizing the method. Due to the adoption of the method and the
microprocessor, the static and dynamic
power consumption of the microcontroller which is powered by the battery can be effectively reduced, and the service life of the battery can be prolonged.