In a microcomputer, a watch-dog timer and a sleep control timer share a
counter in their signal generating circuits. In a normal operation mode,
an AND gate is in a signal passing state and a reset signal RST can be
outputted. In a sleep mode, another AND gate is in a signal passing state
and a wake-up signal WKUP can be outputted.