MICROCOMPUTER

Abstract: A microcomputer includes a functional element for generating an internal reset instruction by itself, other than a usual external reset signal. The internal reset instruction is generated every time a usual power-off instruction is gener­ ated. Thus, a power-off signal responding to the power-off instruction is maintained as it is by execution of the internal reset instruction. The microcomputer further includes a func­ tional element for maintaining at least the power-off signal as it is until the power is completely cut off.

Description: The present invention relates to a microcomputer operated with a reset instruction, more particularly a microcomputer in which a reset operation can be effectively carried out not only during the rise of a power level, but also the fall of the power level. For a microcomputer (below "computer") to start execution of desired jobs, it generally requires a reset operation when power is first applied thereto, especially during the rise of the power. This operation "initializes" the computer. To achieve such a reset operation, the computer usually incorporates an external reset port. An external reset circuit, such as a capacitor-resistor (CR) circuit, is connected to the pin leading to the external reset port. A recent trend is for execution of a similar reset operation when the power is cut off, especially during the fall of the power level. Erroneous operation often occurs during the fall of the power level, especially when the level drops below the lower limit of a guaranteed operational range of the computer, for example 4.5 V (5 V - 0.5 V). Specifically, the computer may jump to a totally different routine and run out of control. The prior art has used both conventional and additional external reset circuits for the reset operation so as to cover both the rise and fall of the power level. That is, a computer has been equipped with both conventional and additional external reset circuits at its relevant pin. The external reset circuits in current use compare in size with the computer itself, however. This accordingly increases the size of the computer assembly. With very small systems, for example, an electronic camera system, not that much room is available. DE-B-2 936 683 discloses a reset circuit for a microprocessor, having features corresponding to those of the preamble of accompanying claim 1. A reset signal is generated externally to the microprocessor, in response to the level of a power supply voltage. JP-A-58 12034 discloses an information processor having an internal reset circuit which generates a reset signal in response to a decoded instruction. According to the present invention there is provided a microcomputer which executes instructions to produce output data, operatively connected to a first external pin for receiving an external reset signal to initialize said microcomputer and a second external pin for providing a power-on signal to hold said microcomputer in a power-on state; characterised by: an instruction decoder, operatively connected to receive instructions, capable of decoding a reset instruction and outputting a control signal in response to the reset instruction; internal reset signal means, operatively connected to said instruction decoder, for generating an internal reset signal in response to the control signal, said microcomputer being initialized by the internal reset signal, said internal reset signal means comprising: a first flip-flop, operatively connected to said instruction decoder, for maintaining the internal reset signal as an output; and a first OR function gate operatively connected to said first flip-flop and the first external pin to receive the external reset signal; and a master reset flip-flop operatively connected to said first OR function gate, and microcomputer elements operatively connected to said internal reset signal means, said master reset flip-flop producing a master reset signal for initializing said microcomputer elements. Reference will now be made, by way of example, to the accompanying drawings, wherein: Fig. 1 is a general view of a currently used microcomputer provided with a typical external reset circuit; Fig. 2 depicts waveforms of signals appearing at major portions in the circuit of Fig. 1; Fig. 3 is a circuit diagram of a prior art external reset circuit used with the microcomputer unit of Fig. 1; Fig. 4 depicts waveforms of signals representing V CC and V RST shown in Fig. 3; Fig. 5 is a circuit diagram representing part of a computer embodying the invention together with part of the peripheral members already existing in a computer unit; Fig. 6 depicts waveforms used for explaining reset timing according to an embodiment of the invention; Fig. 7 is a block diagram of an example of a microcomputer unit according to an embodiment of the present invention; and Fig. 8 is a general flow chart of processing steps performed in a computer embodying the present invention. The structure and operation of a computer embodying the present invention can be best made clear by beginning with a general description of a usual computer. Figure 1 is a general view of a currently used microcomputer provided with a typical external reset circuit. That is, Fig. 1 shows an external CR circuit, which is particularly effective during the rise of the power level V CC . In Fig. 1, reference numeral 11 denotes a single-chip microcomputer unit and 12 an external reset pin (RST) to which a usual external reset circuit, i.e., a CR circuit 13 is connected. The CR circuit 13 is energized by power of the level V CC , which power is supplied to a power supply pin 16 via a power on/off switch 14 from a power source 17, such as a direct current (DC) battery having a level V' CC . The peak amplitudes of the level V CC and the level V' CC are quite the same. The switch 14 is illustrated schematically as a mechanical switch but, in actuality, is an electronic controlled semiconductor switch. When the computer operation is to be stopped, the switch 14 is supplied with a power-off signal from a power control pin 15. The switch 14 is self-sustained to be conductive once an external start signal ST is given thereto and until the power-off signal is generated in the computer 11. The external start signal ST may be suitably produced. For example, in an electronic camera system, the start signal ST may be generated every time an operator touches a shutter release button. Alternatively, in a so-called multifunction telephone set, the start signal ST may be generated by a off-hook signal. Incidentally, in the example of an electronic camera system, a peripheral circuit 18, to be used with the computer 11, functions to perform auto-focus (AF), auto-exposing (AE), auto-winding, auto-date setting, auto-flashing, and so on. Figure 2 depicts waveforms of signals appearing at major portions in the circuit of Fig. 1. The reset operation to be achieved in the computer unit 11 will be clarified with reference to Fig. 2. Row (a) exhibits the waveforms of the power level V CC and the reset voltage level V RST , and row (b) exhibits the output signal from the power control pin 15. Assuming the start signal ST is given at the time t0 so as to start running the computer, the power (V' CC ) is supplied, via the switch 14 now conductive, to the power supply pin 16. The power level V CC at the pin 16 rises along the solid line curve soon after the time t0. At the same time, the reset voltage level V RST rises along the broken line curve soon after the time t0, but gradually changes relative to the change of V CC due to the presence of the CR circuit 13. When the level V RST exceeds a predetermined threshold level V TH , i.e., after the time t1, the reset operation in the computer 11 ceases, whereby the desired job starts being executed in accordance with a preestablished program. Execution of the job ends with a power-off instruction. In response to an instruction for changing the logic of one of the output ports in order to achieve a power-off operation, a control signal, i.e., a power-off signal, is produced from one of the output ports, for example, the power control pin 15, to turn off the switch 14. Thus, the power is cut off and the power level V CC starts falling after the time t2. During the fall of the power level V CC , i.e., at the time t3, the level V CC crosses the minimum voltage V M of the guaranteed operational range of the computer. The minimum voltage V M is usually set to be about -10% of the normal power source level. If the source level is below the minimum voltage V M normal computer operation cannot be guaranteed. The maximum voltage V' M is set to be about +10% of the normal power source level. In this regard, the reset operation of the computer at a final stage must be commenced at the time t2 to time t3. In actuality, however, the reset operation often cannot be completed from time t2 and time t3. That is, as seen from Fig. 2, the reset voltage level V RST falls after the fall of the power level V CC and reaches near the threshold level V TH at the time close to time t4. As shown, the reset operation cannot commence until the level V RST grosses the level V TH . Therefore, there is a likelihood that the computer will run out of control during the non-guaranteed interval, i.e., between the time t3 and time t4. At worst, the operation in the computer will jump to a routine which again specifies to turn on the switch 14. In such a case, the output signal from the power control pin 15, which should be changed from the "H" (high) level to "L" (low) level, as depicted in row (b) of Fig. 2, at the time t2 and maintained at the "L" level until the computer is restarted so as to maintain the switch 14 off, tends to change from "L" to "H", as shown in row (b) of Fig. 2, after the time t3 and thus makes the switch 14 conductive. This is caused by the fact that, although the level V CC falls below the level V M for guarantee at the time t3, the reset operation is not yet completed between the time t3 and time t4. Thus, at worst, the output signal from the pin 15 changes from "L" to "H" after the time t3, as shown in row (b) of Fig. 2. This results in reactivation of the computer due to resupply of the power (V' CC ) via the switch 14. In view of the above problem, the conventional reset circuit i.e., CR circuit 13, is not sufficient by itself for the computer unit 11 when an operational sequence of the overall system includes a series of alternate power-on and power-off steps performed frequently. Figure 3 is a circuit diagram of a prior art external reset circuit used with the microcomputer unit of Fig. 1. In Fig. 3, members the same as those of Fig. 1 are represented by the same reference numerals and characters (same for later figures). The external reset circuit 30 of the prior art is constructed by the conventional CR circuit 13 and an additional reset circuit 31. The circuit 31 works to cancel the interval between the time t3 and time t4 (Fig. 2) in which the reset operation is not yet activated. As shown in Fig. 3, the additional reset circuit 31 includes transistors Q₁ , Q₂ , Zener diode ZD, and resistors. The Zener voltage V ZD thereof is set to be substantially the same as the minimum voltage V M . A summary of the operation is as follows. During the fall of the power level V CC , once the level V CC becomes lower than the Zener voltage V ZD , the transistor Q₂ is turned on and, accordingly, the capacitor C is discharged. The quick discharge of the capacitor C improves the slow fall of the reset voltage V RST appearing at the pin 12 (Fig. 1). That is, the delay time (t3 → t4) for the reset operation can be omitted. On the other hand, during the rise of the power level V CC , especially when the level V CC is not higher than the level V ZD , the Zener diode ZD is nonconductive. Therefore, the transistor Q₁ is off, while the transistor Q₂ is on. When the level V CC exceeds the level V ZD , the zener diode ZD becomes conductive, and therefore the transistor Q₁ is on, while the transistor Q₂ is off. Thereafter, the voltage at the reset pin 12 rises by means of the resistor R and the capacitor C of Fig.3, which exhibits nearly the equivalent characteristic to that of the CR circuit 13 of Fig.1. During the fall of the power level V CC , when the level V CC becomes lower than the Zener voltage V ZD , the transistor Q₁ is turned off, while the transistor Q₂ is turned On. Therefore, a quick discharge of the capacitor C, i.e., quick start of the reset operation, can be attained. Figure 4 depicts waveforms of signals representing the level V CC and level V RST shown in Fig. 3. The waveforms of Fig. 4 schematically exhibit the above quick discharge of the capacitor C by the circuit 31, where the times t2, t3, and t4 correspond to those shown in Fig. 2. Thus, each reset operation at final stages of the operations in the computer can correctly be performed with the aid of the additional reset circuit 31. The circuit 31, however, has the disadvantage that since the Zener diode ZD, the transistors Q₁ , Q₂ , and the resistors are used in the form of discrete electric parts, the external reset circuit 30, including the CR circuit 13, becomes large in size. It should be noted that the bipolar elements ZD, Q₁ , and Q₂ cannot be formed as complementary metal-oxide semiconductory (CMOS) devices. Accordingly, it is impossible to accommodate them inside a computer unit fabricated with CMOS devices. In an embodiment of the invention, no additional external reset circuit 31 is needed yet, the reset operation can still be performed in the computer without error. Means are provided for generating an internal reset instruction by the computer itself at a timing close to generation of the power-off instruction. The power-off instruction is an instruction for changing the logic of the power control pin 15 and indicates the end of each job and is specifically expressed as the power-off signal from the power control pin 15 (Fig. 1), which works to turn off the switch 14 (Fig. 1). The internal reset instruction can be generated either just preceding or just following the generation of the power-off instruction. Figure 5 is a circuit diagram representing part of a computer embodying the present invention together with a part of the peripheral members already existing in a computer unit. In Fig. 5, the circuit 51, other than the pins 12 and 52, is formed inside the computer unit 11 (Fig. 1). The pin 12 is the previously mentioned external reset pin. Reference numeral 52 represents the aforesaid power control pin 15 (Fig. 1) and input/output (I/O) pins 19 (Fig. 1) connected to the peripheral circuit 18 (Fig. 1). During the rise of the power level V CC and when the reset operation has not yet ceased, the voltage level V RST at the pin 12 should be the "L" level. The "L" level is changed, by way of an inverter 53, to the "H" level. The "H" level signal sets, via an OR gate 54, a flip-flop 56. The output from the flip-flop 56 is used for initialization of each related computer element 57 in what is called a "master reset" (MR). Assuming that the level V RST at the pin 12 is the "L" level before the charge-up of the CR circuit 13 (Fig. 1), this "L" level is changed, via the inverter 53, to the "H" level and passes through the OR gate 54. Then, the "H" level from OR gate 54 sets the flip-flop 56. Thereby, the reset operation at an initial stage (power-on sequence) ceases. Thereafter, the CR circuit 13 is fully charged up and the level at the pin 12 becomes "H". Due to the "H" level, the flip-flop 56 receives, at its set input S, an "L" level signal via the inverter 53, while the flip-flop 56 receives, at its reset input R, an "H" level signal via an inverter 55. Thereby, the master reset ceases. Soon after this, the microprocessor starts being operated in accordance with a predetermined program. The internal reset instruction is further incorporated in the usual instruction set. The internal reset instruction is set up in the program to form a pair together with the usual power-off instruction, which is generated at the end of each job executed in the computer. Thus, the computer can create a reset state by itself at each final stage of the jobs. The internal reset instruction is stored in advance in a program memory (not shown in Fig. 5 but in Fig. 7) along with the series of usual instructions for executing the jobs. The internal reset instruction is transferred on an internal bus 58 and stored first in an instruction register (IR) 59 and then decoded by an instruction docoder 67, as with usual instructions. Thus, the instruction decoder 67 provides a corresponding internal reset instruction signal I' RST , i.e., a control signal. The signal I' RST , which is of the "H" level, is supplied to a flip-flop 61 in synchronism with a timing signal T by means of an AND gate 60. Each instruction cycle is usually clocked by the timing signal T. The thus synchronized internal reset instruction signal I RST is sustained by the flip-flop 61 and OR'ed, at the OR gate 54, with the usual external reset signal (V RST ). Accordingly, the flip-flop 56 is set not only by the usual external reset signal but also the internal reset instruction signal (control signal) I' RST . Once the flip-flop 56 is set by the signal I' RST , the "master reset" begins in the related computer elements. Before the receipt of the internal reset instruction signal I' RST from the AND gate 60, the flip-flop 61 is rendered in a reset state by the external reset signal from the pin 12, which is the "L" level in this case. The "L" level is inverted, via the inverter 53, to the "H" level and then given to the reset terminal (R) of the flip-flop 61. Thus, the internal reset instruction is generated at a timing close to the instruction indicating the end of the job, i.e., the power-off operation. In response to the thus generated internal reset instruction, the internal reset instruction signal I' RST is produced inside the computer. The delay time from the generation of the power-off instruction to the generation of the signal I' RST can be shortened to a time on the order of the instruction cycle, i.e., the frequency of the timing signal T. This means that the "master reset" is performed immediately after the cut-off of the power. This will be clarified with reference to Fig. 6. Figure 6 depicts waveforms for explaining such reset timing. In Fig. 6, times t2, t3, and t4 correspond to those shown in Fig. 2. Character te denotes the time when the job comes to an end, and therefore, the power-off instruction is generated. In response to the power-off instruction, the switch 14 (Fig. 1) is turned off by the output signal from the pin 15 (Fig. 1). The output signal is usually produced from the instruction decoder 67 (Fig. 5) and supplied at the pin 52 (Fig. 5), assuming that the pin 52 represents the pin 15 in this case (refer to Fig. 7). In Fig. 6, the signal line for transferring the output signal (67 → 52) is not illustrated. The internal reset instruction signal I RST , is generated close to the time te (Fig. 6). Therefore, the corresponding reset operation starts being achieved soon after the time te at the time tr. Thus, the master reset is performed. The time tr follows the time te by a time on the order of the instruction cycle, which is usually about 2 µs. This 2 µs delay time is much shorter than the time constant defined by the falling curve V RST of Fig. 6, which is usually on the order of several ms. The time tr can be made immediately after the time te by setting the internal reset instruction close to the power-off instruction. The internal reset instruction can be positioned either before or after the power-off instruction. The former case will be explained hereinafter. Referring still to Fig. 5, a master reset may be classified into two major modes. In the first mode, the computer is rendered in the master reset state when the reset voltage level V RST is at the "L" level (corresponding to the term between t0 and t1 of Fig. 2). In the second mode, the computer is not rendered in the master reset state, when the voltage level V RST is at the "H" level, however, once the internal reset instruction is generated, in the master reset state regardless of the "H" level V RST (corresponding to the term between t2 and t3 of Fig. 6). The first mode is a usual mode performed in a microcomputer. In this mode, the I/O pins, represented by the pin 52 of Fig. 5, are fixed at the "L" level, which mode is considered as initialization of the computer. Under the initialization mode, the flip-flop 56 produces an "H" level output for master reset of the related computer elements 57 (Fig. 5). In the first mode, on the other hand, the flip-flop 61 does not produce an internal reset instruction signal I RST , but a "L" level output. This "L" level output is inverted by an inverter 62 to an "H" level signal and then transferred, via an AND gate 63, now opened by the "H" level output of the flip-flop 56, and an OR gate 64, to a flip-flop 66 at its set terminal (S). The flip-flop 66 is thereby set to produce the "H" level output continually. As a result, the pin 52 is sustained at the "H" level. If the pin 52 is the power control pin 15 (refer to Fig. 7), the thus sustained "H" level output keeps the switch 14 (Fig. 1) conductive. Under the second mode, the resultant data of the finished job is held as it is. The resultant data is supplied, from a random access memory (RAM) in the computer and via the internal bus 58, to the OR gate 64 as a data DT, when a transfer gate 68 (Fig. 5) is opened by a write signal WR (Fig. 5) given from a related computer element among the elements 57 (Fig. 5). Then, if data DT is the "H" level the flip-flop 66 is set by the data DT from the OR gate 64. Conversely, if data DT is the "L" level, the flip-flop 66 is reset by the data DT by means of an inverter 65. The inverter 65 inverts the "L" level to the "H" level and then supplies the inverted "H" level signal to the reset terminal (R) of the flip-flop 66. The resultant data DT, including the power-off signal ("L"), is accordingly maintained as it is at the pin 52, because the write signal WR is inhibited by the internal reset instruction. Thus, the transfer gate 68 is closed. In this case, it is important to note that the power-off signal from the pin 52 (15) must be maintained as it is at the "L" level after the internal reset instruction signal I RST is once applied to the flip-flop 66, which I RST travels through the OR gate 54, the flip-flop 56, the AND gate 63, and the OR gate 64. If the AND gate 63, the OR gate 64, and the flip-flop 66 were not used, the power-off signal at the pin 52 (15) would probably be erroneously changed to the "H" level again (refer to the term between time t3 and time t4) by the following external reset signal (V RST ) from the pin 12, which signal (V RST ) is given at the time t4 of Fig. 6. Such an erroneous change to "H" may be caused since the computer is not guaranteed to operate normally during the related time (t3 → t4). That is, once the signal I' RST of "H" is generated from the decoder 67 at the time tr (Fig. 6), the AND gate 63 is immediately closed by the signal I RST , which is inverted in level to "L" by the inverter 62, so that the following external reset signal (V RST ) cannot pass therethrough. On the other hand, the power-off signal of the "L" level is maintained as it is with the aid of the flip-flop 66 regardless of the generation of the external reset signal and the lowered power level V CC . The declining power level V CC will in any case reach zero, and the flip-flop 66 and other members will in any case be deenergized. In this case, the flip-flop 66 is gradually deenergized while keeping the "L" level output as it is. Therefore, the power-off signal cannot erroneously be changed to the "H" level. Generally speaking, it is preferable to employ another means, cooperating with the previously mentioned means for generating the internal reset instruction signal I RST , for maintaining the power-off signal and other output signals as they are, even though the external reset signal is supplied to the computer. The flip-flop 66 is given as the above-mentioned other means in the above embodiment. Figure 7 is a block diagram of an example of a microcomputer unit according to an embodiment of the present invention. In Fig. 7, a block 71 indicated by chain-dotted lines features the present invention. That is, the block 71 functions as a reset processing circuit. The members 12, 52, 58, 59, and 67 are the same as those shown in Fig. 5. Other members are a timing control circuit (CNT) 72, arithmetic logic unit (ALU) 73, temporary register (REG) 74, program counter (PC) 75, the RAM 76 for storing processed data momentarily, read-only memory (ROM) 77 for storing a variety of instructions, i.e., the program memory (including the power-off instruction and the internal reset instruction), and an I/O buffer 78. These members, with some modifications, are well known and commonly used in current microcomputers. The modifications are as follows. First, the reset processing circuit 71 is further employed in the computer, which is comprised of preexisting members, i.e., members 53, 55, and 56 of Fig. 5, and newly employed memoers, i.e., members 54, 61, 62, 63, 64, and 65 of Fig. 5. One of the remaining members, the flip-flop 66 is newly mounted in the I/O buffer 78. Another of the remaining members, the AND gate 60 of Fig. 5, is realized by the usual timing control circuit 72 and connected to a flip-flop 61 via a signal line L₁. Other of the remaining members, the computer elements 57 of Fig. 5, are specifically illustrated as the members 59, 72, 73, 74, 75, 76, and 77. All these members are reset by a signal R, which is indicative of either the external reset signal or the internal reset instruction signal and produced from the flip-flop 56 of Fig. 5 contained in the circuit 71. The output pair from the OR gate 64 and the inverter 65, both shown in Fig. 5, is transferred, as a signal r, to the I/O buffer 78. Figure 8 is a general flow chart of processing performed in a computer embodying the present invention. In step a, the power on/off switch 14 (Fig. 1) is turned on by the start signal ST, and the power source of V CC ' is supplied to the power supply pin 16 (Fig. 1) with the power level V CC . In step b, a power-on reset, i.e., initialization, is performed when the reset voltage level V RST is "L". Then, in step c, a desired job starts being executed. The job continues until the job comes to an end. When the job comes to an end (step d), the pair of the internal reset instruction and the power-off instruction is sequentially executed in step e. In response to the internal reset instruction, the resultant data, including the power-off signal of "L", is held at the flip-flop 66 in step f. In response to the power-off instruction, the power level V CC goes to zero in step g. Regarding step e of Fig. 8, the internal reset instruction and the power-off instruction are executed sequentially. In this case, there are two possible sequences. In one, the power-off instruction is executed first and, soon after, the internal reset instruction is executed, as depicted in Fig. 6. In the other, the internal reset instruction is generated first at a timing I of Fig. 6, and then the power-off instruction is executed at the time te of Fig. 6. This sequence is not possible in a usual reset operation utilizing the prior art reset circuit 30 of Fig. 3, but is possible in this embodiment of the invention. In this sequence, it should be noted that the internal reset instruction signal I' RST must not be produced before the generation of the power-off instruction and must be produced soon after the power-off instruction. This is because, once the internal reset instruction signal I' RST is produced preceding the power-off instruction, the master reset operation is achieved via the flip-flop 56 of Fig. 5. If the master reset operation is achieved, the power-off instruction would no longer be generated. This means that there is no chance to cut off the power by turning off the switch 14 (Fig. 1). In order to attain the related delay for the production of the signal I RST relative to the generation of the power-off instruction a suitable delay element, such as multistage logic gates, must be inserted into and in series with a line for transferring the signal I' RST , and, alternatively, a bus for transferring the internal reset instruction data. As mentioned above, a microcomputer unit embodying the present invention does not need any additional reset circuit such as the circuit 31 in Fig. 3. That is, a reset operation at the final stage activated by the additional reset circuit of the prior art is started by the computer itself.

Claims: A microcomputer which executes instructions to produce output data, operatively connected to a first external pin (12) for receiving an external reset signal (V RST ) to initialize said microcomputer and a second external pin (15) for providing a power-on signal to hold said microcomputer in a power-on state; characterised by: an instruction decoder (67), operatively connected to receive instructions, capable of decoding a reset instruction and outputting a control signal in response to the reset instruction; internal reset signal means (71), operatively connected to said instruction decoder (67), for generating an internal reset signal (I RST ) in response to the control signal, said microcomputer being initialized by the internal reset signal, said internal reset signal means (71) comprising: a first flip-flop (61), operatively connected to said instruction decoder (67), for maintaining the internal reset signal as an output; and a first OR function gate (54) operatively connected to said first flip-flop (61) and the first external pin (12) to receive the external reset signal (V RST ); and a master reset flip-flop (56) operatively connected to said first OR function gate (54), and microcomputer elements operatively connected to said internal reset signal means, said master reset flip-flop (56) producing a master reset signal (MR) for initializing said microcomputer elements. A microcomputer as set forth in claim 1, wherein a power on/off switch (14), having an input operatively connected to the second external pin (15), provides a power level to said microcomputer, the second external pin (15) further provides a power-off signal, produced in response to an instruction for a power-off operation, to the power on/off switch (14), and said microcomputer further comprises signal maintaining means, having an output operatively connected to the second external pin (15) and having an input operatively connected to said master reset flip-flop (56), for maintaining at least the power-off signal so that the power on/off switch (14) is held off until the power level in said microcomputer reaches zero. A microcomputer as set forth in claim 2, further comprising: an input/output circuit (78) operatively connected to said signal maintaining means; and pins (19) operatively connected to said input/output circuit (78), and wherein said signal maintaining means includes means (66) for maintaining the output data at said pins. A microcomputer as set forth in claim 2 or 3, wherein said signal maintaining means comprises: an inverter (62) operatively connected to the output of said first flip-flop (61); an AND gate (63), having a first input operatively connected to said inverter (62) and a second input operatively connected to said master reset flip-flop (56), said AND gate (63) being operative to pass therethrough the master reset signal (MR) from said master reset flip-flop (56) only when the internal reset signal (I RST ) is not produced by said first flip-flop (61), and for preventing passage of the master reset signal when the internal reset signal is produced; a second OR function gate (64), operatively connected to said AND gate (63) and to receive the power-off signal, for producing an output; and a second flip-flop (66), operatively connected to said second OR function gate (64) and the second external pin (15), and activated by the output of said second OR function gate (64), for maintaining an output signal representative of the external reset signal (V RST ) or internal reset signal (I RST ). A microcomputer as set forth in claim 2, 3 or 4, wherein the reset instruction is executed soon after execution of the instruction for the power-off operation. A microcomputer as set forth in claim 2, 3 or 4, wherein the reset instruction is decoded preceding the instruction for the power-off operation, but said internal reset signal means (71) outputs the internal reset signal (I RST ) corresponding thereto soon after execution of the instruction for the power-off operation.

Inventors: NAGAE, YASUTAKA
Applicants: FUJITSU LIMITED
Application year: 1984
Main classification: G06F1
IPC codes: G06F1, H03K17