摘要 |
<p>PROBLEM TO BE SOLVED: To immediately detect the destruction of a stack area, to prevent secondary and ternary faults, to improve debugging efficiency and to reduce man-hour in the debugging of a real time system. SOLUTION: In the system being a single chip microcomputer, a central processing unit is provided with an instruction prefetch/decoding unit 1, a control unit 2, an arithmetic unit 3, a stack area abnormality detection unit having a stack area abnormality detection function and an input/output control unit 5. An address register for setting the highest address of an area becoming an object for destruction detection and a status register for reflecting the presence or absence of the occurrence of overflow from the setting address to an upper part are provided in the stack abnormality detection unit 4. When a stack pointer shows a value upper than the value of the address register, the status register is automatically set and the destruction of the stack area owing to overflow is detected.</p> |