RESET METHODS AND APPARATUS FOR MICROCONTROLLERS HAVING BIDIRECTIONAL RESET LINES

Abstract: Method and apparatus for a system having a microcontroller (68HC11/16) with a bi-directional reset line coupled to other devices for detecting an active reset followed by the release of the reset line (Reset Output) by detecting means (M1), and upon the release of the reset line (Reset Output), rapidly driving the reset line of the system to the inactive state to prevent the microcontroller from falsely interpreting the reset line voltage level as being a non-microcontroller initiated reset. The reset line (Reset Output) is then released, after a short time delay (2 mu sec. delay) so as to not interfere with any succeeding reset line.

Description: RESET METHODS AND APPARATUS FOR MICROCONTROLLERS HAVING BIDIRECTIONAL RESET LINES BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the field of microcontroller systems, more particularly reset methods and apparatus therefor. 2. Prior Art The reset input of the Motorola 68HC11/16 microcontroller is a bi-directional input/output pin. It can be driven low externally to reset the microcontroller, or the microcontroller itself can drive it low, e.g., an internal watchdog timer fault. Typically, a number of other devices that may require resetting are also connected to this bus, a shown in Figure 1. Because the reset pin of the microcontroller is bi¬ directional, there are unique timing requirements associated with the change of state of the pin. Specifically, after a microcontroller generated reset, the microcontroller will release the reset output, wait 4 E cycles, and poll the state of the pin. This is done to ensure that no other device that is connected to the reset bus is asserting a reset. The factory recommended typical application suggests a 4.7 Kohm resistor connected between Vcc and the reset pin to provide a pull-up current. Using this approach, the maximum capacitance allowed on the line is limited. For example, if E clock is 6 Mhz, 4 E cycles take 666 ns. The bus requires 1.6 RC time constants to reach the 0.8 Vcc- which is Vj. h for the reset pin. This implies that a maximum of 88.6 pF is allowed on the bus. If upon polling the reset line after the 4 E cycles the microcontroller finds the line to still be low, the microcontroller interprets the apparent low state to mean that the reset signal was externally generated, and accordingly will go through a more involved reset procedure. It is thus desirable to have the reset line return to an apparent high state within 4 E cycles after a microcontroller initiated reset to avoid the unnecessary, more time consuming reset sequence associated with an externally (non-microcontroller) initiated reset operation. BRIEF SUMMARY OF THE INVENTION Method and apparatus for use in a microcontroller based system for detecting an active reset followed by the release of the reset line, and upon the release of the reset line, rapidly driving the reset line of the system to the inactive state to prevent the microcontroller from falsely interpreting the reset line voltage level as being a non-microcontroller initiated reset. The reset line is then released, after a short time delay so as to not interfere with any succeeding reset signal . The specific embodiment disclosed is intended for use in Motorola 68HC11/16 microcontroller based systems, though the invention is readily adaptable to other systems also. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 illustrates the typical reset line connection in a 68HC11/16 microcontroller based system. Figure 2 is a circuit diagram for the preferred circuit for sensing the reset line and driving the same high upon sensing a reset followed by the release of the line. DETAILED DESCRIPTION OF THE INVENTION The present invention monitors the reset line of a microcontroller system, and upon sensing a reset signal, followed by sensing the release of the reset line, rapidly drives the reset line to the reset inactive state so as to avoid the microcontroller interpreting the slow recovery of the reset line to the inactive state as a non-microcontroller initiated reset. More particularly, in accordance with the preferred embodiment of the present invention, a strong pulse of current is injected from V c into the reset bus of Motorola 68HC11/16 microcontroller system on every low to high transition to much more positively and rapidly drive the bus high. This current is typically 20mA, and in the preferred implementation, will drive the reset line high with up to 400pF on the bus. An exemplary circuit for accomplishing this is shown in Figure 2. In normal operation, node 5 will be high and p-channel transistor M2 will be off, with the 4.7 Kohm pull-up resistor pulling the reset line high. This holds n-channel transistor Ml on, holding node one low against the current source CS, with inverter Iχ holding node 2 high. As shall be seen, the RS flip flop FF has been reset by the 2 μsec delay, so that the Q output of the flip flop is low. Thus the output of the AND gate (node 4) is low, and the output of the inverter on node 5 is high, as initially stated. To detect a valid low to high transition, first the reset pin has to fall below 0.7V, which is selected as the threshold of transistor Ml. This turns off transistor Ml, allowing current source CS to pull node 1 high, setting the RS flip-flop FF so that the READY signal will go high. However the inverter I inverts the high state of node 1 to provide a low signal on node 2 as the second input to the AND gate, holding the output of the AND gate on node 4 low. Once the microcontroller or any other device on the reset bus initiating the reset operation releases the reset bus, the reset bus will be pulled upward by the 4.7 Koh resistor. When the reset bus goes above 0.7 V, transistor Ml will turn on again to pull node 1 low, and this in turn will cause node 2 to go high. Since READY is already high, node 4 will go high and node 5 will go low. This will turn on transistor M2, sized to provide the 20mA pull-up current to the reset pin. 2 μsec after node 4 goes high, the 2 μsec delay will drive the reset line of the RS flip-flop FF high, resetting the flip- flop to drive the READY signal low. This drives the output of the flip-flop on node 4 low, and the output of the inverter I 2 high to turn off transistor M2, returning the circuit to the state initially described. The 2 μsec delay is exemplary only, in that longer of shorter reset line drive times could be used. For the preferred embodiment described herein, the 2 μsec drive time is sufficiently long to assure that the entire reset line stabilizes at the reset inactive state, and yet is short enough to not interfere with any reset that is attempted to be asserted during that time or cause damage to any device so attempting to assert a reset during that time. In a typical application, the present invention is realized in integrated circuit form as part of a larger integrated circuit used in microcontroller systems for various monitoring and supervisory functions. As such, the integrated circuit will be coupled to the microcontroller bus, so that no special or additional connection to the reset line of the microcontroller bus is required. It should be noted that the word microcontroller as used herein generally includes microcontrollers, microprocessors, microcomputers, single chip computers and the like, and systems incorporating the same. Also, while the preferred embodiment of the invention is described herein in terms of an active low reset system, and more specifically with a specific circuit and a specific exemplary voltage level indicative of the presence or absence of a currently asserted reset signal, such specificity is by way of example only, and no such specific limitations are to be implied in the present invention. In that regard, while voltage levels are a convenient electrical parameter to sense, other electrical parameters could be used to indicate the initiation of a reset, followed by the release of the reset pin, such as, by way of example, current in the reset line. Thus while a specific embodiment of the present invention has been disclosed and described in detail herein, it will be obvious to those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope thereof.

Claims: CLAIMS We claim: 1. A method of microcontroller reset for a system having a microcontroller with a bi-directional reset line coupled to other devices in the system comprising the steps of: a) monitoring the reset line; (i) to sense an electrical parameter indicative of a device initiating a reset operation; and (ii) to thereafter sense an electrical parameter indicative of the reset line being released; b) upon sensing the reset line being released, driving the reset line to its inactive state. 2. The method of claim 1 wherein the electrical parameter being sensed in both step a) , (i) and (ii) , is a voltage on the reset line. 3. The method of claim 1 wherein the step of driving the reset line to its inactive state comprises the step of driving the reset line to its inactive state and holding the reset line in its inactive state for a predetermined time period. 4. The method of claim 3 wherein the reset line drive and holding period is approximately 2 μsec . 5. The method of claim 1 wherein the reset line is an active low reset line and in step b) , the reset line is driven to the reset inactive state by turning on a transistor coupled between the reset line and V cc . 6. Apparatus for microcontroller reset in a 68HC11/16 microcontroller based system having its bi¬ directional reset line coupled to other devices in the system comprising: a first circuit for coupling to the reset line to sense an electrical parameter on the reset line indicative of a device initiating a reset operation; and thereafter to sense an electrical parameter on the reset line indicative of the line being released; and a second circuit coupled to the first circuit and for coupling to the reset line for driving the reset line to its inactive state upon the first circuit sensing the electrical parameter on the reset line indicative of the line being released. 7. The apparatus of claim 6 wherein the electrical parameters sensed in steps a) (i) and (ii) is a voltage, and the first circuit includes an n-channel transistor having a gate for coupling to the reset line, the n-channel transistor having a threshold corresponding to the voltage on the reset line indicative of a device initiating a reset operation, and the voltage thereafter on the reset line indicative of the line being released. 8. The apparatus of claim 7 wherein the second circuit is comprised of a p-channel transistor for coupling between the reset line and a positive power supply terminal, and a pulsing circuit coupled to the first circuit and the gate of the p-channel transistor, the pulsing circuit pulsing the p-channel transistor on responsive to the first circuit. 9. The apparatus of claim 8 wherein the pulsing circuit is a circuit for pulsing the p-channel transistor on for approximately 2 μsec. 10. A 68HC11/16 microcontroller based system having the bi-directional reset line coupled to the microcontroller and to other devices in the system, the system including: a first circuit for coupling to the reset line to sense a voltage on the reset line indicative of a device initiating a reset operation; and thereafter to sense a voltage on the reset line indicative of the line being released; and a second circuit coupled to the first circuit and for coupling to the reset line for driving the reset line to its inactive state upon the first circuit sensing a voltage on the reset line indicative of the line being released. AMENDED CLAIMS [received by the International Bureau on 16 June 1997 (16.06.97); original claims 1-10 replaced by amended claims 1-10 (3 pages)] We claim: 1. A method of microcontroller reset for a system having a microcontroller with a bi-directional reset line coupled to other devices in the system comprising the steps of: a) monitoring the reset line; (i) to sense a reset signal being driven to its active state indicative of a device initiating a reset operation; and (ii) to thereafter sense said reset signal being driven toward its inactive state indicative of said reset signal being released; b) upon sensing said reset signal being released, immediately driving said reset signal to its inactive state. 2. The method of claim 1 wherein in lieu of said step a) , (i) and (ii), the method comprises the step of monitoring the reset line (i) to sense an electrical parameter indicative of a device initiating a reset operation, and (ii) to thereafter sense said electrical parameter indicative of the reset line being released. 3. The method of claim 1 wherein the step of driving said reset signal to its inactive state comprises the step of driving said reset signal to its inactive state and holding said reset signal in its inactive state for a predetermined time period. 4. The method of claim 3 wherein said reset signal drive and holding period is approximately 2 μsec. 5. The method of claim 1 wherein said reset signal is an active low reset signal and in step b) , said reset signal is driven to its inactive state by turning on a transistor coupled between the reset line and a power supply terminal . 6. Apparatus for microcontroller reset in a 68HC11/16 microcontroller based system having its bi¬ directional reset line coupled to other devices in the system comprising: a first circuit coupled to the reset line to sense a reset signal on the reset line driven to its active state indicative of a device initiating a reset operation; and thereafter to sense said reset signal being driven toward its inactive state indicative of said reset signal being released; and a second circuit coupled to said first circuit and the reset line for immediately driving said reset signal to its inactive state upon said first circuit sensing said reset signal being released. 7. The apparatus of claim 6 wherein said first circuit includes an n-channel transistor having a gate coupled to the reset line, the n-channel transistor having a threshold corresponding to a voltage on the reset line indicative of a device initiating a reset operationand alternatively indicative of said reset signal being released. 8. The apparatus of claim 6 wherein said second circuit is comprised of a p-channel transistor coupled between the reset line and a positive power supply terminal, and a control circuit coupled to said first circuit and the gate of said p-channel transistor, said control circuit turning said p-channel transistor on responsive to said first circuit. 9. The apparatus of claim 8 wherein said control circuit is a circuit for turning said p-channel transistor on for approximately 2 μsec. 10. A 68HC11/16 microcontroller based system having one or more devices, the system including: a bi-directional reset line coupled to the 68HC11/16 microcontroller and to the one or more devices; a first circuit coupled to said reset line to sense a reset signal on said reset line driven to its active state indicative of a device initiating a reset operation; and thereafter to sense said reset signal being driven toward its inactive state indicative of said reset signal being released; and a circuit coupled to said first circuit and said reset line for immediately driving said reset signal to its inactive state upon said first circuit sensing said reset signal being released.

Inventors: DOMSTEN RUNE, SHIEH SUI PING, DOMSTEN, RUNE, SHIEH, SUI, PING
Applicants: MAXIM INTEGRATED PRODUCTS, MAXIM INTEGRATED PRODUCTS, INC.
Application year: 1996
Main classification: H03K3
IPC codes: G06F1, G06F15