摘要 |
PROBLEM TO BE SOLVED: To obtain a microcomputer which prevents an STP (basic clock stop) instruction from being released by debug interruption without extending a debug interruption processing time per time. SOLUTION: This microcomputer decides whether or not to perform subtraction processing of program count value of a program counter by using a flag stored in a flag circuit 30, performs subtraction processing of the program count value, changes the address of a return destination at the time of finishing debug interruption processing to the address of an STP instruction when the flag shows that the STP instruction is carried out and makes the program count value which does not undergo subtraction processing the address of the return destination at the time of finishing the debug interruption processing as it is when the flag does not show it. |