# Patent

## Title
Computer system having planar board with single interrupt controller and

## Abstract

This is a continuation of application Ser. No. 567,365filed Aug. 13, 1990 now abandoned.

## Background
The following applications of common assignee contain drawings in common with the present application: Chip for Flexible Electrical Interface"; Instruction Address Remapping and Shifting Overlay"; Instruction Address Remapping and Rigorously Separated Control Software Mode and User Software Mode"; Parameter RAM Accessible Only During Execution of Safeguarded Control Software"; Revector a Microprocessor's Instruction Sequencing into Secure Memory and which Contains Hardware for Running Checks on Program RAM"; More Flexible Processor Interface Around an Existing Microprocessor"; Stabilizing the Switch from Crystal to Ring Oscillator at Power-Down"; Propagated Timing Window for Stabilizing the Switch From Crystal to Ring Oscillator at Power-Down"; Transparently Revectoring a Processor's Sequencing into Peripheral's On-chip ROM"; Microprocessor, Modem, and Monitor Chip Which Can Call for Help if Software Integrity is Lost"; Which Can Call for Help and/or Force Program Branching"; Flag Bit Which Enables Running Control Software From Secure Memory"; Turns Off Hysteresis in Sleep Mode"; Monitor Circuit"; and Subboard";

The present invention relates to systems including programmable logic chips, and particularly to systems which include microprocessors or microcontrollers..sup.1 "microprocessors" will normally be used as a generic term, including microcontrollers.

The following text will first summarize some background art of broad interest, preparatory to an extremely brief (and non-definitive) description of the claimed invention. To further explain the significance and advantages of the claimed invention, the general features of the preferred system context, including the claimed innovation and other innovations, will then be described.

There has been a great deal of work over the last five years in adding nonvolatile features into semiconductor memories and memory modules.

However, there are also great potential advantages to providing nonvolatility in microcontrollers and microprocessors:

For example, such a microprocessor could be made immune to power outages.

Similarly, a system built around a microprocessor of this type could be given the ability to power down during periods of no input and power up when input resumed without the user becoming aware of these functions.

In many control applications, processor nonvolatility can provide a convenient basis for adaptive software: by updating algorithm parameters over the history of the system, the fit to the real-world problem can be progressively improved.

Numerous attempts have been made to provide on-chip nonvolatile memory. This has often been attempted using device technologies which provide nonvolatility, such as floating-gate avalanche-injection metal-oxide-silicon transistor ("FAMOS") devices (electrically-erasable programmable read only memory ("EEPROM") or erasable programmable read only memory ("EPROM") cells). However, this adds considerable processing complexity.

Examples of such attempts include: Goss et al., ".mu.Cs with on-chip EEPROM provide system adaptability, "EDN, Feb. 28, 1986, pp. 189 ff, which is hereby incorporated by reference; Goss et al., "Single Chip Microcomputer with EEROM [sic] Creates Unique Product Opportunity," Midcon/85 Conference Record, paper 18/2, which is hereby incorporated by reference; Bursky, "On-chip EEPROM gives CMOS DSP IC flexibility," Electronic Design, May 14, 1987, pp. 55ff, which is hereby incorporated by reference. Note that "CMOS DSP IC" are acronyms for complementary metal-oxide-silicon transistor digital signal processor integrated circuit.

A pioneering nonvolatile microprocessor was the DS5000. (This integrated circuit, and its data sheet and User Handbook, are available from Dallas Semiconductor Corporation, 4401 South Beltwood Parkway, Dallas, Tex. 75244, and are all hereby incorporated by reference.)

This chip has an architecture compatible with the Intel 8051, with various features added for nonvolatility. Thus, the DS5000 instruction set is a superset of the 8051 instruction set. The DS5000 can be directly inserted into any application which already uses the Intel 8051, and the additional features of the DS5000 can be exploited by the system designer and/or made use of by the application software.

However, many existing applications are designed around processors which do not use the 8051 architecture. It would, in principle, be possible to nonvolatize other microcontrollers and microprocessors using the principles incorporated in the DS5000; but that would be very expensive (due to the need for redesign of existing IC circuits and layouts).

The market for 8-bit machines continues to grow, and may continue to remain significant at the low end of the market. However, an inconvenience, from the designer's point of view, is that 8-bit machines often have limited address space. For example, the use of 16-bit addresses means that only 64K words can be addressed, and many 8-bit machines are limited to an address space of 64K.

A variety of complex chips have been proposed for use as microprocessor peripherals. Such chips arc used when a microprocessor system has to perform tasks 1) which can be accelerated by custom hardware, and/or 2) which can be separated out for processing in parallel. In either case, the interface with the microprocessor is typically designed very carefully, to provide the close data interface often required, while minimizing delays and minimizing burden on the microprocessor.

Various applications of this kind, with various interface requirements and solutions, have been considered. Two examples of interest are port expansion chips and memory management units (MMUs). Other examples, which are of less relevance but present some analogies, include Graphics chips and floating-point-accelerator units.

See Danielson, "Initialize PIAs from NOVRAMs," EDN, Oct. 31, 1984, page 206; Rosini et al., "A 5V-only Single Chip Microcomputer with Nonvolatile SRAM," 1984 ISSCC Conference Record at 170ff; Millar et al., "Microcomputer Cuts Printer Controller Pin Count," Computer Design, March 1984, pp. 139ff; Berney, "Nonvolatile RAM provides on-board storage for computer," Electronics, Sep. 22, 1982, pp. 168ff; all of which are hereby incorporated by reference. Note that "CMOS DSP IC" are acronyms for complementary metal-oxide-silicon transistor digital signal processor integrated circuit. ("CPU")

A commonly owned U.S. patent application.sup.2 shows a peripheral which can wake a microprocessor or (under the microprocessor's command) put the microprocessor to sleep. Conditioned By Timing Window Derived From Strobe Pin" (DSC-129), which is hereby incorporated by reference.

Another commonly owned U.S. patent application.sup.3 shows a peripheral with even more power-management functions for low-power systems. System with Zero-power Standby" (DSC-138), which is hereby incorporated by reference.

Peripherals have been provided for port expansion. For example, the Motorola MC6821,.sup.4 an 8-bit "PIA" (Peripheral Interface Adaptor), is one such. Another example is the Zilog "UPC" (Universal Peripheral Controller)..sup.5 Peripheral Interface Adapter provides the universal means of interfacing peripheral equipment to the MC6800 family of microprocessors. This device is capable of interfacing the MPU to peripherals through two 8-bit unidirectional peripheral data buses and four control lines. No external logic is required for interfacing to most peripheral devices.

"The functional configuration of the PIA is programmed by the MPU during system initialization. Each of the peripheral data lines can be programmed to act as an input or output, and each of the four control/interrupt lines may be programmed for one of several control modes. This allows a high degree of flexibility in the overall operation of the interface."

This chip, and its data sheet, are both hereby incorporated by reference. controller," Electro/82 Conference Record paper 14/2, which is hereby incorporated by reference.

Some peripheral chips, such as MMUs (Memory Management Units), do perform address remapping, in connection with bank swapping. See generally Furht and Milutinovic, "A Survey of Microprocessor Architectures for Memory Management," Computer magazine, March 1987, pp. 48ff., which is hereby incorporated by reference. Similarly, address translation is a basic part of any virtual memory system. However, the present inventors know of no prior peripheral which revectors a microprocessor's instruction fetches into the peripheral's on-chip read only memory ("ROM").

Much effort has been devoted to the problems of providing fault-tolerance in computer architectures. See generally Siewiorek, "Architecture of Fault-Tolerant Computers," Computer magazine, August 1984, pp. 9ff., which is hereby incorporated by reference.

A great deal of work has been published regarding interrupt masking in inter-processor interfaces. One example (among many) is Abraham et al., "Use of processor masking as a locking technique for multilevel multiprocessor," 26 IBM Technical Disclosure Bulletin 2822 (November 1983), which is hereby incorporated by reference.

Ser. No. 567,436: Circuitry and Peripheral Child for Flexible Electrical Interface

Among the innovations disclosed herein is an adjunct chip, usable as a peripheral to a microprocessor, which provides additional ports for the microprocessor's use, including at least one port which has tremendous flexibility of electrical configuration. The circuitry of this port is itself believed to be novel.

Ser. No. 567,418: Peripheral with Instruction Address Remapping and Shifting Overlay

Among the innovations disclosed herein is an adjunct chip, usable as a peripheral to a microprocessor, which transparently overlays control software address space onto the microprocessor's limited address space, while providing full access to the control software and to the instructions (or data) which may already be stored at any address within the address space. This is accomplished by using a shifting overlay map, and substituting addresses transparently to the microprocessor.

This is particularly advantageous with machines, such as 8-bit microprocessors and microcontrollers, which have limited address space (often only 64K).

Ser. No. 567,395: Peripheral with Instruction Address Remapping and Rigorously Separated Control Software Mode and User Software Mode

Among the innovations disclosed herein is an adjunct chip, usable as a peripheral to a microprocessor, which provides control software in secure memory, at an address range which is overlaid onto the addresses which otherwise would be accessed by the microprocessor to run programs from external memory. Execution of the control software is rigorously separated from execution of user (application) software: once the microprocessor is executing control software, the adjunct chip will issue a reset before allowing the microprocessor to return to execution of application software.

The control software is allowed to access several system configuration options which the user software is not allowed to access. For example, the memory space is preferably configurable in several different ways, but memory reconfiguration is not permitted from user software.

In alternative embodiments (but not in the presently preferred embodiment) the watchdog can be allowed to be reprogrammed (or turned off or turned on) only from control software, not from application software.

Ser. No. 567,396: Integrated Circuit with Parameter RAM accessible only during execution of Safeguarded Control Software

Among the innovations disclosed herein is an adjunct chip, usable as a peripheral to a microprocessor, which can issue resets and/or interrupts to the microprocessor, and which can force the microprocessor to execute control software programs which are stored in secure memory. (The control software is preferably, but necessarily, addressed at an address range which is overlaid onto the addresses which otherwise would be accessed by the microprocessor to run programs from external memory. ) Execution of the control software is rigorously separated from execution of user (application) software: once the microprocessor is executing control software, the adjunct chip will issue a reset before allowing the microprocessor to return to execution of application software.

The parameter RAM is preferably, but necessarily, located (as seen by the microprocessor) at an address range which is overlaid onto the addresses which otherwise would be accessed by the microprocessor for data operations from external memory.

It is also highly preferable, but not strictly necessary, that the parameter RAM be physically located on the adjunct chip.

Ser. No. 567,466: Peripheral which can Revector a Microprocessor's Instruction Sequencing into Secure Memory and which Contains Hardware for Running Checks on Program RAM

Among the innovations disclosed herein is an adjunct chip, usable as a peripheral to a microprocessor, which provides greatly increased assurance of software integrity. The adjunct chip contains on-chip ROM memory, which holds secure control programs, and on-chip hardware for implementing CRC logic. The adjunct chip intercepts address lines from the microprocessor, and can selectably overlay its on-chip ROM onto the microprocessor's address space. The adjunct chip can issue resets, to force the microprocessor to come up running the secure control software.

The secure control software includes commands for running CRC checks on the microprocessor's program RAM. To accelerate the calculation of redundancy-check-values, and assure their sanity, the adjunct chip contains hardware for calculating the redundancy-check-values.

This is particularly useful in systems using battery-backed memory, since users may want the additional reassurance of software integrity checking. This is also expected to be useful in certain control applications where reliability is essential. This may also be useful in installations which are subject to high electrical noise, relatively high levels of ionizing radiation, and/or sporadic high temperatures. Examples include avionics, factory floor automation, and vehicular control.

Ser. No. 567,365: Processor-Processor Interface: Interrupt Masking with Logical Sum and Product Options

Among the innovations disclosed herein is a new circuit organization for interfacing asynchronous processors to each other.

A great deal of work has been devoted to the problem of how two processors can talk to each other. In conventional processor architectures, each individual processor can only attend to one task at any one moment. Thus, for processor A to respond to communications from processor B, processor A's own task may have to be interrupted.

Thus, a basic dilemma in processor-processor interfaces, in most architectures, is:

Many multiprocessor systems use an interrupt architecture which is predefined, at a high level, to provide (it is hoped) the desired degree of flexibility. For example, EPC patent 0,071,727, which is hereby incorporated by reference, shows a multiprocessor system in which every interrupt carries with it one of 256 priority levels.

However, the disclosed innovation provides a significant advance over this, in that hardware-programmable interrupt masking logic permits the receiving processor to select what interrupt condition, or combination of conditions, it will or will not respond

In particular, the disclosed innovation provides interrupt masking logic which the receiving processor can program to select not only which one or more interrupt conditions will be considered, but also what logic combination of these conditions will be responded to.

A further feature of this interface is that it is programmable from both sides of the interface.

Ser. No. 567,394: Peripheral which Wraps a More Flexible Processor Interface Around an Existing Microprocessor

Among the innovations disclosed herein is an adjunct chip (usable as a peripheral to a microprocessor) including two-way interrupt-handling logic which provides more flexible interface between the microprocessor and a host processor or external processor or peripheral controller. The circuitry of this interrupt-handling logic is itself believed to be novel.

Ser. No. 567,437 : Latched Multiplexer for Stabilizing the Switch from Crystal to Ring Oscillator at Power-Down

Priority is hereby claimed from co-pending U.S. application Ser. No. 238,809, Filed Aug. 31, 1988, entitled "Nonvolatile Microprocessor with Predetermined State on Power-down."

Among the innovations disclosed herein is an adjunct chip, usable as a peripheral to a microprocessor, which detects power failure, and puts the microprocessor into a known state upon power down, and then resets the microprocessor.

In order to reliably and stably put the microprocessor into a known state, several clocks are generated before the reset signal. However, since the power supply is failing, it is possible that the crystal-controlled oscillator may already have become unreliable. Therefore, a simple logic circuit (a ring oscillator, in the presently preferred embodiment) is used to generate the needed additional clocks at power-down..sup.6 238,809, Filed Aug. 31, 1988 ("Nonvolatile microprocessor with predetermined state on power-down," DSC-60), which is hereby incorporated by reference. The preferred embodiment, in that application, was a nonvolatized microprocessor which included a ring oscillator on-chip to generate these additional clocks upon power-down reset.

However, the present application further teaches that the switch from crystal-controlled oscillator to ring oscillator needs to be stabilized. The ring oscillator consumes much less power than the crystal oscillator, and the microprocessor in sleep mode will consume still less. Thus, where the system power supply has a relatively high source impedance and a relatively light load, the power supply voltage may increase again after the power supply is unloaded by turning off the crystal oscillator. Under a worst-case scenario, the oscillator may be turned on and off several times. This is undesirable, because it may generate clock "slivers," i.e. short transients which may cause anomalous logic state propagation.

In the presently preferred embodiment, the switch from crystal-controlled oscillator to ring oscillator is stabilized by using a latched multiplexer to switch between the two oscillator inputs. The latch adds hysteresis to the switching characteristic, avoiding any problem of switching jitter.

Ser. No. 567,359: Filtered Detection plus Propagated Timing Window for Stabilizing the Switch from Crystal to Ring Oscillator at Power-Down

Priority is hereby claimed from co-pending U.S. application Ser. No. 238,809, Filed Aug. 31, 1988, entitled "Nonvolatile Microprocessor with Predetermined State on Power-down."

Among the innovations disclosed herein is an adjunct chip, usable as a peripheral to a microprocessor, which detects power failure, and puts the microprocessor into a known state upon power down, and then resets the microprocessor.

In order to reliably and stably put the microprocessor into a known state, several clocks are generated before the reset signal. However, since the power supply is failing, it is possible that the crystal-controlled oscillator may already have become unreliable. Therefore, a simple logic circuit (a ring oscillator, in the presently preferred embodiment) is used to generate the needed additional clocks at power-down..sup.7 238,809, Filed Aug. 31, 1988 ("Nonvolatile microprocessor with predetermined state on power-down," DSC-60), which is hereby incorporated by reference. The preferred embodiment, in that application, was a nonvolatized microprocessor which included a ring oscillator on-chip to generate these additional clocks upon power-down reset.

However, the present application further teaches that the switch from crystal-controlled oscillator to ring oscillator needs to be stabilized. The ring oscillator consumes much less power than the crystal oscillator, and the microprocessor in sleep mode will consume still less. Thus, where the system power supply has a relatively high source impedance and a relatively light load, the power supply voltage may increase again after the power supply is unloaded by turning off the crystal oscillator. Under a worst-case scenario, the oscillator may be turned on and off several times. This is undesirable, because it may generate clock "slivers," i.e. short transients which may cause anomalous logic state propagation.

In the presently preferred embodiment, the switch from crystal-controlled oscillator to ring oscillator is stabilized by using a nonlinear filtered circuit (driven by both the ring oscillator and the crystal oscillator) to detect when the crystal oscillator actually begins to fail. A transmission gate is then disabled, and the state frozen for long enough to allow any changes to propagate through.

Ser. No. 567,356: Peripheral for Transparently Revectoring a Processor's Sequencing into Peripheral's On-chip ROM

Among the innovations disclosed herein is an adjunct chip, usable as a peripheral to a microprocessor, which intercepts instruction fetches to RAM from the microprocessor, and can (selectably) substitute a block of instructions in the peripheral's on-chip ROM for the software stored in RAM. This can be used for verification or other control programs, to provide improved reliability.

Ser. No. 567,357: System with Microprocessor, Modem, and Monitor Chip which can Call for Help if Software Integrity is Lost

Priority is hereby claimed from commonly owned co-pending U.S. application Ser. No. 282,702, Filed Dec. 9, 1988 (Docket No. DSC-146).

Among the innovations disclosed herein is a system which includes a microprocessor and a modem, and also includes an adjunct chip which can force the microprocessor through integrity checks and which can call for help if software integrity is lost.

Ser. No. 567,468: Peripheral Monitor Chip Which Can Call for Help and/or Force Program Branching

Priority is hereby claimed from commonly owned co-pending U.S. application Ser. No. 282,702, Filed Dec. 9, 1988 (Docket No. DSC-146).

Among the innovations disclosed herein is an adjunct chip, usable as a peripheral to a microprocessor, which monitors the microprocessor's activity, and can force the microprocessor to reset, and can force the microprocessor to run a verification program (or other control program), and can call for help if software integrity is lost.

Ser. No. 567,360: Peripheral with On-chip Flag Bit which Enables Running Control Software from Secure Memory

Among the innovations disclosed herein is an adjunct chip, usable as a peripheral to a microprocessor, which provides control software in secure memory, at an address range which is overlaid onto the addresses which otherwise would be accessed by the microprocessor to run programs from external memory. A flag bit, in the peripheral's on-chip memory, generally selects whether execution of the control software will occur on power-up or other reset. This permits easy entry into the control software, while still providing great protection for the integrity of the control software and its registers.

Ser. No. 567,435: Integrated Circuit Which Turns Off Hysteresis In Sleep Mode

Among the innovations disclosed herein is an integrated circuit which turns off a switchable timed hysteresis circuit upon entering sleep mode.

The presently preferred embodiment includes an adjunct integrated circuit, usable as a microprocessor peripheral, which contains circuitry to detect when the power supply goes out of tolerance, and which generates interrupt, reset, and clock.sup.8 signals for the microprocessor. crystal-controlled oscillator stops.

Timed hysteresis is used to implement the power-down reset and interrupt relationships. This is advantageous because it avoids a problem of repeatedly activating reset or interrupt signals on power-down or even on a slow power-up due to clock "slivers," i.e., noise seen inside the chip from clock transitions.

Other integrated circuits, such as the DS1236, have used timed hysteresis for stabilizing a transition.

However, the integrated circuit disclosed herein has the further capability of entering a sleep mode. This poses a difficulty in that, in sleep mode, there are no clocks available in the adjunct chip. Therefore, in sleep mode, the hysteresis circuit is simply bypassed. This provides the advantages of a stabilized transition, and also provides the advantages of sleep mode. Moreover, these advantages combine synergistically in the various system and subsystem embodiments described below.

Ser. No. 567,397: Frequency-Independent Monitor Circuit

Among the innovations disclosed herein is a clock monitor circuit which is frequency-independent. The clock terminals on a circuit being monitored for activity may be considered as an inverter combined with a phase delay. The innovative circuit has clock-output and clock-input terminals.sup.9 which are connected to the clock terminals on the circuit being monitored. When a rising edge appears on the clock-output terminal, the clock-input line is sampled: if the circuit being monitored is properly active, the level on the clock-input line will be high. Similarly, when a falling edge appears on the clock-output terminal, the clock-input line is sampled: if the circuit being monitored is properly active, the level on the clock-input line will be low. Whenever a low level is detected on a rising edge, or a high level on a falling edge, a counter chain will start counting down. The counter chain will be reset only when a high level is detected on a rising edge AND a low level is detected on the next falling edge. which are connected to a crystal.

Thus, when the circuit being monitored becomes inactive, the counter chain will start to count down, and will eventually reach zero. In the presently preferred embodiment, this condition is used to detect that the microprocessor has gone to sleep, and accordingly the crystal oscillator can be stopped.

Ser. No. 567,467: Mirror-Image Sipstik Subboard

Another innovative feature set forth herein is an innovative microboard package.

SipStik.TM. packages, having a similar form factor to a single in line memory module ("SIMM") have been introduced by Dallas Semiconductor to package complex logic, analog, and/or telecommunications functions. In the presently preferred embodiment, a subsystem such as shown in FIGS. 1A through 1B or 2A through 2B is packaged in a new kind of SipStik.

SipStiks have a substantial advantage in their very low height and compact size, but sometimes it is difficult to find room for the desired pinout along one edge of such a small package.

In the presently preferred embodiment, a SipStik package is used which has SipStik connectors along both the upper and lower edges, as shown in FIG. 16. This innovative structure can be used in multiple ways.

In the presently preferred embodiment, an integrated subsystem as shown in FIGS. 1A through 1B or 2A through 2B can be used as a microprocessor or as a microcomputer. However, the pinouts desired for these two uses are not identical, and the total available pinout, with the preferred pin spacing and package dimensions, does not permit all of the signals desired for either use to be brought out. Therefore, the presently preferred embodiment provides a "mirror-image" SipStik, which can be inserted in one orientation to provide a microprocessor functionality, and can be inserted upside-down to provide microcomputer functionality.

Another way of using this mirror-image SipStik is to connect a jumper connector to the top connection row. Since the top connection has the same form factor as the main connection, an adaptation of the same connector can be used to connect the Stik's top connector to a flat ribbon cable.

A further variation of this is that the same connector header, which is normally mounted on a PC board to receive a SipStik module, is modified, with a small complementary header, to mate to the connector on the top edge of a SipStik board. This provides system designers with tremendous flexibility.

The SipStik modules normally have a battery mounted on-board, and are normally encapsulated by a conformal sealant to reduce exposure of the battery to environmental conditions. This environmental sealant, of course, does not extend over the connector areas. The mirror-image SipStik disclosed herein is therefore entirely compatible with this sealing process.

Of course, a wide variety of modifications of this idea can be used if desired.

The present application describes a nonvolatizing adjunct chip (a "softener" chip) which can be used in combination with a variety of microprocessors or microcontrollers to add nonvolatile functions into these machines. Thus, existing logic chips can be made crash-proof. In addition, the adjunct chips provide a power monitoring function, which will generate interrupts and/or resets when the system power begins to fail, permitting orderly shutdown.

The adjunct chip is a complex logic chip, but it is not (in the presently preferred embodiments) a fully programmable processor. The associated processor provides programmable instruction execution; the adjunct chip merely provides an add-on component, which adds nonvolatility.

The adjunct chip of the presently preferred embodiment performs a number of valuable functions: it not only nonvolatizes the microprocessor, but also "wraps around" the microprocessor to provide additional ports (and expanded electrical interface options), and also additional options for a hardware/software interface to another system.

Thus, the adjunct chip of the presently preferred embodiment "wraps around" a microprocessor to provide readily adaptable to other microprocessors.

An important motivation for the use of ROM, in a nonvolatized system, is that ROM provides a firm foundation for verification of software integrity.

Some of the noteworthy novel features of the adjunct chip's architecture (in the presently preferred embodiment), which lead to substantial system-level advantages, will now be described.

The adjunct chip provides a program memory revectoring capability, so that the code executed by the microprocessor can be sequenced from the adjunct chip's ROM or from external RAM. Operation of the microprocessor from these sources of code is handled very differently. This novel architecture includes several features of interest.

First, execution of ROM software provides a highly secure basis for program verification. To facilitate this, the ROM software, and its on-chip RAM data, are heavily protected against incursions by user software. Reliable routes for entering and leaving ROM software are provided, which retain security without greatly impeding operation.

Second, it should be noted that, when the microprocessor is operating from the adjunct chip's ROM software, the adjunct chip is not actually sequencing code to the target microprocessor. (This would present some architectural incompatibility.) Instead, the adjunct chip provides overlaid interception capabilities which provide essentially the same functionality. Thus, while the function of the adjunct chip is probably more analogous to a sequencer than to a full coprocessor, it is in fact neither a sequencer nor a coprocessor.

Third, some significant tricks are used in handling the address map, as will be discussed in detail below. The control-software code is overlaid onto the RAM address space, and several features are used to facilitate this overlay.

A bank of external memory is used, conventionally, to store programming and data for the target microprocessor. During normal operation of the microprocessor (with system power on), the adjunct chip permits sequencing of code from the external program RAM, so that the adjunct chip is transparent to the microprocessor.

However, to assist in the adjunct chip's nonvolatizing functions (at startup), and to assist in assuring code integrity, the adjunct chip also includes a block of program ROM. This is used to perform control functions as described below.

Some innovative ideas are also used for transition between sequencing code from ROM and sequencing code from program RAM, as described below.

When the microprocessor is operating in control mode, the softener redirects addresses as follows: when the microprocessor tries to access an initial address in program RAM, the adjunct chip revectors this access so that the microprocessor is reading out (and executing) the start-up code which is stored in the adjunct chip's ROM.

In the presently preferred embodiment, the code contained in ROM is used for two major functions: microprocessor's program memory.

The adjunct chip also includes 16 bytes of internal RAM which are only accessible by the control software, not by the user software. In the presently preferred embodiment, this RAM is further protected by timed-access relationships. These bytes are used to store the high and low boundaries for CRC operation.

The adjunct chip provides both software and hardware avenues to enter execution of the control software. This unusual degree of flexibility has been achieved without compromising the security and stability of the system.

The control software can be exited by clearing the "ROM" bit in the adjunct chip's RAM. This automatically causes a reset to be issued, following which the microprocessor will be allowed to run in application mode.

As background, it should be noted that the DS5000 nonvolatile microcontroller performs an automatic reset on exiting ROM code. See commonly owned U.S. patent application 164,097, Filed Mar. 4, 1988, and entitled "Partitionable embedded program and data memory for a central processing unit," (DSC-64), which is hereby incorporated by reference.

At every entry into the control software, a branch to control or reloading routines is made.

In the presently preferred embodiment, the ROM memory in the adjunct chip can be accessed when the microprocessor powers up, and a CRC check then run on the user program, in external RAM.

In the presently preferred embodiment, the adjunct chip itself contains hardware for generating the Cyclic Redundancy Check (CRC) check value. The microprocessor merely has to read out the data values in the range to be checked, and push them successively into a register address. The softener hardware captures writes to this address, and loads the stream of values into its CRC hardware. The microprocessor can fetch the computed CRC value by simply reading another "register," at a register address which is remapped into the softener. Thus, the microprocessor never has to do the many shift and XOR operations for CRC computation: it simply performs a series of 8-bit register writes, a 16-bit register read, and a compare operation. This speeds up CRC generation, and allows system software designers to use CRC checking more readily.

The arguments for CRC check operations, including high- and low-address boundaries and the expected check value, are kept in the adjunct chip's on-chip RAM. (This RAM is only accessible when the microprocessor is executing code from ROM.) Thus, when a CRC operation is initiated, the designated block of memory will be processed to generate a CRC redundancy check value.

An important control operation, performed under the control of adjunct chip ROM code, is reloading the RAM code which will be executed by the target microprocessor. This prevents any possibility of the target microprocessor reaching a "stuck" condition due to corruption of the RAM code.

One of the ways to initiate such a program reload is by means of the RL* input signal. (There are other ways, as described below.) The RL* input, which is used to control reloads, is not purely a logic level. The following table gives a concise summary of some of the key relationships: DS5340 ROM LOADER and CRC CHECK DETERMINATION __________________________________________________________________________ CRC => CRC = 1 = RUN CRC CHECK CRC = 0 = DO NOT RUN CRC CHECK IRL => IRL = 1 = RELOAD PIN ACTIVE IRL = 0 = RELOAD PIN INACTIVE ROM => ROM = 1 = SET IF ROM ENTERED BY USER SOFTWARE ROM = 0 = CLEARED IF ROM ENTERED BY DOG OR RL PIN WDS => WDS = 1 = WATCHDOG HIT WDS = 0 = NO WATCHDOG HIT PUP => PUP = 1 = SET BY USER TO INDICATE NOT POWER-UP PUP = 0 = CLEARED BY POWER-UP Method of Entering ROM. CRC = 1     Watchdog time-out If  or     when or         then enter ROM mode. IRL = 1     power on reset RL receives a negative edge. Software sets ROM bit high. Method of Leaving ROM. Take RL pin high. Positive edge will clear ROM bit. Clear ROM bit. Reason for CRC check: 1. Power-up system check. 2. Hardware hit by watchdog 3. Software check as required by user software. __________________________________________________________________________

A reload command causes a reset, which then branches into the adjunct chip's ROM address space. When execution of the control software is completed, the adjunct chip will again reset the target microprocessor, and execution can then begin in the user's program memory.

At the end of a control-software program, the microprocessor is commanded to clear the ROM-software-enable bit. This automatically causes the microprocessor to be reset; when the microprocessor comes back up after the reset, it is allowed to execute code from RAM. Execution of application software can then proceed normally.

One of the architectural points to be considered in the adjunct chip architecture is the use of polls.

Note that the adjunct chip of the presently preferred embodiment consumes at least one port of the microprocessor, and ports are a valuable resource in microprocessor system configurations. Therefore, the adjunct chip of the presently preferred embodiment provides additional port capacity, which can be used to provide close-in port multiplexing of the microprocessor, or simply to avoid any net loss of port capacity.

Moreover, the adjunct chip of the presently preferred embodiment also includes considerable additional port-interfacing logic, to increase the designer's options for interfacing the microprocessor to another system.

Some microprocessors multiplex address and data onto the same set of pins, using a control signal such as ALE or AS. To accommodate this, the adjunct chip provides a process mask option so that multiplexing can be selected or deselected.

One of the features of the preferred adjunct chip architecture is that one of the ports is made extremely versatile and programmable. To ensure that port versatility is not lost, the preferred embodiment of the adjunct chip contains one port (Port A) which has extraordinarily high versatility. This port is programmable bit-by-bit to emulate a very wide variety of port characteristics.

This port can implement either full Motorola or full Intel.sup.10 port relationships. In addition, this port has the capability to read either the pad or the data register, independently of the data direction. Thus, the innovative port provides the capability for full Motorola emulation, and also provides additional flexibility. different, as described below.

This port also has the ability to sense an edge transition, of either sign, or to sense a level of either sign (as long as it remains for more than one bus cycle) and to generate interrupts therefrom, in accordance with mask bits.

The ability to sense edges is particularly useful, since one problem with microprocessor ports in general is that some input signals may generate an edge at the microprocessor port which does not correspond to a long-term level shift. The sampling time of the microprocessor may be long enough that such a pulse could be missed.

The presently preferred embodiment includes a highly flexible register file structure, which contains several innovative features to facilitate control interactions between the adjunct chip and the target microprocessor. (Some of these innovations are also applicable to handshaking, semaphoring, and other control interactions across any asynchronous processor-processor boundary.)

The 8042 (which was a remake of the 8048) converted two ports of the architecture to provide a register which was directly interfaced to the PC bus. This presented some difficulty at the time, since the PC bus was faster than the typically slow microcontroller. The 8042 therefore used a two-port asynchronous latch. The 8042 is still very commonly used to provide the keyboard interface in IBM PC/AT-compatible architectures.

The asynchronous latch of the 8042 provided one 8-bit input register and one 8-bit output register. A status register, with an appropriate flag bit, is used to differentiate between command and data loads.

The register file structure adds capability to a microprocessor. In effect, this structure also expands the capabilities of the microprocessor, by adding more flexible interrupt handling, and thus better communications with other, asynchronous, processors.

The status registers are double buffered. The adjunct chip includes eight input registers, eight output registers, and eight registers for command, control, and status information. These 24 registers actually only have 16 register addresses. (The implementation of this will be described below.)

The status registers also include four flags which can be used to set interrupt dependencies. The status registers also include mask bits which can be used to mask the interrupts generated from the opposite status register. Thus, the internal side of this interface can set a bit to mask interrupts which would otherwise be generated by status information input from the external side of the status register.

The eight input buffer registers (labeled "IB") are writable externally and readable internally. The eight output buffer registers (labeled "OB") are readable externally and writable internally.

While the average speeds on the two sides of the interface are typically comparable, they are necessarily asynchronous. Thus, the described architecture provides particular advantages in this asynchronous interface. The innovative ideas used in this interface architecture can also be used in other asynchronous interfaces, particularly where control information must be passed across an asynchronous boundary.

The IBF and OBF registers provide write/read flags for the corresponding registers. Thus, these flags will indicate to the reading side whether new information has been written in from the other side, and will indicate to the writing side whether the reading side has yet read out the previously written information. (The IBF And OBF registers are operated as slaves.)

The mask registers (internal IBM, internal OBM, external IBM, external OBM) indicate which of the input and output registers can generate an interrupt. The bits in the status registers can also indicate an "and" relationship or an "or" relationship. Note that the internal IBM and OBM registers are controlled from the internal side, and the external IBM and OBM registers are controlled from the external side. Thus, there is full programmability in controlling the automatic generation of interrupt signals based on the status of buffer registers. This is believed to be a new and generally applicable way to control status information.

The adjunct chip also includes hardware cyclic redundancy check circuits. In the presently preferred embodiment, these follow the US CRC-16 standard, but the European standard is available as a mask option.

The adjunct chip, in the presently preferred embodiment, also includes a freshness seal circuit, so that absolutely no battery drain will occur before the chip is placed in service.

Some processors have a "stop" mode (also known as a sleep mode). In general, this capability is used to provide a low-power idle state for the microprocessor.

The adjunct chip also has a low-power sleep mode, which it can enter when the target microprocessor is asleep. It would be wasteful for the adjunct chip to remain in an active high-power mode if the microprocessor has gone into a low-power sleep mode. Thus, the following discussion relates not only to issues of shutting down and waking up the microprocessor, but also to issues of shutting down and waking up the adjunct chip.

When the adjunct chip enters sleep mode, it will typically interrupt the oscillator clock to the microprocessor; interrupt reset signals to the microprocessor; and turn off its watchdog circuit. Also, on entering sleep mode, the op amp's current source is turned down. This causes the op amp to react more slowly.

In an optional alternative (not included in the presently preferred embodiment), the adjunct chip can see a "stop" instruction come through in the microprocessor's code being executed from RAM, and can thereby anticipate a "sleep" command from the microprocessor.

For a further example, the adjunct chip can monitor electrical activity on the microprocessor's output lines. If a certain number of clocks pass with no activity whatsoever on the microprocessor's clock-output line, the adjunct chip can assume that the microprocessor has gone to sleep.

In the system architecture, the microprocessor is not directly connected to a crystal. Instead, the adjunct chip is interposed between the microprocessor and its crystal. Similarly, the adjunct chip is interposed between the microprocessor's reset input and the external reset connection.

Thus, when the adjunct chip determines that the microprocessor is in sleep mode, the adjunct chip can turn off clock pulses to the microprocessor. Similarly, when the microprocessor is to wake up again, the adjunct chip can restart the oscillator, and wait for the oscillator to stabilize, before allowing the microprocessor to be clocked by the oscillator. (In the presently preferred embodiment, the microprocessor is held in reset while the oscillator stabilizes.) The oscillator will normally have a significant current burn, and it is desirable to avoid this when the system is in a minimum-power mode.

Some microprocessor architectures require that the microprocessor be awakened from sleep mode if an interrupt is received. Accordingly, the adjunct chip also has a mask option whereby the microprocessor will be awakened if an interrupt is received.

Other conditions wherein the target microprocessor will be reawakened include detection of a power-down condition (as described below) or a reload operation.

When the adjunct chip detects that power supply voltage is below limits, it will send the microprocessor an interrupt, and then (after some intervening clock cycles) a reset, and then will send more clock pulses before going into a "stop" mode. (The adjunct chip's stop mode, like the microprocessor's sleep mode, provides reduced power consumption during long periods of inactivity.)

In the presently preferred embodiment, timed hysteresis is used to implement the power-down reset and interrupt relationships. This is advantageous because it avoids a problem of repeatedly activating reset or interrupt signals on power-down or even on a slow power-up due to clock "slivers," i.e., noise seen inside the chip from clock transitions.

However, a difficulty is that, in sleep mode, there are no clocks available in the adjunct chip. Therefore, in sleep mode, this hysteresis circuit is simply bypassed.

Other integrated circuits, such as the DS1236, have used timed hysteresis for stabilizing a transition. However, an integrated circuit which turns off a switchable timed hysteresis circuit upon entering sleep mode is advantageous, and is believed to be novel.

Some microprocessors are designed to wake on an interrupt. The adjunct chip family has a mask option so that the target microprocessor can be waked when the appropriate interrupt is received.

Different versions of the adjunct chip will also wake the microprocessor upon a power-down or from a program reload.

The adjunct chip also includes a band-gap voltage reference. This function is somewhat power hungry. Therefore, in sleep mode, the band-gap voltage reference is switched off. Instead, in sleep mode, the battery input is used as the reference input to comparators. When the chip returns to the active mode, the band-gap voltage reference is reactivated, and this output is used for a reference input.

The adjunct chip also contains a watchdog function. This function, too, is made programmable. Thus, the user can determine what period of inactivity the watchdog function should wait for before activating a reset or interrupt. Moreover, the watchdog can optionally be turned off. (The watchdog function is also turned off when the adjunct chip enters its stop mode.)

The watchdog function is always active when the microprocessor is being operated from adjunct chip ROM.

As noted, the softener chip also includes a small amount of parameter RAM, which is used to preserve the status of various programmable options. In the presently preferred embodiment, this RAM includes only 16 bytes, which are organized in two blocks: Each holds a start address, an end address, and a CRC value.

The watchdog parameters, like other programmable options, need to be insulated against accidental corruption by application software. Several techniques are used to provide such protection:

(1) Some programmable bits are writable only while the microprocessor is executing code from the adjunct chip ROM.

(2) Some programmable bits are protected by timed-access relations, so that the bit can be accessed only within a certain time window defined with respect to a particular sequence of writes to a register. (See U.S. patent application Ser. No. 163,980, Filed Mar. 4, 1988, which is hereby incorporated by reference.)

(3) Some bits are protected both by limitation to control software and by timed-access relationships.

In the presently preferred embodiment, the adjunct chip can exist in several different versions, which each have slightly different features (implemented by a simple mask option, as described below), depending on which target microprocessor is to be used. In the present class of embodiments, five different versions of the adjunct chip are contemplated, aimed at five different families of target microprocessor. Of course, further versions of the adjunct chip can also be added, with other target microprocessors.

A further advantage of the adjunct chip is that it can provide great versatility in the device-level architecture of the target microprocessor. Thus, the CMOS adjunct chip can be combined with an n-channel metal-oxide-silicon transistor ("NMOS"), or even bipolar, target microprocessor to provide a low-power and crash-proof system.

Another general feature which is provided by the adjunct chip is a nonvolatizing interface for control of SRAMs. The ability to preserve data in a bank of memory provides a tremendous increase in system versatility.

The softener ROM and the softener RAM are both overlaid onto program memory. Moreover, this is a sliding overlay, so that none of the underlying memory space is lost.

Program reloading, while the microprocessor is executing a different program from memory which is overlaid onto the program memory's space, presents a potential address conflict. In the presently preferred embodiment, an address inversion scheme avoids any such conflict.

Due to address overlap between the ROM-code space and the application program address space, an address remapping trick is used for initial loading of program memory. One or more high-order address bits are inverted to permit writing into the address space under the ROM-code addresses, without redirecting the sequence of ROM-code execution. A special chip-enable decoder is used to correct the inverted address bits.

A variety of problems arise in attempting to accommodate the wide variety of architectures, port interfaces, and other requirements of various microprocessors.

For example, the 8051 architecture carries data and program memory in two separate memory maps. In this architecture, it is impossible for the application program to write in program memory--there is simply no instruction to do this. However, Motorola architecture (e.g., in the 6800 and related chips) has a common memory architecture, where data and program memory share the same address space. This can be a danger in RAM-based systems, since it is conceivable that the user memory may overwrite some of the program and thus cause unpredictable results.

The adjunct chip, in the presently preferred embodiment, includes a sliding window of memory protection to prevent the user program from overwriting the operating program inadvertently. The adjunct chip intercepts the write-enable signals to the memory, and controls generation of the chip-enable signals, to implement this protection. This solves an important problem with nonvolatizing Motorola architectures.

A further feature of the adjunct chip is to provide multiple chip-enable outputs for other peripheral chips. Preferably one output is provided for battery-backed chips, and one for chips which are not battery-backed (e.g., for a non-battery-backed clock, such as DS1283, or a universal asynchronous receiver transmitter "UART")). The chip-enable lines to battery-backed chips are preferably held high (inactive) while power is down, to keep those chips from being turned on by random floating-node voltages.

The DS5000 microcontroller switches from a crystal-controlled oscillator to a ring oscillator on power-down, since the crystal oscillator will cease to operate, at some point, as the voltage drops..sup.11 generation of sufficient clock cycles, after the power-down reset, to end up in a known state. See commonly owned application Ser. No. 238,809, Filed Aug. 31, 1988 ("Nonvolatile microprocessor with predetermined state on power-down," DSC-60), which is hereby incorporated by reference.

The adjunct chip, in the presently preferred embodiment, also includes a ring oscillator which is used for reliable clock generation when the power supply goes below the acceptable threshold.

However, a potential problem exists in such use of a ring oscillator: An active microprocessor will burn a fairly large current, e.g. 25 milliamps. When the microprocessor stops (in a lightly loaded system), the power supply voltage V.sub.DD may bounce..sup.12 This voltage bounce may cause the microprocessor to resume operation: In a worst-case scenario, this may happen repeatedly. supply's source impedance. Source impedance is typically lower for higher-capacity power supplies. Source impedance also may be current-dependent.

This problem has been solved in two innovative ways: oscillator and the on-chip ring oscillator, and include a latch in the MUX. This latch imposes hysteresis, which avoids the bouncing. clock input and the crystal oscillator at the reset input) to filter the crystal oscillator's signal to provide a reliable indication of crystal oscillator failure; and: Use a timing window guardband, and a transmission gate plus latch to freeze the input, where the timing window guardband is a long enough delay to allow the frozen input condition (whatever it is) to propagate through the system.

Another innovative feature set forth herein is an innovative microboard package.

SipStik.TM. packages, having a similar form factor to a SIMM memory module, have been introduced by Dallas Semiconductor to package complex logic, analog, and/or telecommunications functions. In the presently preferred embodiment, a subsystem such as shown in FIGS. 1A through 1B or 2A through 2B is packaged in a new kind of SipStik.

SipStiks have a substantial advantage in their very low height and compact size, but sometimes it is difficult to find room for the desired pinout along one edge of such a small package.

In the presently preferred embodiment, a SipStik package is used which has SipStik connectors along both the upper and lower edges, as shown in FIG. 16. This innovative structure can be used in many ways.

In the presently preferred embodiment, an integrated subsystem as shown in FIGS. 1A through 1B or 2A through 2B can be used as a microprocessor or as a microcomputer. However, the pinouts desired for these two uses are not identical, and the total available pinout, with the preferred pin spacing and package dimensions, does not permit all of the signals desired for either use to be brought out. Therefore, the presently preferred embodiment provides a "mirror-image" SipStik, which can be inserted in one orientation to provide a microprocessor functionality, and can be inserted upside-down to provide microcomputer functionality.

A particularly advantageous system embodiment is a combination of a nonvolatized microprocessor module (such as the DS2340 described below) in combination with other modules which permit dial-up telephone access. For example, this is permitted by a DS2245 Modem Stik in combination with a DS2249 DAA Stik.)

In the presently preferred embodiment, the 16 bytes of RAM on the adjunct chip arc used not only to store CRC parameters, but also arc used to store a modem-present flag and a "help-me" flag. The modem-present flag is programmed at the time of system configuration to indicate to the adjunct chip's control software that, when an error condition occurs, the dial-up capability can be used as part of the error handling routine.

When the CRC logic detects an error, as shown in the flow chart of FIG. 15, it can seek help from a remote host system. The remote host can then program in successively narrower CRC boundary values, to zero in on a bad block of code. When a sufficiently small bad block of code has been identified, this code can be reloaded over the modem link without consuming a large amount of modem time. Moreover, all of this can be performed automatically, without requiring human assistance.

In the presently preferred embodiment, the softener chip now has two power-fail output signals, called V3 and V45. These signals can be propagated around a system to avoid skew in the power-down transitions on different chips.

This is useful even if other chips also have a bandgap reference on-chip: In a complex system, you do not want to have more than one bandgap operating independently: The softener would probably be the master power-fail detector and let the other nonvolatized subsystems use a power-fail input.

The present invention will be described with reference to the accompanying drawings, which show important sample embodiments of the invention and which are incorporated in the specification hereof by reference, wherein:

FIG. 1A shows the first portion of a single subsystem including a microprocessor (which uses data/address multiplexing), an adjunct chip, a battery, memory, and a timekeeper chip;

FIG. 1B shows the second portion of a single subsystem including a microprocessor (which uses data/address multiplexing), an adjunct chip, a battery, memory, and a timekeeper chip;

FIG. 1C shows an adjunct chip suitable for use with a microprocessor which uses data/address multiplexing;

FIG. 2A shows the first portion of a single subsystem including a microprocessor (which does not use data/address multiplexing), an adjunct chip, a battery, memory, and a timekeeper chip;

FIG. 2B shows the second portion of a single subsystem including a microprocessor (which does not use data/address multiplexing), an adjunct chip, a battery, memory, and a timekeeper chip;

FIG. 2C shows an adjunct chip suitable for use with a microprocessor which does not use data/address multiplexing;

FIG. 3A shows the memory mad normally used in a V40 microprocessor;

FIG. 3B shows a first portion of a single diagram showing how the memory map of FIG. 3A is preferably modified, in control mode and in user mode, for each of five different memory allocations;

FIG. 3C shows a second portion of a single diagram showing how the memory map of FIG. 3A is preferably modified, in control mode and in user mode, for each of five different memory allocations;

FIG. 3D shows a third portion of a single diagram showing how the memory map of FIG. 3A is preferably modified, in control mode and in user mode, for each of five different memory allocations;

FIG. 3E shows a fourth portion of a single diagram showing how the memory map of FIG. 3A is preferably modified, in control mode and in user mode, for each of five different memory allocations;

FIG. 3F shows a fifth portion of a single diagram showing how the memory map of FIG. 3A is preferably modified, in control mode and in user mode, for each of five different memory allocations;

FIG. 3G shows a first portion of a single diagram showing memory maps and remapping for a 6303X microprocessor;

FIG. 3H shows a second portion of a single diagram showing memory maps and remapping for a 6303X microprocessor;

FIG. 3I shows a third portion of a single diagram showing memory maps and remapping for a 6303X microprocessor;

FIG. 3J shows a first portion of a single diagram showing memory maps and remapping for an Intel 80C196 microprocessor;

FIG. 3K shows a second portion of a single diagram showing memory maps and remapping for an Intel 80C196 microprocessor;

FIG. 3L shows a third portion of a single diagram showing memory maps and remapping for an Intel 80C196 microprocessor;

FIG. 3M shows a first portion of a single diagram showing memory maps and remapping for a Motorola 68HC11 microprocessor;

FIG. 3N shows a second portion of a single diagram showing memory maps and remapping for a Motorola 68HC11 microprocessor;

FIG. 3O shows a third portion of a single diagram showing memory maps and remapping for a Motorola 68HC11 microprocessor;

FIG. 3P shows a first portion of a single diagram showing memory maps and remapping for a Hitachi 6305X2 microprocessor;

FIG. 3Q shows a second portion of a single diagram showing memory maps and remapping for a Hitachi 6305X2 microprocessor;

FIG. 4A shows a first portion of a single circuit diagram showing the interface to one pin in the highly flexible port which is used as port A in the adjunct chip embodiments of FIGS. 1C and 2C;

FIG. 4B shows a second portion of a single circuit diagram showing the interface to one pin in the highly flexible port which is used as port A in the adjunct chip embodiments of FIGS. 1C and 2C;

FIG. 4C shows a third portion of a single circuit diagram showing the interface to one pin in the highly flexible port which is used as port A in the adjunct chip embodiments of FIGS. 1C and 2C;

FIG. 4D shows a fourth portion of a single circuit diagram showing the interface to one pin in the highly flexible port which is used as port A in the adjunct chip embodiments of FIGS. 1C and 2C;

FIG. 4E shows a fifth portion of a single circuit diagram showing the interface to one pin in the highly flexible port which is used as port A in the adjunct chip embodiments of FIGS. 1C and 2C;

FIG. 5 shows the architecture used for ports B, C, and D, in the adjunct chip embodiments of FIGS. 1C and 2C;

FIG. 6A shows the architecture preferably used for the multiplexed interface 186, in the adjunct chip embodiments of FIGS. 1C and 2C;

FIG. 6B shows the architecture preferably used for the buffers 169 and 269, in the adjunct chip embodiments of FIGS. 1C and 2C (respectively);

FIG. 6C shows the simple interface 188 preferably used for latching in high-order address bits, in the adjunct chip embodiments of FIGS. 1C and 2C;

FIG. 7 shows the architecture of the Register File Structure, which provides a very flexible interface to another computer system;

FIG. 8A schematically shows one register of the input buffers and flags, in the Register File Structure of an adjunct chip of FIG. 1C, in the presently preferred embodiment;

FIG. 8B shows how multiple cells as in FIG. 8A are combined to provide the full input buffer register and flag structure;

FIG. 8C shows how multiple cells as in FIG. 8A are combined to provide the output buffer register and flag structure;

FIG. 9A schematically shows one cell of mask register OBM;

FIG. 9B shows how multiple cells as in FIG. 9A are combined to provide the Internal-IBM and Internal-OBM registers;

FIG. 9C shows how multiple cells as in FIG. 9A are combined to provide the External-IBM and External-OBM registers;

FIG. 10 schematically shows one IBIT cell of the status register;

FIG. 11A schematically shoves one cell of the AND/NOR logic which provides combinatorial masking dependence;

FIG. 11B shows how four cells as in FIG. 11A are combined to provide the AND/NOR select options for the Internal-IBM, Internal-OBM, External-IBM, and External-OBM registers;

FIG. 12 schematically shows the logic which is used to capture rising and falling edges of the external reload signal RL*;

FIG. 13A and 13B show the two sides of an innovative subsystem microboard used in a preferred subsystem embodiment;

FIG. 14 schematically shows the timing relations which assure that the adjunct chip will never be in reset when the associated microprocessor comes out of reset;

FIG. 15 schematically show the branches used, within the control software, to run control or reloading routines; the particular example shown is adapted for use with a subsystem like that shown in FIG. 16, wherein a microprocessor and an adjunct peripheral chip are combined with a modem and a DAA subsystem;

FIG. 16 shows an example of a complete subsystem, wherein a microprocessor and an adjunct peripheral chip are combined with a modem and a DAA and also shows the physical shape of a novel preferred micro-board package;

FIG. 17 shows the circuitry used, in the presently preferred embodiment, to implement the oscillator control circuitry 184 in an adjunct chip of FIG. 1A and 1B;

FIG. 18 shows the circuitry used, in the presently preferred embodiment, to implement the Reset Control circuits 152 in the adjunct chip of FIG. 1A and 1B;

FIG. 19 shows the circuitry used, in the presently preferred embodiment, to implement the battery circuits 164 in the adjunct chip of FIG. 1A and 1B.

The numerous innovative teachings of the present application will be described with particular reference to the presently preferred embodiment. However, it should be understood that this class of embodiments provides only a few examples of the many advantageous uses of the innovative teachings herein. In general, statements made in the specification of the present application do not necessarily delimit any of the various claimed inventions. Moreover, some statements may apply to some inventive features but not to others.

FIG. 1A is an overview of a first sample system embodiment employing the disclosed innovations.

Preferably a subsystem as shown (optionally combined with additional integrated circuits, as discussed below) is integrated on a single micro-board with a single in-line mounting, as discussed in detail below.

The system shown in FIG. 1A includes a microprocessor 110, SRAMs 130, an adjunct chip 120, and a battery 150 which provides a constant DC power supply to the adjunct chip 120 (which can thereby power other chips when appropriate). The system shown also includes a watchdog chip 140. In the presently preferred embodiment, this is a DS1283 clock/calendar chip, but of course other such chips could be used instead..sup.1 from Dallas Semiconductor Corporation, and are both hereby incorporated by reference.

The external connections of this board include, in the presently preferred embodiment:.sup.2 system will generally be shown with a double underline. Off-chip connections which do not go off-board will generally be shown with a single underline. Names of register bits will generally be shown in italics. These conventions, although not rigorously followed, are intended to help avoid confusion between similarly-named signals. chip 120 has detected that the power supply is below corresponding threshold voltages; the presently preferred embodiment are used for (High-order address bits A16-A19 are multiplexed, and the same pins will carry status signals during the second half of each cycle. The latched A16L pin allows 128K memories to receive a full address without tracking the multiplex half-cycle timing.

The microprocessor 110 (in this example, an NEC V40 microprocessor) has ports 1 and 0 which are connected to provide data routing as desired. This microprocessor also has a multiplexed address and data port, including lines AD0 through AD7, and eight additional address lines A8 through A15. All of these 16 lines are connected to the adjunct chip 120, which is shown in greater detail in FIG. 1B. The presently preferred embodiment of the chip 120 corresponds to the forthcoming integrated circuit assigned to Dallas Semiconductor part number DS5340, but of course chips under this part number may subsequently be modified so that they depart from the description herein. However, the description herein provides the preferred embodiment of making and using the invention as of the time of filing this application. Of course, the innovative concepts shown in the examples herein can readily be adapted to a wide variety of other embodiments.

Note that the 16 lines AD0 through AD7 and A8 through A15 are also connected to random access memories 130A and 130B. Note that two alternative versions are shown: instead of the 8K.times.8 SRAMs 130A and 130B, 32K.times.8 SRAMs 130A' and 130B' may be used instead. Note that the low-order address bits A0 through A7 are provided to the memories 130 from the adjunct chip 120.

Other connections to the microprocessor 110 include the following: INT1* and INT2*. In addition, the interrupt logic 111 is connected to receive a reset signal. However, note that this reset signal is not the same as the reset signals RST* which is externally received: The externally received reset signal is connected to the adjunct chip 120, and the adjunct chip 120 provides an RSTOUT* signal which is connected to the reset input of the microprocessor. and EXTAL connections of this oscillator, which would normally simply be connected to a discrete crystal, are instead connected to clock terminals CLKIN and CLKOUT of the chip 120. The adjunct chip 120 includes two crystal connections XTAL1 and XTAL2, which are preferably connected to a crystal, not shown. microprocessor manufacturer, may also be referred to as a signal E or a signal DS) which is connected to an input RDIN* of the adjunct chip 120. WRIN* input of the adjunct chip 120. The microprocessor also may include an address strobe output AS, which is connected to input AST*, of the adjunct chip 120. write-enable output signal WROUT*, which is connected to the write-enable inputs of memory chips 130. In this embodiment, the adjunct chip 120 also contains two more chip-enable outputs CE1* and CE5* which are respectively connected to the memory chips 130A and 130B (or 130A' and 130B'). Two additional peripheral chip-enable outputs PCE3* and PCE4* are also provided. Note that, in the configuration shown, signal PCE3* is connected to the chip-enable input of the watchdog 140. These PCE outputs can be used to selectively activate other peripheral chips, such as an RF interface, or can optionally be led to an external connection for control of other portions of the system. receives a battery input voltage VBAT. Ports B and C are led directly off-chip. In addition, an IBMINTE* output is also provided, as will be described below.

FIG. 2A shows another sample system configuration, using a microprocessor 210 which does not multiplex data with addresses. The overall configuration of this system is generally similar to that of FIG. 1A, but there are some differences which should be noted. The adjunct chip 220 preferably used in such a system is slightly different from the adjunct chip 120, as shown in detail in FIG. 2B.

FIG. 2B may be seen to generally be similar to Figure 1B. In general, corresponding elements have been given the same number. However, note that buffer 269 is an 8-bit-wide address input register, whereas buffer 169 is an 8-bit-wide address output register. Also note that the Port D interface 262 is now used for a full 8-bit bidirectional port, whereas in the example of FIG. 1B this port was used for additional data and control lines. Of course, the data lines at this port can still be used, if desired, to carry comparable control and status information.

In the example shown, the adjunct chip 220 is the integrated circuit which is commercially available under part number DS5303 from Dallas Semiconductor Corporation. However, of course, the commercially available integrated circuit may be changed over time, and the description set forth herein defines the presently preferred embodiment as of the time of filing the present application.

The normal mode of program execution is essentially the same as would be used in a system without an adjunct chip. (Accordingly, application programs do not have to be modified.)

Many CMOS microprocessors have a sleep mode, where the processor will consume minimum standby power when no computation is needed. The disclosed adjunct chip architecture permits this sleep mode to be exploited as well as if the microprocessor were in a standalone configuration.

When the microprocessor is operating in control mode, the softener redirects addresses as follows: when the microprocessor tries to access an initial address in program RAM, the adjunct chip revectors this access so that the microprocessor is reading out (and executing) the start-up code which is stored in the adjunct chip's ROM.

In the presently preferred embodiment, the code contained in ROM is used for two major functions: memory.

The adjunct chip also includes 16 bytes of internal RAM which are only accessible by the control software, not by the user software. In the presently preferred embodiment, this RAM is further protected by timed-access relationships. These bytes are used to store the high and low boundaries for CRC operation.

The adjunct chip provides both software and hardware avenues to enter execution of the control software. In the presently preferred embodiment, execution of control software can be started in the following ways: low);

At every entry into the control software, a branch to control or reloading routines is made. Bit CRC indicates whether the CRC routines are to be executed.

FIG. 15 is a schematic flow chart which shows generally the program flow in the control-software routines.

In the presently preferred embodiment, the ROM memory in the adjunct chip can be accessed when the microprocessor powers up, and a CRC check then run on the user program, in external RAM.

In the presently preferred embodiment, the adjunct chip itself contains hardware for generating the Cyclic Redundancy Check (CRC) check value. The microprocessor merely has to read out the data values in the range to be checked, and push them successively into a register address. The softener hardware captures writes to this address, and loads the stream of values into its CRC hardware. The microprocessor can fetch the computed CRC value by simply reading another "register," at a register address which is remapped into the softener. Thus, the microprocessor never has to do the multiplies necessary for CRC computation: it simply performs a series of register writes, a 16-bit register read, and a compare operation. This speeds up CRC generation, and allows system software designers to use CRC checking more readily.

The arguments for CRC check operations include high- and low-address boundaries, which are kept in the adjunct chip's on-chip RAM. (This RAM is only accessible when the microprocessor is executing code from ROM.) Thus, when a CRC operation is initiated, the designated block of memory will be processed to generate a CRC redundancy check value.

An important control operation, performed under the control of adjunct chip ROM code, is reloading the RAM code which will be executed by the target microprocessor. This prevents any possibility of the target microprocessor reaching a "stuck" condition due to corruption of the RAM code.

One of the ways to initiate such a program reload is by means of the RL* input signal. The RL* input, which is used to control reloads, is not purely a logic level.

A reload command causes a reset, which then branches into the adjunct chip's ROM address space. When execution of the control software is completed, the adjunct chip will again reset the target microprocessor, and execution can then begin in the user's program memory.

The control software can be exited in the following ways: causes a reset to be issued, following which the microprocessor will be allowed to run in application mode. the ROM bit.

The memory map, as seen by the microprocessor, will differ depending on whether the microprocessor is running control software or user software. Moreover, the memory maps used are different for the various target microprocessors.

FIG. 3A-1 shows the memory map normally used in a V40 microprocessor. Addresses from 00000.sub.H.sup.3 to 00400.sub.H are normally used for interrupt vectors. Addresses from 00400.sub.H to FFFF0.sub.H are available for data or program memory. Addresses FFFF0.sub.H through FFFFC.sub.H are used for reset information, and the remaining higher addresses are reserved. for example, 400.sub.H =1024.

This basic map of the V40 processor is modified in the operation of the system of FIG. 1A several ways. FIGS. 3A-2, 3A-3, 3A-4, 3A-5, and 3A-6 show five modes of operation. These modes are selectable to accommodate various memory configurations. FIG. 3A-2 shows control and user software operating modes in mode 0, where the RAM configuration is two 32K.times.8 memories. FIG. 3A-3 shows control and user software memory assignments for a system which has five 32K.times.8 RAMs. (In this configuration, a full 1M (20 bits) of address space is available. The five 32K memories pick up only a fraction of this address space, and the remainder is available for use by external memory. The five 32K memories are each separately controlled by chip-enable lines CE1* through CE5*.

FIG. 3A-4 shows an operating mode which is generally similar to that of FIG. 3A-3, except that four 128K.times.8 memories and one 32K memory are used. Thus, 480K remain for external memory. Similarly, FIG. 3A-5 shows memory mapping for a case where chip-enable signals CE1*, CE2*, CE3*, CE4*, and CE5* each control a 128K memory. FIG. 3A-6 shows control and user software memory maps for Mode 4, wherein CE1* controls a 128K.times.8 memory, CE2*, controls a 512K.times.8 memory, and CE5* controls a 32K.times.8 memory. Thus, in this example, 352K of address space remains to be allocated to external memory.

FIGS. 3B-1 through 3B-3 show memory maps used with a 6303X microprocessor. (This is the microprocessor shows in the example of FIG. 2A. However, it is now contemplated that use of the 6303Y microprocessor may be more advantageous.) FIG. 3B-1 shows the basic memory map of the HD6303X. Addresses from 0000.sub.H to 0020.sub.H are used for internal registers. Addresses from 0020.sub.H to 0040.sub.H and 0100.sub.H to FFEA.sub.H are used for external memory. Addresses 0040.sub.H to 0100.sub.H are used for internal random access memory. Addresses FFEA.sub.H to FFFF.sub.H are used for interrupt and reset vectors.

FIG. 3B-2 shows how this address space is reallocated in a first mode, where 16K bytes are controlled by chip enables CE1* and CE2* in control software operation and user software operation.

FIG. 3B-3 shows how the 64K of address space of the 6303 is remapped in a different operating mode, wherein 64K bytes of RAM are locally available. In this case, note that no space for external memory is available.

FIGS. 3C-1, 3C-2, and 3C-3 show remapping for an Intel 80C196 microprocessor. As shown in FIG. 3C-1, the basic memory map of this microprocessor is 64K, and is mapped as shown.

FIG. 3C-2 shows how this memory space is remapped in a system which combines an 80C2196 with an adjunct chip as disclosed herein, in a module which includes two 8K.times.8 RAMs. Addresses 0000.sub.H to 0020.sub.H are used for 80C196 data memory, SFRS, and stack pointer. Addresses 0020.sub.H to 0080.sub.H are used for CE1-RAM. Addresses 0080.sub.H to 0100.sub.H are used for 80C196 internal RAM. Addresses 0100.sub.H to 0200.sub.H are used for CE3- or CE1-RAM. Addresses 0200.sub.H to 0300.sub.H are used for CE4- or CE1-RAM. Addresses 0300.sub.H to 0340.sub.H are used for adjunct-chip registers (64 bytes). Addresses 0340.sub.H to 1FFE.sub.H are used for CE1-RAM. Addresses 1FFE.sub.H to 2000.sub.H are used for Port 3 and Port 4. Addresses 2000.sub.H to 3000.sub.H are used for reset/interrupt vectors, configuration byte, and adjunct-chip bootstrap ROM (3968 bytes). Addresses 3000.sub.H to 4000.sub.H are used for CE2-RAM. Addresses 4000.sub.H to FFFF.sub.H are used for external memory.

FIG. 3C-3 shows how the memory space is remapped in a slightly different embodiment, which includes 32K of memory directly controlled by the adjunct chip. Note that no memory space, in this version, is available for external memory.

FIG. 3D-1 shows the basic memory map of a Motorola 68HC11 microprocessor. Again, note that this is a 64K memory map. Addresses 0000.sub.H to 0100.sub.H are used for internal RAM. Addresses 0100.sub.H to 1000.sub.H, 1040.sub.H to B600.sub.H, B800.sub.H to BF40.sub.H, C000.sub.H to E000.sub.H, and E000.sub.H to FFC0.sub.H are available for external memory. Addresses 1000.sub.H to 1040.sub.H are register block. Addresses B600.sub.H to B800.sub.H are used for 512 bytes EEPROM. Addresses BF40.sub.H to C000.sub.H are used for special mode ROM/vectors. Addresses FFC0.sub.H to FFFF.sub.H are used for interrupt and reset vectors.

FIG. 3D-2 shows a memory map for a module which includes this microprocessor with an adjunct chip as disclosed, and two 8K.times.8 SRAMs in the module. In this case, some memory space remains accessible by external memory. Note also that chip enables CE3* and CE4* control memory which is mapped onto portions of the memory space.

FIG. 3D-3 shows a memory map for another version, which is generally similar to the version of FIG. 3D-2 except that two 32K memories are used. Note that, in this case, no address space remains for external memory.

FIG. 3E-1 shows the basic memory map for a Hitachi 6305X2 microprocessor. Addresses 0000.sub.H to 0020.sub.H are used for internal registers. Addresses 0020.sub.H to 0080.sub.H, 0100.sub.H to 1FF6.sub.H, and 2000.sub.H to 3FFF.sub.H are used for external memory. Addresses 0080.sub.H to 0100.sub.H are used for internal RAM. Addresses 1FF6.sub.H to 2000.sub.H are used for interrupt and reset vectors.

The leftmost portion of FIG. 3E-2 shows memory address allocations, in control software operation and user software operation, for a system which combines a 6305 microprocessor with a matched adjunct chip as described herein. In this example, two 8K.times.8 RAMs are available, controlled by chip-enable outputs CE1* and CE2*. Addresses 0000.sub.H to 0020.sub.H are used for internal registers. Addresses 0020.sub.H to 0080.sub.H are used for CE1-RAM. Addresses 0080.sub.H to 0100.sub.H are used for internal RAM. Addresses 0100.sub.H to 0200.sub.H are used for CE3- or CE1-RAM. Addresses 0200.sub.H to 0300.sub.H are used for CE4- or CE1-RAM. Addresses 0300.sub.H to 0340.sub.H are used for adjunct-chip registers (64 bytes). Addresses 0340.sub.H to 1000.sub.H are used for CE1-RAM. Addresses 1000.sub.H to 1FF6.sub.H are used for adjunct-chip bootstrap ROM (4086 bytes. Addresses 1FF6.sub.H to 2000.sub.H are used for reset/interrupt ROM. Addresses 2000.sub.H to 3FFF.sub.H are used for CE2-RAM.

The rightmost portion of FIG. 3E-3 shows a slightly different assignment, where addresses 0000.sub.H to 0020.sub.H are used for internal registers. Addresses 0020.sub.H to 0080.sub.H are used for CE1-RAM. Addresses 0080.sub.H to 0100.sub.H are used for internal RAM. Addresses 0100.sub.H to 0200.sub.H are used for CE3- or CE1-RAM. Addresses 0200.sub.H to 0300.sub.H are used for CE4- or CE1-RAM. Addresses 0300.sub.H to 0340.sub.H are used for adjunct-chip registers (64 bytes). Addresses 0340.sub.H to 1FF6.sub.H are used for CE1-RAM. Addresses 1FF6.sub.H to 2000.sub.H are used for reset/interrupt CE1-RAM. Addresses 2000.sub.H to 3FFF.sub.H are used for CE2-RAM.

The microprocessor is not only able to access Port 0 and Port 1 as usual, but can also make use of ports A-D on the adjunct chip, as described below, by setting the appropriate register bits in the adjunct chip.

Moreover, the microprocessor can also use the adjunct chip to provide programmable interrupt-masking, as described below.

The adjunct chip also provides smart control of microprocessor sleep mode and resets, as described below.

FIG. 1B shows the overall architecture of the adjunct chip 120 shown in FIG. 1A.

In the presently preferred embodiment, the adjunct chip can exist in several different versions, which each have slightly different features (implemented by simple mask options), depending on which target microprocessor is to be used. In the present class of embodiments, five different versions of the adjunct chip are contemplated, aimed at five different families of target microprocessor. Of course, further versions of the adjunct chip can also be added, with other target microprocessors.

A further advantage of the adjunct chip is that it can provide great versatility in the device-level architecture of the target microprocessor. Thus, the CMOS adjunct chip can be combined with an NMOS, or even bipolar, target microprocessor to provide a low-power and crash-proof system.

The five target architectures presently planned for use are the following: and will be primarily referred to in the detailed description below. The NEC V40 is generally similar to an Intel 8086, but without on-chip memory or ports. this--the 68HC11A0 version is probably the most useful in combination with the adjunct chip, but others could be used as well). microcontroller, which is extremely fast. It has a 16K address map.

Most of the above chips have 64K memory maps, except that the V40 has a 1-meg memory map and the Hitachi 6305 has a 16K memory map.

A reset and interrupt control 152 can receive interrupts on pins INT1* and INT2*, and can also output interrupts on those pins, in order to direct interrupts to the microprocessor 110; see FIGS. 1A-B. Similarly, logic block 152 is also connected to receive externally generated resets and to send resets to microprocessor 110 on line RSTOUT*.

Reload control logic 154 receives the external input RL*, which can command initiation of a reload, as described below.

FIG. 18 shows the circuitry used, in the presently preferred embodiment, to implement the reset and Interrupt Control circuits 152 in the adjunct chip of FIG. 1A.

Battery circuits 164 include freshness seal logic 165, a current source 166, and a bandgap voltage reference 167. The circuit block 164 receives both a battery voltage VBAT and a system power supply voltage VCCI as inputs, and can detect failure of the system power supply voltage accurately with reference to the bandgap voltage reference 167. The circuit block 164 also provides the power output V.sub.CC which powers the other circuits on-chip. The circuit block 164 also includes comparators, which can detect variation in the level of the system supply voltage VCCI. In the embodiment shown, this circuit block also generates two logic output signals, which can be used to switch other devices or to provide warnings or interrupts to other ICs or subsystems in the same system of imminent power failure. In the presently preferred embodiment, signal V45* indicates that the power supply VCCI has fallen to 4.5 volts, and that shut-down procedures should therefore be initiated. Signal V30* indicates that the system voltage has fallen to 3.0 volts, and that parts having a battery voltage input should therefore switch over to battery backup for data maintenance.

FIG. 19 shows the circuitry used, in the presently preferred embodiment, to implement the battery circuits 164 in the adjunct chip of FIG. 1A.

The address bus 168 is also received by a "reload and reset-vector ROM" 174. This block of ROM contains the control software routines for reloading and CRC check, discussed above. This block of ROM also includes the reset-vector memory, which is a small amount of memory (16 bytes, in the presently preferred embodiment) at the address first accessed by the microprocessor after a reset. This is normally used for a long jump instruction.

An address bus 168 and a data bus 170 are routed around the chip see FIG. 16. In the presently preferred embodiment, the address bus and data bus are both 8-bits wide.

An address output buffer 169 can be selected to externally output the addresses on the address bus 168.

The address bus 168 is also received by internal registers and port controls (block 176). This block also has a bidirectional connection to data bus 170.

Note that address/data multiplexed interfaces 186 are also interfaced to the address bus 168 and to data bus 170, under control of the signals RDIN*, WRIN*, and AST*. Latches 188 latch in the high-order address bits A8 through A15.

This circuitry is merely a straightforward use of conventional address decoder architecture. The only unusual feature is that an additional bit CESL is introduced into the decoder. This bit provides the additional input to implement the sliding address overlay.

The clock output of the microprocessor (CLKIN) is received by a stop detect and watchdog circuit 182. Although these circuits have some resemblances, they are two different circuits, in the presently preferred embodiment.

In addition to the clock monitor circuit, the adjunct chip also contains a watchdog function. This function, too, is made programmable. Thus, the user can determine what period of inactivity the watchdog function should wait for before activating a reset or interrupt.

The watchdog function is always active when the microprocessor is being operated from adjunct chip ROM. The watchdog parameters include user-programmable options: For example, the inactive time required before the watchdog activates a reset is programmable. Moreover, the watchdog can optionally be turned off.

A clock oscillator control 184 is connected to the crystal terminals XTAL1 and XTAL2, and provides switching from the crystal stabilized oscillation to a ring oscillator clock on power-down, as will be described later.

FIG. 17 shows the circuitry used, in the presently preferred embodiment, to implement the oscillator control circuitry 184 in an adjunct chip of FIG. 1A.

The address and data buses 168 and 170 are also connected to a register file 180. In the presently preferred embodiment, this register file 180 is externally interfaced through ports B and C. This register file provides an extremely versatile control interface.

The Interface Register File on the Adjunct chip is designed to provide an asynchronous interface between two independent microprocessors. The microprocessor which is connected as the controller of the Adjunct chip is able to transform two of the normal ports of the adjunct chip into a PC bus compatible address/data bus interface. This interface allows an external microprocessor such as an 8088 to asynchronously access internal registers on the Adjunct chip. These registers are broken into four configurations:

Each microprocessor interlace is assigned one status register which serves as a general purpose register with which each processor communicates configuration information to the other processor to establish a file protocol. The I/O Buffer Registers are the actual registers by which the data transfers are made. Eight Input Buffer and eight Output Buffer registers are assigned to each processor. This allows each processor to work in either a single register or block data transfer configuration. Each processor can also read two flag registers to monitor the status of each read and write of both the Input and Output Buffer Registers. Two Interrupt Mask Registers are also assigned to each processor. The two Interrupt Mask Registers assigned to each processor allow each processor to selectively mask or unmask specific register flags as sources of interrupts to itself.

Addresses 0 through 15 (00.sub.H through OF.sub.H) are reserved for the register file. The interface register file includes the following registers (see FIG. 7): 0D.sub.H).

Two of the most critical of these registers will now be described in detail.

The internal status register is composed of four status bits (ST3-ST0), an internal to external interrupt bit (I1), an external to internal interrupt mask (M2), and two AND/OR control bits (IAO and OAO) for input and output buffer flag interrupt configurations. The Internal Status Register is configured as a full read/write register to the internal processor. The internal register is a read only register to the external processor, except for the I1 bit.

Bit I1--The internal processor to external processor interrupt control bit.

Bit M2--The M2 interrupt mask blocks the 12 interrupt from external status register as issued by the external processor (to the internal processor).

Bit OAO--The output buffer AND/OR interrupt control select:

Bit IAO--The input buffer AND/OR interrupt control select.

Bits ST3-ST0--General purpose status register bits written by the internal processor to the external processor.

The internal processor is able to write a status word into the status bits and set the interrupt bit which in turn will interrupt the external processor if the M1 mask bit in the external status register is cleared. Once an interrupt has been issued, the external processor can clear the interrupt by writing to the internal status register which automatically clears the H bit. It is important to note that a write by the external processor to the internal status register is independent of data, will not alter other bits, and will only clear the I1 bit. Once the I1 bit has been set by the internal processor it can only be cleared by either the external processor or a Reset. The internal processor is not able to clear the I1 bit once it is set.

The mask bit M2 is used to block the interrupt issued by the external processor by the 12 bit in the external status register.

The internal processor can receive an interrupt as a function of the reading and writing of the Input and Output Buffers. The reading and writing of these buffers provide interrupts in either a byte or block interrupt mode. This selection is provided through the use of the OAO or IAO bits.

The IAO and OAO bits are used to allow the internal processor to select an AND or an OR relationship in relation to when an interrupt will be issued via the appropriate mask register. Setting the OAO bit to a one initiates the AND relationship and setting it to a zero initiates the OR mode. In the AND mode the OAO bit requires that all of the Output Buffer Registers, which are not masked in the Internal Output Buffer Mask Register, be read by the external processor before an interrupt will be issued to the internal processor. In the OR mode the OAO bit initiates or continues an interrupt each time an Output Buffer register, which is not masked in the Internal Output Buffer Mask Register, is read by the external Processor.

When in the AND mode the IAO bit requires that all of the registers in the Input Buffer, which are not masked in the Internal Input Buffer Mask Register, be written by the external processor before an interrupt will be issued to the internal processor. In the OR mode the IAO bit allows an interrupt to the internal processor whenever any Input Buffer register, which is not masked in the Internal Input Buffer Mask Register, is written by the external processor.

To prevent a read/write collision between the external and internal processors both the Output and Input Buffers are configured as read before write registers. As an example, a write to the Input Buffer by the external controller is only completed by the Softener when the Input Buffer has been previously read by the internal processor. This prevents a potential loss of data which could occur if the external processor were to attempt to write over the Input Buffer before the internal processor has read the previous data in the Input Buffer.

In a like manner the Input and Output registers are also configured to provide correct data if read when the appropriate flag is set in the Input and Output Flag register. As a result once a buffer has been read by the appropriate processor and the related flag is cleared, future reads of the same buffer can not be considered valid until the respective flag is again set by a new write from the appropriate processor.

The external status register is composed of four status bits (ST3-ST0), an external to internal interrupt bit (I2), an internal to external interrupt mask (M1), and two AND/OR control bits (IAO and OAO) for input and output buffer flag interrupt configurations. The External Status Register is configured as a full read/write register to the external processor. The external register is a read only register to the internal processor except for the I2 bit.

Bit I2 is the external processor to internal processor interrupt control bit.

Bit M1 is an interrupt mask which blocks the I1 interrupt from internal status register as issued by the internal processor (to the external processor).

Bit OAO is the output buffer AND/OR interrupt control select.

Bit IAO is the input buffer AND/OR interrupt control select.

Bits ST3-ST0 are general purpose status register bits written by the external processor to the internal processor.

The external processor is able to write a status word into the status bits and set the interrupt bit which in turn will interrupt the internal processor if the M2 mask bit in the internal status register is cleared. Once an interrupt has been issued, the internal processor can clear the interrupt by writing to the external status register which automatically clears the I2 bit. It is important to note that a write by the internal processor to the external status register is independent of data, will not alter other bits, and will only clear the I2 bit. Once the I2 bit has been set by the external processor it can only be cleared by either the internal processor or a Reset. The external processor is not able to clear the I2 bit once it is set.

The mask bit M1 is used to block the interrupt issued by the internal processor by the I1 bit in the internal status register.

The external processor can receive an interrupt as a function of the reading and writing of the Input and Output Buffers. The reading and writing of these buffers provide interrupts in either a byte or block interrupt mode. This selection is provided through the use of the OAO or IAO bits.

The IAO and OAO bits are used to allow the external processor to select an AND or an OR relationship in relation to when an interrupt will be issued via the appropriate mask register. Setting the OAO bit to a one initiates the AND relationship and setting it to a zero initiates the OR mode. In the AND mode the OAO bit requires that all of the Output Buffer Registers, which are not masked in the External Output Buffer Mask Register, be written by the internal processor before an interrupt will be issued to the external processor. In the OR mode the OAO bit initiates or continues an interrupt each time an Input Buffer register, which is not masked in the External Output Buffer Mask Register, is written by the internal Processor.

When in the AND mode the IAO bit requires that all of the registers in the Input Buffer, which are not masked in the External Input Buffer Mask Register, be read by the internal processor before an interrupt will be issued to the external processor. In the OR mode the IAO bit allows an interrupt to the external processor whenever any Input Buffer register, which is not masked in the External Input Buffer Mask Register, is read by the internal processor.

In the embodiments of FIGS. 1A and 2A, note that specific allocations are made of 64 addresses for use within the adjunct chip. However, those 64 addresses may not appear in the same place for the different memory maps of FIGS. 3A through 3E. Many of these microprocessors have internal RAM, or internal registers at fixed addresses, and these address allocations must be respected. Therefore, the addresses onto which the 64 bytes required for internal space are mapped may be changed. For example, in the DS5303 (for use with the 6303 microprocessor) these internal addresses are mapped onto microprocessor addresses 0300.sub.H through 0340.sub.H, in all modes. With the 6305  microprocessor. The same address mapping is used in FIGS. 3C, 3D, and 3E. However, this mapping can be changed if those addresses are not accessible. For example, in the memory map of FIGS. 3A-1 through 3A-6, these 64 bytes are mapped onto addresses FFF00.sub.H through FFF40.sub.H. Therefore, in the following list, these registers will be named only by their least significant two nibbles (two hex characters).

Address 16 (address 10.sub.H) is used for the timed access register TASR. For access to memory which is protected by a timed access relationship, the microprocessor must write a value of 170 (AA.sub.H) to its register, followed by a value of 85 (55.sub.H).

Address 17 (11.sub.H) is used for the Port A interrupt mask register (PTMK). This mask register contains 8 mask bits M7 through M0 which mask the corresponding 8 bits of Port A.

Address 18 (12.sub.H) is a memory control register. Four bits PA0-PA3 of this register are used memory-protection bits, to indicate which segment of memory are write-protected. Two bits are used for signals PCE3* and PCE4*, which provide chip enables.

Address 19 (13.sub.H) is a watchdog register (WDOG). In this register, three bits (WD0-WD2) are used for selecting the watchdog time-out value. These bits are writable only when the control software is running, and not when the user software is running. Additional bit WBM is used for a watchdog mask. This bit can turn on or turn off sensitivity to a watchdog interrupt. Setting of this bit is protected by a timed access relationship. An additional bit is the CRC bit, which forces execution of a CRC routine on a power-on reset or a watchdog hit. This bit is protected by a timed-access relationship and is writable only when the control software is executing. An additional bit is bit ROMLTR. This is a "ROM later" enable, which allows the user to reenter execution of control software by setting the "ROM" bit. The bit ROMLTR is protected by timed-access relationships. Moreover, this bit is writable only when control software is executing, and only when the external reload pin RL* is active.

Address 20 (address 14.sub.H) is a modes register ("MODES"), and contains bits which set several important features of operation:

Bit RG is used to define at what point the address boundary between RAM controlled by output CE1* and RAM controlled by output CE2* will occur in microcontrollers. This bit is writable only from control software, and is protected by a limed-access relationship.

Bit PART is a partition-enable signal. This bit enables write-protection of memory..sup.4 This bit is protected by a timed-access relationship and is ROM writable only. memory protection along chip-enable boundaries. No write protection is active unless bit PART is set. Whenever bit PART is set, the memory controlled by CE5* will be protected As long as this memory segment is protected, any other segment can also be selected for protection: Bit PA0 controls write protection of the memory controlled by signal CE1*, bit PA1 controls write protection of the memory controlled by signal CE2* bit PA2 controls write protection of the memory controlled by signal CE3*, and bit PA3 controls write protection of the memory controlled by signal CE4*.

Bit RFEN is a register file enable bit. This is protected by a timed-access relationship.

Bits MD0-MD2 selected the mode of memory map. These bits would be used to select between the memory maps of 3A-2 and 3A-6, for operation with a V40 microprocessor. These bits are writable only from control software and are protected by a timed-access relationship.

Bit IRL is an internal reload flag. This indicates that the external reload pin RL* is active.

Bit ROM is the bit which enables execution of control software (the "ROM-enable" bit). As noted, this bit is extremely important to the operation of the system FIG. 1A or FIG. 2A. Writing of this bit is protected by a timed-access relationship. Thus, as extensively discussed above, the user software can write this bit to enter execution of control software. Changing the state of this bit may cause the adjunct chip to throw the microprocessor into reset, as described below.

Address 21 (15.sub.H) contains bits relating to power control functions. This register is also referred to in the accompanying circuit diagrams as Register "POWER."

Bit CESL is an inversion control for bits A13-A15. These bits are inverted in the address decoder to permit program memory underneath the control ROM to be executed.

Bit SPLITWD provides an input into the middle of the watchdog chain, which accelerates testing. This bit is writable in test mode only, and otherwise will be cleared.

Bit CEBAT enables battery backup for outputs CE2*, CE3*, and CE4*. If this bit is set, then output lines CE2* through CE4* will be connected to the battery input, to be powered from battery 150 if system power VCCI, goes down. Since these bits are active low, they would normally be high in standby mode. If the RAM's internal circuitry permits it to thieve power from the CE line, then this output will permit the RAM's data to be preserved. This output is writable only from the control software, and is protected by a timed-access relationship.

Bit LPE is a low-power enable. This allows the adjunct chip to go into a low-power (sleep) state when the microprocessor stops..sup.5 This bit is protected by a timed-access relationship. microprocessor stops, as described above.

Bit LVM is a low-voltage mask bit, which masks the LVD interrupt described below. This bit is protected by a timed-access relationship.

Bit BATTEST turns on an op amp to check the battery voltage against the bandgap voltage reference.

Bit BAT is a battery health flag. This bit is controlled by hardware (from comparators).

Address 22 (16.sub.H) is a reset and interrupt status register ("RIST"). This register also contains several flag bits which relate to various control functions.

Bit WDR is a watchdog reset bit. This is a write-only bit which is cleared automatically as soon as it is written. This bit is protected by a timed-access relationship.

Bit WDS is a watchdog status flag. This is cleared when read.

Bit LVD is a low-voltage detect flag. This bit is set by hardware, whenever comparison of VCCI against the bandgap voltage reference indicates that VCCI is out of tolerance. It is cleared when read..sup.6 will immediately set the bit again. Thus, a user can check for a brown-out condition by performing two successive reads.

Bit PUP is a power-tip indicator flag. This bit is cleared on any power-up reset. This bit can be set by software (if a timed-access relationship is satisfied). Thus, if a user sets this bit routinely, he can test it after a reset to ascertain whether the reset was a power-up reset.

Addresses 23 through 30 (17.sub.H through 1E.sub.H) are used for control of Port A. Address 23 (17.sub.H) is Port A's data latch register. Address 24 (18.sub.H) is the data direction register. Address 25 (19.sub.H) is the modo-Intel register, i.e., selects between Motorola and Intel emulation. Address 26 (1A.sub.H) is a port pin-write register and is read only (from the adjunct chip). Address 27 (1B.sub.H) is an edge-detect register and is read-only (from the adjunct chip). Address 28 (1C.sub.H) is a level detect register and is read only (from the adjunct chip). Address 29 (1D.sub.H) selects between edge detect and level detect. Address 30 (1E.sub.H) selects between positive and negative actuation, on the edge detect and level detect functions. Note that each of these registers has 8 bits, and thus the settings of these registers can be used to control the port on a bit-by-bit basis. Therefore, these registers provide tremendous versatility in controlling the operation of Port A.

Addresses 31 through 35 (1F.sub.H through 23.sub.H) provide the interface to Port B. Addresses 36 through 40 (24.sub.H through 28.sub.H) provide the interface to Port C. Addresses 41 through 45 (29.sub.H through 2D.sub.H) provide the interface to Port D. Address 31 (1F.sub.H), 36 (24.sub.H), and 41 (29.sub.H) are data latch registers and are read/write. Address 32 (2O.sub.H), 37 (25.sub.H), and 42 (2A.sub.H) are data direction registers and are read/write. Addresses 33 (21.sub.H), 38 (26.sub.H), and 43 (2B.sub.H) are Motorola-Intel-select registers, and are read/write. Addresses 34 (22.sub.H), 39 (27.sub.H), and 44 (2C.sub.H) are port pin registers and are read only. Addresses 35 (23.sub.H), 40 (28.sub.H), and 45 (2D.sub.H) are edge-detect registers and are read only.

In the data direction registers, a zero-bit is used, in the presently preferred embodiment, to indicate that the data direction is in, and a "1" is used to indicate that the data direction is out.

In the Motorola-Intel registers, in the presently preferred embodiment, a "0" is used to select Intel emulation, and a "1" selects Motorola emulation.

In the edge/level select registers, in the presently preferred embodiment, a "0" is used to select edge-detect, and a "1" is used to select level-detect. In the positive/negative select registers, a "0" is used to select negative operation, and a "1" is used to select positive operation. In the edge/level detect registers, a "0" means that no edge or level has been detected, and a "1" indicates that an edge or level has been detected. Addresses 2E.sub.H and 2F.sub.H (46 and 47) are the CRC registers. CRC computation is performed in hardware. From the microprocessor's point of view, the value in Address 47 (2F.sub.H) is read, a series of writes is made to Address 46 (2E.sub.H), and then another read is made to Address 47 (2F.sub.H) to get the updated CRC value. Finally, addresses 48 through 63 (30.sub.H through 3F.sub.H) are reserved for internal RAM, as described below.

The reset values for the registers are as follows: The timed-access register TASR is reset to all zeroes. The Port A interrupt mask register PTMK is reset to all ones. The memory-control register has bits PA0-PA3 cleared on a no-battery reset and otherwise unchanged. Bits PCE3*-PCE4* of this register are set to zero on a reset.

The watchdog register WDOG has bits WD0-WD2 set to zero on a no-battery reset, and otherwise left unchanged. Bit WDM is set to one on a no-battery reset, and otherwise left unchanged. Bits CRC and ROMLTR are set to zero on a no-battery reset and otherwise left unchanged. The modes register "MODES" has bits RG, PART, and MD0-MD2 set to a zero on a no-battery reset and otherwise left unchanged. Bit RFEN is set to zero on a reset. Bit IRL is left unchanged on a reset. Bit ROM is set to zero on a power-on reset and otherwise left unchanged.

The power control register "POWER" bit CSL is set to zero when the control mode is exited by clearing the ROM bit. On any reset, other than a reset which occurs when the ROM bit is set, this bit will be cleared. Bit SPLITWD is cleared on any reset, except in test mode.

Bits CEBAT and LPE will be set to zero on a no-battery reset, and otherwise left unchanged. Bit LVM will be set to a one. Bit BATTEST will be set to a zero.

In the reset and interrupt status register RIST, bit WDS will be set to zero on a no-battery reset, and otherwise left unchanged. Bits LVD and PUP will be set to zero on a power-on reset, and otherwise left unchanged. Bits WDR, RFSTS, IB, OB, and PA will be set to zero.

As noted, the softener chip also includes a small amount of parameter RAM, which is used to preserve the status of various programmable options. In the presently preferred embodiment, this RAM includes only 16 bytes, which are organized in two blocks: Each holds a start address, an end address, and a CRC value.

The watchdog program, like other programmable options, needs to be insulated against accidental corruption by application software. Several techniques are used to provide such protection: executing code from the adjunct chip ROM. the bit can be accessed only within a certain time window defined with respect to a particular sequence of writes to a register. (See U.S. patent application Ser. No. 163,980, Filed Mar. 4, 1988, which is hereby incorporated by reference.) timed-access relationships.

In the presently preferred embodiment, the adjunct chip includes 4K of ROM. Of course, more or less space could be used if desired.

Interfaces 156, 158, 160, and 162 provide 8-bit interfaces to ports A through D respectively. Ports A, B, and C each provide bidirectional IO capability. However, in this example, Port D is dedicated to control signals and high-order address signals, as described below.

One of the features of the preferred adjunct chip architecture is that one of the ports is made extremely versatile and programmable. To ensure that port versatility is not lost, the preferred embodiment of the adjunct chip contains one port (Port A) which has extraordinarily high versatility. This port is programmable bit-by-bit to emulate a very wide variety of port characteristics.

In conventional Intel port architecture (e.g. in the Intel 8051), each port is electrically configurable as read or write. To implement this, three strengths of pull-up are attached to each port: (1) a very strong pull-up, controlled by a one-shot, which initially writes a high state to the contact pad; (2) a very weak pull-up, which holds the contact pad high when a high state is being written, after the one-shot delay has expired and turned off the strong pull-up; and (3) a weak pull-up, which is the feedback of the data input latch. A simple, direct NMOS pull-down is used for driving this port in the opposite direction. Thus, in order to read a port pin, the microprocessor simply writes a high state and then waits for an external input to drive data onto the port (overriding the weak pull-up if necessary).

By contrast, the normal Motorola port simply uses a direct CMOS driver at the output, in combination with a data direction register which can disable the output driver.

In the Intel architecture, some instructions will read the data latch rather than the output pad to implement read-modify-write instructions.

The Motorola 6805 port architecture actually provides the capability to read the data latch independently of the voltage on the pad. A data-direction register bit is used to indicate whether the pad is being read from or written to, and the value of this bit gates the input to the data latch. Thus, if the data-direction register indicates that data is inbound, the read line will show the data appearing on the pad; but if the data-direction register indicates that data is outbound, the read line will merely show the data last latched in.

The port implemented in the adjunct chip can implement either full Motorola or full Intel port relationships. In addition, this port has the capability to read either the pad or the data register, independently of the data direction. Thus, the innovative port provides the capability for full Motorola emulation, and also provides additional flexibility.

This port also has the ability to sense an edge transition, of either sign, or to sense a level of either sign (as long as it remains for more than one bus cycle) and to generate interrupts therefrom, in accordance with mask bits.

The ability to sense edges is particularly useful, since one problem with microprocessor ports in general is that some input signals may generate an edge at the microprocessor port which does not correspond to a long-term level shift. The sampling time of the microprocessor may be long enough, that such a pulse could be missed.

In alternative embodiments, which are not implemented in the presently preferred embodiment, the poll may further be made programmable to include additional options, such as an "inverse Intel" port (with graduated-strength pull-downs), or a combination of an Intel port with a high impedance state.

In the presently preferred embodiment, ports C and D are identical. Port B is almost identical to ports C and D, except that port B defaults to the Motorola state after a reset. In the presently preferred embodiment, ports B and C are used for the file register, and port D is used to handle additional control lines of the microprocessor.

In general, the capabilities of ports B, C, and D are a subset of the capabilities of port A. Ports B, C, and D: cannot do level detect; can only detect negative edges; cannot generate an interrupt; but can switch between Motorola and Intel operation.

The adjunct chip has a low-power sleep mode, which it can enter when the target microprocessor is asleep. It would be wasteful for the adjunct chip to remain in an active high-power mode if the microprocessor has gone into a low-power sleep mode. Thus, the following; discussion relates not only to issues of shutting down and waking up the microprocessor, but also to issues of shutting down and waking up the adjunct chip.

When the adjunct chip enters sleep mode, it will typically interrupt the oscillator clock to the microprocessor; interrupt reset signals to the microprocessor; and turn off the watchdog circuit. Also, on entering sleep mode, the op amp's current source is turned down. This causes the op amp to react more slowly.

A signal called "STOP" is used on the adjunct chip to control these functions. However, this signal is not externally accessible.

The adjunct chip, in the presently preferred embodiment, also includes a clock monitor circuit as described above, which monitor electrical activity on the microprocessor's output lines. If a certain number of clocks (selectable up to 2.sup.10, in the presently preferred embodiment) pass with no activity whatsoever on the microprocessor's clock-output line, the adjunct chip can assume that the microprocessor has gone to sleep.

In the system architecture, the microprocessor is not directly connected to a clock. Instead, the adjunct chip is interposed between the microprocessor and its clocks. Similarly, the adjunct chip is interposed between the microprocessor's reset input and the external reset connection.

Thus, when the adjunct chip determines that the microprocessor is in sleep mode, the adjunct chip can turn off clock pulses to the microprocessor. Similarly, when the microprocessor is to wake up again, the adjunct chip can restart the oscillator, and wait for the oscillator to stabilize, before connecting the oscillator to the microprocessor. The oscillator will normally have a significant current burn, and it is desirable to avoid this when the system is in a minimum-power mode.

Some microprocessor architectures require that the microprocessor be awakened from sleep mode if an interrupt is received. Accordingly, the adjunct chip also has a mask option whereby the microprocessor will be awakened if an interrupt is received.

Other conditions wherein the target microprocessor will be reawakened include detection of a power-down condition (as described below) or a reload operation.

In sleep mode, the band-gap voltage reference is switched off. Instead, in sleep mode, the battery input is used as the reference input to comparators.

The watchdog function is turned off when the adjunct chip is in sleep mode.

The adjunct chip, in the presently preferred embodiment, can be forced into test mode by driving external reset line RST* low, and also overdriving reset-out line RSTOUT* high (fighting the adjunct chip's drivers). After a certain minimum time, this will put the adjunct chip into test mode. Test mode is not normally used by end-users. The input into the middle of the watchdog's chain allows the various outputs of the watchdog chain to be tested rapidly, without having to wait for the delays needed to count down for the many cycles which would otherwise be necessary. A further feature in test mode is that the delay normally imposed at power-up is disabled.

FIG. 16 shows the preferred microboard package for a system like that shown in FIG. 1A or 2A.

A particularly advantageous system embodiment is a combination of a nonvolatized microprocessor module (such as the DS2340 described below) in combination with other modules which permit dial-up access. For example, this is permitted by a DS2245 modem Stik in combination with a DS2249 DAA Stik.)

In the presently preferred embodiment, the 16 bytes of RAM on the adjunct chip are used not only to store CRC parameters, but also are used to store a modem-present flag and a "help-me" flag. The modem-present flag is programmed at the time of system configuration to indicate to the adjunct chip's control software that, when an error condition occurs, the dial-up capability can be used as part of the error handling routine.

In the presently preferred embodiment, the softener chip now has two power-fail output signals, called V30* and V45*. These signals can be propagated around a system to avoid skew on power-down timing.

This is useful even if other chips also have a bandgap reference on-chip: In a complex system, you do not want to have more than one bandgap operating independently: The softener would probably be the master power-fail detector and let the other nonvolatized subsystems use a power-fail input.

It will be recognized by those skilled in the art that the innovative concepts disclosed in the present application can be applied in a wide variety of contexts. Moreover, the preferred implementation can be modified in a tremendous variety of ways. Accordingly, it should be understood that the modifications and variations suggested below and above are merely illustrative. These examples may help to show some of the scope of the inventive concepts, but these examples do not nearly exhaust the full scope of variations in the disclosed novel concepts.

Note that the adjunct chip's ROM does not strictly have to be mask-programmed ROM: instead, it could be another type of memory (preferably, a highly secure memory). For example, a fuse-programmed PROM, or a FAMOS EPROM or EEPROM could be used.

For another example, the adjunct chip's "ROM" could even be configured as battery-backed nonvolatile memory instead, although in this case it is preferable that steps may taken for extra memory integrity. Various known memory architectures could be adapted for this purpose. For example, it has been proposed to configure SRAMs with polysilicon-channel load transistors, or resistors between the latch nodes, or with distributed redundant subarrays which are checked against each other and which can "vote" to detect and correct errors.

In a further alternative, the RAM cells in the adjunct chip can be modified to make them more resistant to disturbances, including single-event upset. This may be particularly advantageous where only a small number of RAM bits are used, as in the presently preferred embodiment. For example, it may be desired to make the transistors many times wider than the minimum gate width, or even to include resistors between the two nodes of each latch. Note also that the speed of these RAM cells is generally not critical, so that device modifications which degrade speed can be used (less preferably) if desired.

Of course, the disclosed innovations are not applicable soley to 8- and 16-bit microprocessors, but can also be applied to 32-bit microprocessors, or to programmable logic chips of other types.

The adjunct chip can react to software corruption by 1) initiating a reload 2) calling for help, or 3) doing nothing. Other alternatives can also be implemented if desired; for example, where extreme robustness is needed, the adjunct chip may power-down one microprocessor and power-up another.

It should also be noted that the control software can be used to reload the program memory from shadow RAM (such as E.sup.2 PROM) or from ROM.

The disclosed innovations can also be adapted, beyond the presently preferred embodiment, for use with a microprocessor which includes a large amount of on-chip program RAM. The first off-chip program memory access can still be captured by the adjunct chip. Moreover, it is also alternatively possible to (e.g.) use an interrupt to read out the micro's on-chip RAM, generate a CRC check value, and store the program and check value in NVSRAM or secure memory. Also, even with a large number of address lines, the softener would presumably not have to intercept all of them--just enough to hit the starting address.

Other control functions can optionally be included in the control software, if desired. For example, various testing routines may be used. (The microprocessor's on-chip ROM will normally contain a power-on self-test (POST) routine, but additional testing may be desirable.)

It should be noted that adjunct chips as described may be particularly useful in a multiprocessor system. One example of this is in highly parallel architectures. A number of attempts have been made to exploit the low unit cost of microprocessors to build a very large multiprocessor (e.g. with 1024 or more CPUs). However, microprocessors do not normally include the control interface features that would be desirable for such applications. The use of adjunct chips as described herein can facilitate this or other unusual uses of microprocessors, by providing additional flexibility.

The additional flexibility provided by adjunct chips as described herein can also facilitate other adaptations. For example, extremely powerful number-crunching ("DSP") chips.sup.7 are readily available, but a significant amount of system redesign (and sometimes glue logic) may be required to integrate such chips into an existing system. Similarly, integration of multiple DSP chips into a system containing only one DSP chip can be facilitated. For another example, extremely powerful graphics chips.sup.8 are also readily available, but a significant amount of system redesign (and sometimes glue logic) may be required to integrate such chips into an existing system. Similarly, integration of multiple DSP chips into a system containing only one DSP chip can be facilitated. In general, the disclosed architecture facilitates innovative or unusual uses of microprocessors (or of other complex programmable logic), by providing additional flexibility.

Note that the adjunct chip architecture described may also be applicable to chips having a high-speed data interface (such as graphics chips, floating-point units, or crosspoint switches), since the high-speed path can be led directly off-chip.

Most microprocessors preferably operate from one end or the other of their memory space. Therefore, in a system where on-chip memory has preempted many of these favored addresses with memory which cannot be revectored by the software, application of the software is less favorable. However, such adaptations could be made.

Some of the disclosed innovative ideas can also be adapted to a situation where the adjunct chip is replaced by an on-chip monitoring subsystem, which is integrated with a microprocessor (but has a narrowly defined logical interrelation with the microprocessor). Such embodiments, although currently less preferable than those described, may still confer some advantage.

To increase security, an optional alternative uses multiple register bits in place of the ROM bit. These bits can be defined to provide additional security against an ESD hit or a single-event upset.

As will be recognized by those skilled in the art, the innovative concepts described in the present application can be modified and varied over a tremendous range of applications, and accordingly their scope is not limited except by the allowed claims. ##SPC1##

## Claims

1. Interrupt circuitry for a processor, comprising: connected to said plurality of interrupt inputs and with a combinatorial logic output connected to said interrupt output wherein an interrupt output signal at said interrupt output is a function of interrupt signals at said plurality of interrupt inputs; and an interrupt mode select signal from said interrupt mode select controls said function.

2. The circuitry of claim 1, wherein: selects said function to be either AND or OR.

3. The circuitry of claim 1, further comprising: plurality of mask register outputs, said plurality of mask register inputs connected to said plurality of interrupt inputs and said plurality of mask register outputs connected to said plurality of combinatorial logic inputs wherein a mask register bit pattern in said mask register conditions a corresponding subset (possibly empty) of said interrupt signals at said plurality of interrupt inputs to make said function and said interrupt output signal at said interrupt output not depend upon said corresponding subset.

4. The circuitry of claim 3, wherein: said function to be either AND or OR; signals at said plurality of interrupt inputs, and when said function is OR said combinatorial logic ANDs complements of said interrupt signals at said plurality of interrupt inputs; interrupt signals by forcing interrupt signals at said plurality of interrupt inputs and a plurality of complements of said interrupt signals at said plurality of interrupt inputs to a logical 1.

5. An interface between two processors, comprising: input buffer registers sets a corresponding flag bit in said input buffer flag register, and a read of one of said input buffer registers clears a corresponding flag bit in said input buffer flag register; output buffer registers sets a corresponding flag bit in said output buffer flag register, and a read of one of said output buffer registers clears a corresponding flag bit in said output buffer flag register; equal to logical 1 in said first IBMR masks a corresponding bit in said input buffer flag register; equal to logical 1 in said second IBMR masks a corresponding bit in said input buffer flag register; equal to logical 1 in said first OBMR masks a corresponding bit in said output buffer flag register; bit equal to logical 1 in said second OBMR masks a corresponding bit in said output buffer flag register; mask registers, said control bits, and first and second interrupt output nodes, wherein input buffer registers corresponding to logical 0 in said first IBMR are written to, said logic outputs an interrupt signal at said first interrupt node, but when said first input control bit equals a logical 0 and one of said input buffer registers corresponding to logical 0 in said first IBMR is written to, said logic outputs an interrupt signal at said first interrupt node; input buffer registers corresponding to logical 0 in said first IBMR are read, said logic outputs an interrupt signal at said second interrupt node, but when said second input control bit equals a logical 0 and one of said input buffer registers corresponding to logical 0 in said first IBMR is read, said logic outputs an interrupt signal at said second interrupt node; output buffer registers corresponding to logical 0 in said first OBMR are read, said logic outputs an interrupt signal at said first interrupt node, but when said first output control bit equals a logical 0 and one of said output buffer registers corresponding to logical 0 in said first OBMR is read, said logic outputs an interrupt signal at said first interrupt node; and output buffer registers corresponding to logical 0 in said second OBMR are written to, said logic outputs an interrupt signal at said second interrupt node, but when said second output control bit equals a logical 0 and one of said output buffer registers corresponding to logical 0 in said second OBMR is written to, said logic outputs an interrupt signal at said second interrupt node.

6. The interface of claim 5, further comprising: said first input control bit, said first output control bit, and a first interrupt control bit and a first interrupt mask bit; and said second status register including said second input control bit, said second output control bit, and a second interrupt control bit and a second interrupt mask bit.

7. The circuitry of claim 1, wherein said interrupt signals at said plurality of interrupt inputs correspond to an occurrence of an event.

8. The circuitry of claim 7, wherein said event is selected from the group consisting reading from a buffer register, writing to a buffer register, or any combination thereof.

9. The circuitry of claim 1, wherein said interrupt signals at said plurality of interrupt inputs correspond to at least one bit in said interrupt signals at said plurality of interrupt inputs.

10. The circuitry of claim 1, wherein said plurality of interrupt inputs and said interrupt output are selected from the group consisting of flags in a register, pins, and nodes.

11. The circuitry of claim 1, further comprising: plurality of mask register outputs, said plurality of mask register inputs connected to said plurality of interrupt inputs and said plurality of mask register outputs connected to said plurality of combinatorial logic inputs wherein a mask register bit pattern in said mask register enables/disables a corresponding subset of said interrupt signals at said plurality of interrupt inputs to make said function and said interrupt output signal at said interrupt output depend/not depend upon said corresponding subset.

12. The circuitry of claim 11, wherein: function to be either AND or OR; signals at said plurality of interrupt inputs, and when said function is OR said combinatorial logic ANDs a plurality of complements of said interrupt signals at said plurality of interrupt inputs; interrupt signals by forcing interrupt signals at said plurality of interrupt inputs and complements of said interrupt signals at said plurality of interrupt inputs to a logical 1.

13. The circuitry of claim 1, wherein said signals at said plurality of interrupt inputs have identical priorities.

14. The circuitry of claim 1, wherein: selects said function from the group consisting a logical AND function, a logical OR function, and any combination thereof.

15. The circuitry of claim 3, wherein said mask register bit pattern is utilized by said combinatorial logic to compute said function in part.

16. The circuitry of claim 1, wherein said interrupt signals and said interrupt mode select signal have only two states.

17. The circuitry of claim 1, further wherein said interrupt mode select signal from said interrupt mode select selects said function is changeable.

18. Interrupt circuitry for a processor, comprising: connected to said plurality of interrupt inputs and with a combinatorial logic output connected to said interrupt output wherein an interrupt output signal at said combinatorial logic output is a function of interrupt signals at said plurality of combinatorial logic inputs; and an interrupt mode select signal from said interrupt mode select controls said function.

19. The circuitry of claim 18, wherein: selects said function to be either AND or OR.

20. The circuitry of claim 18, further comprising: plurality of mask register outputs, said plurality of mask register inputs connected to said plurality of interrupt inputs and said plurality of mask register outputs connected to said plurality of combinatorial logic inputs wherein a mask register bit pattern in said mask register conditions a corresponding subset (possibly empty) of said interrupt signals at said plurality of interrupt inputs to make said function and said interrupt output signal at said interrupt output not depend upon said corresponding subset.