US20070029980A1 - External signal detection circuit and real-time clock - Google Patents
External signal detection circuit and real-time clock Download PDFInfo
- Publication number
- US20070029980A1 US20070029980A1 US11/428,602 US42860206A US2007029980A1 US 20070029980 A1 US20070029980 A1 US 20070029980A1 US 42860206 A US42860206 A US 42860206A US 2007029980 A1 US2007029980 A1 US 2007029980A1
- Authority
- US
- United States
- Prior art keywords
- signal
- input
- detection
- external signal
- timing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/04—Generating or distributing clock signals or signals derived directly therefrom
- G06F1/14—Time supervision arrangements, e.g. real time clock
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K5/00—Manipulating of pulses not covered by one of the other main groups of this subclass
- H03K5/19—Monitoring patterns of pulse trains
Definitions
- the timing signal output portion may include an oscillator portion and a divider portion that produces an output of the oscillation signal by dividing a source oscillation outputted from the oscillator portion.
- the real-time clock may produce an output of a plurality of oscillation signals to the external signal detection circuit.
- the plurality of oscillation signals are, however, based on the source oscillation outputted from a single oscillator portion. The real-time clock can therefore highly accurately synchronize the detection of the external signal with the connection of the switch portion.
- the first switch portion 24 and the second switch portion 34 are also connected to a connection control portion 50 .
- the connection control portion 50 controls a connection time (on time) of the switch portion 24 or 34 selected by the register setting portion 44 based on the input detection signal and a control clock signal that is in synchronism with therewith.
- the connection control portion 50 is connected to an input port detection sync selector 40 , a resistor control sync selector 42 , and the register setting portion 44 .
- the input port detection sync selector 40 produces an output of an input detection signal.
- the resistor control sync selector 42 produces an output of a control clock signal that is in synchronism with the input detection signal.
- connection control portion 50 produces an output of the connection control signal of “1” so that the switch portions 24 , 34 are closed according to the detection timing, and of the connection control signal of “0” so that the switch portions 24 , 34 are open at other timings.
- the external signal is applied to the input detection portion 14 via the input port 12 and the signal line 16 .
- the input detection portion 14 determines whether or not the external signal is applied in accordance with the detection timing set by the input detection signal. Detection of the external signal is determined based on the external signal and the input detection signal.
- the input detection portion 14 outputs the results of this detection to an electronic circuit (not shown) including a CPU, an arithmetic circuit, and the like.
- the external signal detection circuit 10 may even be configured so as to have only the pull-up circuit 20 connected to the input port 12 .
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Nonlinear Science (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Logic Circuits (AREA)
- Power Sources (AREA)
- Oscillators With Electromechanical Resonators (AREA)
Abstract
Description
- 1. Technical Field
- The present invention relates to an external signal detection circuit and a real-time clock.
- 2. Related Art
- A real-time clock is a piezoelectric device that creates digital data, including that indicating time-of-day, date, and the like, from a clock signal. Some of such a real-time clock include an input port of an external signal, in which a signal from an external environment (an external signal) is inputted so that the external signal can be supplied to a central processing unit (CPU), an arithmetic circuit, or the like. The real-time clock herein corresponds to an electronic apparatus mounted with a real-time clock, the electronic device operating in negative logic or positive logic, as the case may be, with a pull-up resistor or a pull-down resistor connected to the input port.
-
FIG. 3 is diagram illustrating a pull-up resistor and a pull-down resistor connected to an input port. A pull-upresistor 3 is connected to aninput port 1 via afirst switch portion 2 and a pull-down resistor 5 is connected to theinput port 1 via asecond switch portion 4. Further, anexternal circuit 6 is connected to theinput port 1. When thefirst switch portion 2 connected in series with the pull-upresistor 3 is turned on (closed), current flows from a power source Vdd to theexternal circuit 6 via theinput port 1 as shown by an arrow B ofFIG. 3 . If thefirst switch portion 2 is kept on, the current continues flowing to consume an electric power. - JP-A-7-325780 is an example of related art. JP-A-7-325780 discloses an arrangement, in which an input/output port of a microprocessor includes an output mode setting MOS transistor connected to a power source, and an operation switch is interposed between an input/output pin and the power source. A CPU reads a switching program from a program memory to control operations of the output mode setting MOS transistor and to operate the operation switch. A leak current is thereby prevented from flowing to suppress power consumption.
- If an electronic apparatus is formed by connecting the pull-up
resistor 3 and the pull-down resistor 5 to theinput port 1 and further connecting theinput port 1 to theexternal circuit 6, and if the pull-upresistor 3 is kept connected to theinput port 1, current continues flowing as shown by the arrow B inFIG. 3 , resulting in wasteful consumption of power, as described above. Should the electronic apparatus mounted with a real-time clock operate on a battery, the battery would have a shorter service life. An example of a condition, in which such a wasteful current flows, includes an electronic apparatus constituting a switch for a remote control or the like, the switch being kept on for an unnecessarily long period of time. - To prevent the wasteful current shown by the arrow B in
FIG. 3 from flowing, it is possible to provide an on/off control of the switch connected in series with the pull-upresistor 3 or the pull-down resistor 5, thereby restricting connection of the pull-upresistor 3 to theinput port 1 and thus restricting connection of the power source Vdd to theexternal circuit 6. If this restricting operation is controlled by a central processing unit (CPU) by using software or an external circuit, load is imposed on the software and the like. Specifically, this results in increased occupancy of CPU resources. As a result, system performance is impaired and power consumption of the CPU itself increases. - Further, the following problem arises when the external signal inputted to the
input port 1 is to be detected.FIGS. 4A and 4B are views for illustrating a case, in which the external circuit has a line capacity. Herein,FIG. 4A is a circuit block diagram andFIG. 4B is a diagram showing a relation between time and an input port voltage. A case is to be herein considered, in which thefirst switch portion 2 is connected in series with the pull-upresistor 3 and thefirst switch portion 2 is controlled to be turned on or off so as to restrict connection of the pull-upresistor 3 to theinput port 1, and so as to detect a HIGH signal (external signal) inputted to theinput port 1. If theexternal circuit 6 connected to theinput port 1 has a large line capacity, connecting the pull-up resistor 3 to theinput port 1 by turning on thefirst switch portion 2 immediately before an input detection timing causes a voltage level at the input port 1 (input port voltage) to build up gradually. Specifically, it takes time for the voltage to build up, or the voltage at theinput port 1 does not go HIGH immediately. Accordingly, the voltage does not build up sufficiently at a timing (input detection timing) at which it is determined whether or not the external signal has been inputted to theinput port 1. The related art technique therefore involves a problem in that the voltage at theinput port 1 is lower than a H/L threshold established for determining if the voltage is a HIGH or LOW level, resulting in an erroneous detection of a LOW level. - An advantage of some aspects of the invention is to provide an external signal detection circuit and a real-time clock that promote lower power consumption, lessen load on a CPU, and allow external signal detection timing and resistor connection timing to be adjusted with high accuracy.
- An external signal detection circuit according to one aspect of the invention includes an input port, an input detection portion, and a connection control portion. Specifically, the input port is connected to a first end of a circuit that has a pull-up resistor connected in series with a first switch portion. The input port receives an input of an external signal. The input detection portion is connected to the input port for receiving an input of the external signal. The input detection portion also receives an input of an input detection signal that sets timing for intermittently detecting the input of the external signal (detection timing). The connection control portion turns on (closes) the first switch portion in time with the timing at which the external signal is detected. The first switch portion is turned on to connect the pull-up resistor to the input port according to the timing at which the external signal is detected. The pull-up resistor and the input port are not therefore connected to each other at any time that falls outside a range of the detection timing of the external signal. Accordingly, a power source connected to the pull-up resistor is connected to the input port only at a time that corresponds to a range of the detection timing of the external signal. This prevents wasteful current from flowing to the input port from the power source at any time outside the range corresponding to the detection timing. Consumption of electric power can thereby be reduced.
- It is preferable that the connection control portion include a counter portion and an arithmetic portion. Specifically, the counter portion receives an input of the input detection signal and a control clock signal that is in synchronism with the input detection signal. The counter portion thereby sets a connection time of the first switch portion. The arithmetic portion is connected to the counter portion. The arithmetic portion calculates a signal outputted from the counter portion and outputs a result of calculation to the first switch portion. Detection of an input of the external signal is made based on the input detection signal. Since the control clock signal is in synchronism with the input detection signal, the connection control portion that receives the input of the input detection signal and the control clock signal can set, in its counter portion, the connection time of the first switch portion that is in synchronism with the input detection signal. Accordingly, the connection control signal outputted from the arithmetic portion can also be made to be in synchronism with the input detection signal. Consequently, the external signal detection circuit can control the timing at which the first switch portion is turned on with high accuracy relative to the timing at which the external signal is detected. There is no chance that these timings will be deviated from each other. In addition, on/off of the first switch portion is set by the counter portion and the arithmetic portion disposed in the connection control portion. This helps prevent a processing device that controls the external signal detection circuit from being loaded. Electric power consumed by the processing device can also be reduced.
- An external signal detection circuit according to another aspect of the invention includes an input port, a register setting portion, and a connection control portion. Specifically, the input port is connected to a first end of a circuit (a pull-up circuit) that has a pull-up resistor connected in series with a first switch portion and a first end of a circuit (a pull-down circuit) that has a pull-down resistor connected in series with a second switch portion. The input port receives an input of an external signal. The register setting portion is connected to the first switch portion and the second switch portion. The register setting portion selects either one of the first and second switch portions. The connection control portion is connected to the first switch portion and the second switch portion. The connection control portion controls a connection time of either the first switch portion or the second switch portion, whichever is selected by the register setting portion based on an input detection signal that detects an input of the external signal to the input port and a control clock signal that is in synchronism with the input detection signal.
- The first switch portion or the second switch portion is turned on to thereby connect the pull-up resistor or the pull-down resistor to the input port at timing, at which the external signal is detected. Accordingly, the pull-up resistor or the pull-down resistor is not connected to the input port at any time other than the detection timing of the external signal. When the pull-up resistor is to be connected to the input port, therefore, a power source connected to the pull-up resistor is connected to the input port only at a time that corresponds to the detection timing of the external signal. This prevents wasteful current from flowing to the input port from the power source at any time other than the detection timing. Consumption of electric power can thereby be reduced. In addition, the external signal detection circuit can set, in its connection control portion, the connection time of the first switch portion or the second switch portion that is in synchronism with the input detection signal.
- It is preferable that the connection control portion include a setup time counter, a release time counter, and an arithmetic portion. Specifically, the setup time counter receives an input of the input detection signal and the control clock signal and thereby sets a connection time before a detection timing established based on the input detection signal. The release time counter receives an input of the input detection signal and the control clock signal and thereby sets a connection time after the detection timing. The arithmetic portion is connected to the setup time counter and the release time counter. The arithmetic portion calculates signals outputted from the setup and release time counters and outputs a result of calculation to the first or second switch portion so that the switch portion is connected in time with the detection timing. The input detection signal sets the detection timing of the external signal. Since the input detection signal and the control clock signal inputted in the setup time counter and the release time counter are in synchronism with each other, each of the signals outputted from the setup and release time counters is also in synchronism with the input detection signal. Further, the signal outputted from the arithmetic portion is also in synchronism with the input detection signal. Consequently, the connection control portion can set the connection time, during which the first switch portion or the second switch portion is turned on in time with the detection timing of the external signal.
- It is also preferable that the external signal detection circuit further include an input port detection sync selector and a resistor control sync selector. Specifically, the input port detection sync selector produces an output of the input detection signal based on an oscillation signal at a predetermined frequency. The resistor control sync selector produces the control clock signal based on the oscillation signal. The oscillation signals inputted to the input port detection sync selector and the resistor control sync selector, respectively, are in synchronism with each other. Accordingly, the timing at which the pull-up resistor or the pull-down resistor is connected can be made to be in synchronism with the detection timing of the external signal with high accuracy.
- A real-time clock according to still another aspect of the invention includes the above-referenced external signal detection circuit and a timing signal output portion. Specifically, the timing signal output portion produces an output of a timing clock signal. These arrangements allow the real-time clock to be mounted with an external signal detection circuit having the arrangements as described above.
- In this case, the timing signal output portion may include an oscillator portion and a divider portion that produces an output of the oscillation signal by dividing a source oscillation outputted from the oscillator portion. This allows the real-time clock to provide on/off control of the switch portion based on the oscillation signal at any arbitrary frequency. The real-time clock may produce an output of a plurality of oscillation signals to the external signal detection circuit. The plurality of oscillation signals are, however, based on the source oscillation outputted from a single oscillator portion. The real-time clock can therefore highly accurately synchronize the detection of the external signal with the connection of the switch portion.
- The invention will be described with reference to the accompanying drawings, wherein like numbers reference like elements.
-
FIG. 1 is a block diagram of a principal part of a real-time clock including an external signal detection circuit. -
FIG. 2 is a typical operation timing chart. -
FIG. 3 is a view for illustrating a circuit, in which a pull-up resistor and a pull-down resistor are connected to an input port. -
FIGS. 4A and 4B are views for illustrating a case, in which an external circuit has a line capacity. - An external signal detection circuit and a real-time clock according to an embodiment of the invention will be described below. According to the embodiment of the invention, an exemplary embodiment will be described in which the external signal detection circuit is mounted in the real-time clock.
FIG. 1 is a block diagram of a principal part of a real-time clock including an external signal detection circuit. An externalsignal detection circuit 10 includes aninput port 12, to which an external signal is inputted. A signal line 16 for guiding the external signal to aninput detection portion 14 is connected to theinput port 12. An input to theinput detection portion 14 is also connected to an input portdetection sync selector 40. An input detection signal detecting an input of an external signal to theinput detection portion 14 is inputted to the input portdetection sync selector 40. Theinput detection portion 14 may be formed, for example, from a flip-flop circuit. - A pull-up circuit 20 and a pull-
down circuit 30 are connected to the signal line 16. The pull-up circuit 20 includes a pull-upresistor 22 and afirst switch portion 24 connected in series with each other. The pull-up circuit 20 has a proximal end connected to the signal line 16 and a distal end connected to a power source Vdd. The pull-down circuit 30 includes a pull-down resistor 32 and asecond switch portion 34 connected in series with each other. The pull-down circuit 30 has a proximal end connected to the signal line 16 and a distal end connected to a ground. Thefirst switch portion 24 and thesecond switch portion 34 are connected to a register setting portion 44 that selectively controls to turn on either thefirst switch portion 24 or thesecond switch portion 34. Thefirst switch portion 24 and thesecond switch portion 34 are also connected to aconnection control portion 50. Theconnection control portion 50 controls a connection time (on time) of the 24 or 34 selected by the register setting portion 44 based on the input detection signal and a control clock signal that is in synchronism with therewith. Theswitch portion connection control portion 50 is connected to an input portdetection sync selector 40, a resistorcontrol sync selector 42, and the register setting portion 44. Specifically, the input portdetection sync selector 40 produces an output of an input detection signal. The resistorcontrol sync selector 42 produces an output of a control clock signal that is in synchronism with the input detection signal. - The external
signal detection circuit 10 will be described in detail. Specifically, thefirst switch portion 24 connected in series with the pull-upresistor 22 is connected to an output of a first ANDcircuit 46. The register setting portion 44 is connected to a first input of the first ANDcircuit 46 via afirst inverter 48. Theconnection control portion 50 is connected to a second input of the first ANDcircuit 46. Thesecond switch portion 34 connected in series with the pull-down resistor 32 is connected to an output of a second AND circuit 49. The register setting portion 44 is connected to a first input of the second AND circuit 49. Theconnection control portion 50 is connected to a second input of the second AND circuit 49. - The
connection control portion 50 includes anarithmetic portion 60 and acounter portion 52. Thecounter portion 52 includes asetup time counter 54 and a release time counter 56. Thecounter portion 52, receiving inputs of the input detection signal and the control clock signal, sets the connection time of thefirst switch portion 24 or thesecond switch portion 34, whichever is selected by the register setting portion 44. More specifically, thesetup time counter 54 constituting thecounter portion 52, receiving inputs of the input detection signal and the control clock signal, sets a connection time before a detection timing based on the input detection signal. The release time counter 56, receiving inputs of the input detection signal and the control clock signal, sets a connection time after the detection timing. It is to be noted that thesetup time counter 54 and the release time counter 56 are preset counters that produce an output of an overflow signal when a preset count is reached. - The
arithmetic portion 60 is connected to an output side of thecounter portion 52. To connect thefirst switch portion 24 or thesecond switch portion 34 according to the detection timing, thearithmetic portion 60 calculates a signal outputted from thecounter portion 52 and produces an output of results of calculation to each of the 24, 34. More specifically, theswitch portions arithmetic portion 60 includes an ORcircuit 62. A first input of theOR circuit 62 is connected to the release time counter 56 via a second inverter 64. A second input of theOR circuit 62 is connected to thesetup time counter 54. - The external
signal detection circuit 10 configured as described above is mounted to a real-time clock 70 such that a timing signal output portion 71 is connected to an input side of the externalsignal detection circuit 10, The timing signal output portion 71, which includes anoscillator portion 72 and adivider portion 80, produces an output of a timing clock signal. Theoscillator portion 72 produces an output of a source oscillation. Theoscillator portion 72 includes anoscillator circuit 76 connected to a piezoelectric device 74. It should be noted that theoscillator portion 72 is capable of producing an output of, for example, a source oscillation of 32.768 kHz through excitation of the piezoelectric device 74. Thedivider portion 80 includes a ½divider circuit 82 connected to theoscillator circuit 76 in multiple stages. Having this ½divider circuit 82, thedivider portion 80 is capable of producing an output of an oscillation signal by diving the source oscillation. A 1-Hz oscillation signal (timing clock signal) is thereby eventually obtained. This results in a synchronized oscillation signal being inputted to each of the input portdetection sync selector 40 and the resistorcontrol sync selector 42 of the externalsignal detection circuit 10. - Operation of the external
signal detection circuit 10 will next be described.FIG. 2 is a typical operation timing chart. On receipt of a setting signal from an external environment, the register setting portion 44 produces an output of “0” or “1” as a selection signal for thefirst switch portion 24 and thesecond switch portion 34. Specifically, the register setting portion 44 outputs a “0” if the pull-upresistor 22 is to be connected to theinput port 12. Alternatively, the register setting portion 44 outputs a “1” if the pull-down resistor 32 is to be connected to theinput port 12. The selection signal to be outputted to thefirst switch portion 24 is first inverted by thefirst inverter 48, and then inputted to the first ANDcircuit 46. The selection signal to be outputted to thesecond switch portion 34 is inputted to the second AND circuit 49. - Further, receiving a setting signal from an external environment, the register setting portion 44 make a setting so that an oscillation signal at an arbitrary frequency is applied to the input port
detection sync selector 40 and the resistorcontrol sync selector 42. Receiving the setting signal from the external environment, the register setting portion 44 also sets an initial value of each of thesetup time counter 54 and the release time counter 56. It is to be noted that, inFIG. 2 , an initial value of “8” is set for the release time counter 56 and an initial value of “5” is set for thesetup time counter 54. - The
oscillator circuit 76 oscillates the piezoelectric device 74 and thereby produces an output of a source oscillation at a predetermined frequency. On receipt of the input of the source oscillation, thedivider portion 80 uses the ½divider circuit 82 to divide the source oscillation and then produces an output of an oscillation signal. Oscillation signals at frequencies set by the register setting portion 44 are inputted to the input portdetection sync selector 40 and the resistorcontrol sync selector 42. The oscillation signals inputted to these 40, 42 may have different frequencies from each other; however, the oscillation signals inputted to thesync selectors 40, 42 are based on the source oscillation outputted from thesync selectors oscillator portion 72 and accordingly the oscillation signals are in synchronism with each other. The input portdetection sync selector 40 produces an output of the input detection signal based on the oscillation signal inputted thereto. The resistorcontrol sync selector 42, on the other hand, produces an output of the control clock signal based on the oscillation signal inputted thereto. It should be noted herein that the input detection signal and the control clock signal are in synchronism with each other, since the oscillation signals inputted to the two 40, 42 are in synchronism with each other.sync selectors - The input detection signal is applied to the
input detection portion 14 so that the external signal detection timing can be set. The input detection signal is also inputted to the release time counter 56 and thesetup time counter 54. The control clock signal is, on the other hand, applied to the release time counter 56 and thesetup time counter 54 of thecounter portion 52. The input detection signal applied to each of thecounters 54, 56 controls loading of the initial value set in each of thecounters 54, 56. The input detection signal clears a count of each of thecounters 54, 56 at a timing indicated by a dotted line A inFIG. 2 , thereby loading the initial value. - When the initial value is loaded, the release time counter 56 starts counting with this initial value. In the case shown in
FIG. 2 , the release time counter 56 starts counting with the initial value of “8.” Counting takes place according to the control clock signal applied and, when the counter 56 counts “0,” an overflow signal is outputted. The overflow signal is synchronized with the input detection signal. The overflow signal is then applied to the second inverter 64 and inverted before being outputted to theOR circuit 62. With the initial loaded, the setup time counter 54 starts counting with the initial value. In the case shown inFIG. 2 , the setup time counter 54 starts counting with the initial value of “5.” Counting takes place according to the control clock signal applied and, when the counter 54 counts “0,” an overflow signal is outputted. The overflow signal is synchronized with the input detection signal. The overflow signal is outputted to theOR circuit 62. - The overflow signals outputted from the
counters 54, 56 are logically ORed with each other by theOR circuit 62 to produce an output of a connection control signal to thefirst switch portion 24 and thesecond switch portion 34. The connection control signal, being in synchronism with the input detection signal, turns on the 24, 34 in time with the input detection signal. Specifically, the connection control signal functions to connect the pull-upswitch portions resistor 22 or the pull-down resistor 32 to theinput port 12 in time with the detection timing of the external signal. The selection signal and the connection control signal are logically ANDed with each other by the first ANDcircuit 46 and the second AND circuit 49 as the signals are applied thereto. The results of the logical operations are applied, respectively, to thefirst switch portion 24 and thesecond switch portion 34, which achieves on/off control of each of the 24, 34. The period of time, through which theswitch portions 24, 34 are kept on or off is set by the initial values of the release time counter 56 and theswitch portions setup time counter 54. Specifically, changing the initial value set for the release time counter 56 varies the connection time of the 24, 34 after the detection timing. Changing the initial value set for theswitch portions setup time counter 54 varies the connection time of the 24, 34 before the detection timing.switch portions - More specifically, to turn on the
first switch portion 24, a “0” is outputted as the selection signal from the register setting portion 44. This selection signal is inverted by thefirst inverter 48 to become a “1” which, in turn, is applied to the first ANDcircuit 46 and the second AND circuit 49. Theconnection control portion 50 produces an output of the connection control signal of “1” so that the 24, 34 are closed according to the detection timing, and of the connection control signal of “0” so that theswitch portions 24, 34 are open at other timings. The first ANDswitch portions circuit 46 receives inputs of the selection signal of “1” and the connection control signal of “1” for a range corresponding to the detection timing and outputs a “1” to, and thereby turns on, thefirst switch portion 24 for a period of time, during which the pull-upresistor 22 is to be connected to theinput port 12. Similarly, the first ANDcircuit 46 receives inputs of the selection signal of “1” and the connection control signal of “0” for a range other than that corresponding to the detection timing and outputs a “0” to, and thereby turns off, thefirst switch portion 24 for a period of time, during which the pull-upresistor 22 is to be disconnected from theinput port 12. The second AND circuit 49, on the other hand, receives inputs of the selection signal of “0” and the connection control signal of “0” or “1” and outputs a “0” to, and thereby turns off, thesecond switch portion 34 for a range corresponding to the detection timing and other timings. - When the pull-up
resistor 22 or the pull-down resistor 32 is connected to theinput port 12 in time with the detection timing of the external signal as described heretofore, the external signal is applied to theinput detection portion 14 via theinput port 12 and the signal line 16. Theinput detection portion 14 determines whether or not the external signal is applied in accordance with the detection timing set by the input detection signal. Detection of the external signal is determined based on the external signal and the input detection signal. Theinput detection portion 14 outputs the results of this detection to an electronic circuit (not shown) including a CPU, an arithmetic circuit, and the like. - As described in the foregoing, the external
signal detection circuit 10 and the real-time clock 70 having therein the externalsignal detection circuit 10 include theinput port 12, to which the pull-upresistor 22 and the pull-down resistor 32 are connected and, by connecting either one of the 22, 32 to theresistors input port 12, detect the external signal. Either one of the 22, 32 is connected to theresistors input port 12 according to the input detection signal applied to theinput detection portion 14. Specifically, the pull-upresistor 22 or the pull-down resistor 32 is connected to theinput port 12 intermittently in time with the timing, at which the external signal is detected by theinput detection portion 14. The power source Vdd is therefore connected to theinput port 12 only when the pull-upresistor 22 is connected to theinput port 12. At any time other than this, i.e., at any time other than the detection timing, there is no chance that a wasteful current will flow from the power source Vdd to the external circuit connected to theinput port 12. Consequently, low power consumption can be promoted. If the real-time clock 70 is driven by a battery, the service life of the battery can be elongated. - Further, the connection of the pull-up
resistor 22 or the pull-down resistor 32 to theinput port 12 is continuously controlled based on the oscillation signal outputted from the timing signal output portion 71 of the real-time clock 70. This allows, in the externalsignal detection circuit 10 according to the embodiment of the invention, the pull-upresistor 22 or the pull-down resistor 32 to be connected to theinput port 12 without using any software or external circuit as in related art. As a result, load on the CPU or the system can be lessened and power consumption of the CPU itself can be reduced. - A detection cycle of the external signal applied to the
input port 12 and the timing, at which the pull-upresistor 22 or the pull-down resistor 32 is intermittently connected to theinput port 12, can be arbitrarily set. This allows the connection time of the pull-upresistor 22 or the pull-down resistor 32 to be established according to characteristics of the external signal. It should be noted herein that the input detection signal and the control clock signal are based on the source oscillation outputted from theidentical oscillator portion 72. These signals can therefore be synchronized with each other. Since the timing, at which the pull-upresistor 22 or the pull-down resistor 32 is connected to theinput port 12, is based on the source oscillation of theoscillator portion 72, therefore, control that is phase-synchronized with the detection timing can be provided. If a crystal oscillator is used for the piezoelectric device 74, the connection timing of the 22, 32 and the detection timing can be phase-synchronized with greater accuracy. Control of high accuracy can therefore be achieved.resistor - When a HIGH signal (external signal) applied to the
input port 12 is to be detected by connecting the pull-upresistor 22 to theinput port 12, a large line capacity of the external circuit contributes to a longer time in voltage buildup at theinput port 12. In the externalsignal detection circuit 10 according to the embodiment of the invention, however, the timing at which the pull-upresistor 22 or the pull-down resistor 32 is connected to theinput port 12 can be advanced by changing the initial value of thecounter portion 52. This helps prevent false signal detection from occurring. Being based on the oscillation signal, this adjustment of advancing the timing can be made with high accuracy. - The timing at which the pull-up
resistor 22 or the pull-down resistor 32 is connected to theinput port 12 is stored, for example, in an internal register of the real-time clock 70. Since the real-time clock 70 is driven by a backup secondary battery or the like, therefore, it is possible to detect an input of an external signal of a switch or the like immediately after system power has been recovered from shutdown. Similarly, the real-time clock 70 is capable of notifying the CPU of an interruption by detecting an external signal of high priority, such as an emergency input or the like, during a sleep mode (a power saving mode) of the system. - The external
signal detection circuit 10 having arrangements as described heretofore may be mounted in not only the real-time clock 70, but also an electronic component including the timing signal output portion 71 for use in detection of external signals. - The external
signal detection circuit 10 may even be configured so as to have only the pull-up circuit 20 connected to theinput port 12. - The entire disclosure of Japanese Patent Application No. 2005-214095, filed Jul. 25, 2005 is expressly incorporated by reference herein.
Claims (7)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005214095A JP4701898B2 (en) | 2005-07-25 | 2005-07-25 | External signal detection circuit and real-time clock |
| JP2005-214095 | 2005-07-25 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| US20070029980A1 true US20070029980A1 (en) | 2007-02-08 |
| US7418614B2 US7418614B2 (en) | 2008-08-26 |
Family
ID=37717069
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US11/428,602 Expired - Fee Related US7418614B2 (en) | 2005-07-25 | 2006-07-05 | External signal detection circuit and real-time clock |
Country Status (2)
| Country | Link |
|---|---|
| US (1) | US7418614B2 (en) |
| JP (1) | JP4701898B2 (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7725751B2 (en) * | 2006-12-29 | 2010-05-25 | Intel Corporation | Termination techniques for bus interfaces |
| KR20080086078A (en) * | 2007-03-21 | 2008-09-25 | 삼성전자주식회사 | Ink level detection apparatus of inkjet image forming apparatus and control method thereof |
| JP4764852B2 (en) * | 2007-04-26 | 2011-09-07 | 京セラ株式会社 | Electronics |
| JP2009284042A (en) * | 2008-05-20 | 2009-12-03 | Nec Electronics Corp | Pulse detection device, and pulse detection method |
| JP5301262B2 (en) | 2008-12-19 | 2013-09-25 | ルネサスエレクトロニクス株式会社 | Semiconductor device and operation mode switching method |
| FR2947930B1 (en) * | 2009-07-10 | 2012-02-10 | St Ericsson Grenoble Sas | USB ATTACHMENT DETECTION |
| US8461934B1 (en) | 2010-10-26 | 2013-06-11 | Marvell International Ltd. | External oscillator detector |
| JP2024014277A (en) * | 2022-07-22 | 2024-02-01 | セイコーエプソン株式会社 | Circuit equipment and vibration devices |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6958953B2 (en) * | 2003-05-13 | 2005-10-25 | International Business Machines Corporation | Real time clock circuit having an internal clock generator |
| US20050268127A1 (en) * | 2004-05-12 | 2005-12-01 | Canon Kabushiki Kaisha | Electronic apparatus for use with removable storage medium, control method therefor, and program for implementing the method |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH03175518A (en) * | 1989-12-04 | 1991-07-30 | Mitsubishi Electric Corp | Input circuit |
| JP3190710B2 (en) * | 1991-09-20 | 2001-07-23 | 日本電気株式会社 | Semiconductor integrated circuit |
| JPH06125261A (en) * | 1992-10-13 | 1994-05-06 | Mitsubishi Electric Corp | Input circuit |
| JP3543364B2 (en) | 1994-06-01 | 2004-07-14 | 株式会社豊田自動織機 | Microcomputer input / output circuit |
| JPH08162930A (en) * | 1994-12-02 | 1996-06-21 | Matsushita Electric Ind Co Ltd | Input circuit |
| JP2005092480A (en) * | 2003-09-17 | 2005-04-07 | Hitachi Global Storage Technologies Netherlands Bv | Interface circuit and electronic equipment |
-
2005
- 2005-07-25 JP JP2005214095A patent/JP4701898B2/en not_active Expired - Fee Related
-
2006
- 2006-07-05 US US11/428,602 patent/US7418614B2/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6958953B2 (en) * | 2003-05-13 | 2005-10-25 | International Business Machines Corporation | Real time clock circuit having an internal clock generator |
| US20050268127A1 (en) * | 2004-05-12 | 2005-12-01 | Canon Kabushiki Kaisha | Electronic apparatus for use with removable storage medium, control method therefor, and program for implementing the method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP4701898B2 (en) | 2011-06-15 |
| JP2007036433A (en) | 2007-02-08 |
| US7418614B2 (en) | 2008-08-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1451666B1 (en) | Glitch free clock selection switch | |
| US5623234A (en) | Clock system | |
| TWI506396B (en) | Data processing circuitry, synchronisation circuit and data processing apparatus for processing data, and method of detecting potential timing errors | |
| JP2007520008A (en) | Method and apparatus for overclocking in a digital processing system | |
| US7418614B2 (en) | External signal detection circuit and real-time clock | |
| JPH0716164B2 (en) | Mobile communication device | |
| US6888391B2 (en) | Clock generating circuit and clock generating method | |
| US7529961B2 (en) | Semiconductor device with clock failure detection circuitry | |
| US7649422B2 (en) | Real time clock integrated circuit and electronic apparatus using the same | |
| JP2008299731A (en) | Semiconductor integrated circuit, information processing system | |
| CN103326714B (en) | Numerically-controlled oscillator, hardware performance detection, system and detector | |
| US6754836B2 (en) | Microcomputer capable of switching between low current consumption mode and normal operation mode | |
| JP3578043B2 (en) | Power supply voltage detection circuit | |
| US6304979B1 (en) | Logic to enable/disable a clock generator in a secure way | |
| USRE39523E1 (en) | Power control apparatus for a battery-powered communication system | |
| US5799177A (en) | Automatic external clock detect and source select circuit | |
| US20230418627A1 (en) | Monitoring transitions of a circuit | |
| JP2006197564A (en) | Signal selection circuit and real-time clock device | |
| JPH09305252A (en) | Semiconductor device | |
| US20050128013A1 (en) | Semiconductor device | |
| US6911873B2 (en) | Detection circuit and method for an oscillator | |
| JPH11258279A (en) | Power supply voltage detector and control equipment using the same | |
| JP2002278657A (en) | Power source interrupting device | |
| US20230291216A1 (en) | Monitoring battery voltage delivery | |
| US11184011B2 (en) | Clock detection and automatic PLL output bypass switching for an audio processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| AS | Assignment |
Owner name: SEIKO EPSON CORPORATION, JAPAN Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:SHIROTORI, TORU;REEL/FRAME:017889/0339 Effective date: 20060627 |
|
| STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
| FEPP | Fee payment procedure |
Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
| FPAY | Fee payment |
Year of fee payment: 4 |
|
| FPAY | Fee payment |
Year of fee payment: 8 |
|
| FEPP | Fee payment procedure |
Free format text: MAINTENANCE FEE REMINDER MAILED (ORIGINAL EVENT CODE: REM.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
| LAPS | Lapse for failure to pay maintenance fees |
Free format text: PATENT EXPIRED FOR FAILURE TO PAY MAINTENANCE FEES (ORIGINAL EVENT CODE: EXP.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
| STCH | Information on status: patent discontinuation |
Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362 |
|
| FP | Lapsed due to failure to pay maintenance fee |
Effective date: 20200826 |