To obtain a nonvolatile semiconductor memory which notifies the outside of a time that elapses until the nonvolatile semiconductor memory receives an interrupt and to provide a microcomputer including the nonvolatile semiconductor memory.
An automatic erasure sequence control circuit 254 in an automatic erasure sequencer 208 for controlling an erasure operation of a memory block of the nonvolatile semiconductor memory controls a prior-to-erase write control circuit 256 and an erase/erase verification control circuit 257 at the time of an erase operation and sets a status that automatic erase is now being performed in a status register 207. In addition, the control circuit 254 starts a decrementor 350 and an incrementor 351. After start, the decrementor 350 and the incrementor 351 count a time until a processing end and a time until a suspension request is received and output the times to the outside.
SUGITA MITSURU