WO1998012620A1 - Microcomputer having reset control function - Google Patents

Microcomputer having reset control function Download PDF

Info

Publication number
WO1998012620A1
WO1998012620A1 PCT/JP1996/002725 JP9602725W WO9812620A1 WO 1998012620 A1 WO1998012620 A1 WO 1998012620A1 JP 9602725 W JP9602725 W JP 9602725W WO 9812620 A1 WO9812620 A1 WO 9812620A1
Authority
WO
WIPO (PCT)
Prior art keywords
reset
signal
flag
register
microcomputer
Prior art date
Application number
PCT/JP1996/002725
Other languages
French (fr)
Japanese (ja)
Inventor
Taiki Nishiuchi
Yuji Kitaguchi
Original Assignee
Mitsubishi Denki Kabushiki Kaisha
Mitsubishi Denki Engineering Kabushiki Kaisha
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Denki Kabushiki Kaisha, Mitsubishi Denki Engineering Kabushiki Kaisha filed Critical Mitsubishi Denki Kabushiki Kaisha
Priority to PCT/JP1996/002725 priority Critical patent/WO1998012620A1/en
Priority to TW085113425A priority patent/TW422947B/en
Publication of WO1998012620A1 publication Critical patent/WO1998012620A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means

Definitions

  • the present invention relates to a microcomputer used for controlling electronic devices, for example, and more particularly to a reset function of a microcomputer.
  • a reset is applied immediately after the power is turned on to operate the PU and peripheral devices normally.
  • FIG. 27 is a block diagram showing the configuration of such a conventional microcomputer.
  • reference numeral 10 denotes a reset IC
  • 100 denotes a single-chip microcomputer.
  • the Singnore chip microcontroller 100 has a CPU 110 for overall processing, a memory 120 for storing programs and data, a peripheral function section 130, and a special function for the peripheral function section.
  • a bus 170 for transferring data.
  • the memory 120 has RAM I 21 and ROM 122.
  • the peripheral function section 130 converts the digital signal into an analog signal and outputs it.
  • the D-to-A converter 13 1 and the analog-to-digital converter 1 that inputs the analog signal and converts it into a digital signal.
  • 3 2 and serial I / 0 (hereinafter referred to as SI / 0) that communicates with external devices in serial 1 3 3 and CPU 11 It has a watchdog timer (hereinafter referred to as WDT) 1334 that resets the CPU 110 when it is determined that a runaway has occurred, and a timer 135 that performs a timing operation for control and the like. .
  • WDT watchdog timer
  • the SFR section 140 is composed of the SFR 14 1 for D-A, the 5 1 4 2 for ⁇ 0, the SFR 1 4 3 for SI / 0, the SFR 1 4 4 for WDT, and the SFR 1 4 for timer. 4 5.
  • the single-chip microcomputer 100 is configured to receive the power supply undervoltage VCC.
  • the reset signal output from the reset IC 10 may be at the “low” level due to noise or the like.
  • C P U when turning on the power and in other cases, C P U
  • FIG. 28 is a flowchart showing the operation of the reset processing of the CPU 110. As shown in the figure, the CPU 110 determines the value of the reset determination flag 150 (step ST2801), and sets the “L” level, that is, the reset determination flag 150, to ON. If not, reset judgment flag
  • step ST2802 Set 150 to the "H” level (step ST2802 :), and set the initial value of the CPU 110 register time (step ST2803). Then S Set the initial value of FR section 140 (step ST2804).
  • step ST2801 when the reset determination flag 150 is set in step ST2801, that is, when it is "H", it is recognized that the power supply is not turned on, and step ST2801 is recognized. Move to 4 to set the initial value of SFR section 140.
  • the reset judgment flag 150 is set and the CPU 110 Is not performed.
  • the SFR section 140 is reset, it will be set to a constant value in terms of hardware. Therefore, as shown in the flowchart of FIG. 28, the reset judgment of the SFR section 140 is performed. Regardless of the flag 150, 'H' or 'L', the address bus 16 0 and the data bus 17 are set to the default values required by the single-chip microcomputer 110 program. The setting must be reset via 0, which takes time and interrupts the operation of the peripheral function unit 130.
  • the SFR section 140 is reset even if the CPU 110 performs a hot-shut-down that does not initialize data.
  • the SFR value must be set, and the peripheral function unit 130 cannot operate continuously.
  • the present invention has been made in order to solve the above problems, and a microcontroller capable of continuing the operation of a peripheral function unit even when noise or the like is superimposed on a reset signal after power-on.
  • An object of the present invention is to provide an electronic device having a reset function such as a pu-y setting. Disclosure of the invention
  • the invention described in claim 1 is characterized in that the reset control unit determines whether or not the information stored in the reset determination flag indicates the first reset operation.
  • a reset signal is sent to reset the peripheral function register in a hardware manner, and the information stored in the reset determination flag is not the first reset operation.
  • the reset control of the peripheral function register is executed without sending the register reset signal, so the reset signal is generated due to noise etc.
  • the peripheral function register section is not reset, and the peripheral function section has an effect that the operation can be continued continuously thereafter.
  • the invention according to claim 2 includes a peripheral function unit including an AD converter for converting an analog signal to a digital signal, and a peripheral function register unit including an A-D converter.
  • the peripheral function register is not reset even if a reset signal is generated due to noise or the like, and the A / D converter operates continuously thereafter. Has the effect of being able to continue.
  • the invention according to claim 3 is characterized in that the peripheral function unit includes a DA converter for converting an analog signal to a digital signal, and the peripheral function register unit operates the DA converter.
  • Configuration register is included, the peripheral function register is not reset even if a reset signal is generated due to noise, etc., and the DA converter continues to operate continuously thereafter There is an effect that can be.
  • the invention described in claim 4 includes a serial input / output device in which the peripheral function unit converts an analog signal to a digital signal, and a peripheral function register in which the operation setting of the serial input / output device is performed.
  • the peripheral function register section is not reset even if a reset signal is generated due to noise, etc., and the serial input / output device can continue to operate continuously thereafter. There is an effect that can be done.
  • the invention described in claim 5 is configured such that the peripheral function unit includes a timer for converting an analog signal to a digital signal, and the peripheral function register unit includes a register for setting the operation of the timer. Therefore, even if a reset signal is generated due to noise or the like, the peripheral function register is not reset, and the timer can continue to operate continuously thereafter.
  • the invention described in claim 6 includes a watchdog timer in which the peripheral function unit converts an analog signal into a digital signal, and a peripheral function register unit in which the setting of the operation of the watchdog timer is performed.
  • the peripheral function register section is not reset even if a reset signal is generated due to noise or the like, and the watchdog timer can continue to operate continuously thereafter. effective.
  • the reset control unit when the watchdog timer outputs a signal indicating runaway, the reset control unit sends the register reset signal regardless of the information stored in the reset determination flag. Then, the reset control of the peripheral function register is performed, so that there is an effect that more stable reset control can be performed.
  • the invention described in claim 8 is characterized in that the reset control unit receives the external reset signal when the information indicating the flag-independent mode is stored in the reset mode flag. Since the register reset signal is sent to the peripheral function register regardless of the information stored in the first flag, the mode can be changed depending on the nature of the program to be executed and the reset can be performed more efficiently. There is an effect that can be processed.
  • the invention described in claim 9 is characterized in that the first reset signal generated from the first power supply for supplying power to the central processing unit and the second reset signal generated for supplying power to the peripheral function unit are generated.
  • a signal for executing the reset of the central processing unit is sent to the central processing unit only when both of the input second reset signal and the reset signal are input.
  • FIG. 1 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 1 of the present invention.
  • FIG. 2 is a circuit diagram showing a detailed configuration of the reset control circuit shown in FIG.
  • FIG. 3 is a flowchart showing the operation of the reset processing of the CPU according to the first embodiment of the present invention.
  • FIG. 4 is a timing chart showing timing of input / output signals of the reset control circuit shown in FIG.
  • FIG. 5 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 2 of the present invention.
  • FIG. 6 is a circuit diagram showing a detailed configuration of the reset control circuit shown in FIG.
  • FIG. 7 is a flowchart showing the operation of the reset processing of the CPU according to the second embodiment of the present invention.
  • FIG. 8 is a timing chart showing the timing of the signals of the respective units when the reset signal goes “L” when the power is on in the second embodiment of the present invention.
  • FIG. 9 is a block ⁇ showing the configuration of a single-chip microcomputer according to Embodiment 3 of the present invention.
  • FIG. 10 is a circuit diagram showing the configuration of the reset control circuit shown in FIG.
  • FIG. 11 is a flowchart showing an operation at the time of resetting the CPU according to the third embodiment of the present invention.
  • FIG. 12 is an evening chart showing timings of signals of respective parts according to the third embodiment of the present invention.
  • FIG. 13 is a block diagram showing a configuration of a single-chip microcomputer according to the fourth embodiment of the present invention.
  • FIG. 14 is a circuit diagram showing a detailed configuration of the reset control circuit of FIG.
  • FIG. 15 is a flowchart showing the operation of the reset processing of the CPU according to the fourth embodiment of the present invention.
  • FIG. 16 is a timing chart showing the timing of the input / output signals of the reset control circuit shown in FIG.
  • FIG. 17K is a block diagram illustrating a configuration of a single-chip microcomputer according to Embodiment 5 of the present invention.
  • FIG. 18 is a flowchart showing the operation of the reset processing of the CPU according to the fifth embodiment of the present invention.
  • FIG. 19 is a block diagram showing a configuration of a single-chip micro computer according to Embodiment 6 of the present invention.
  • FIG. 20 is a flowchart showing the operation of the reset process of the CPU according to the sixth embodiment of the present invention.
  • FIG. 21 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 7 of the present invention.
  • FIG. 22 is a flowchart showing the operation of the reset process of the CPU according to the seventh embodiment of the present invention.
  • FIG. 23 is a block diagram showing a configuration of a single-chip microcomputer according to an eighth embodiment of the present invention.
  • FIG. 24 is a circuit diagram showing a detailed configuration of the reset control circuit shown in FIG.
  • FIG. 25 is a flowchart showing the operation of the reset process of the CPU according to the eighth embodiment of the present invention.
  • FIG. 26 is a timing chart showing the timing of the input / output signals of the reset control circuit shown in FIG.
  • Fig. 27 is a block diagram showing the configuration of a conventional microcomputer.
  • FIG. 28 is a flowchart showing the operation of the reset processing of the CPU of the conventional microcomputer.
  • FIG. 1 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 1 of the present invention.
  • reference numeral 20 denotes a reset IC
  • reference numeral 200 denotes a single-chip microcomputer.
  • the single-chip microcomputer 200 has a central processing unit (CPU) 210 that performs overall processing, a memory 220 that stores programs and data, a peripheral function unit 230, and a peripheral function unit.
  • CPU central processing unit
  • SFR part peripheral function register part
  • SFR special function register evening
  • reset judgment flag (first flag) 2 50 an address bus 260 for designating an address such as a memory 220
  • data bus 270 for transferring data to each section.
  • the memory 220 has a RAM 222 and a ROM 222.
  • the peripheral function section 230 converts the digital signal into an analog signal and outputs it.
  • a converter 2 31 and an analog signal that converts an analog signal to a digital signal A — D converter 2 32 and communicates with external devices serially I / 0 (hereafter SI / 0) A serial I / O device) 2 3 3 and a watchdog timer (hereinafter abbreviated as WDT) that resets CPU 210 when it detects runaway of CPU 210 and determines that it is running away. 2 and a timer 235 for executing a timekeeping operation for control and the like.
  • WDT watchdog timer
  • the SFR section 240 is composed of the SFR 241 for D-A, the SFR 242 for A-D, the SFR 243 for SI ZO, the SFR 244 for WDT, and the SFR 244 for the timer. 4 5.
  • the power supply voltage VCC is applied to the single-chip microcomputer 200.
  • the single-chip microcomputer 200 has a reset control circuit (reset control unit) 280. Then, the reset signal from the reset IC 20 is directly input to the CPU 210 and the reset control circuit 280.
  • the reset control circuit 280 is configured so that the value of the reset determination flag 250 is input to the reset control circuit 280.
  • FIG. 2 is a detailed diagram of the reset control circuit 280 in FIG.
  • FIG. 3 is a circuit diagram showing a configuration. As shown in the figure, the reset control circuit 280 is composed of inverters 281, 282 and a NAND gate 283.
  • the reset signal from the reset IC 20 is input to the CPU 210 and the reset control circuit 280.
  • the CPU 210 is reset, and a reset program described later is executed.
  • the reset determination flag 250 is “L” and the reset signal is “Si”, so the output of the NAND gate 283 is “L”.
  • the reset control circuit 280 outputs an “L” level signal, and the SFR section 240 Reset as hardware.
  • FIG. 3 is a flowchart showing the reset processing operation of the CPU 210.
  • the reset determination flag 250 is “L” (step ST 301)
  • the reset determination flag is determined as a power-on reset.
  • Setting 250 to “H” step ST302
  • the CPU 210 registers are initialized (step ST303), and then the SFR value of the SFR section 240 is set. Is initialized (step ST304).
  • the reset judgment flag 250 is set to “H” in step ST301, the CPU 210 judges that it is a hot start, and the registers of the SFR section 240 and the CPU 210
  • the reset processing ends without performing the initial setting operation of the values such as.
  • FIG. 4 is a timing chart showing the timing of the input / output signals of the reset control circuit 280 shown in FIG.
  • (a) is the reset signal input to the reset control circuit 280
  • (b is the value of the reset determination flag 250
  • (c) is the output f of the reset control circuit 280.
  • the reset judgment flag 250 is set to the “H” level, it is judged that it is not at the time of turning on the 1 power source and reset ⁇ signal Even if the signal becomes “L”, the output signal of the reset control circuit 280 remains at the “H” level, so that the SFR section 240 is not reset in hardware.
  • the reset control circuit 280 needs to send the SFR section 240 helicopter signal before the CPU 210 executes step ST303 in Fig. 3 when the power is turned on. Since the CPU control circuit 280 performs signal processing with small-scale hardware consisting of two inverters and one gate, the CPU 210 executes the step ST303 while the CPU 210 executes the step ST303. Thus, the signal transmission processing of the reset control circuit 280 is performed sufficiently earlier.
  • the SFR section 240 is not reset by the reset control circuit 280 even when the reset signal goes to the “L” level except when the power is turned on.
  • the SFR section 240 is not reset even if the reset signal becomes “no” due to noise, etc., and the peripheral function section 230 can continue to operate continuously thereafter. There is.
  • Embodiment 2 Embodiment 2
  • FIG. 5 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 2 of the present invention.
  • the same parts as those shown in FIG. 1 are denoted by the same reference numerals, and overlapping description will be omitted.
  • reference numeral 300 denotes a single-chip microcomputer
  • 310 denotes a reset mode flag (second flag) for setting a reset mode
  • 320 denotes a reset IC 20.
  • the reset control circuit supplies a reset signal to the SFR section 240 based on the output reset signal, the value of the reset determination flag 250 and the reset mode flag 310.
  • FIG. 6 is a circuit diagram showing a detailed configuration of the reset control circuit 320.
  • 3221 and 3222 indicate the evening
  • 3223 indicates the age
  • 3224 indicates the NAND gate, respectively.
  • the user sets the value of the reset mode flag 310 by the CPU 210 program.
  • To select the flag-independent mode that resets the SFR block 240 by a reset signal that is input independently of the reset determination flag 250 set the reset mode flag 310 to “H”.
  • a reset determination flag 250 and a flag for resetting the SFR section 240 based on the reset signal are set.
  • To select the dependent mode set the reset mode flag 310 to “L”. As shown in Fig. 6, when the reset mode flag 310 is set to "H", the output of OR gate 3 23 is always set to "H" and the reset signal is output from the NAND gate 3 2 4 The same signal as is output as SFR reset signal.
  • FIG. 7 shows the same operation as that described in the first embodiment.
  • FIG. 7 is a flowchart showing the operation of the reset process of CPU 210.
  • the reset judgment flag 250 is output in step ST701, and if it is “L” (step ST701), it is determined that the power is turned on and reset.
  • the CPU 250 sets the CPU determination flag 250 to “H” (step ST 702), initializes the registers of the CPU 210 (step ST 703), and subsequently sets the SFR Initial setting of the SFR value of the section 240 is performed (step ST704).
  • step ST705 the reset mode flag 310 is referred to (step ST705), indicating the flag-dependent mode. In this case, the process proceeds to step ST704, and if the flag-independent mode is indicated, the reset processing is terminated as it is.
  • the CPU 210 performs the reset processing of the CPU 210 and the initial setting of the SFR section 240 as reset processing when the power is turned on.
  • the initial value of the SFR section 240 is set, and in the flag-independent mode, the reset processing is terminated as it is.
  • FIG. 8 is a timing chart showing the timing of the signal of each part when the reset signal becomes “OFF” when the power is on.
  • (A) is the reset signal input to the reset control circuit 320
  • (b) is the value of the reset determination flag 250
  • (c) is the value of the reset mode flag 310.
  • (D,) indicate the SFR reset signal which is the output signal of the reset control circuit 320. If a “H” level signal is stored in the reset mode flag 310 as shown at time T 1 in the figure, the reset determination flag 2 will be output even if the reset signal becomes “HI”. If the value of 50 is “H”, the SFR reset signal is “H”, and no hardware reset is applied to the SFR section 240.
  • the SFR reset signal is the same as the input reset signal.
  • the reset signal becomes “L”, the SFR 240 is reset in hardware.
  • the reset mode flag 310 is provided, and the value of this flag is used to determine the flag independent mode that does not depend on the value of the reset determination flag 250 and the reset determination.
  • the SFR section 240 can be reset by switching to the flag-dependent mode depending on the flag 250. For this reason, there is an effect that the mode can be changed depending on the property of the program to be executed and more efficient reset processing can be performed.
  • FIG. 9 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 3 of the present invention.
  • the peripheral function unit 230, the SFR unit 240, and the reset IC 20 are supplied with 3 volts VCC 3 (second power supply) as a power supply.
  • 10 is powered by 5 volts VCC 5 (the first power supply).
  • 9th (Puni Here, 21 indicates a reset IC, and VCC 5 is input.
  • the output signals of reset IC 20 and reset IC 21 are configured so that the rise of VCC 5 and VCC 3 is slow enough to reset the SFR section 240 and CPU 210.
  • 400 is a single-chip microcomputer of the third embodiment
  • 410 is a CPU based on a reset signal output from the reset IC 20 and a reset signal output from the reset IC 21.
  • the figure shows a reset control circuit that outputs a CPU reset signal for resetting 210.
  • FIG. 10 is a circuit diagram showing the configuration of the reset control circuit 410 shown in FIG.
  • the reset control Id path 410 is composed of an orifice 411.
  • the output of the reset IC 20 and the output of the reset IC 21 are input to the input of the OR gate 411, and the logical sum of these signals is calculated and supplied to the CPU 210 as a CPU reset signal. Has been. Further, the reset signal from the reset IC 20 is also supplied to the SFR section 240.
  • V CC 5 and V CC 3 rise simultaneously.
  • the outputs of the reset IC 20 and the reset IC 21 are input to the reset control circuit 410, the logical sum of these two signals is obtained, and the CPU 210 resets the CPU. Supplied as a signal. Therefore, when power is turned on, CPU 210 is reset. The processing after the CPU 210 is reset will be described later in detail. Further, the reset signal output from the reset IC 20 is also supplied to the SFR section 240 and is reset in hardware.
  • FIG. 11 is a flowchart showing the operation when the CPU 210 is reset.
  • the reset determination flag 250 is set to “L” (step ST 1101).
  • the flag 250 is set to "H” (step ST1102), and the initial setting of the CPU 210 register is performed (step ST1103).
  • the initial setting of the SFR value of the SFR section 240 is performed (step ST1104).
  • the reset determination flag 250 is "H” at step ST1101
  • the process proceeds to step ST1104 to set the initial value of the SFR section 240.
  • FIG. 12 is a timing chart showing timings of signals of respective parts according to the third embodiment.
  • (a) is VCC 5
  • (b) is VCC 3
  • (c) is the reset signal from reset IC 20
  • (d) is the CPU reset signal supplied to CPU 210
  • (E) shows the value of the reset determination flag 250.
  • V CC 3 is at the “L” level, but V CC 5 remains at the “H” level. Therefore, the reset signal of the “L” level is not supplied to the CPU 210 from the reset control circuit 410, and the CPU 210 is not reset.
  • the reset control circuit 410 outputs the “P” reset signal at the “L” level.
  • the CPU 210 refers to the reset determination flag 250 and executes the reset processing shown in FIG. 11 depending on whether the force is at the “H” level or the “L” level.
  • the reset control circuit 410 resets the reset signal generated from VCC3 and the reset signal generated from VCC5. Since the CPU reset signal is generated from the logical sum with the reset signal, the CPU 210 is reset even if noise is superimposed on the output of the reset ICs 20 and 21. This makes it difficult for the CPU 210 to operate stably.
  • FIG. 13 is a block diagram showing a configuration of a single-chip microcomputer of Embodiment 4 of the present invention.
  • reference numeral 500 denotes a single-chip microcomputer according to the fourth embodiment
  • reference numeral 501 denotes a reset for generating an individual SFR reset signal for resetting the SFR 243 for SIZO.
  • 3 shows a control circuit.
  • the output of reset IC 20 is CPU 210, reset control circuit 510, D-A
  • S IZOffl S F F 243 includes parity, synchronization type, transmission buffer register, register for setting stop bit, and the like.
  • FIG. 14 is a circuit diagram showing a detailed configuration of the reset control circuit 5110 of FIG. In Fig. 14, 511 and 512 indicate overnight and 513 indicates a NAND gate.
  • the reset signals of the reset determination flag 250 and the reset signal and the reset signal of the reset IC 210 are input to the inverters 512 and 511, respectively.
  • the reset signal from reset IC 20 is reset control circuit 510, D—A SFR 241, A—D SFR 2 42, WD Tffl SFR 24 Supplied to SFR 2 4 5 for timer and timer Reset as wear.
  • the reset signal ⁇ is input from the reset IC 20
  • the CPU 210 executes a reset operation described later.
  • resets 1 and ⁇ from the reset IC 20 are input to the reset control circuit 510.
  • the reset judgment flag 250 is “L” and the reset signal is “L”, so the output of the NAND gate 5 13 of the reset control circuit 51 is “L”. .
  • the reset control circuit 510 outputs an “L” level signal, and the SFR 243 for SI0 is reset in hardware.
  • FIG. 15 is a flowchart showing the operation of the reset processing of the CPU 210.
  • the value of the reset determination flag 250 is “L” (step ST 1501)
  • the reset determination flag is determined.
  • Set “250” to “H” step ST1502 :)
  • set the initial settings of the CPU 210 register step ST1503
  • the initial setting of the value of (step ST1504) and the initial setting of other SFRs step ST1505) are performed.
  • step ST1501 the reset determination flag 250 is turned on, and if "H", the CPU 210 determines that it is a hot start and shifts to step S1505 to proceed to SIZO.
  • the initial value of other SFRs is set without performing the initial setting operation of the values of the SFRs 243 and CPU 210 registers, and the reset processing ends.
  • FIG. 16 is a timing chart showing the evening timing of the input / output signals of the reset control circuit 510 shown in FIG.
  • (a) shows the reset signal input to the reset control circuit 510
  • (b) shows the value of the reset determination flag 250
  • (c) shows the output of the reset control circuit 510.
  • This shows the individual SFR reset signal to be performed.
  • the reset judgment flag is set to 250 H level, Even if it is determined that the reset signal does not exist, the reset signal of the reset control circuit 510 remains at the “H” level even if the reset signal becomes “HI”. Not reset.
  • the reset control circuit 510 When the power is turned on, the reset control circuit 510 must send the SFR2 43 helicopter signal for SI0 before the CPU 210 executes step ST1504 in Fig. 15. However, the reset control circuit 510 performs signal processing with small-scale hardware consisting of two inverters and one gate, so the CPU 210 executes the step ST 1504. On the other hand, the reset control circuit 510 performs the signal transmission process sufficiently sooner than described above. According to the fourth embodiment, as described above, the reset signal becomes “L” except when the power is turned on.
  • the SFR 243 for SI ZO is configured so that it will not be reset by the reset control circuit 510 even when the level reaches the '' level, so even if the reset ⁇ signal becomes ⁇ S '' due to noise etc. SI0 SFR 243 is not reset and SIZ 233 does not require initialization There is an effect that the operation can be continued continuously thereafter. Embodiment 5.
  • FIG. 17 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 5 of the present invention.
  • the same parts as those shown in FIG. 13 are denoted by the same reference numerals, and overlapping description will be omitted.
  • the difference between Fig. 17 and Fig. 13 is that the individual SFR reset signal from the reset control circuit 510 is supplied to the timer SFR 245 instead of the SI S SFR 243.
  • the reset signal output from the reset IC 20 is the CPU 210, the reset control circuit 510, D—SFR 241 for A, SFR 242 for A—D, SFR 2 for SI ZO 4 3, supplied to SFR 2 4 4 for WDT Is Rukoto.
  • 600 indicates a single-chip microcomputer according to the fifth embodiment.
  • the 18th is a chart showing the operation of the reset processing of the CPU 210.
  • the same parts as those in FIG. 15 are denoted by the same reference numerals, and redundant description will be omitted.
  • FIG. 18 is different from FIG. 15 in steps S 1801 and step ST 1802. That is, the initial value of the timer SFR 245 is set in step ST1801, and the initial value of the SFR other than the timer SFR245 is set in step ST1802.
  • the timer control SFR 245 is not reset by the reset control circuit 510 even if the reset signal goes to “L” level except when the power is turned on. Therefore, even if the reset signal becomes “L” due to noise, etc., the SFR 245 for evening image is not reset, and the timer 235 does not need the initial setting operation, and then continuously. There is an effect that the operation can be continued.
  • FIG. 19 [] is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 6 of the present invention.
  • the same parts as those shown in FIG. 13 are denoted by the same reference numerals, and overlapping description will be omitted.
  • the difference between Fig. 19 and 13 is that the individual SFR reset signal from the reset control circuit 5 10 is supplied not to the SFR 2 4 3 for SI Z0 but to the 5 1 2 4 2 for 8 0
  • the reset signal output from the reset IC 20 is the CPU 210, the reset control circuit 510, the D-A SFR 2 41, the SI ZO SFR 2 43, and the WDT It is supplied to SFR 244 and SFR 245 for timer.
  • FIG. 19 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 6 of the present invention.
  • the same parts as those shown in FIG. 13 are denoted by the same reference numerals, and overlapping description will be omitted.
  • FIG. 20 is a flowchart showing the operation of the reset process of the CPU 210.
  • the same parts as those in FIG. 15 are denoted by an I-sign ⁇ , and redundant description is omitted.
  • FIG. 20 differs from FIG. 15 in steps ST2001 and step ST2002. That is, the initial value of the SFR 242 for A_D is set in step ST2001, and the initial value of the SFR other than the SFR224 for A-D is set in step ST2002.
  • FIG. 21 is a block diagram showing a configuration of a single-chip micro-computer according to a seventh embodiment of the present invention.
  • the same reference numerals are given to the same portions as those shown in the 13th paragraph, and the overlapping description is omitted.
  • the difference between Fig. 21 and Fig. 13 is that the individual SFR reset signal from the reset control circuit 510 is supplied to the D-A SFR 241 instead of the SI / 0 SFR 243
  • the reset signal output from reset IC 20 is CPU 210, reset control circuit 510, A—Dffl SFR 24, SIZO SFR 243, and WDT SFR It is supplied to SFR 245 for evening and ima.
  • reference numeral 800 denotes a single-chip microphone mouth computer according to the seventh embodiment.
  • FIG. 22 is a flowchart showing the operation of the reset process of the CPU 210. 15th [The same parts as in 3 ⁇ 41 are marked with the same symbols, and duplicate descriptions are omitted. You. FIG. 22 is different from FIG. 15 in steps ST2201 and ST2202. That is, the initial value of the SFR 241 for DA is set in step ST222, and the initial value of the SFR other than the SFR241 for DA is set in step ST222.
  • FIG. 23 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 8 of the present invention.
  • the same parts as those shown in FIG. 1 are denoted by the same reference numerals, and overlapping description will be omitted.
  • reference numeral 900 denotes a single-chip micro combination of the eighth embodiment
  • reference numeral 9100 denotes a reset signal output from the reset IC 20 and a CPU output from the WDT 234.
  • a reset control circuit that outputs the individual reset signal of the WDT SFR 244 from the WDT interrupt signal indicating that 210 is running away and the reset determination flag 250 .
  • the output of reset IC 20 is CPU 210, reset control circuit 910, SFR 2 41 for D-A, 5 2 4 2 for 8-0, SFR 2 4 3 for SI / 0, And Sima for evening life Supplied to SFR 245.
  • FIG. 24 is a circuit diagram showing a detailed configuration of the reset control circuit 910 of FIG. In FIG. 24, 911 and 912 indicate the evening, 913 indicates the NAND gate, and 914 indicates the AND gate. Inverter 9 1 The signals from the reset determination flag 250 and the reset ⁇ from the reset IC 20 are input to 1, 9 and 12, respectively. Note that the reset signal for hardware reset of the SFR 244 for WD II is output from the AND gate 914.
  • the WDT 234 sends an “H” level signal to the CPU 210 and reset control if it determines that the CPU 210 is operating normally. Output to circuit 910.
  • the input terminal on the side connected to the gate 914 of the AND gate 911 becomes “H” level, and the output signal of the AND gate 914 becomes the NAND gate. It becomes the same as the output signal of 9 13.
  • the WDT 234 detects a runaway of the CPU 210, it sends an “L” level WDT interrupt signal to the CPU 210 and the reset control circuit 910. Upon receiving this signal, the CPU 210 stops operating.
  • FIG. 25 is a flowchart showing the reset processing operation of the CPU 210.
  • the same parts as those in FIG. 15 are denoted by the same reference numerals, and duplicate description will be omitted.
  • FIG. 25 differs from FIG. 15 in steps ST 2 501 and step ST 2 502. That is, in step ST2501, the initial value of the WDT SFR 244 is set, and in step ST2502, the initial value of the SFR other than the WDT SFR 244 is set.
  • FIG. 26 is a timing chart showing the timing of the input / output signals of the reset control circuit 910 shown in FIG. 24 [3 ⁇ 4].
  • (: a;) is the reset signal input to the reset control circuit 910
  • (b) is the value of the reset determination flag 250
  • (c) is the output from the WDT 234.
  • (D) indicates a WDT SFR reset signal which is an output signal of the reset control circuit 910.
  • the SFR reset signal for WDT becomes “H”.
  • the WDT interrupt signal becomes “L” at time T 2
  • the WD / SFR reset signal becomes “L”. A hardware reset of WDT 234 is performed.
  • the output signal of the reset control circuit 910 is supplied only to the SFR 244 for WDT, but the reset signal from the reset IC 20 is also applied to other SFRs.
  • the signal may be supplied instead of the signal.
  • At least one of the reset ICs is provided in a part of the single-chip microcomputer. You may comprise. Industrial applicability
  • the present invention is applicable to, for example, a microcomputer used for controlling an electronic device.

Abstract

A microcomputer comprising a central processing unit for executing collective processings; a peripheral unit for executing predetermined operations; a hardware-resettable peripheral register for setting the operation of the peripheral unit; a first flag for storing information on whether or not the reset operation of the central processing unit by an external reset signal is the first since the power is on; and a reset control unit for delivering a register reset signal for hardware resetting of the peripheral register when the external reset signal is inputted under the state where the information stored in the first flag represents the first reset operation, and inhibiting the output of the register reset signal when the external reset signal is inputted under the state where the information stored in the first flag represents that the reset operation is not the first reset operation.

Description

明 細 書 リセッ ト制御機能を有するマイクロコンピュー夕 技術分野  Description Microcomputer with reset control function
この発明は、 例えば電子機器の制御等に用いられるマイクロコンピュ —夕にかかり、 特にマイクロコンピュー夕のリセッ 卜機能に関する。 背景技術  The present invention relates to a microcomputer used for controlling electronic devices, for example, and more particularly to a reset function of a microcomputer. Background art
従来からマイクロコンピュー夕などの半導体回路では電源投入後に c Conventionally, semiconductor circuits such as microcomputers have c
P Uおよび周辺機器を正常に動作させるために電源投入直後にリセッ ト がかかるようになつている。 A reset is applied immediately after the power is turned on to operate the PU and peripheral devices normally.
第 2 7図はこのような従来のマイクロコンピュータの構成を示すプロ ック図である。 同図において、 1 0はリセッ ト I C、 1 0 0はシングル チップマイクロコンピュータを示している。 シングノレチップマイクロコ ンビュー夕 1 0 0は、 統括的処理を行う C P U 1 1 0 と、 プログラムや データを格納するメモリ 1 2 0 と、 周辺機能部 1 3 0 と、 周辺機能部用 スペシャルファ ンク ショ ンレジス夕 (以下 S F Rと記す) 部 1 4 0 と、 リセッ 卜判定フラグ 1 5 0 と、 メモリ 1 2 0等の了 ドレスを指定するた めのア ドレスバス 1 6 0 と、 各部にデー夕を転送するためのデ一夕バス 1 7 0 とを有している。  FIG. 27 is a block diagram showing the configuration of such a conventional microcomputer. In the figure, reference numeral 10 denotes a reset IC, and 100 denotes a single-chip microcomputer. The Singnore chip microcontroller 100 has a CPU 110 for overall processing, a memory 120 for storing programs and data, a peripheral function section 130, and a special function for the peripheral function section. A section register (hereinafter referred to as SFR) section 140, a reset determination flag 150, an address bus 160 for specifying the end address of the memory 120, etc., and a data section for each section. And a bus 170 for transferring data.
メモリ 1 2 0は R AM I 2 1 と R OM 1 2 2 とを有している。 また周 辺機能部 1 3 0はディ ジタル信号をアナログ信号に変換して出力する D 一 A変換器 1 3 1 と、 アナログ信号を入力してディ ジタル信号に変換す る A— D変換器 1 3 2 と、 シリアルで外部機器と通信を行う シリアル I /0 (以下 S I /0と記す) 1 3 3 と、 C P U 1 1 0の暴走を検知して 暴走していると判断した場合に C P U 1 1 0をリセッ 卜させるウォッチ ドッグタイマ (以下 WD Tと記す) 1 3 4 と、 制御等に伴う計時動作を するタイマ 1 3 5 とを有している。 また、 S F R部 1 4 0は D— A用 S F R 1 4 1 と、 ー 0用 5 1 4 2 と、 S I / 0用 S F R 1 4 3 と、 WD T用 S F R 1 4 4と、 タイマ用 S F R 1 4 5 とを有する。 なお、 シ ングルチップマイクロコンピュー夕 1 0 0には電源 ¾圧 V C Cが印可さ れるようになっている。 The memory 120 has RAM I 21 and ROM 122. The peripheral function section 130 converts the digital signal into an analog signal and outputs it. The D-to-A converter 13 1 and the analog-to-digital converter 1 that inputs the analog signal and converts it into a digital signal. 3 2 and serial I / 0 (hereinafter referred to as SI / 0) that communicates with external devices in serial 1 3 3 and CPU 11 It has a watchdog timer (hereinafter referred to as WDT) 1334 that resets the CPU 110 when it is determined that a runaway has occurred, and a timer 135 that performs a timing operation for control and the like. . Also, the SFR section 140 is composed of the SFR 14 1 for D-A, the 5 1 4 2 for −0, the SFR 1 4 3 for SI / 0, the SFR 1 4 4 for WDT, and the SFR 1 4 for timer. 4 5. The single-chip microcomputer 100 is configured to receive the power supply undervoltage VCC.
次に動作について説明する。  Next, the operation will be described.
リセッ ト I C 1 0によつて電源電圧 V C Cが零から所定の電圧に立ち 上がるとその立ち上がりより も僅かに遅れてリセッ 卜俗 -が立ち上がる ようになつている。 この遅れにより リセッ 卜信号が供給されている C P U 1 1 0及び S F R部 1 4 0のハー ドウェアリセッ 卜が実行される。 す なわち、 電源が投入される毎に C P U 1 1 0及び S F R部 1 4 0のリセ ッ 卜が行われる。 その後 C P U 1 1 0のプログラムによって C P U 1 1 0内のレジスタの値及び S F R部 1 4 0のレジスタの値の初期設定の処 理が行われる。  When the power supply voltage V CC rises from zero to a predetermined voltage due to the reset IC 10, the reset voltage rises slightly later than the rise. Due to this delay, hardware reset of the CPU 110 and the SFR section 140 to which the reset signal is supplied is executed. That is, every time the power is turned on, the CPU 110 and the SFR section 140 are reset. After that, the CPU 110 performs initial setting processing of the register value in the CPU 110 and the register value of the SFR section 140 by the program of the CPU 110.
ところで、 電源はオフにならない場合であってもノイズ等によってリ セッ 卜 I C 1 0から出力されたリセッ ト信号が 「し」 レベルになる場合 がある。 このような事情を考慮して電源オン時とその他の場合を C P U By the way, even when the power is not turned off, the reset signal output from the reset IC 10 may be at the “low” level due to noise or the like. In consideration of such circumstances, when turning on the power and in other cases, C P U
1 1 0が見分けるためにリセッ ト判定フラグ 1 5 0が設けられている。 第 2 8図は C P U 1 1 0のリセッ ト処理の動作を示すフローチャー ト である。 同図に示すように C P U 1 1 0はリセッ 卜判定フラグ 1 5 0の 値を判定して (ステップ S T 2 8 0 1 ) 、 「L」 レベル、 すなわち、 リ セッ ト判定フラグ 1 5 0が立っていない場合には、 リセッ 卜判定フラグA reset determination flag 150 is provided to distinguish 110 from 110. FIG. 28 is a flowchart showing the operation of the reset processing of the CPU 110. As shown in the figure, the CPU 110 determines the value of the reset determination flag 150 (step ST2801), and sets the “L” level, that is, the reset determination flag 150, to ON. If not, reset judgment flag
1 5 0を 「H」 レベルにして (ステップ S T 2 8 0 2 :) 、 C P U 1 1 0 のレジス夕の初期値を設定する (ステップ S T 2 8 0 3 ) 。 その後、 S F R部 1 4 0の初期値を設定する (ステップ S T 2 8 0 4 ) 。 一方、 ス テツプ S T 2 8 0 1 でリセッ ト判定フラグ 1 5 0が立っているとき、 す なわち、 「H」 である時には、 電源のオン時ではないと認識してステツ プ S T 2 8 0 4に移行して S F R部 1 4 0の初期値を設定する。 Set 150 to the "H" level (step ST2802 :), and set the initial value of the CPU 110 register time (step ST2803). Then S Set the initial value of FR section 140 (step ST2804). On the other hand, when the reset determination flag 150 is set in step ST2801, that is, when it is "H", it is recognized that the power supply is not turned on, and step ST2801 is recognized. Move to 4 to set the initial value of SFR section 140.
このため、 電源電圧 V C Cが所定の電圧を保っている場合にリセッ 卜 信号が 「 L」 レベルになった場合には、 リセッ 卜判定フラグ 1 5 0が立 つているので、 C P U 1 1 0のレジスタの初期設定処理は行われない。 しかしながら、 S F R部 1 4 0はリセッ 卜されてしまう とハー ドウェア 的に一定の値にセッ 卜されてしまうので、 第 2 8図のフローチャー トに 示すように S F R部 1 4 0のリセッ 卜判定フラグ 1 5 0力、' 「 H」 、 「 L 」 にかかわらず、 シングルチップマイクロコンピュー夕 1 0 0のプログ ラムが必要とする初期設定の値にア ドレスバス 1 6 0、 データバス 1 7 0を介して設定し直さなければならず、 時間がかかり、 周辺機能部 1 3 0の動作が中断することになる。 このため、 ノイズ等により C P U 1 1 0にリセッ 卜がかかった場合に C P U 1 1 0がデータの初期化をしない ホッ トス夕一 トをしたと しても S F R部 1 4 0はリセッ 卜されて S F R 値の設定を行わなければならず、 周辺機能部 1 3 0の連続的動作ができ ないという問題があつた。  Therefore, if the reset signal goes to “L” level while the power supply voltage VCC is maintained at the predetermined voltage, the reset judgment flag 150 is set and the CPU 110 Is not performed. However, if the SFR section 140 is reset, it will be set to a constant value in terms of hardware. Therefore, as shown in the flowchart of FIG. 28, the reset judgment of the SFR section 140 is performed. Regardless of the flag 150, 'H' or 'L', the address bus 16 0 and the data bus 17 are set to the default values required by the single-chip microcomputer 110 program. The setting must be reset via 0, which takes time and interrupts the operation of the peripheral function unit 130. For this reason, if the CPU 110 is reset due to noise or the like, the SFR section 140 is reset even if the CPU 110 performs a hot-shut-down that does not initialize data. The SFR value must be set, and the peripheral function unit 130 cannot operate continuously.
本発明は以上の問題点を解消するために成されたものであり、 ¾源ォ ン後に リセッ ト信号にノィズ等が重畳された場合にも周辺機能部の動作 を継続することのできるマイクロコンピュー夕等のリセッ ト機能を有す る電子装置を提供することを目的とする。 発明の開示  The present invention has been made in order to solve the above problems, and a microcontroller capable of continuing the operation of a peripheral function unit even when noise or the like is superimposed on a reset signal after power-on. An object of the present invention is to provide an electronic device having a reset function such as a pu-y setting. Disclosure of the invention
請求の範囲第 1項記載の発明は、 リセッ 卜制御部をリセッ ト判定フラ グに格納されている情報が最初のリセッ 卜動作であることを示す場合に 外部リセッ 卜信号が入力されたときには周辺機能レジスタ部をハ ー ドウ エア的にリセッ トするレジス夕 リセッ ト信号を送出し、 リセッ 卜判定フ ラグに格納されている情報が最初のリセッ ト動作でないことを示す場合 に外部リセッ 卜信号が入力されたときにはレジスタ リセッ ト信号を送出 しないようにして周辺機能レジスタ部のリセッ ト制御を実行するように 構成したので、 ノイズなどにより、 リセッ ト信号が発生しても周辺機能 レジスタ部はリセッ 卜されず、 周辺機能部はその後連続して動作を継続 することができる効果がある。 The invention described in claim 1 is characterized in that the reset control unit determines whether or not the information stored in the reset determination flag indicates the first reset operation. When an external reset signal is input, a reset signal is sent to reset the peripheral function register in a hardware manner, and the information stored in the reset determination flag is not the first reset operation. When an external reset signal is input in such a case, the reset control of the peripheral function register is executed without sending the register reset signal, so the reset signal is generated due to noise etc. However, the peripheral function register section is not reset, and the peripheral function section has an effect that the operation can be continued continuously thereafter.
請求の範 [用第 2項記載の発明は、 周辺機能部がアナ口グ信 からディ ジ夕ル信号への変換を行う A— D変換器を含み、 周辺機能レジスタ部が A 一 D変換器の動作の設定のためのレジス夕を含むように構成したので 、 ノイズなどにより、 リセッ ト信号が発生しても周辺機能レジスタ部は リセッ 卜されず、 A— D変換器はその後連続して動作を継続することが できる効果がある。  The invention according to claim 2 includes a peripheral function unit including an AD converter for converting an analog signal to a digital signal, and a peripheral function register unit including an A-D converter. The peripheral function register is not reset even if a reset signal is generated due to noise or the like, and the A / D converter operates continuously thereafter. Has the effect of being able to continue.
請求の範囲第 3項記載の発明は、 周辺機能部がアナ口グ信号からディ ジ夕ル信号への変換を行う D - A変換器を含み、 周辺機能レジスタ部が D— A変換器の動作の設定のためのレジスタを含むように構成したので 、 ノイズなどにより、 リセッ ト信号が発生しても周辺機能レジスタ部は リセッ トされず、 D— A変換器はその後連続して動作を継続することが できる効果がある。  The invention according to claim 3 is characterized in that the peripheral function unit includes a DA converter for converting an analog signal to a digital signal, and the peripheral function register unit operates the DA converter. Configuration register is included, the peripheral function register is not reset even if a reset signal is generated due to noise, etc., and the DA converter continues to operate continuously thereafter There is an effect that can be.
請求の範囲第 4頃記載の発明は、 周辺機能部がアナログ信号からディ ジ夕ル信号への変換を行う シリアル入出力装置を含み、 周辺機能レジス 夕部がシリ アル入出力装置の動作の設定のためのレジスタを含むように 構成したので、 ノイズなどにより、 リセッ ト信号が発生しても周辺機能 レジスタ部はリセッ 卜されず、 シリアル入出力装置はその後連続して動 作を継続することができる効果がある。 請求の範囲第 5項記載の発明は、 周辺機能部がアナログ信号からディ ジタル信号への変換を行うタイマを含み、 周辺機能レジス夕部がタイマ の動作の設定のためのレジスタを含むように構成したので、 ノイズなど により、 リセッ 卜信号が発生しても周辺機能レジス夕部はリセッ 卜され ず、 タイマはその後連続して動作を継続することができる効果がある。 請求の範囲第 6项記載の発明は、 周辺機能部がアナログ信号からディ ジ夕ル信号への変換を行うウォッチ ドッグ夕イマを含み、 周辺機能レジ ス夕部がゥォッチ ドッグタイマの動作の設定のためのレジス夕を含むよ うに構成したので、 ノイズなどにより、 リゼッ ト信号が発生しても周辺 機能レジスタ部はリセッ 卜されず、 ウォッチ ドッグ夕イマはその後連続 して動作を継続することができる効果がある。 The invention described in claim 4 includes a serial input / output device in which the peripheral function unit converts an analog signal to a digital signal, and a peripheral function register in which the operation setting of the serial input / output device is performed. The peripheral function register section is not reset even if a reset signal is generated due to noise, etc., and the serial input / output device can continue to operate continuously thereafter. There is an effect that can be done. The invention described in claim 5 is configured such that the peripheral function unit includes a timer for converting an analog signal to a digital signal, and the peripheral function register unit includes a register for setting the operation of the timer. Therefore, even if a reset signal is generated due to noise or the like, the peripheral function register is not reset, and the timer can continue to operate continuously thereafter. The invention described in claim 6 includes a watchdog timer in which the peripheral function unit converts an analog signal into a digital signal, and a peripheral function register unit in which the setting of the operation of the watchdog timer is performed. The peripheral function register section is not reset even if a reset signal is generated due to noise or the like, and the watchdog timer can continue to operate continuously thereafter. effective.
請求の範囲第 7項記載の発明は、 ウォッチ ドッグタイマが暴走を示す 信号を出力した場合にはリセッ ト制御部はリセッ ト判定フラグに格納さ れている情報にかかわらずレジスタ リセッ 卜信号を送出して周辺機能レ ジス夕部のリセッ 卜制御を ¾行するように構成したので、 より安定性の ある リセッ 卜制御を行う ことができる効果がある。  According to the invention described in claim 7, when the watchdog timer outputs a signal indicating runaway, the reset control unit sends the register reset signal regardless of the information stored in the reset determination flag. Then, the reset control of the peripheral function register is performed, so that there is an effect that more stable reset control can be performed.
請求の範囲第 8項記載の発明は、 リ セッ 卜制御部がリ セッ トモ一 ドフ ラグにフラグ非依存モ一 ドを示す情報が格納されている場合に外部リセ ッ 卜信号が入力されたときには第 1 のフラグに格納されている情報にか かわらずレジスタリセッ 卜信号を周辺機能レジスタ部に送出するように 構成したので、 実行するプログラム等の性質によってモー ドを変えてよ り効率的なリセッ ト処理ができる効果がある。  The invention described in claim 8 is characterized in that the reset control unit receives the external reset signal when the information indicating the flag-independent mode is stored in the reset mode flag. Since the register reset signal is sent to the peripheral function register regardless of the information stored in the first flag, the mode can be changed depending on the nature of the program to be executed and the reset can be performed more efficiently. There is an effect that can be processed.
請求の範囲第 9項記載の発明は、 中央処理部に電源を供給する第 1 の 電源から生成された第 1 のリセッ ト信号と、 周辺機能部に電源を供給す る第 2の電源から生成された第 2のリセッ 卜信号との両方が入力された 場合のみ中央処理部のリセッ トを実行させる信号を中央処理部に送出す るように構成したので、 リセッ ト信号線にノィズが重畳された場合であ つても中央処理部がリセッ トされ難く なり、 中央処理部が安定に動作す る効果がある。 図面の簡単な説明 The invention described in claim 9 is characterized in that the first reset signal generated from the first power supply for supplying power to the central processing unit and the second reset signal generated for supplying power to the peripheral function unit are generated. A signal for executing the reset of the central processing unit is sent to the central processing unit only when both of the input second reset signal and the reset signal are input. With such a configuration, even when noise is superimposed on the reset signal line, it is difficult to reset the central processing unit, and there is an effect that the central processing unit operates stably. BRIEF DESCRIPTION OF THE FIGURES
第 1 図は本発明の実施の形態 1 のシングルチップマイクロコンピュー 夕の構成を示すブロッ ク図である。  FIG. 1 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 1 of the present invention.
第 2図は第 1 図に示すリセッ ト制御冋路の詳細な構成を示す回路図で ある。  FIG. 2 is a circuit diagram showing a detailed configuration of the reset control circuit shown in FIG.
第 3図は本発明の実施の形態 1 の C P Uのリセッ ト処理の動作を示す フローチヤ一 トである。  FIG. 3 is a flowchart showing the operation of the reset processing of the CPU according to the first embodiment of the present invention.
第 4図は第 2図に示すリセッ ト制御回路の入出力信号のタイ ミ ングを 示すタイ ミ ングチヤ一 卜である。  FIG. 4 is a timing chart showing timing of input / output signals of the reset control circuit shown in FIG.
第 5図は本発明の実施の形態 2のシングルチップマイクロコンビュー 夕の構成を示すブロック図である。  FIG. 5 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 2 of the present invention.
第 6図は図 5に示すリセッ 卜制御阆路の詳細な構成を示す回路図であ る。  FIG. 6 is a circuit diagram showing a detailed configuration of the reset control circuit shown in FIG.
第 7図は本発明の実施の形態 2の C P Uのリセッ ト処理の動作を示す フローチヤ一卜である。  FIG. 7 is a flowchart showing the operation of the reset processing of the CPU according to the second embodiment of the present invention.
第 8図は本発明の実施の形態 2において電源がォン状態にある時にリ セッ ト信号が 「 L」 になった場合の各部の信号のタイ ミ ングを示すタイ ミ ングチヤ一卜である。  FIG. 8 is a timing chart showing the timing of the signals of the respective units when the reset signal goes “L” when the power is on in the second embodiment of the present invention.
第 9図は本発明の実施の形態 3のシングルチップマイクロコンピュー 夕の構成を示すブロック ^である。  FIG. 9 is a block ^ showing the configuration of a single-chip microcomputer according to Embodiment 3 of the present invention.
第 1 0図は第 9図に示すリセッ ト制御回路の構成を示す回路図である 第 1 1 図は本発明の実施の形態 3の C P Uのリセッ 卜時の動作を示す フローチヤ一 卜である。 FIG. 10 is a circuit diagram showing the configuration of the reset control circuit shown in FIG. FIG. 11 is a flowchart showing an operation at the time of resetting the CPU according to the third embodiment of the present invention.
第 1 2図は本発明の実施の形態 3の各部の信号のタイ ミ ングを示す夕 ィ ミ ングチヤ一卜である。  FIG. 12 is an evening chart showing timings of signals of respective parts according to the third embodiment of the present invention.
第 1 3図は本発明の実施の形態 4のシングルチップマイクロコンピュ —夕の構成を示すプロッ ク図である。  FIG. 13 is a block diagram showing a configuration of a single-chip microcomputer according to the fourth embodiment of the present invention.
第 1 4図は第 1 3図のリセッ 卜制御回路の詳細な構成を示す回路図で ある。  FIG. 14 is a circuit diagram showing a detailed configuration of the reset control circuit of FIG.
第 1 5図は本発明の実施の形態 4の C P Uのリセッ 卜処理の動作を示 すフローチヤ一 卜である。  FIG. 15 is a flowchart showing the operation of the reset processing of the CPU according to the fourth embodiment of the present invention.
第 1 6図は第 1 4図に示すリセッ 卜制御回路の入出力信号のタイ ミ ン グを示すタイ ミ ングチヤ一 トである。  FIG. 16 is a timing chart showing the timing of the input / output signals of the reset control circuit shown in FIG.
第 1 7 Kは本発明の実施の形態 5のシングルチップマイク ロコンピュ —夕の構成を示すプロッ ク図である。  FIG. 17K is a block diagram illustrating a configuration of a single-chip microcomputer according to Embodiment 5 of the present invention.
第 1 8図は本発明の実施の形態 5の C P Uのリセッ 卜処理の動作を示 すフローチヤ一卜である。  FIG. 18 is a flowchart showing the operation of the reset processing of the CPU according to the fifth embodiment of the present invention.
第 1 9図は本発明の実施の形態 6のシングルチップマイク ロコンピュ —夕の構成を示すプロック図である。  FIG. 19 is a block diagram showing a configuration of a single-chip micro computer according to Embodiment 6 of the present invention.
第 2 0図は本発明の実施の形態 6の C P Uのリセッ 卜処理の動作を示 すフローチヤ一 トである。  FIG. 20 is a flowchart showing the operation of the reset process of the CPU according to the sixth embodiment of the present invention.
第 2 1 図は本発明の実施の形態 7のシングルチップマイクロコンピュ 一夕の構成を示すブロック図である。  FIG. 21 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 7 of the present invention.
第 2 2図は本発明の実施の形態 7の C P Uのリセッ 卜処理の動作を示 すフローチヤ一卜である。  FIG. 22 is a flowchart showing the operation of the reset process of the CPU according to the seventh embodiment of the present invention.
第 2 3図は本発明の実施の形態 8のシングルチップマイク ロコンピュ 一夕の構成を示すプロッ ク図である。 第 2 4図は第 2 3図に示すリセッ ト制御回路の詳細な構成を示す回路 図である。 FIG. 23 is a block diagram showing a configuration of a single-chip microcomputer according to an eighth embodiment of the present invention. FIG. 24 is a circuit diagram showing a detailed configuration of the reset control circuit shown in FIG.
第 2 5図は本発明の実施の形態 8の C P Uのリセッ 卜処理の動作を示 すフローチヤ一 トである。  FIG. 25 is a flowchart showing the operation of the reset process of the CPU according to the eighth embodiment of the present invention.
第 2 6図は第 2 4図に示すリセッ 卜制御回路の入出力信号のタイ ミ ン グを示すタイ ミ ングチヤ一 卜である。  FIG. 26 is a timing chart showing the timing of the input / output signals of the reset control circuit shown in FIG.
第 2 7図は従来のマイクロコ ンピュー夕の構成を示すプロック図であ る。  Fig. 27 is a block diagram showing the configuration of a conventional microcomputer.
第 2 8図は従来のマイクロコンピュータの C P Uのリセッ 卜処理の動 作を示すフローチヤ一卜である。 発明を実施するための最良の形態  FIG. 28 is a flowchart showing the operation of the reset processing of the CPU of the conventional microcomputer. BEST MODE FOR CARRYING OUT THE INVENTION
本発明の実施の形態を ¾面を参照しつつ、 詳細に説明する。  Embodiments of the present invention will be described in detail with reference to the drawings.
実施の形態 1 . Embodiment 1
第 1 図は本発明の実施の形態 1のシングルチップマイクロコンピュー 夕の構成を示すプロ ッ ク図である。 同冈において、 2 0はリセッ ト I C 、 2 0 0はシングルチップマイクロコンピュータを示している。 シング ルチップマイクロコンピュータ 2 0 0は、 統括的処理を行う C P U (中 央処理部) 2 1 0 と、 プログラムやデータを格納するメモリ 2 2 0 と、 周辺機能部 2 3 0 と、 周辺機能部 2 3 0川のスペシャルフ ァ ンク ショ ン レジス夕 (以下 S F Rと記す) の染合体である S F R部 (周辺機能レジ ス夕部) 2 4 0 と、 リセッ ト判定フラグ (第 1 のフラグ) 2 5 0 と、 メ モリ 2 2 0等のァ ドレスを指定するためのァ ドレスバス 2 6 0 と、 各部 にデータを転送するためのデータバス 2 7 0 とを有している。  FIG. 1 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 1 of the present invention. In the same figure, reference numeral 20 denotes a reset IC, and reference numeral 200 denotes a single-chip microcomputer. The single-chip microcomputer 200 has a central processing unit (CPU) 210 that performs overall processing, a memory 220 that stores programs and data, a peripheral function unit 230, and a peripheral function unit. 230 SFR part (peripheral function register part), which is a fusion of special function register evening (hereinafter referred to as SFR) on river 240, and reset judgment flag (first flag) 2 50, an address bus 260 for designating an address such as a memory 220, and a data bus 270 for transferring data to each section.
メモリ 2 2 0は R A M 2 2 1 と R O M 2 2 2 とを有している。 また周 辺機能部 2 3 0はディ ジ夕ル信 をアナログ信号に変換して出力する D — A変換器 2 3 1 と、 アナログ信号を入力してディ ジタル信号に変換す る A— D変換器 2 3 2 と、 シ リアルで外部機器と通信を行う シリアル I /0 (以下 S I /0と記す、 シリアル入出力装置) 2 3 3 と、 C P U 2 1 0の暴走を検知して暴走していると判断した場合に C P U 2 1 0をリ セッ トさせるウォッチ ドッグタイマ (以下 W D Tと記す) 2 3 4 と、 制 御等に伴う計時動作を実行するタイマ 2 3 5 とを有している。 また、 S F R部 2 4 0は D— A用 S F R 2 4 1 と、 A— D用 S F R 2 4 2 と、 S I ZO用 S F R 2 4 3 と、 WD T用 S F R 2 4 4 と、 タイマ用 S F R 2 4 5 とを有する。 なお、 シングルチップマイクロコンピュー夕 2 0 0に は電源電圧 V C Cが印加されるようになっている。 The memory 220 has a RAM 222 and a ROM 222. The peripheral function section 230 converts the digital signal into an analog signal and outputs it. — A converter 2 31 and an analog signal that converts an analog signal to a digital signal A — D converter 2 32 and communicates with external devices serially I / 0 (hereafter SI / 0) A serial I / O device) 2 3 3 and a watchdog timer (hereinafter abbreviated as WDT) that resets CPU 210 when it detects runaway of CPU 210 and determines that it is running away. 2 and a timer 235 for executing a timekeeping operation for control and the like. The SFR section 240 is composed of the SFR 241 for D-A, the SFR 242 for A-D, the SFR 243 for SI ZO, the SFR 244 for WDT, and the SFR 244 for the timer. 4 5. The power supply voltage VCC is applied to the single-chip microcomputer 200.
さらに、 シングルチップマイ クロコンピュータ 2 0 0はリセッ ト制御 回路 (リセッ ト制御部) 2 8 0を有している。 そしてリセッ ト I C 2 0 からのリセッ ト信号は直接 C P U 2 1 0 とリセッ 卜制御回路 2 8 0に入 力されるように構成されている。 またリセッ ト制御回路 2 8 0にはリセ ッ ト判定フラグ 2 5 0のフラグの値が入力されるように構成されている 第 2図は第 1 図のリセッ 卜制御回路 2 8 0の詳細な構成を示す回路図 である。 同図に示すようにリセッ 卜制御回路 2 8 0はイ ンバータ 2 8 1 , 2 8 2、 ナン ドゲ一 卜 2 8 3から構成されている。  Further, the single-chip microcomputer 200 has a reset control circuit (reset control unit) 280. Then, the reset signal from the reset IC 20 is directly input to the CPU 210 and the reset control circuit 280. The reset control circuit 280 is configured so that the value of the reset determination flag 250 is input to the reset control circuit 280. FIG. 2 is a detailed diagram of the reset control circuit 280 in FIG. FIG. 3 is a circuit diagram showing a configuration. As shown in the figure, the reset control circuit 280 is composed of inverters 281, 282 and a NAND gate 283.
次に動作について説明する。  Next, the operation will be described.
電源が投入されたときはリセッ ト I C 2 0からのリセッ ト信号は C P U 2 1 0 とリセッ ト制御回路 2 8 0に入力される。 C P U 2 1 0はリセ ッ 卜され、 後述する リセッ トプログラムが実行される。 電源投入時はリ セッ ト判定フラグ 2 5 0は 「 L」 であり、 リセッ ト信号は 「し」 である からナン ドゲー ト 2 8 3の出力は 「 L」 となる。 このため、 リセッ ト制 御回路 2 8 0は 「 L」 レベルの信号を出力して、 S F R部 2 4 0はハー ドウエア的にリセッ 卜される。 When the power is turned on, the reset signal from the reset IC 20 is input to the CPU 210 and the reset control circuit 280. The CPU 210 is reset, and a reset program described later is executed. When the power is turned on, the reset determination flag 250 is “L” and the reset signal is “Si”, so the output of the NAND gate 283 is “L”. For this reason, the reset control circuit 280 outputs an “L” level signal, and the SFR section 240 Reset as hardware.
第 3図は C P U 2 1 0のリセッ 卜処理の動作を すフローチヤ一 卜で ある。 同図に示すように、 まず、 リセッ ト判定フラグ 2 5 0の値が 「L 」 である場合には (ステップ S T 3 0 1 ) 、 電源投入時のリセッ ト と判 断してリセッ ト判定フラグ 2 5 0を 「 H」 にセッ ト して (ステップ S T 3 0 2 ) 、 C P U 2 1 0のレジスタの初期設定が行われ (ステップ S T 3 0 3 ) 、 引き続いて S F R部 2 4 0の S F R値の初期設定が行われる (ステップ S T 3 0 4 ) 。 一方、 ステップ S T 3 0 1でリセッ ト判定フ ラグ 2 5 0力 「 H」 の場合には C P U 2 1 0はホッ トス夕一 ト と判断し て S F R部 2 4 0及び C P U 2 1 0のレジスタ等の値の初期設定動作は 行わずにリセッ ト処理を終了する。  FIG. 3 is a flowchart showing the reset processing operation of the CPU 210. As shown in the figure, first, when the value of the reset determination flag 250 is “L” (step ST 301), the reset determination flag is determined as a power-on reset. Setting 250 to “H” (step ST302), the CPU 210 registers are initialized (step ST303), and then the SFR value of the SFR section 240 is set. Is initialized (step ST304). On the other hand, if the reset judgment flag 250 is set to “H” in step ST301, the CPU 210 judges that it is a hot start, and the registers of the SFR section 240 and the CPU 210 The reset processing ends without performing the initial setting operation of the values such as.
第 4冈は第 2図に示すリセッ 卜制御回路 2 8 0の入出力信号のタイ ミ ングを示すタイ ミ ングチャー トである。 同図において ( a ) はリセッ ト 制御回路 2 8 0に入力される リセッ 卜信号、 ( b はリセッ 卜判定フラ グ 2 5 0の値、 ( c ) はリセッ ト制御回路 2 8 0の出力 f 号を示してい る。 同図に示すように、 リセッ ト判定フラグ 2 5 0力 「H」 レベルにセ ッ 卜されている場合には、 1 源投入時ではないと判断してリセッ ト^号 が 「 L」 になったと してもリセッ ト制御冋路 2 8 0の出力信号は 「H」 レベルのままである。 このため、 S F R部 2 4 0はハー ドウェア的にリ セッ 卜されない。  FIG. 4 is a timing chart showing the timing of the input / output signals of the reset control circuit 280 shown in FIG. In the figure, (a) is the reset signal input to the reset control circuit 280, (b is the value of the reset determination flag 250, and (c) is the output f of the reset control circuit 280. As shown in the figure, when the reset judgment flag 250 is set to the “H” level, it is judged that it is not at the time of turning on the 1 power source and reset ^ signal Even if the signal becomes “L”, the output signal of the reset control circuit 280 remains at the “H” level, so that the SFR section 240 is not reset in hardware.
なお、 電源投入時に C P U 2 1 0が第 3図のステップ S T 3 0 3を実 行するよりも先にリセッ ト制御回路 2 8 0が S F R部 2 4 0ヘリセッ ト 信号を送る必要があるがリセッ 卜制御回路 2 8 0は 2つのイ ンバ一夕と 1つのゲー 卜からなる小規模のハ ー ドウエアで信号処理をしているので C P U 2 1 0がステップ S T 3 0 3を実行するのに対して、 リセッ ト制 御回路 2 8 0の信号送出処理の方が十分に早く行われる。 以上説明したように実施の形態 1 によれば、 電源投入時以外にリセッ ト信号が 「 L」 レベルになつてもリセッ ト制御回路 2 8 0によって S F R部 2 4 0はリセッ 卜されないように構成されているので、 ノィズなど により、 リセッ ト信号が 「し」 になっても S F R部 2 4 0はリセッ 卜さ れず、 周辺機能部 2 3 0はその後連続して動作を継続することができる 効果がある。 実施の形態 2 . Note that the reset control circuit 280 needs to send the SFR section 240 helicopter signal before the CPU 210 executes step ST303 in Fig. 3 when the power is turned on. Since the CPU control circuit 280 performs signal processing with small-scale hardware consisting of two inverters and one gate, the CPU 210 executes the step ST303 while the CPU 210 executes the step ST303. Thus, the signal transmission processing of the reset control circuit 280 is performed sufficiently earlier. As described above, according to the first embodiment, the SFR section 240 is not reset by the reset control circuit 280 even when the reset signal goes to the “L” level except when the power is turned on. The SFR section 240 is not reset even if the reset signal becomes “no” due to noise, etc., and the peripheral function section 230 can continue to operate continuously thereafter. There is. Embodiment 2
第 5図は本発明の実施の形態 2のシングルチップマイクロコンピュー 夕の構成を示すプロ ック図である。 第 1 図に示す部分と同一部分には同 一符号を付し、 重複する説明は省略する。 同図において、 3 0 0はシン グルチップマイクロコンピュータ、 3 1 0はリセッ トのモ一 ドを設定す るためのリセッ トモー ドフラグ (第 2のフラグ) 、 3 2 0はリセッ 卜 I C 2 0から出力されるリセッ 卜信号とリセッ 卜判定フラグ 2 5 0の値と リセッ 卜モー ドフラグ 3 1 0 とに基づいて S F R部 2 4 0にリセッ 卜信 号を供給する リセッ ト制御回路を示している。  FIG. 5 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 2 of the present invention. The same parts as those shown in FIG. 1 are denoted by the same reference numerals, and overlapping description will be omitted. In the figure, reference numeral 300 denotes a single-chip microcomputer, 310 denotes a reset mode flag (second flag) for setting a reset mode, and 320 denotes a reset IC 20. The reset control circuit supplies a reset signal to the SFR section 240 based on the output reset signal, the value of the reset determination flag 250 and the reset mode flag 310.
第 6図はリセッ ト制御回路 3 2 0の詳細な構成を示す回路図である。 同図において、 3 2 1, 3 2 2はイ ンバー夕、 3 2 3はオアゲ一 卜、 3 2 4はナン ドゲー トをそれぞれ示している。  FIG. 6 is a circuit diagram showing a detailed configuration of the reset control circuit 320. In the figure, 3221 and 3222 indicate the evening, 3223 indicates the age, and 3224 indicates the NAND gate, respectively.
次に動作について説明する。  Next, the operation will be described.
まず、 ユーザはリセッ トモ一 ドフラグ 3 1 0の値を C P U 2 1 0のプ ログラムにより設定する。 リセッ ト判定フラグ 2 5 0に依存しないで入 力される リセッ ト信号によって S F R部 2 4 0をリセッ 卜するフラグ非 依存モー ドを選択する場合にはリセッ トモ一 ドフラグ 3 1 0を 「 H」 に セッ 卜する。 一方、 上述した実施の形態 1 と同様にリセッ 卜判定フラグ 2 5 0 とリセッ 卜信号に基づいて S F R部 2 4 0をリセッ 卜するフラグ 依存モー ドを選択する場合にはリセッ トモ一 ドフラグ 3 1 0を 「 L」 に する。 第 6図に示すように、 リセッ トモ一 ドフラグ 3 1 0力 「 H」 の場 合にはオアゲー ト 3 2 3の出力は常に 「H」 になりナン ドゲ一 卜 3 2 4 からはリセッ ト信号と同じ信号が S F R リセッ 卜佶 として出力される 。 一方、 リセッ トモー ドフラグ 3 1 0に 「し」 レベルの信号がセッ トさ れている場合には、 オアゲ一 卜 3 2 3の出力信号はィ ンバ一夕 3 2 1 の 出力信号と同じになり、 実施の形態 1で説明した動作と同じ動作をする 第 7図は C P U 2 1 0のリセッ 卜処理の動作を示すフローチャー トで ある。 まず、 リセッ トされるとステップ S T 7 0 1でリセッ ト判定フラ グ 2 5 0力、' 「 L」 の場合、 (ステップ S T 7 0 1 ) 、 電源投入時のリセ ッ 卜と判断してリセッ 卜判定フラグ 2 5 0を 「H」 にセッ 卜 して (ステ ップ S T 7 0 2 ) 、 C P U 2 1 0のレジスタの初期設定が行われ (ステ ップ S T 7 0 3 ) 、 引き続いて S F R部 2 4 0の S F R値の初期設定が 行われる (ステップ S T 7 0 4 ) 。 一方、 ステップ S T 7 0 1でリセッ ト判定フラグ 2 5 0力く 「 H」 である場合には、 リセッ トモ一 ドフラグ 3 1 0が参照され (ステップ S T 7 0 5 ) 、 フラグ依 モー ドを示す場合 にはステップ S T 7 0 4 に移行し、 フラグ非依存モー ドを示す場合には そのまま リセッ ト処现を終了する。 First, the user sets the value of the reset mode flag 310 by the CPU 210 program. To select the flag-independent mode that resets the SFR block 240 by a reset signal that is input independently of the reset determination flag 250, set the reset mode flag 310 to “H”. Set to On the other hand, similarly to the first embodiment described above, a reset determination flag 250 and a flag for resetting the SFR section 240 based on the reset signal are set. To select the dependent mode, set the reset mode flag 310 to “L”. As shown in Fig. 6, when the reset mode flag 310 is set to "H", the output of OR gate 3 23 is always set to "H" and the reset signal is output from the NAND gate 3 2 4 The same signal as is output as SFR reset signal. On the other hand, when the “low” level signal is set in the reset mode flag 310, the output signal of the output 32 3 becomes the same as the output signal of the inverter 3 2 1. FIG. 7 shows the same operation as that described in the first embodiment. FIG. 7 is a flowchart showing the operation of the reset process of CPU 210. First, when reset, the reset judgment flag 250 is output in step ST701, and if it is “L” (step ST701), it is determined that the power is turned on and reset. The CPU 250 sets the CPU determination flag 250 to “H” (step ST 702), initializes the registers of the CPU 210 (step ST 703), and subsequently sets the SFR Initial setting of the SFR value of the section 240 is performed (step ST704). On the other hand, if the reset determination flag 250 is still "H" at step ST701, the reset mode flag 310 is referred to (step ST705), indicating the flag-dependent mode. In this case, the process proceeds to step ST704, and if the flag-independent mode is indicated, the reset processing is terminated as it is.
すなわち、 C P U 2 1 0は電源投入の際にはリセッ 卜処理として C P U 2 1 0のレジス夕及び S F R部 2 4 0の初期侦の設定を行い、 電源が ォンの状態にある場合に、 通常モー ドであるときは S F R部 2 4 0の初 期値を設定し、 フラグ非依存モー ドであるときにはそのまま リセッ 卜処 理を終了することになる。  That is, the CPU 210 performs the reset processing of the CPU 210 and the initial setting of the SFR section 240 as reset processing when the power is turned on. In the mode, the initial value of the SFR section 240 is set, and in the flag-independent mode, the reset processing is terminated as it is.
第 8図は電源がォン状態にある時にリセッ ト信号が 「し」 になった場 合の各部の信号のタイ ミ ングを示すタイ ミ ングチヤ一 卜である。 同図に おいて、 ( a ) はリセッ ト制御回路 3 2 0に入力される リセッ ト信号、 ( b ) はリセッ ト判定フラグ 2 5 0の値、 ( c ) はリセッ トモ一 ドフラ グ 3 1 0の値、 ( d ,) はリセッ 卜制御回路 3 2 0の出力信号である S F R リセッ ト信号を示している。 同図の時刻 T 1に示すようにリセッ トモ — ドフラグ 3 1 0に 「H」 レベルの信号が格納されている場合には、 リ セッ ト信号が 「し」 になっても リセッ 卜判定フラグ 2 5 0の値が 「 H」 であれば S F R リセッ ト信号は 「 H」 であり、 S F R部 2 4 0にはハ ー ドウエア的なリセッ 卜はかからない。 一方、 時刻 T 2に^すようにリセ ッ トモ一 ドフラグ 3 1 0力 「 L」 の場合、 すなわち、 フラグ非依存モー ドの場合には S F R リセッ ト信号は入力される リセッ 卜信号と同じ信号 となり、 リセッ 卜信号が 「 L」 になれば S F R部 2 4 0がハ ー ドウエア 的にリセッ 卜される。 FIG. 8 is a timing chart showing the timing of the signal of each part when the reset signal becomes “OFF” when the power is on. In the figure (A) is the reset signal input to the reset control circuit 320, (b) is the value of the reset determination flag 250, and (c) is the value of the reset mode flag 310. , (D,) indicate the SFR reset signal which is the output signal of the reset control circuit 320. If a “H” level signal is stored in the reset mode flag 310 as shown at time T 1 in the figure, the reset determination flag 2 will be output even if the reset signal becomes “HI”. If the value of 50 is “H”, the SFR reset signal is “H”, and no hardware reset is applied to the SFR section 240. On the other hand, when the reset mode flag 310 is set to “L” as shown at time T 2, that is, in the flag-independent mode, the SFR reset signal is the same as the input reset signal. When the reset signal becomes “L”, the SFR 240 is reset in hardware.
以上説明したように実施の形態 2によれば、 リセッ トモー ドフラグ 3 1 0を設けてこのフラグの値により、 リセッ 卜判定フラグ 2 5 0の値に よらないフラグ非依存モー ドと、 リセッ 卜判定フラグ 2 5 0 に依存する フラグ依存モ一 ドとを切り換えて S F R部 2 4 0のリセッ トをすること ができる。 このため、 実行するプログラム等の性質によってモー ドを変 えてより効率的なリセッ 卜処理ができる効果がある。 実施の形態 3 .  As described above, according to the second embodiment, the reset mode flag 310 is provided, and the value of this flag is used to determine the flag independent mode that does not depend on the value of the reset determination flag 250 and the reset determination. The SFR section 240 can be reset by switching to the flag-dependent mode depending on the flag 250. For this reason, there is an effect that the mode can be changed depending on the property of the program to be executed and more efficient reset processing can be performed. Embodiment 3.
第 9図は本発明の実施の形態 3のシングルチップマイクロコンピュー 夕の構成を示すプロック図である。 第 1 図に示す部分と同一部分には同 一符号を付し、 重複する説明は省略する。 なお、 この実施の形態 3では 周辺機能部 2 3 0 、 S F R部 2 4 0、 及びリセッ ト I C 2 0には電源と して 3ボルトの V C C 3 (第 2の電源) が供給され、 C P U 2 1 0には 電源として 5ボルトの V C C 5 (第 1 の電源) が供給される。 第 9 (¾に おいて、 2 1 はリセッ ト I Cを示しており、 V C C 5が入力されている 。 なおリセッ ト I C 2 0 と リセッ ト I C 2 1 の出力信号は V C C 5 , V C C 3の立ち上がりに対して S F R部 2 4 0、 C P U 2 1 0をリセッ 卜 するのに十分遅い立ち上がり となるように構成されている。 4 0 0はこ の実施の形態 3のシングルチップマイク ロコンピュー夕、 4 1 0はリセ ッ 卜 I C 2 0から出力される リセッ 卜信号とリセッ 卜 I C 2 1から出力 される リセッ 卜信号とから C P U 2 1 0をリセッ 卜するための C P U リ セッ 卜信号を出力する リセッ 卜制御回路を示している。 FIG. 9 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 3 of the present invention. The same parts as those shown in FIG. 1 are denoted by the same reference numerals, and overlapping description will be omitted. In the third embodiment, the peripheral function unit 230, the SFR unit 240, and the reset IC 20 are supplied with 3 volts VCC 3 (second power supply) as a power supply. 10 is powered by 5 volts VCC 5 (the first power supply). 9th (Puni Here, 21 indicates a reset IC, and VCC 5 is input. Note that the output signals of reset IC 20 and reset IC 21 are configured so that the rise of VCC 5 and VCC 3 is slow enough to reset the SFR section 240 and CPU 210. Have been. 400 is a single-chip microcomputer of the third embodiment, and 410 is a CPU based on a reset signal output from the reset IC 20 and a reset signal output from the reset IC 21. The figure shows a reset control circuit that outputs a CPU reset signal for resetting 210.
第 1 0図は第 9図に示すリセッ ト制御回路 4 1 0の構成を示す冋路図 である。 同図に示すように、 リセッ 卜制御 Id路 4 1 0はオアゲ一 卜 4 1 1から構成されている。 このオアゲー ト 4 1 1 の入力にはリセッ ト I C 2 0の出力と リセッ ト I C 2 1 の出力が入力され、 これらの信号の論理 和がとられて C P U リセッ 卜信 として C P U 2 1 0に供給されている 。 また、 リセッ ト I C 2 0からのリセッ ト信号は S F R部 2 4 0にも供 給されている。  FIG. 10 is a circuit diagram showing the configuration of the reset control circuit 410 shown in FIG. As shown in the figure, the reset control Id path 410 is composed of an orifice 411. The output of the reset IC 20 and the output of the reset IC 21 are input to the input of the OR gate 411, and the logical sum of these signals is calculated and supplied to the CPU 210 as a CPU reset signal. Has been. Further, the reset signal from the reset IC 20 is also supplied to the SFR section 240.
次に動作について説明する。  Next, the operation will be described.
まず、 電源投入時には V C C 5および V C C 3は同時に立ち上がる。 このとき リセッ 卜 I C 2 0、 リセッ 卜 I C 2 1力、らの出力はリセッ ト制 御回路 4 1 0に入力されて、 これら 2つの信号の論理和がとられて C P U 2 1 0に C P U リセッ ト信号として供給される。 このため、 電源投入 時には C P U 2 1 0はリセッ 卜されることになる。 C P U 2 1 0のリセ ッ トされた後の処理は後に詳述する。 また、 リセッ ト I C 2 0から出力 されたリセッ 卜信号は S F R部 2 4 0にも供給され、 ハ一 ドウエア的に リセッ 卜される。  First, at power-on, V CC 5 and V CC 3 rise simultaneously. At this time, the outputs of the reset IC 20 and the reset IC 21 are input to the reset control circuit 410, the logical sum of these two signals is obtained, and the CPU 210 resets the CPU. Supplied as a signal. Therefore, when power is turned on, CPU 210 is reset. The processing after the CPU 210 is reset will be described later in detail. Further, the reset signal output from the reset IC 20 is also supplied to the SFR section 240 and is reset in hardware.
なお、 電源がオンの状態のときはオアゲー ト 4 1 1で論理和がとられ ているのでどちらかのリセッ 卜信号にノィズ等が重畳したとしても片方 の信号のみが 「 L」 レベルになつた場合にはリセッ ト しないようにして いる。 When the power is on, the logical sum is obtained by OR gate 411. Therefore, even if noise or the like is superimposed on either reset signal, When only the signal of “L” becomes “L” level, it is not reset.
第 1 1図は C P U 2 1 0のリセッ 卜時の動作を示すフローチヤ一 卜で ある。 同図に示すように、 まず、 リセッ トされるとリセッ ト判定フラグ 2 5 0力く 「 L」 の場合 (ステップ S T 1 1 0 1 ) 、 電源投入時のリセッ 卜 と判断してリセッ 卜判定フラグ 2 5 0を 「 H」 にセッ 卜 して (ステッ プ S T 1 1 0 2 ) 、 C P U 2 1 0のレジス夕の初期設定が行われる 〔ス テツプ S T 1 1 0 3 ) 。 引き続いて S F R部 2 4 0の S F R値の初期設 定が行われる (ステップ S T 1 1 0 4 ) 。 一方、 ステップ S T 1 1 0 1 でリセッ ト判定フラグ 2 5 0力 「 H」 である場合にはステップ S T 1 1 0 4に移行して S F R部 2 4 0の初期値を設定する。  FIG. 11 is a flowchart showing the operation when the CPU 210 is reset. As shown in the figure, first, when reset is performed, the reset determination flag 250 is set to “L” (step ST 1101). The flag 250 is set to "H" (step ST1102), and the initial setting of the CPU 210 register is performed (step ST1103). Subsequently, the initial setting of the SFR value of the SFR section 240 is performed (step ST1104). On the other hand, if the reset determination flag 250 is "H" at step ST1101, the process proceeds to step ST1104 to set the initial value of the SFR section 240.
第 1 2図はこの実施の形態 3の各部の信号のタイ ミ ングを示すタイ ミ ングチャー トである。 同図において、 ( a ) は V C C 5、 ( b ) は V C C 3、 〔 c ) はリセッ ト I C 2 0からのリセッ ト信号、 ( d ) は C P U 2 1 0に供給される C P Uリセッ 卜信号、 ( e ) はリセッ ト判定フラグ 2 5 0の値を示している。 同図に示すように時刻 T 1では V C C 3は 「 L」 レベルになっているものの、 V C C 5は 「H」 レベルのままである 。 このため、 リセッ ト制御回路 4 1 0からは C P U 2 1 0には 「 L」 レ ベルのリセッ ト信号は供給されずに C P U 2 1 0はリセッ 卜されない。 —方、 時刻 T 2では V C C 5 と V C C 3 とが同時に 「L」 レベルになつ ているのでリセッ ト制御回路 4 1 0は 「し」 レベルの C P Uリセッ 卜信 号を出力する。 このとき C P U 2 1 0はリセッ ト判定フラグ 2 5 0を参 照して、 「H」 レベルである力、 「L」 レベルであるかによって第 1 1図 に示すリセッ 卜処理を実行する。  FIG. 12 is a timing chart showing timings of signals of respective parts according to the third embodiment. In the figure, (a) is VCC 5, (b) is VCC 3, (c) is the reset signal from reset IC 20, (d) is the CPU reset signal supplied to CPU 210, (E) shows the value of the reset determination flag 250. As shown in the figure, at time T1, V CC 3 is at the “L” level, but V CC 5 remains at the “H” level. Therefore, the reset signal of the “L” level is not supplied to the CPU 210 from the reset control circuit 410, and the CPU 210 is not reset. On the other hand, at time T2, since V CC 5 and V CC 3 are simultaneously at the “L” level, the reset control circuit 410 outputs the “P” reset signal at the “L” level. At this time, the CPU 210 refers to the reset determination flag 250 and executes the reset processing shown in FIG. 11 depending on whether the force is at the “H” level or the “L” level.
以上説明したように実施の形態 3によれば、 リセッ 卜制御回路 4 1 0 が V C C 3から生成される リセッ 卜信号と V C C 5から生成される リセ ッ 卜信号との論理和から C P Uリセッ 卜 ίι?号を生成しているのでリセッ ト I C 2 0, 2 1の出力等にノィズが重畳された場合であっても C P U 2 1 0がリセッ トされ難くなり、 C P U 2 1 0が安定に動作する効果が め 。 実施の形態 4. As described above, according to the third embodiment, the reset control circuit 410 resets the reset signal generated from VCC3 and the reset signal generated from VCC5. Since the CPU reset signal is generated from the logical sum with the reset signal, the CPU 210 is reset even if noise is superimposed on the output of the reset ICs 20 and 21. This makes it difficult for the CPU 210 to operate stably. Embodiment 4.
第 1 3図は本発明の実施の形態 4のシングルチッブマイクロコンピュ —夕の構成を示すブロ ック図である。 第 1図に示す部分と同一部分には 同一符号を付し、 重複する説明は省略する。 第 1 3図において、 5 0 0 はこの実施の形態 4のシングルチップマイクロコンピュー夕、 5 1 0は S I ZO用 S F R 2 4 3をリセッ 卜するための個別 S F Rリセッ 卜信号 を生成する リセッ ト制御回路を示している。 なお、 リセッ ト I C 2 0の 出力は C P U 2 1 0、 リセッ ト制御回路 5 1 0、 D - A|ff S F R 2 4 1 、 A— Dffl S F R 2 4 2、 WD Tffl S F R 2 4 4、 及びタイマ ffl S F R 2 4 5に供袷されている。 S I ZOffl S F R 2 4 3 としてパリティ、 同 期型、 送信バッファ レジスタ、 ス ト ップビッ 卜の設^用のレジスタ等が 含まれる。  FIG. 13 is a block diagram showing a configuration of a single-chip microcomputer of Embodiment 4 of the present invention. The same parts as those shown in FIG. 1 are denoted by the same reference numerals, and overlapping description will be omitted. In FIG. 13, reference numeral 500 denotes a single-chip microcomputer according to the fourth embodiment, and reference numeral 501 denotes a reset for generating an individual SFR reset signal for resetting the SFR 243 for SIZO. 3 shows a control circuit. The output of reset IC 20 is CPU 210, reset control circuit 510, D-A | ff SFR 241, A-Dffl SFR 24, WD Tffl SFR 24, and timer ffl It is lined up with SFR 245. S IZOffl S F F 243 includes parity, synchronization type, transmission buffer register, register for setting stop bit, and the like.
第 1 4図は第 1 3図のリセッ 卜制御回路 5 1 0の詳細な構成を示す回 路図である。 第 1 4図において、 5 1 1, 5 1 2はイ ンバ一夕、 5 1 3 はナン ドゲー トを示している。 イ ンバー夕 5 1 2 , 5 1 1にはそれぞれ リセッ ト判定フラグ 2 5 0力、らの信号、 リセッ 卜 I C 2 0力ヽらのリセッ ト信号が入力される。  FIG. 14 is a circuit diagram showing a detailed configuration of the reset control circuit 5110 of FIG. In Fig. 14, 511 and 512 indicate overnight and 513 indicates a NAND gate. The reset signals of the reset determination flag 250 and the reset signal and the reset signal of the reset IC 210 are input to the inverters 512 and 511, respectively.
次に動作について説明する。  Next, the operation will be described.
電源が投入されたときはリセッ ト I C 2 0からのリセッ ト信号はリセ ッ ト制御回路 5 1 0、 D— A用 S F R 2 4 1、 A— D用 S F R 2 4 2、 WD Tffl S F R 2 4 4、 及びタイマ用 S F R 2 4 5に供給されてハー ド ウェア的にリセッ 卜される。 一方、 C P U 2 1 0はリセッ 卜 I C 2 0か らのリセッ 卜 β号が入力されると後述する リセッ ト動作を実行する。 一 方、 リセッ ト I C 2 0からのリセッ ト 1,†号はリセッ ト制御回路 5 1 0に 入力される。 電源投入時はリセッ ト判定フラグ 2 5 0は 「L」 であり、 リセッ 卜信号は 「 L」 であるからリセッ ト制御回路 5 1 0のナン ドゲー ト 5 1 3の出力は 「 L」 となる。 このため、 リセッ ト制御回路 5 1 0は 「 L」 レベルの信号を出力して S I ノ0用 S F R 2 4 3はハー ドウェア 的にリセッ 卜される。 When the power is turned on, the reset signal from reset IC 20 is reset control circuit 510, D—A SFR 241, A—D SFR 2 42, WD Tffl SFR 24 Supplied to SFR 2 4 5 for timer and timer Reset as wear. On the other hand, when the reset signal β is input from the reset IC 20, the CPU 210 executes a reset operation described later. On the other hand, resets 1 and † from the reset IC 20 are input to the reset control circuit 510. When the power is turned on, the reset judgment flag 250 is “L” and the reset signal is “L”, so the output of the NAND gate 5 13 of the reset control circuit 51 is “L”. . For this reason, the reset control circuit 510 outputs an “L” level signal, and the SFR 243 for SI0 is reset in hardware.
第 1 5図は C P U 2 1 0のリセッ 卜処理の動作を示すフローチャー 卜 である。 同図に示すように、 まず、 リセッ ト判定フラグ 2 5 0の値が 「 L」 である場合には (ステップ S T 1 5 0 1 ) 、 電源投入時のリセッ ト と判断してリセッ 卜判定フラグ 2 5 0を 「H」 にセッ 卜 して (ステップ S T 1 5 0 2 :) 、 C P U 2 1 0のレジス夕等の初期設定 (ステップ S T 1 5 0 3 ) 、 S I /O用 S F R 2 4 3の値の初期設定 (ステップ S T 1 5 0 4 ) 、 その他の S F Rの初期設定 (ステップ S T 1 5 0 5 ) が行わ れる。 一方、 ステップ S T 1 5 0 1でリセッ ト判定フラグ 2 5 0力、 ' 「 H 」 の場合には C P U 2 1 0はホッ 卜スター トと判断してステップ S丁 1 5 0 5に移行し S I Z O用 S F R 2 4 3及び C P U 2 1 0のレジスタ等 の値の初期設定動作は行わずにその他の S F Rの初期値を設定してリセ ッ ト処理を終了する。  FIG. 15 is a flowchart showing the operation of the reset processing of the CPU 210. As shown in the figure, first, when the value of the reset determination flag 250 is “L” (step ST 1501), it is determined that the power is turned on, and the reset determination flag is determined. Set “250” to “H” (step ST1502 :), set the initial settings of the CPU 210 register (step ST1503), and use the SI / O SFR The initial setting of the value of (step ST1504) and the initial setting of other SFRs (step ST1505) are performed. On the other hand, in step ST1501, the reset determination flag 250 is turned on, and if "H", the CPU 210 determines that it is a hot start and shifts to step S1505 to proceed to SIZO. The initial value of other SFRs is set without performing the initial setting operation of the values of the SFRs 243 and CPU 210 registers, and the reset processing ends.
第 1 6図は第 1 4図に示すリセッ ト制御回路 5 1 0の入出力信号の夕 イ ミ ングを示すタイ ミ ングチャー トである。 同図において ( a ) はリセ ッ ト制御回路 5 1 0に入力される リセッ ト信号、 ( b ) はリセッ ト判定 フラグ 2 5 0の値、 ( c ) はリセッ ト制御回路 5 1 0が出力する個別 S F Rリセッ 卜信- を示している。 同図に示すように、 リセッ ト判定フラ グ 2 5 0力く 「H」 レベルにセッ 卜されている場合には、 電源投入時では ないと判断してリセッ ト信号が 「し」 になったとしてもリセッ 卜制御回 路 5 1 0の出力信号は 「 H」 レベルのままであるので S I Z 0用 S F R 2 4 3はハー ドウエア的にリセッ 卜されない。 FIG. 16 is a timing chart showing the evening timing of the input / output signals of the reset control circuit 510 shown in FIG. In the figure, (a) shows the reset signal input to the reset control circuit 510, (b) shows the value of the reset determination flag 250, and (c) shows the output of the reset control circuit 510. This shows the individual SFR reset signal to be performed. As shown in the figure, when the reset judgment flag is set to 250 H level, Even if it is determined that the reset signal does not exist, the reset signal of the reset control circuit 510 remains at the “H” level even if the reset signal becomes “HI”. Not reset.
なお、 電源投入時に C P U 2 1 0が第 1 5図のステップ S T 1 5 0 4 を実行するよりも先にリセッ 卜制御回路 5 1 0が S Iノ 0用 S F R 2 4 3ヘリセッ 卜信号を送る必要があるがリセッ ト制御回路 5 1 0は 2つの イ ンバー夕と 1つのゲ一 卜からなる小規模のハ一 ドウエアで信号処理を しているので C P U 2 1 0がステップ S T 1 5 0 4を実行するのに対し て、 リセッ 卜制御回路 5 1 0の信号送出処理の方が十分に早く行われる 以上説明したように実施の形態 4によれば、 電源投入時以外にリセッ ト信号が 「 L」 レベルになつてもリセッ ト制御 路 5 1 0によって S I ZO用 S F R 2 4 3はリセッ 卜されないように構成されているので、 ノ ィズなどにより リセッ ト^号が 「し」 になっても S I 0用 S F R 2 4 3はリセッ トされず、 S I Z◦ 2 3 3は初期設定動作を必要とせずに、 その後連続して動作を継続することができる効果がある。 実施の形態 5.  When the power is turned on, the reset control circuit 510 must send the SFR2 43 helicopter signal for SI0 before the CPU 210 executes step ST1504 in Fig. 15. However, the reset control circuit 510 performs signal processing with small-scale hardware consisting of two inverters and one gate, so the CPU 210 executes the step ST 1504. On the other hand, the reset control circuit 510 performs the signal transmission process sufficiently sooner than described above. According to the fourth embodiment, as described above, the reset signal becomes “L” except when the power is turned on. The SFR 243 for SI ZO is configured so that it will not be reset by the reset control circuit 510 even when the level reaches the '' level, so even if the reset ^ signal becomes `` S '' due to noise etc. SI0 SFR 243 is not reset and SIZ 233 does not require initialization There is an effect that the operation can be continued continuously thereafter. Embodiment 5.
第 1 7図は本発明の実施の形態 5のシングルチップマイクロコンピュ 一夕の構成を示すプロ ック図である。 第 1 3図に示す部分と同一部分に は同一符号を付し、 重複する説明は省略する。 第 1 7図と第 1 3図とで 異なるところはリセッ 卜制御回路 5 1 0からの個別 S F Rリセッ ト信号 が S I 〇用 S F R 2 4 3ではなく、 タイマ用 S F R 2 4 5に供給され ており、 リセッ ト I C 2 0から出力される リセッ ト信 が C P U 2 1 0 、 リセッ ト制御回路 5 1 0、 D— A用 S F R 2 4 1、 A— D用 S F R 2 4 2、 S I ZO用 S F R 2 4 3、 WD T用 S F R 2 4 4に供給されてい ることである。 なお、 第 1 7図で 6 0 0は実施の形態 5のシングルチッ プマイ ク ロ コ ンピュー夕を示している。 FIG. 17 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 5 of the present invention. The same parts as those shown in FIG. 13 are denoted by the same reference numerals, and overlapping description will be omitted. The difference between Fig. 17 and Fig. 13 is that the individual SFR reset signal from the reset control circuit 510 is supplied to the timer SFR 245 instead of the SI S SFR 243. The reset signal output from the reset IC 20 is the CPU 210, the reset control circuit 510, D—SFR 241 for A, SFR 242 for A—D, SFR 2 for SI ZO 4 3, supplied to SFR 2 4 4 for WDT Is Rukoto. In FIG. 17, 600 indicates a single-chip microcomputer according to the fifth embodiment.
第 1 8冈は C P U 2 1 0のリセッ 卜処理の動作を示すフ口一チャー ト である。 第 1 5図と同一部分には同一符号を付し重複する説明は省略す る。 第 1 8図は第 1 5図とステップ S丁 1 8 0 1, ステップ S T 1 8 0 2が異なっている。 すなわち、 ステップ S T 1 8 0 1ではタイマ用 S F R 2 4 5の初期値が設定され、 ステップ S T 1 8 0 2ではタイマ用 S F R 2 4 5以外の S F Rの初期値が設定される。  The 18th is a chart showing the operation of the reset processing of the CPU 210. The same parts as those in FIG. 15 are denoted by the same reference numerals, and redundant description will be omitted. FIG. 18 is different from FIG. 15 in steps S 1801 and step ST 1802. That is, the initial value of the timer SFR 245 is set in step ST1801, and the initial value of the SFR other than the timer SFR245 is set in step ST1802.
従って、 この実施の形態 5では、 電源投入時以外にリセッ 卜信号が 「 L」 レベルになってもリセッ 卜制御回路 5 1 0によってタイマ用 S F R 2 4 5はリセッ トされないように構成されているので、 ノィズなどによ り リセッ ト信号が 「L」 になっても夕イマ用 S F R 2 4 5はリセッ 卜さ れず、 タイマ 2 3 5は初期設定動作を必要とせずに、 その後、 連続して 動作を継続することができる効果がある。 実施の形態 6.  Therefore, in the fifth embodiment, the timer control SFR 245 is not reset by the reset control circuit 510 even if the reset signal goes to “L” level except when the power is turned on. Therefore, even if the reset signal becomes “L” due to noise, etc., the SFR 245 for evening image is not reset, and the timer 235 does not need the initial setting operation, and then continuously. There is an effect that the operation can be continued. Embodiment 6.
第 1 9 [ は本発明の実施の形態 6のシ ングルチップマイクロコンピュ 一夕の構成を示すプロック図である。 第 1 3図に示す部分と同一部分に は同一符号を付し、 重複する説明は省略する。 第 1 9図と第 1 3 1で異 なるところはリセッ 卜制御回路 5 1 0からの個別 S F Rリセッ ト信号が S I Z0用 S F R 2 4 3ではなく、 八ー 0用 5 1 2 4 2に供給されて おり、 リセッ ト I C 2 0から出力される リセッ ト信号が C P U 2 1 0、 リセッ ト制御回路 5 1 0、 D— A用 S F R 2 4 1、 S I ZO用 S F R 2 4 3、 WD T用 S F R 2 4 4、 タイマ用 S F R 2 4 5に供給されている ことである。 なお、 第 1 9図において、 7 0 0はこの実施の形態 6のシ ングルチップマイクロコンピュ一夕を示している。 第 2 0図は C P U 2 1 0のリセッ 卜処理の動作を示すフローチャー ト である。 第 1 5図と同一-部分には I —符^を付し重複する説明は省略す る。 第 2 0図は第 1 5図とステップ S T 2 0 0 1、 ステップ S T 2 0 0 2が異なっている。 すなわち、 ステップ S T 2 0 0 1では A _ D用 S F R 2 4 2の初期値が設 され、 ステップ S T 2 0 0 2では A— D用 S F R 2 4 2以外の S F Rの初期値が設定される。 FIG. 19 [] is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 6 of the present invention. The same parts as those shown in FIG. 13 are denoted by the same reference numerals, and overlapping description will be omitted. The difference between Fig. 19 and 13 is that the individual SFR reset signal from the reset control circuit 5 10 is supplied not to the SFR 2 4 3 for SI Z0 but to the 5 1 2 4 2 for 8 0 The reset signal output from the reset IC 20 is the CPU 210, the reset control circuit 510, the D-A SFR 2 41, the SI ZO SFR 2 43, and the WDT It is supplied to SFR 244 and SFR 245 for timer. In FIG. 19, reference numeral 700 denotes a single-chip microcomputer of the sixth embodiment. FIG. 20 is a flowchart showing the operation of the reset process of the CPU 210. The same parts as those in FIG. 15 are denoted by an I-sign ^, and redundant description is omitted. FIG. 20 differs from FIG. 15 in steps ST2001 and step ST2002. That is, the initial value of the SFR 242 for A_D is set in step ST2001, and the initial value of the SFR other than the SFR224 for A-D is set in step ST2002.
従って、 この実施の形態 6では、 電源投入時以外にリセッ ト信号が 「 L」 レベルになってもリセッ ト制御同路 5 1 0によって A— D用 S F R 2 4 2はリセッ トされないように構成されているので、 ノィズなどによ り リセッ 卜信号が 「 L」 になっても A— D用 S F R 2 4 2はリセッ 卜さ れず、 A - D変換器 2 3 2は初期設定動作を必要とせずに、 その後、 連 続して動作を継続することができる効果がある。 実施の形態 Ί .  Therefore, in the sixth embodiment, even if the reset signal goes to the “L” level except when the power is turned on, the reset control circuit 510 does not reset the A-D SFRs 242. Therefore, even if the reset signal becomes “L” due to noise, etc., the SFR 242 for A-D is not reset, and the A-D converter 232 requires the initial setting operation. However, there is an effect that the operation can be continued continuously thereafter. Embodiment Ί.
第 2 1図は本発明の実施の形態 7のシングルチップマイクロコンビュ 一夕の構成を すプロ ッ ク図である。 第 1 3冈に示す部分と同一部分に は同一符号を付し、 重複する説明は-省略する。 第 2 1図と第 1 3図で異 なるところはリセッ ト制御回路 5 1 0からの個別 S F Rリセッ 卜信号が S I / 0用 S F R 2 4 3ではなく、 D— A用 S F R 2 4 1に供給されて おり、 リセッ ト I C 2 0から出力される リセッ ト信号が C P U 2 1 0、 リセッ ト制御回路 5 1 0、 A— Dffl S F R 2 4 2、 S I ZO用 S F R 2 4 3、 WD T用 S F R 2 4 4、 夕イマ用 S F R 2 4 5に供給されている ことである。 なお、 第 2 1 図において、 8 0 0はこの実施の形態 7のシ ングルチップマイク口コンピュータを示している。  FIG. 21 is a block diagram showing a configuration of a single-chip micro-computer according to a seventh embodiment of the present invention. The same reference numerals are given to the same portions as those shown in the 13th paragraph, and the overlapping description is omitted. The difference between Fig. 21 and Fig. 13 is that the individual SFR reset signal from the reset control circuit 510 is supplied to the D-A SFR 241 instead of the SI / 0 SFR 243 The reset signal output from reset IC 20 is CPU 210, reset control circuit 510, A—Dffl SFR 24, SIZO SFR 243, and WDT SFR It is supplied to SFR 245 for evening and ima. In FIG. 21, reference numeral 800 denotes a single-chip microphone mouth computer according to the seventh embodiment.
第 2 2図は C P U 2 1 0のリセッ ト処理の動作を示すフローチヤ一 ト である。 第 1 5 [¾1と同一部分には同 -符号を付し重複する説明は省略す る。 第 2 2図は第 1 5図とステップ S T 2 2 0 1、 S T 2 2 0 2が異な つている。 すなわち、 ステップ S T 2 2 0 1では D— A用 S F R 2 4 1 の初期値が設定され、 ステップ S T 2 2 0 2では D - A用 S F R 2 4 1 以外の S F Rの初期値が設定される。 FIG. 22 is a flowchart showing the operation of the reset process of the CPU 210. 15th [The same parts as in ¾1 are marked with the same symbols, and duplicate descriptions are omitted. You. FIG. 22 is different from FIG. 15 in steps ST2201 and ST2202. That is, the initial value of the SFR 241 for DA is set in step ST222, and the initial value of the SFR other than the SFR241 for DA is set in step ST222.
従って、 この夾施の形態 7では、 電源投入時以外にリセッ ト信号が 「 L」 レベルになつてもリセッ 卜制御回路 5 1 0によって D— A用 S F R 2 4 1はリセッ トされないように構成されているので、 ノィズなどによ り リセッ 卜信号が 「し」 になっても D— A用 S F R 2 4 1はリセッ 卜さ れず、 D - A変換器 2 3 1 は初期設定動作を必要とせずに、 その後、 迚 続して動作を継続するこ とができる効果がある。 実施の形態 8.  Therefore, in this embodiment 7, even when the reset signal goes to “L” level except when the power is turned on, the reset control circuit 510 does not reset the SFR 241 for DA. Therefore, even if the reset signal becomes “no” due to noise or the like, the SFR 241 for DA is not reset, and the DA converter 231 needs to perform the initial setting operation. However, there is an effect that the operation can be continued continuously thereafter. Embodiment 8.
第 2 3図は本発明の実施の形態 8のシングルチップマイクロコンピュ —タの構成を示すプロック図である。 第 1図に示す部分と同一部分には 同一符号を付し、 重複する説明は省略する。 第 2 3図において、 9 0 0 はこの実施の形態 8のシングルチップマイクロコンビユー夕、 9 1 0は リセッ 卜 I C 2 0から出力される リセッ 卜^号と W D T 2 3 4から出力 される C P U 2 1 0が暴走していることを示す WD T割り込み信号とリ セッ 卜判定フラグ 2 5 0とから W D T用 S F R 2 4 4の個別リセッ 卜信 号を出力する リセッ ト制御回路をそれぞれ示している。 なお、 リセッ ト I C 2 0の出力は C P U 2 1 0、 リセッ ト制御回路 9 1 0、 D— A用 S F R 2 4 1、 八ー 0用 5 2 4 2、 S I /0用 S F R 2 4 3、 及び夕 イマ用 S F R 2 4 5に供給されている。  FIG. 23 is a block diagram showing a configuration of a single-chip microcomputer according to Embodiment 8 of the present invention. The same parts as those shown in FIG. 1 are denoted by the same reference numerals, and overlapping description will be omitted. In FIG. 23, reference numeral 900 denotes a single-chip micro combination of the eighth embodiment, and reference numeral 9100 denotes a reset signal output from the reset IC 20 and a CPU output from the WDT 234. A reset control circuit that outputs the individual reset signal of the WDT SFR 244 from the WDT interrupt signal indicating that 210 is running away and the reset determination flag 250 . The output of reset IC 20 is CPU 210, reset control circuit 910, SFR 2 41 for D-A, 5 2 4 2 for 8-0, SFR 2 4 3 for SI / 0, And Sima for evening life Supplied to SFR 245.
第 2 4図は第 2 3図のリセッ 卜制御回路 9 1 0の詳細な構成を示す回 路図である。 第 2 4図において、 9 1 1 , 9 1 2はイ ンバー夕、 9 1 3 はナン ドゲー ト、 9 1 4はアン ドゲ一 卜を示している。 インバ一タ 9 1 1 , 9 1 2にはそれぞれリセッ ト判定フラグ 2 5 0からの信号、 リセッ ト I C 2 0からのリセッ ト ^号が入力される。 なお、 アン ドゲ一 卜 9 1 4からは W D Τ用 S F R 2 4 4のハー ドウェア的なリセッ 卜のためのリ セッ ト信 ¾が出力される。 FIG. 24 is a circuit diagram showing a detailed configuration of the reset control circuit 910 of FIG. In FIG. 24, 911 and 912 indicate the evening, 913 indicates the NAND gate, and 914 indicates the AND gate. Inverter 9 1 The signals from the reset determination flag 250 and the reset ^ from the reset IC 20 are input to 1, 9 and 12, respectively. Note that the reset signal for hardware reset of the SFR 244 for WD II is output from the AND gate 914.
次に動作について説明する。  Next, the operation will be described.
電源が投入されたときはリセッ ト I C 2 0からの出力信号により C Ρ U 2 1 0、 WD TJH S F R 2 4 4以外の S F Rがリセッ トされる。 C P U 2 1 0のリセッ 卜処理については詳細に後述する。 実施の形態 1で説 明したようにリセッ 卜制御回路 9 1 0のナン ドゲー ト 9 1 3の出力は 「 L」 になるので WD T割り込み信号にかかわらずァン ドゲ一 卜 9 1 4は 「 L」 レベルの信号を出力する。 このため、 W D T用 S F R 2 4 4に 「 し」 レベルの信号が供給され、 ハー ドウェア的にリセッ 卜される。  When the power is turned on, SFRs other than CΡU210 and WDTJHSFFR244 are reset by the output signal from reset IC20. The reset processing of CPU 210 will be described later in detail. As described in the first embodiment, since the output of the NAND gate 913 of the reset control circuit 910 becomes “L”, regardless of the WDT interrupt signal, the output gate 914 is “ Outputs an “L” level signal. For this reason, a signal of the "low" level is supplied to the WDT SFR 244 and the hardware is reset.
その後、 電源がォンの状態では WD T 2 3 4は C P U 2 1 0が正常動 作をしていると判断している場合には 「H」 レベルの信号を C P U 2 1 0及びリセッ 卜制御回路 9 1 0に出力する。 この場合にはアン ドゲ一ト 9 1 4の\ 0丁 2 3 4に接続している側の入力端子は 「H」 レベルにな り、 アン ドゲー ト 9 1 4の出力信号はナン ドゲ一 卜 9 1 3の出力 号と 同一となる。 —方、 WD T 2 3 4が C P U 2 1 0の暴走を検知した場合 には C P U 2 1 0及びリセッ ト制御回路 9 1 0に 「 L」 レベルの WD T 割り込み信号を送出する。 C P U 2 1 0はこの信 ^を受けると動作を停 止する。 リセッ ト制御回路 9 1 0に 「し」 レベルの WD T割り込み信 S- が入力されるとアン ドゲ一 卜 9 1 4の出力は他方の入力端子に入力され る信号の状態にかかわらず、 「し」 レベルとなる。 このため、 WD T用 S F R 2 4 4はハー ドウエア的にリセッ 卜される。  After that, when the power is on, the WDT 234 sends an “H” level signal to the CPU 210 and reset control if it determines that the CPU 210 is operating normally. Output to circuit 910. In this case, the input terminal on the side connected to the gate 914 of the AND gate 911 becomes “H” level, and the output signal of the AND gate 914 becomes the NAND gate. It becomes the same as the output signal of 9 13. On the other hand, if the WDT 234 detects a runaway of the CPU 210, it sends an “L” level WDT interrupt signal to the CPU 210 and the reset control circuit 910. Upon receiving this signal, the CPU 210 stops operating. When a “W” level WDT interrupt signal S− is input to the reset control circuit 910, the output of the AND gate 914 will be “regardless of the state of the signal input to the other input terminal. ”Level. Therefore, the SFR 244 for the WDT is reset in hardware.
第 2 5図は C P U 2 1 0のリセッ ト処理の動作を^すフローチヤ一 卜 である。 第 1 5図と同一部分には同一符号を付し重複する説明は省略す る。 第 2 5図は第 1 5図とステップ S T 2 5 0 1、 ステップ S T 2 5 0 2が異なっている。 すなわち、 ステップ S T 2 5 0 1では W D T用 S F R 2 4 4の初期値が設定され、 ステップ S T 2 5 0 2では W D T用 S F R 2 4 4以外の S F Rの初期値が設定される。 FIG. 25 is a flowchart showing the reset processing operation of the CPU 210. The same parts as those in FIG. 15 are denoted by the same reference numerals, and duplicate description will be omitted. You. FIG. 25 differs from FIG. 15 in steps ST 2 501 and step ST 2 502. That is, in step ST2501, the initial value of the WDT SFR 244 is set, and in step ST2502, the initial value of the SFR other than the WDT SFR 244 is set.
第 2 6図は第 2 4 [¾]に示すリセッ ト制御冋路 9 1 0の入出力信号の夕 ィ ミ ングを示すタイ ミ ングチャー トである。 同図において (: a;) はリセ ッ 卜制御回路 9 1 0に入力されるリセッ ト信号、 ( b ) はリセッ 卜判定 フラグ 2 5 0の値、 ( c ) は W D T 2 3 4から出力される W D T割り込 み信号、 ( d ) はリセッ 卜制御回路 9 1 0の出力信号である WD T用 S F Rリセッ ト信号を示している。 第 2 6図に示すタイ ミ ングチャー トの 時刻 T 1でリセッ ト信号が 「 L」 になつた場合にリセッ ト判定フラグ 2 5 0カ 「11」 レベルで、 かつ WD T割り込み信号が 「H」 であるときは FIG. 26 is a timing chart showing the timing of the input / output signals of the reset control circuit 910 shown in FIG. 24 [¾]. In the figure, (: a;) is the reset signal input to the reset control circuit 910, (b) is the value of the reset determination flag 250, and (c) is the output from the WDT 234. (D) indicates a WDT SFR reset signal which is an output signal of the reset control circuit 910. When the reset signal becomes “L” at time T1 of the timing chart shown in FIG. 26, the reset judgment flag 250 is “11” level, and the WDT interrupt signal is “H”. When is
W D T用 S F Rリセッ 卜信号は 「 H」 となる。 一方、 時刻 T 2で W D T 割り込み信号が 「L」 になれば、 すなわち、 WD T 2 3 4が C P U 2 1 0の暴走を検出したときは WD丁^ S F Rリセッ ト信号は 「 L」 になつ て W D T 2 3 4のハ一 ドウエア的なリセッ 卜が実行される。 The SFR reset signal for WDT becomes “H”. On the other hand, if the WDT interrupt signal becomes “L” at time T 2, that is, if the WDT 234 detects a runaway of the CPU 210, the WD / SFR reset signal becomes “L”. A hardware reset of WDT 234 is performed.
なお、 以上の説明ではリセッ 卜制御回路 9 1 0の出力信号は WD T用 S F R 2 4 4のみに供給されるようにしたが、 他の S F Rに対してもリ セッ ト I C 2 0からのリセッ 卜信号の代わりに供給するようにしてもよ い。  In the above description, the output signal of the reset control circuit 910 is supplied only to the SFR 244 for WDT, but the reset signal from the reset IC 20 is also applied to other SFRs. The signal may be supplied instead of the signal.
以上説明したように実施の形態 8によれば、 WD T 2 3 4の監視によ つて C P U 2 1 0が暴走しているときには特定の S F Rのリセッ 卜を強 制的に行う ことによってより安定性のある リセッ 卜制御を行う ことがで きる効果がある。  As described above, according to the eighth embodiment, when the CPU 210 is running out of control by monitoring the WDT 234, a specific SFR is forcibly reset to achieve more stability. This has the effect that reset control with a certain level can be performed.
なお、 上述した实施の形態 1から 8において、 リセッ ト I Cの少なく とも -方をシングルチップマイクロコンピュー夕の內部に設けるように 構成してもよい。 産業上の利用可能性 In the first to eighth embodiments described above, at least one of the reset ICs is provided in a part of the single-chip microcomputer. You may comprise. Industrial applicability
本発明は例えば電子機器の制御等に用いられるマイクロコンピュー夕 に利用可能である。  INDUSTRIAL APPLICABILITY The present invention is applicable to, for example, a microcomputer used for controlling an electronic device.

Claims

請 求 の 範 囲 The scope of the claims
1 . 外部から入力される外部リセッ 卜信号によってリセッ 卜動作が行わ れるマイ クロコンビユ ー夕であって、 1. A micro-combination unit in which a reset operation is performed by an external reset signal input from outside,
前記マイクロコンピュータの統括的処理を実行する中央処理部と、 所定の動作を行うための周辺機能部と、  A central processing unit that performs overall processing of the microcomputer; a peripheral function unit that performs a predetermined operation;
ハー ドウェア的にリセッ 卜可能で、 前記周辺機能部の動作を設定する ための周辺機能レジスタ部と、  A peripheral function register unit which can be reset in hardware, and which sets the operation of the peripheral function unit;
前記外部リセッ ト 号の入力による 記中央処理部のリセッ 卜動作が 前記マイクロコンピュー夕の ¾源投入時から最初のリセッ ト動作である か否かについての情報を格納する第 1 のフラグと、  A first flag for storing information on whether or not the reset operation of the central processing unit by the input of the external reset signal is the first reset operation from the time when the microcomputer is turned on;
^記第 1 のフラグに格納されている情報が最初のリセッ ト動作である ことを示す場合に前 ¾外部リセッ 卜信号が入力されたときには前記周辺 機能レジスタ部をハ一 ドウエア的に リ セッ 卜する レジスタ リ セッ 卜俗号 を送出 し、 前記笫 1 のフラグに格納されている情報が最初のリセッ 卜動 作でないことを示す場合に前記外部リセッ 卜信号が入力されたときには 前記レジスタ リセッ 卜信号を送出しないようにして前記周辺機能レジス タ部のリセッ 卜制御を実行する リセッ 卜制御部と  ^ If the information stored in the first flag indicates that this is the first reset operation, reset the peripheral function register unit in hardware when an external reset signal is input. When the external reset signal is input when the information stored in the flag in step 1 indicates that the reset operation is not the first reset operation, the register reset signal is transmitted. And a reset control unit for executing reset control of the peripheral function register unit so as not to transmit
を有する リセッ 卜制御機能を有するマイクロコンピュー夕。  A microcomputer with reset control function.
2 . 請求の範囲第 1項記載のマイクロコンピュータであって、 周辺機能 部はアナログ信号からディ ジタル信号への変換を行う A— D変換器を含 み、 周辺機能レジスタ部は前記 A — D変換器の動作の設定のためのレジ ス夕を含むリセッ 卜制御機能を有するマイク口コンピュータ。  2. The microcomputer according to claim 1, wherein the peripheral function unit includes an AD converter for converting an analog signal into a digital signal, and the peripheral function register unit includes the AD converter. A microphone-equipped computer that has a reset control function that includes a register for setting the operation of the mixer.
3 . 請求の範囲第 1項記載のマイクロコンピュー夕であって、 周辺機能 部はディ ジタル信号からアナ口グ信号への変換を行う D— A変換器を含 み、 周辺機能レジスタ部は前記 D 一 A変換器の動作の設定のためのレジ ス夕を含むリセッ 卜制御機能を^するマイク ロコ ンピュー夕。 3. The microcomputer according to claim 1, wherein the peripheral function unit includes a DA converter for converting a digital signal to an analog signal, and the peripheral function register unit includes the DA converter. Register for setting the operation of D-A converter Micro computer that performs the reset control function including scanning.
4 . 請求の範囲第 1頃^載のマイクロコンピュータであって、 周辺機能 部はシリアルで信号の入出力制御を行う シリアル入出力装置を含み、 周 辺機能レジスタ部は前記シリ アル入出力装置の動作の設定のためのレジ スタを含むリセッ 卜制御機能を有するマイクロコンピュー夕。  4. The microcomputer according to claim 1, wherein the peripheral function unit includes a serial input / output device that performs serial signal input / output control, and the peripheral function register unit includes a serial input / output device of the serial input / output device. A microcomputer with a reset control function that includes registers for setting operations.
5 . 請求の範囲第 1項記載のマイクロコ ンピュータであって、 周辺機能 部は計時機能を实行する夕イマを含み、 周辺機能レジスタ部は前記タイ マの動作の設定のためのレジスタを含むリセッ 卜制御機能を有するマイ クロコンピュー夕。  5. The microcomputer according to claim 1, wherein the peripheral function unit includes a timer for performing a timing function, and the peripheral function register unit includes a reset including a register for setting an operation of the timer. Microcomputer with a remote control function.
6 . 請求の範囲第 1項 己載のマイクロコンピュータであって、 周辺機能 部は中央処理部の暴走を監視して前記中央処理部が暴走していると判断 した場合に暴走を示す信号を出力するゥォッチ ドッグ夕イマを含み、 周 辺機能レジス夕部は前記ゥォッチ ドッグタイマの動作の設定のためのレ ジス夕を含むリセッ ト制御機能を有するマイクロコンピュータ。  6. Claim 1. The microcomputer on its own, wherein the peripheral function unit monitors the runaway of the central processing unit and outputs a signal indicating runaway when it is determined that the central processing unit is running away. A microcomputer having a reset control function including a register for setting operation of the watch dog timer;
7 . 請求の範凼第 6項記載のマイクロコンピュー夕であって、 ウォッチ ドッグタイマが暴定を示す信号を出力した場合にはリセッ 卜制御部は第 1 のフラグに格納されている情報にかかわらずレジスタ リセッ 卜 号を 送出して周辺機能レジスタ部のリセッ 卜制御を実行する リセッ ト制御機 能を有するマイクロコンピュー夕。  7. The microcomputer according to claim 6, wherein the reset control unit outputs the information stored in the first flag when the watchdog timer outputs a signal indicating indeterminate. Regardless, the microcomputer has a reset control function that sends a register reset signal and executes reset control of the peripheral function register.
8 - 請求の範囲第 1項記載のマイクロコ ンピュータであって、  8-The microcomputer according to claim 1, wherein
第 1 のフラグに依存して周辺機能レジスタ部のリセッ 卜を行うフラグ 依存モ一 ドであるか前記第 1 のフラグに依存せずに 周辺機能レジス タ部のリセッ 卜を行うフラグ非依存モー ドであるかについての情報を格 納する第 2のフラグをさ らに有し、 リセッ 卜制御部は前記第 2のフラグ にフラグ非依存モー ドを示す情報が格納されている場合には外部リセッ ト信号が入力されたときには lW記第 1 のフラグに格納されている情報に かかわらずレジスタ リセッ 卜信号を前記周辺機能レジスタ部に送出する リセッ 卜制御機能を冇するマィクロコンピュー夕。 Flag-dependent mode for resetting peripheral function registers depending on the first flag, or flag-independent mode for resetting peripheral function registers without depending on the first flag The reset control unit further includes a second flag for storing information about whether the flag is a flag-independent mode or a flag-independent mode. When the reset signal is input, the information stored in the first flag of lW is Regardless, a micro computer that performs a reset control function of sending a register reset signal to the peripheral function register section.
9 . 第 1 の電源と第 2の電源とが供給されるマイクロコンピュータであ つて、  9. A microcomputer supplied with a first power supply and a second power supply,
前記マイクロコンピュー夕の統括的処理を実行し、 前, 第 1 の電源に よって駆動される中央処理部と、  A central processing unit that performs overall processing of the microcomputer and is driven by the first and first power supplies;
所定の動作を行い、 前記第 2の電源によって駆動される周辺装置部と 前記第 1 の ¾源から生成された第 1 のリセッ ト信号と前記第 2の電源 から生成された第 2のリセッ 卜信号との両方が入力された場合のみ前記 中央処理部のリセッ 卜を実行させる信号を前記中央処理部に送出して前 記中央処理部のリセッ 卜制御を実行する リセッ 卜制御部と  Performing a predetermined operation, a peripheral device driven by the second power supply, a first reset signal generated from the first power supply, and a second reset generated from the second power supply A reset control unit for executing a reset control of the central processing unit by transmitting a signal for executing the reset of the central processing unit to the central processing unit only when both of the signals are input;
を有する リセッ ト制御機能を有するマイクロコンピュー夕。  A microcomputer with reset control function.
PCT/JP1996/002725 1996-09-20 1996-09-20 Microcomputer having reset control function WO1998012620A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/JP1996/002725 WO1998012620A1 (en) 1996-09-20 1996-09-20 Microcomputer having reset control function
TW085113425A TW422947B (en) 1996-09-20 1996-11-04 Microcomputer having reset control function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP1996/002725 WO1998012620A1 (en) 1996-09-20 1996-09-20 Microcomputer having reset control function

Publications (1)

Publication Number Publication Date
WO1998012620A1 true WO1998012620A1 (en) 1998-03-26

Family

ID=14153867

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP1996/002725 WO1998012620A1 (en) 1996-09-20 1996-09-20 Microcomputer having reset control function

Country Status (2)

Country Link
TW (1) TW422947B (en)
WO (1) WO1998012620A1 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003085498A2 (en) * 2002-03-29 2003-10-16 Intel Corporation System and method for resetting a platform configuration register
US7124273B2 (en) 2002-02-25 2006-10-17 Intel Corporation Method and apparatus for translating guest physical addresses in a virtual machine environment
US7809957B2 (en) 2005-09-29 2010-10-05 Intel Corporation Trusted platform module for generating sealed data
US7900017B2 (en) 2002-12-27 2011-03-01 Intel Corporation Mechanism for remapping post virtual machine memory pages
US8079034B2 (en) 2003-09-15 2011-12-13 Intel Corporation Optimizing processor-managed resources based on the behavior of a virtual machine monitor
US8185734B2 (en) 2002-03-29 2012-05-22 Intel Corporation System and method for execution of a secured environment initialization instruction
US8533777B2 (en) 2004-12-29 2013-09-10 Intel Corporation Mechanism to determine trust of out-of-band management agents
US8924728B2 (en) 2004-11-30 2014-12-30 Intel Corporation Apparatus and method for establishing a secure session with a device without exposing privacy-sensitive information
JP2015507289A (en) * 2012-02-01 2015-03-05 マイクロチップ テクノロジー インコーポレイテッドMicrochip Technology Incorporated Peripheral device special function register with soft reset disable
US9009483B2 (en) 2003-12-22 2015-04-14 Intel Corporation Replacing blinded authentication authority
US9087000B2 (en) 2003-11-26 2015-07-21 Intel Corporation Accessing private data about the state of a data processing machine from storage that is publicly accessible
JP2016207074A (en) * 2015-04-27 2016-12-08 シャープ株式会社 System activation circuit, electric apparatus, and television device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63191245A (en) * 1987-02-03 1988-08-08 Fujitsu Ltd Resetting control system for device being in runaway state

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63191245A (en) * 1987-02-03 1988-08-08 Fujitsu Ltd Resetting control system for device being in runaway state

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7124273B2 (en) 2002-02-25 2006-10-17 Intel Corporation Method and apparatus for translating guest physical addresses in a virtual machine environment
WO2003085498A2 (en) * 2002-03-29 2003-10-16 Intel Corporation System and method for resetting a platform configuration register
GB2403832A (en) * 2002-03-29 2005-01-12 Intel Corp System and method for resetting a platform configuration register
GB2403832B (en) * 2002-03-29 2006-01-11 Intel Corp System and method for resetting a platform configuration register
WO2003085498A3 (en) * 2002-03-29 2004-09-02 Intel Corp System and method for resetting a platform configuration register
CN100458641C (en) * 2002-03-29 2009-02-04 英特尔公司 System and method for resetting a platform configuration register
US10042649B2 (en) 2002-03-29 2018-08-07 Intel Corporation System and method for execution of a secured environment initialization instruction
US9361121B2 (en) 2002-03-29 2016-06-07 Intel Corporation System and method for execution of a secured environment initialization instruction
US8185734B2 (en) 2002-03-29 2012-05-22 Intel Corporation System and method for execution of a secured environment initialization instruction
US9990208B2 (en) 2002-03-29 2018-06-05 Intel Corporation System and method for execution of a secured environment initialization instruction
US8645688B2 (en) 2002-03-29 2014-02-04 Intel Corporation System and method for execution of a secured environment initialization instruction
US10031759B2 (en) 2002-03-29 2018-07-24 Intel Corporation System and method for execution of a secured environment initialization instruction
US10175994B2 (en) 2002-03-29 2019-01-08 Intel Corporation System and method for execution of a secured environment initialization instruction
US7900017B2 (en) 2002-12-27 2011-03-01 Intel Corporation Mechanism for remapping post virtual machine memory pages
US8079034B2 (en) 2003-09-15 2011-12-13 Intel Corporation Optimizing processor-managed resources based on the behavior of a virtual machine monitor
US9971615B2 (en) 2003-09-15 2018-05-15 Intel Corporation Optimizing processor-managed resources based on the behavior of a virtual machine monitor
US9087000B2 (en) 2003-11-26 2015-07-21 Intel Corporation Accessing private data about the state of a data processing machine from storage that is publicly accessible
US9348767B2 (en) 2003-11-26 2016-05-24 Intel Corporation Accessing private data about the state of a data processing machine from storage that is publicly accessible
US9009483B2 (en) 2003-12-22 2015-04-14 Intel Corporation Replacing blinded authentication authority
US8924728B2 (en) 2004-11-30 2014-12-30 Intel Corporation Apparatus and method for establishing a secure session with a device without exposing privacy-sensitive information
US8533777B2 (en) 2004-12-29 2013-09-10 Intel Corporation Mechanism to determine trust of out-of-band management agents
US7809957B2 (en) 2005-09-29 2010-10-05 Intel Corporation Trusted platform module for generating sealed data
JP2015507289A (en) * 2012-02-01 2015-03-05 マイクロチップ テクノロジー インコーポレイテッドMicrochip Technology Incorporated Peripheral device special function register with soft reset disable
JP2016207074A (en) * 2015-04-27 2016-12-08 シャープ株式会社 System activation circuit, electric apparatus, and television device

Also Published As

Publication number Publication date
TW422947B (en) 2001-02-21

Similar Documents

Publication Publication Date Title
US7761727B2 (en) Micro-controller having USB control unit, MC unit and oscillating circuit commonly used by the USB control unit and the MC unit
EP0941631B1 (en) Architecture for a universal serial bus-based pc speaker controller
WO1998012620A1 (en) Microcomputer having reset control function
KR100290729B1 (en) Apparatus and method of transmitting and receiving usb isochronous data
JP3505018B2 (en) Semiconductor integrated circuit
JP2001512870A (en) Universal serial bus device controller
US5345564A (en) Serial communication peripheral integrated electronic circuit that recognizes its unique address before the entire circuit is enabled
US6601165B2 (en) Apparatus and method for implementing fault resilient booting in a multi-processor system by using a flush command to control resetting of the processors and isolating failed processors
JP2010086524A (en) Bridge device with function to save power
WO2003029999A1 (en) Aggregation of hardware events in multi-node systems
EP0537525A2 (en) Computer system with reset function performing system reset after a power failure
US8560877B2 (en) Image processing apparatus and method of transmitting reference clock
JPH11202968A (en) Microcomputer
JPH11272603A (en) Bus bridge device and transaction forwarding method
US6653880B2 (en) Semiconductor integrated circuit device forming power sources having different voltages for operating circuit blocks
JPH1185666A (en) Integrated circuit communication control
US11442518B2 (en) Extended system, server host and operation method thereof
JP3052595B2 (en) Computer redundancy control method
JPS60114952A (en) Processor
JP2742249B2 (en) Remote controller
JP4057360B2 (en) Multi-function IC card and control method thereof
KR100466328B1 (en) Method for securing reliablity of Inter-Integrated Circuit communication
JPH04140810A (en) Information processor
JPH10247187A (en) One-chip microcomputer
JPS62168258A (en) Cpu switching circuit

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): CN JP KR US

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH DE DK ES FI FR GB GR IE IT LU MC NL PT SE

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application
122 Ep: pct application non-entry in european phase