Information
-
Patent Application
-
20030020449
-
Publication Number
20030020449
-
Date Filed
July 27, 200123 years ago
-
Date Published
January 30, 200321 years ago
-
CPC
-
US Classifications
-
International Classifications
Abstract
Integrated circuitry including a clock circuit powered by a first power supply and a secondary circuit powered by a second power supply. The secondary circuit includes a control signal output for supplying a control signal to the clock circuit and a clock data output for outputting new clock data to the clock circuit. The clock circuit includes: clock generation means for generating current clock data and outputting it to the secondary circuit; detection means for monitoring voltage from the second power supply and generating a system reset signal for supply to the secondary circuit in the event the voltage falls below a predetermined level; a first latch having a reset operable by a predetermined state of the system reset output generated by the detection means; a comparator accepting as inputs the control signal from the secondary circuit and an output of the first latch; and a multiplexor accepting as data inputs the clock data from the secondary circuit and the clock data from the clock circuit, and accepting as a control input the output of the comparator. The integrated circuitry is configured such that when the secondary circuit is not asserted and the control signal is asserted, the current clock data in the clock circuit is replaced with the new clock data. Moreover, when the first latch is reset, the comparator and multiplexor prevent current clock data from being replaced by data from the secondary circuit.
Description
FIELD OF INVENTION
[0001] The present invention relates to the field of integrated circuitry, and, more particularly, to integrated circuits including a clock circuit connected to a secondary circuit, the two circuits being in respectively different power supply domains.
[0002] The integrated circuit of the invention has been specifically been designed for use in situations where a first battery powers the clock Circuit and a second battery powers the secondary circuit, and will be described hereinafter with reference to this specific embodiment. However, it will be appreciated that the invention may be applied to a number of different scenarios.
BACKGROUND
[0003] It is often desirable to power a clock circuit independently of another secondary circuit. A typical example is a camera, where the main battery that powers the shutter release and wind-on motor for film drains quickly and needs to be replaced relatively often. To prevent loss of clock and other data settings when the main battery goes flat, it is customary to provide a clock battery that powers only the clock part of the circuitry. Given that most modern clock circuits are of CMOS construction, they tend to be relatively energy efficient, and can run for long periods of time powered only by a small battery such as a “button” type battery. An example of this split power domain arrangement is illustrated in FIG. 1.
[0004] Whilst this arrangement is useful when the device is in operation, it raises some difficulties due to the behaviour of the circuitry when the main battery fails. For example, it is usual to configure devices such that the clock data maintained by the clock circuitry can be amended or updated via other circuitry powered by the main battery. Unfortunately, the control paths used to effect is can be the cause of spurious signals as the main battery fails, which in certain combinations at particular times can cause the clock data to inadvertently be changed.
[0005] Typically, during operation, the power supply to the secondary circuit is monitored, and whenever it drops outside of an acceptable range, a reset signal is given to the device. This reset signal causes all flip-flops within the device (ie, excluding the clock circuit) to be reset. Since this signal is always active whenever the main chip is powered down, it can be used by the clock circuit to determine whether control signals attempting to change the clock data within the clock circuit are valid. One way of using the reset signal is to include a comparator that prevents updating of the clock data when the secondary circuit is powered down.
[0006] Unfortunately, the introduction of such a component can reduce testability, or at least speed of testing, of the circuitry during manufacture. During such testing, Automatic Test Pattern Generation (ATPG) creates patterns of stimuli that are applied to the circuit to ensure that every single gate and wire is tested. However, some signals are considered special in the ATPG process, clock and system reset being examples.
[0007] Because the reset signal is used as a reset for the rest of the chip, the circuitry that implements the corruption protection cannot be tested at the same time as the rest of the chip, because the ATPG process requires the value of the signal to change. This will cause major problem with the rest of the chip, as any test pattern will be overridden by the reset signal. Ths means that the clock corruption protection circuitry must be tested on its own rather than in parallel with the rest of the chip, thereby lengthening the total time taken to test a device.
[0008] It is an object of the invention to provide circuitry that prevents spurious signals from inappropriately amending real-time clock data within a clock circuit as a connected circuit is powered down or reset, whilst improving testability over prior art arrangements.
SUMMARY OF INVENTION
[0009] The present invention provides integrated circuitry including a clock circuit powered by a first power supply and a secondary circuit powered by a second power supply, the secondary circuit including:
[0010] a control signal output for supplying a control signal to the clock circuit; and
[0011] a clock data output for outputting new clock data to the clock circuit;
[0012] the clock circuit including.
[0013] clock generation means for generating current clock data and outputting it to the secondary circuit;
[0014] detection means for monitoring voltage from the second power supply and generating a system reset signal for supply to the secondary circuit in the e-vent the voltage falls below a predetermined level;
[0015] a first latch having a reset operable by a predetermined state of the system reset output generated by the detection means;
[0016] a comparator accepting as inputs the control signal from the secondary circuit and an output of the first latch; and
[0017] a multiplexor accepting as data inputs the clock data from the secondary circuit and the clock data from the clock circuit, and accepting as a control input the output of the comparator;
[0018] the integrated circuitry being configured such that:
[0019] when the secondary circuit is not asserted and the control signal is asserted, the current clock data in the clock circuit is replaced with the new clock data; and
[0020] when the first latch is reset, the comparator and multiplexor prevent current clock data from being replaced by data from the secondary circuit.
[0021] In a preferred form, the first latch is a D-type latch accepting as an input a logical high. More preferably, the input of the D-type latch is tied to the first power supply.
[0022] Preferably, the output of the multiplexor is latched by a second latch.
BRIEF DESCRIPTION OF DRAWINGS
[0023] A preferred embodiment of the invention will now be described, by way of example only, with reference to the accompanying drawing, which is a block diagram of an integrated circuit according to the invention.
DETAILED DESCRIPTION OF PREFERRED EMBODIMENT
[0024] It will be appreciated by those skilled in the art that the clock data generated and maintained in the clock circuit is real time clock data, and not system clock data. Data within the circuitry will be moved a processed based on the rise and fall of system clock signals, as is well known to those skilled in the art of digital electronics. However, to help reduce confusion by discussing multiple types of clock data and signals, it is to be understood that “clock data” and similar language is intended to refer to real time clock data within this detailed description, unless a contrary intention is clearly shown by the context.
[0025] Referring to the drawing, the preferred embodiment is applied to an integrated circuit 20 including a clock circuit 22 powered by a first power supply 24 and a secondary circuit 26 powered by a second power supply 28.
[0026] In the preferred form the secondary circuit 26 includes a CPU 30 and also includes memory, data buses, control signals and any other required circuitry elements (not shown). The secondary circuit 26 includes a control signal output 32 for supplying a control signal to the clock circuit 22 and a clock data output 34 for outputting new (real time) clock data to the clock circuit 22.
[0027] The clock circuit 22 includes clock generation means 38 for generating current clock data and outputting it to the secondary circuit 26. The clock circuit 22 also includes a voltage detector 39 connected to the second power supply 28, for monitoring the voltage thereof. The voltage detector 39 is configured to output a “system reset” signal to the secondary circuit 26 in the event that the voltage falls below a predetermined value. The voltage detector also outputs a “not system reset” signal.
[0028] A first latch 40 within the clock circuit 22 includes a reset input 42 that accepts the “not system reset” signal from the voltage detector 39. A comparator in the form of a AND gate 44 within the clock circuit 22 accepts as inputs the control signal from the secondary circuit 26 and an output of the first latch 40.
[0029] The clock circuit 22 also includes a second latch 48 that accepts as input the output of a multiplexor 46. The output of the second latch 48 is supplied to the remaining circuitry in the clock circuit and also fed back as an input to the multiplexor 46 The multiplexor also accepts data from the clock data output 34 as a data input. The output of the AND gate 44 is connected to the control input of the multiplexor 46 to control which of the multiplexor's inputs is supplied to its output.
[0030] In use, during normal operation, both the clock circuit 22 and the secondary circuitry 26 are powered by their respective power supplies. The clock circuit 22 maintains real time clock data, such as the time and date in the camera example. If a user wishes to amend the time and or date, this is done via external control buttons or the like (not shown). The user input is interpreted by the CPU 30, and used to generate appropriate signals to amend the current clock data within the clock circuit. In the present case, those signals include the signal output at clock data output 34, and the control signal from the control signal output. When the control signal is asserted, the new clock data is clocked into the second latch 48 in the next system clock cycle.
[0031] In the event the secondary circuit is powered down (for example, if the battery fails or the voltage drops), this is detected by the voltage detector 39, which sets the “system reset” output to logic high, thereby resetting thc secondary circuit 26. Correspondingly, the “not system reset” signal goes low, which upon supply to the inverting input of the first latch, causes the first latch to be reset. This results in the output of the first latch being driven to a logic zero. This drives the corresponding input to the AND gate 44 to a logic zero, meaning that, irrespective of any spurious signals from the secondary circuit as it powers down, the clock data within the clock circuit will not be amended.
[0032] The circuit has the advantage that, during testing, the not main system reset is effectively buffered from the input to the comparator (in the form of AND gate 44). It can therefore be tested in parallel with the rest of the circuitry using normal scan methods known to those skilled in the art.
[0033] Although the invention has been described in relation to a particular embodiment, it will be appreciated by those skilled in the art that the invention can be embodied in many other forms. For example, it will be understood by those skilled in the art that different types of latches, comparators and other components can be used without departing from the spirit of the invention.
Claims
- 1. Integrated circuitry including a clock circuit powered by a first power supply and a secondary circuit powered by a second power supply, the secondary circuit including:
a control signal output for supplying a control signal to the clock circuit, and a clock data output for outputting new clock data to the clock circuit; the clock circuit including:
clock generation means for generating current clock data and outputting it to the secondary circuit; detection means for monitoring voltage from the second power supply and generating a system reset signal for supply to the secondary circuit in the event the voltage falls below a predetermined level; a first latch having a reset operable by a predetermined state of the system reset output generated by the detection means; a comparator accepting as inputs the control signal from the secondary circuit and an output of the first latch; and a multiplexor accepting as data inputs the clock data from the secondary circuit and the clock data from the clock circuit, and accepting as a control input the output of the comparator; the integrated circuitry being configured such that:
when the secondary circuit is not asserted and the control signal is asserted, the current clock data in the clock circuit is replaced with the new clock data; and when the first latch is reset, the comparator and multiplexor prevent current clock data from being replaced by data from the secondary circuit
- 2. Circuitry according to claim 1, wherein the first latch is a D-type latch accepting as an input a logical high.
- 3. Circuitry according to claim 2, wherein the input of the D-type latch is tied to the first power supply.
- 4. Circuitry according to any one of the preceding claims, wherein the output of the multiplexor is latched by a second latch.