摘要 |
A microprocessor provided with a self-diagnostic test function is disclosed. The microprocessor comprises an input circuit for inputting at least a macro instruction and information necessary for self-diagnostic testing stored in an external memory; a decoder for decoding the inputted macro instruction; a micro instruction ROM for storing micro instructions; an incrementer for generating an incremented address by incrementing the address of the received address of the micro instruction ROM by 1; an external test mode setting circuit that inputs an incremented address and information necessary for self-diagnostic testing, outputs an incremented address when the microprocessor is operating in normal mode, and, in accordance with micro instructions outputted by the micro instruction ROM, outputs either an incremented address or information necessary for self-diagnostic testing when the microprocessor is operating in self-diagnostic testing mode; and a selector for selecting in accordance with micro instructions any one of the decoder output, an address of the micro instruction ROM designated by the micro instructions, or the output of the external test mode setting circuit. The microprocessor operates as an ALU when operating in normal mode, and when operating in self-diagnostic testing mode, provides data to diagnose whether or not it is defective. <IMAGE> |