JPH0667748A - Clock control system - Google Patents
Clock control systemInfo
- Publication number
- JPH0667748A JPH0667748A JP4216763A JP21676392A JPH0667748A JP H0667748 A JPH0667748 A JP H0667748A JP 4216763 A JP4216763 A JP 4216763A JP 21676392 A JP21676392 A JP 21676392A JP H0667748 A JPH0667748 A JP H0667748A
- Authority
- JP
- Japan
- Prior art keywords
- clock
- controller
- level
- keyboard
- setting port
- 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
Landscapes
- Power Sources (AREA)
Abstract
(57)【要約】
【目的】 本発明は、コントローラのクロックを制御す
るクロック制御方式に関し、クロックで動作するコント
ローラの省電力を図るために外部クロックや内部クロッ
クのスリープ/ストップを簡単な構成で共用可とするこ
とを目的とする。
【構成】 外部クロックの入力状態あるいは振動子4の
接続状態を設定する設定ポート3を、クロックで動作す
るコントローラ1に設け、この設定ポート3が外部クロ
ックの入力状態(例えばHレベル)のときに、外部クロ
ックを取り込んでこれを使用して動作し、当該外部クロ
ックの低周波あるいは停止に対応して省電力を図り、一
方、設定ポート3が振動子4の接続状態(例えばLレベ
ル)のときに、振動子4からクロックを取り込んでこれ
を使用して動作し、当該内部クロックの低周波あるいは
停止して省電力を図るように構成する。
(57) [Abstract] [Object] The present invention relates to a clock control system for controlling a clock of a controller, and in order to save power of a controller operating by the clock, sleep / stop of an external clock or an internal clock is made simple. It is intended to be shared. [Configuration] A setting port 3 for setting an input state of an external clock or a connection state of an oscillator 4 is provided in a controller 1 operating with a clock, and when the setting port 3 is in an input state of an external clock (for example, H level) , It takes in an external clock and operates by using it to save power in response to the low frequency or stoppage of the external clock, while the setting port 3 is in the connection state of the oscillator 4 (for example, L level). In addition, the clock is taken from the oscillator 4 and operated by using the clock, and the internal clock is configured to operate at a low frequency or stopped to save power.
Description
【0001】[0001]
【産業上の利用分野】本発明は、コントローラのクロッ
クを制御するクロック制御方式に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock control system for controlling a clock of a controller.
【0002】[0002]
【従来の技術】従来、クロックに同期して動作するマイ
クロコンピュータによって構成される、図4の(a)に
示すようなキーボードコントローラ21が外部に設けた
システムゲートアレイ22からクロックの供給を受ける
場合、当該システムゲートアレイ22がキーボードクロ
ックをLOWクロックに切り替えたり、キーボードクロ
ックを停止したりし、省電力を図っている。この際、キ
ーボードコントローラ21がシステムゲートアレイ22
に対してクロック制御信号を送出したことに対応して、
キーボードクロックをLOWクロックに切り替えたり、
キーボードクロックを停止したりしている。2. Description of the Related Art Conventionally, a keyboard controller 21 as shown in FIG. 4A, which is composed of a microcomputer operating in synchronization with a clock, receives a clock from an external system gate array 22. The system gate array 22 switches the keyboard clock to the LOW clock or stops the keyboard clock to save power. At this time, the keyboard controller 21 changes the system gate array 22.
In response to sending the clock control signal to
Switching the keyboard clock to LOW clock,
You have stopped the keyboard clock.
【0003】また、図4の(b)に示すように、キーボ
ードコントローラ24に振動子26を直接に接続してク
ロックを供給する場合、当該キーボードコントローラ2
4自身が振動子26を制御してキーボードクロックをO
N/OFF制御し、省電力を図っていた。Further, as shown in FIG. 4B, when the oscillator 26 is directly connected to the keyboard controller 24 to supply a clock, the keyboard controller 2 is connected.
4 controls the oscillator 26 to turn on the keyboard clock
Power was saved by controlling N / OFF.
【0004】[0004]
【発明が解決しようとする課題】従来は、上述した図4
の(a)のようにキーボードコントローラ21が外部に
設けたシステムゲートアレイ22から外部クロックとし
てキーボードクロックの供給を受る構成と、図4の
(b)のようにキーボードコントローラ24に直接に接
続した振動子26を使用して内部クロックとしてクキー
ボードクロックを発生する構成とがある場合、それぞれ
のキーボードコントローラ21、24を設計して換える
必要が生じてしまうという問題があった。Conventionally, as shown in FIG.
4A, the keyboard controller 21 receives the keyboard clock as an external clock from the external system gate array 22, and the keyboard controller 24 is directly connected to the keyboard controller 24 as shown in FIG. 4B. If the oscillator 26 is used to generate the KU keyboard clock as the internal clock, the keyboard controllers 21 and 24 need to be designed and replaced.
【0005】本発明は、これらの問題を解決するため、
クロックで動作するコントローラの省電力を図るために
外部クロックや内部クロックのスリープ/ストップを簡
単な構成で共用可とすることを目的としている。The present invention solves these problems.
The purpose of this invention is to enable sleep / stop of an external clock and an internal clock to be shared with a simple configuration in order to save power of a controller that operates on a clock.
【0006】[0006]
【課題を解決するための手段】図1を参照して課題を解
決するための手段を説明する。図1において、コントロ
ーラ1は、クロックを使用して動作する回路であって、
設定ポート3、振動子4の接続端子などを持つものであ
る。[Means for Solving the Problems] Means for solving the problems will be described with reference to FIG. In FIG. 1, a controller 1 is a circuit that operates using a clock,
It has a setting port 3, a connection terminal for the vibrator 4, and the like.
【0007】設定ポート3は、外部クロックの入力状態
(例えばHレベル)、および振動子4の接続の状態(例
えばLレベル)を設定するものである。振動子4は、内
部クロックを発生するものである。The setting port 3 is for setting the input state of the external clock (for example, H level) and the connection state of the vibrator 4 (for example, L level). The oscillator 4 generates an internal clock.
【0008】[0008]
【作用】本発明は、図1に示すように、設定ポート3を
クロックで動作するコントローラ1に設け、設定ポート
3が外部クロックの入力状態(例えばHレベル)のとき
に、外部クロックを取り込んでこれを使用して動作し、
一方、設定ポート3が振動子4の接続状態(例えばLレ
ベル)のときに、振動子4からのクロックを取り込んで
これを使用して動作するようにしている。According to the present invention, as shown in FIG. 1, the setting port 3 is provided in the controller 1 which operates with a clock, and when the setting port 3 is in the input state (for example, H level) of the external clock, the external clock is taken in. Works using this,
On the other hand, when the setting port 3 is in the connected state of the vibrator 4 (for example, L level), the clock from the vibrator 4 is fetched and used to operate.
【0009】この際、設定ポート3が外部クロックの入
力状態(例えばHレベル)のときに、外部クロックを取
り込んでこれを使用して動作すると共に、当該設定ポー
ト3から低周波クロックあるいはクロック停止する信号
を送出し、これを受けた回路がコントローラ1に送出し
ていたクロックを低周波あるいは停止し、省電力を図る
ようにしている。At this time, when the setting port 3 is in the input state (for example, H level) of the external clock, the external clock is taken in and used to operate, and the low frequency clock or the clock is stopped from the setting port 3. A signal is transmitted, and a circuit which receives the signal stops the clock transmitted to the controller 1 at a low frequency or stops so as to save power.
【0010】また、コントローラ1をCMOSによって
構成するようにしている。従って、クロックで動作する
コントローラ1の省電力を図るために外部クロックや内
部クロックのスリープ/ストップを簡単な構成で共用可
とすることが可能となる。Further, the controller 1 is composed of CMOS. Therefore, it becomes possible to share sleep / stop of the external clock and the internal clock with a simple configuration in order to save power of the controller 1 that operates on the clock.
【0011】[0011]
【実施例】次に、図1から図3を用いて本発明の実施例
の構成および動作を順次詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the construction and operation of an embodiment of the present invention will be described in detail with reference to FIGS.
【0012】図1は、本発明の1実施例構成図を示す。
図1の(a)は内部クロックによる動作の例を示し、図
1の(b)は外部クロックによる動作の例を示す。FIG. 1 shows a block diagram of an embodiment of the present invention.
FIG. 1A shows an example of operation by an internal clock, and FIG. 1B shows an example of operation by an external clock.
【0013】図1の(a)および(b)において、コン
トローラ1は、クロックを使用して動作する回路であっ
て、CMOSで構成したマイクロコンピュータなどであ
り、ここでは当該マイクロコンピュータを内蔵するキー
ボードコントローラである。このコントローラ1は、こ
こでは、設定ポート3および振動子4を接続する端子な
どを持つものである。In FIGS. 1A and 1B, a controller 1 is a circuit that operates by using a clock, and is a microcomputer or the like composed of CMOS. Here, a keyboard incorporating the microcomputer is used. The controller. The controller 1 has a terminal for connecting the setting port 3 and the vibrator 4 here.
【0014】設定ポート3は、外部クロックの入力状態
(例えばHレベル)、および振動子4の接続の状態(例
えばLレベル)を設定したり、クロック制御信号12を
送出したりなどするものである。例えば設定ポート3が
Hレベルのときに外部クロックが当該コントローラ1に
供給され、Lレベルのときに振動子4が接続されている
状態を表す。また、設定ポート3がHレベルのときに、
Lレベルの信号(低周波のクロックあるいはクロックを
停止させる旨の信号)を送出するものである。このLレ
ベルの信号の送出に対応して、システムゲートアレイ2
がキーボードクロック11を低周波にしたり(例えば1
0MHzから1MHzの低周波、スリープモードにした
り)、停止したり(ストップモードにしたり)する。The setting port 3 is used to set the input state of the external clock (for example, H level) and the connection state of the vibrator 4 (for example, L level), and send the clock control signal 12. . For example, the external clock is supplied to the controller 1 when the setting port 3 is at the H level, and the oscillator 4 is connected when the setting port 3 is at the L level. When the setting port 3 is at H level,
An L level signal (a low frequency clock or a signal to stop the clock) is transmitted. In response to the transmission of this L level signal, the system gate array 2
May set the keyboard clock 11 to a low frequency (for example, 1
Low frequency from 0 MHz to 1 MHz, sleep mode), stop (stop mode).
【0015】抵抗R1は、設定ポート3をプルダウンす
る抵抗であって、Lレベルに保持し、振動子4が接続さ
れ、内部クロックを使用する旨を設定するためのもので
ある。The resistor R1 is a resistor for pulling down the setting port 3, is held at the L level, is connected to the oscillator 4, and is set to use the internal clock.
【0016】抵抗R2は、設定ポート3をプルアップす
る抵抗であって、Hレベルに保持し、外部クロックを使
用する旨を設定するためのものである。システムゲート
アレイ2は、コントローラ1にキーボードクロック11
を供給したりするものであって、コントローラ1からの
Lベルのクロック制御信号12に対応して、キーボード
クロック11を低周波にしたり、停止したりし、コント
ローラ1の省電力を図るものである。The resistor R2 is a resistor that pulls up the setting port 3 and holds the H level to set that the external clock is used. The system gate array 2 includes a keyboard clock 11 for the controller 1.
The keyboard clock 11 is set to a low frequency or stopped in response to the L-bell clock control signal 12 from the controller 1 to save power in the controller 1. .
【0017】振動子4は、コントローラ1に接続し、内
部クロックを発生する水晶振動子などである。振動子5
は、システムゲートアレイ2に接続し、外部クロック
(キーボードクロック11)を発生する水晶振動子など
である。The oscillator 4 is a crystal oscillator or the like which is connected to the controller 1 and generates an internal clock. Oscillator 5
Is a crystal oscillator or the like which is connected to the system gate array 2 and generates an external clock (keyboard clock 11).
【0018】外部クロックフラグ6は、コントローラ1
が外部クロックを使用する旨を記憶するフラグである。
内部クロックフラグ7は、コントローラ1が内部クロッ
クを使用する旨を記憶するフラグである。The external clock flag 6 is used by the controller 1
Is a flag for storing that an external clock is used.
The internal clock flag 7 is a flag that stores that the controller 1 uses the internal clock.
【0019】キーボードクロック11は、システムゲー
トアレイ2が発生し、コントローラ1に供給するクロッ
クである。このキーボードクロック11は、コントロー
ラ1が設定ポート3のレベルを例えばLレベルにするこ
とにより、システムゲートアレイ2が低周波のクロック
あるいは停止させるようにしている。The keyboard clock 11 is a clock generated by the system gate array 2 and supplied to the controller 1. The keyboard clock 11 is set such that the controller 1 sets the level of the setting port 3 to, for example, the L level so that the system gate array 2 stops or stops the low frequency clock.
【0020】クロック制御信号12は、コントローラ1
がシステムゲートアレイ2に対して送出する信号であっ
て、キーボードクロック11を低周波にしたり、停止さ
せたりする信号である。The clock control signal 12 is supplied to the controller 1
Is a signal to be sent to the system gate array 2, and is a signal for setting the keyboard clock 11 to a low frequency or stopping it.
【0021】キーボードデータ13は、コントローラ
(キーボード)1が図示外のマトリックス状のキーボー
ドを走査して押下されたキーを検出したデータてある。
キーボードリセット14は、コントローラ1をリセット
する信号である。The keyboard data 13 is data in which the controller (keyboard) 1 scans a matrix-shaped keyboard (not shown) to detect a pressed key.
The keyboard reset 14 is a signal for resetting the controller 1.
【0022】次に、動作を説明する。 (1) 図1の(a)の内部クロックによる動作: (1−1) 図示のように、コントローラ1の設定ポー
ト3に抵抗R1を接続し、Lレベルにすると共に、振動
子4を接続する。コントローラ1とシステムゲートアレ
イ2との間は、キーボードデータ13およびキーボード
リセット14を伝達する信号線を接続する。Next, the operation will be described. (1) Operation by internal clock of FIG. 1 (a): (1-1) As shown in the figure, the resistor R1 is connected to the setting port 3 of the controller 1 to set it to the L level and the oscillator 4 is connected. . A signal line for transmitting keyboard data 13 and keyboard reset 14 is connected between the controller 1 and the system gate array 2.
【0023】(1−2) コントローラ1のキーボード
リセット14をONにしてリセットする。リセットされ
たコントローラ1は、設定ポート3がここではLレベル
と検出し、振動子4が接続され、内部クロックを使用し
て動作する旨を認識する。(1-2) The keyboard reset 14 of the controller 1 is turned on to reset. The reset controller 1 recognizes that the setting port 3 detects the L level here, the oscillator 4 is connected, and operates using the internal clock.
【0024】(1−3) コントローラ1は、(1−
2)で内部クロックを使用する旨を認識したので、振動
子4によって発生されたクロックを使用して動作する。 (1−4) コントローラ1は必要に応じてクロックを
低周波に切り替えたり、あるいはクロックを停止したり
し、省電力を図る。(1-3) The controller 1 uses (1-
Since it is recognized in 2) that the internal clock is used, the clock generated by the oscillator 4 is used for operation. (1-4) The controller 1 saves power by switching the clock to a low frequency or stopping the clock as necessary.
【0025】(1−5) 省電力中に割込みが通知され
たとき、クロックを元に戻し、動作する。 以上のように、設定ポート3をここではLレベルに設定
することにより、コントローラ1が内部クロックと自動
認識し、直接接続された振動子4からのクロックを使用
し、省電力を図ることが可能となる。(1-5) When an interrupt is notified during power saving, the clock is restored and the operation is resumed. As described above, by setting the setting port 3 to the L level here, the controller 1 automatically recognizes the internal clock and uses the clock from the oscillator 4 directly connected to save power. Becomes
【0026】(2) 図1の(b)の外部クロックによ
る動作: (2−1) 図示のように、コントローラ1の設定ポー
ト3に抵抗R2を接続し、Hレベルにすると共に、シス
テムゲートアレイ2との間にキーボードクロック11お
よびクロック制御信号12を伝達する信号線を接続す
る。(2) Operation by external clock of FIG. 1 (b): (2-1) As shown in the figure, the resistor R2 is connected to the setting port 3 of the controller 1 to set it to the H level and the system gate array A signal line for transmitting the keyboard clock 11 and the clock control signal 12 is connected between the two.
【0027】(2−2) コントローラ1のキーボード
リセット14をONにしてリセットする。リセットされ
たコントローラ1は、設定ポート3がHレベルと検出
し、キーボードクロック11が接続され、外部クロック
を使用して動作する旨を認識する。(2-2) The keyboard reset 14 of the controller 1 is turned on to reset. The reset controller 1 detects that the setting port 3 is at H level, is connected to the keyboard clock 11, and recognizes that it operates by using the external clock.
【0028】(2−3) コントローラ1は、(2−
2)で外部クロックを使用する旨を認識したので、キー
ボードクロック11を使用して動作する。 (2−4) コントローラ1は必要に応じてクロック制
御信号をここではLレベルにし、システムゲートアレイ
2にキーボードクロック11を低周波に切り替えさせた
り、あるいはクロックを停止させたりし、省電力を図
る。(2-3) The controller 1 (2-
Since it is recognized in 2) that the external clock is used, the keyboard clock 11 is used for operation. (2-4) The controller 1 sets the clock control signal here to the L level as needed, and causes the system gate array 2 to switch the keyboard clock 11 to a low frequency or stops the clock to save power. .
【0029】(2−5) 省電力中に割込みが通知され
たとき、システムゲートアレイ2がキーボードクロック
11を元に戻す。 以上のように、設定ポート3をここではHレベルに設定
することにより、コントローラ1が外部クロックと自動
認識し、システムゲートアレイ2から供給されたキーボ
ードクロック11を使用し、省電力を図ることが可能と
なる。(2-5) When an interrupt is notified during power saving, the system gate array 2 restores the keyboard clock 11 to its original value. As described above, by setting the setting port 3 to the H level here, the controller 1 automatically recognizes the external clock and uses the keyboard clock 11 supplied from the system gate array 2 to save power. It will be possible.
【0030】次に、図2のフローチャートに示す順序に
従い、図1の構成の動作を詳細に説明する。図2におい
て、S1は、設定ポート3を入力ポート状態にする。こ
れは、図1の(a)、(b)において、コントローラ1
が設定ポート3がHレベル、Lレベルのいずれをリード
するために、当該設定ポート3を入力ポート状態にす
る。Next, the operation of the configuration of FIG. 1 will be described in detail in the order shown in the flowchart of FIG. In FIG. 2, S1 sets the setting port 3 to the input port state. This corresponds to the controller 1 in FIGS. 1 (a) and 1 (b).
Sets the setting port 3 to the input port state in order for the setting port 3 to read either the H level or the L level.
【0031】S2は、設定ポート3の状態をリードす
る。これは、コントローラ1が設定ポート3がHレベ
ル、Lレベルのいずれかをリードする。S3は、Hレベ
ルか判定する。YESの場合には、Hレベルで外部クロ
ックと判明し、図1の(b)の外部クロックによる動作
の例であるので、S4からS9に進む。一方、NOの場
合には、Lレベルで内部クロックと判明し、図1の
(a)の内部クロックによる動作の例であるので、S1
0からS15に進む。At S2, the state of the setting port 3 is read. This is because the controller 1 reads the setting port 3 from either the H level or the L level. In S3, it is determined whether the H level. In the case of YES, it is determined that it is an external clock at the H level, and this is an example of the operation by the external clock of FIG. 1B, so the process proceeds from S4 to S9. On the other hand, in the case of NO, it is determined that the internal clock is at the L level, and this is an example of the operation by the internal clock of FIG.
The process proceeds from 0 to S15.
【0032】S4は、S3のYESで外部クロックによ
る動作と判明したので、外部クロックフラグ6をONに
セットし、外部クロックによる動作と記憶する。この
際、内部クロックフラグ7はOFFにセットする。In S4, since it is determined that the operation is performed by the external clock with YES in S3, the external clock flag 6 is set to ON and the operation is stored by the external clock. At this time, the internal clock flag 7 is set to OFF.
【0033】S5は、省電力モードか判別する。これ
は、例えばキーボードから省電力モードの旨のキー入力
があったか、あるいは所定時間以上キー入力がなくて省
電力モードとする旨の決定があったかを判別する。YE
Sの場合には、S6に進む。NOの場合には、S5の省
電力モードかの判別を繰り返す。In step S5, it is determined whether the mode is the power saving mode. For example, it is determined whether there is a key input indicating that the power saving mode has been input from the keyboard, or whether there has been no key input for a predetermined time or more and there has been a decision to enter the power saving mode. YE
If S, go to S6. If NO, the determination of the power saving mode in S5 is repeated.
【0034】S6は、クロック制御信号をLレベルにす
る。これは、コントローラ1がクロック制御信号12を
HレベルからLレベルにし、システムゲートアレイ2に
省電力モードの旨を通知する。In S6, the clock control signal is set to L level. As a result, the controller 1 changes the clock control signal 12 from the H level to the L level and notifies the system gate array 2 of the power saving mode.
【0035】S7は、スリープ/ストップモードにす
る。これは、S6でLレベルのクロック制御信号を受け
たシステムゲートアレイ2がキーボードクロック11の
周波数を低周波にしたスリープモード、あるいはキーボ
ードクロック11を停止したストップモードにする。こ
れにより、コントローラ1は、使用するクロック(キー
ボードクロック)が低周波(例えば10MHzから1M
Hz)、あるいはクロックが停止し、省電力する。In step S7, the sleep / stop mode is set. This causes the system gate array 2 which has received the clock control signal of L level in S6 to set the sleep mode in which the frequency of the keyboard clock 11 is set to a low frequency or the stop mode in which the keyboard clock 11 is stopped. As a result, the controller 1 uses the clock (keyboard clock) at a low frequency (for example, 10 MHz to 1 M).
Hz) or the clock is stopped to save power.
【0036】S8は、割込みが発生する。これは、S7
のスリープ/ストップの状態で、割込みがコントローラ
1およびシステムゲートアレイ2に入力される。S9
は、S8の割込みの中で、クロック制御信号をHレベル
にし、元のクロック(キーボードクロック11)に戻
し、動作を開始する。At S8, an interrupt occurs. This is S7
In the sleep / stop state of 1, the interrupt is input to the controller 1 and the system gate array 2. S9
In the interrupt of S8, sets the clock control signal to the H level, restores the original clock (keyboard clock 11), and starts the operation.
【0037】以上によって、設定ポート3がHレベルの
ときに外部クロックを使用するとコントローラ1が自動
認識すると共にクロック制御信号をLレベルにして省電
力を図り、割込みによって元のクロックに戻すことが可
能となる。As described above, when the external clock is used when the setting port 3 is at the H level, the controller 1 automatically recognizes the clock control signal at the L level to save power, and the clock can be restored to the original clock by an interrupt. Becomes
【0038】S10は、S3のNOで内部クロックによ
る動作と判明したので、内部クロックフラグ7をONに
セットし、内部クロックによる動作と記憶する。この
際、外部クロックフラグ6はOFFにセットする。In S10, since the operation of the internal clock is found to be NO in S3, the internal clock flag 7 is set to ON and the operation of the internal clock is stored. At this time, the external clock flag 6 is set to OFF.
【0039】S11は、省電力モードか判別する。これ
は、例えばキーボードから省電力モードの旨のキー入力
があったか、あるいは所定時間以上キー入力がなくて省
電力モードとする旨の決定があったかを判別する。YE
Sの場合には、S12に進む。NOの場合には、S11
の省電力モードかの判別を繰り返す。In step S11, it is determined whether the mode is the power saving mode. For example, it is determined whether there is a key input indicating that the power saving mode has been input from the keyboard, or whether there has been no key input for a predetermined time or more and there has been a decision to enter the power saving mode. YE
In the case of S, the process proceeds to S12. If NO, S11
The determination as to whether or not the power saving mode is repeated.
【0040】S12は、振動子4をストップなどする。
これは、コントローラ1が振動子4によるクロックの発
生を停止、あるいは低周波にする。S13は、スリープ
/ストップモードにする。これは、S12で振動子4に
より発生したクロックを低周波あるいは停止したことに
対応して、スリープ/ストップモードとなる。In S12, the vibrator 4 is stopped.
In this case, the controller 1 stops the generation of the clock by the vibrator 4 or makes the frequency low. In S13, the sleep / stop mode is set. This corresponds to the sleep / stop mode in response to the low frequency or stopping of the clock generated by the oscillator 4 in S12.
【0041】S14は、割込みが発生する。これは、S
13のスリープ/ストップの状態で、割込みがコントロ
ーラ1およびシステムゲートアレイ2に入力される。S
15は、S14の割込みの中で、振動子4により発生す
る内部クロックを元に戻し、動作を開始する。At S14, an interrupt occurs. This is S
In the sleep / stop state of 13, the interrupt is input to the controller 1 and the system gate array 2. S
In the interrupt of S14, 15 restores the internal clock generated by the oscillator 4 to start the operation.
【0042】以上によって、設定ポート3がLレベルの
ときに内部クロックを使用するとコントローラ1が自動
認識すると共に振動子4によるクロックを低周波/停止
して省電力を図り、割込みによって元のクロックに戻す
ことが可能となる。As described above, when the internal clock is used when the setting port 3 is at the L level, the controller 1 automatically recognizes it and at the same time lowers the frequency of the clock by the oscillator 4 to stop the power to save power, and restores the original clock. It is possible to put it back.
【0043】図3は、本発明のタイムチャートを示す。
図3の(a)は、内部クロックの場合であって、図1の
(a)の回路構成のタイムチャートを示す。FIG. 3 shows a time chart of the present invention.
FIG. 3A shows the case of the internal clock and shows a time chart of the circuit configuration of FIG.
【0044】図3に(a)において、キーボードリセ
ットは、コントローラ1をリセットする信号である。 設定ポート/クロック制御信号は、コントローラ1が
設定ポート3からHレベル/Lレベルをリードしたり、
Lレベルのクロック制御信号を送出したりするものであ
る。In FIG. 3A, keyboard reset is a signal for resetting the controller 1. As for the setting port / clock control signal, the controller 1 reads the H level / L level from the setting port 3,
It also sends an L level clock control signal.
【0045】振動子は、内部クロックを発生する振動
子4である。 設定ポートのチェックは、キーボードリセットによ
ってコントローラ1をリセットした後、当該コントロー
ラ1が設定ポート3の状態を、ここではLレベル(内
部クロックを使用する旨)を認識する。The oscillator is the oscillator 4 for generating an internal clock. In the setting port check, after the controller 1 is reset by a keyboard reset, the controller 1 recognizes the state of the setting port 3, here, the L level (to use the internal clock).
【0046】スリープ/ストップモードは、図2のS
11のYESで省電力モードが指示されたので、振動子
4によるクロックを低周波あるいは停止し、スリープ/
ストップモードに遷移する。The sleep / stop mode is S in FIG.
Since the power saving mode is instructed by YES in 11, the clock by the vibrator 4 is stopped at a low frequency or the sleep / sleep mode is set.
Transition to stop mode.
【0047】割込みは、スリープ/ストップモードの
状態で、コントローラ1に割込みが発生し、振動子4に
よるクロックを元に戻す。図3の(b)は、外部クロッ
クの場合であって、図1の(b)の回路構成のタイムチ
ャートを示す。As for the interruption, in the sleep / stop mode, the interruption is generated in the controller 1 and the clock of the oscillator 4 is returned to the original state. FIG. 3B shows a time chart of the circuit configuration of FIG. 1B in the case of an external clock.
【0048】図3に(b)において、’キーボードリ
セットは、コントローラ1をリセットする信号である。 ’設定ポート/クロック制御信号は、コントローラ1
が設定ポート3からHレベル/Lレベルをリードした
り、Lレベルのクロック制御信号を送出したりするもの
である。In FIG. 3B, 'keyboard reset is a signal for resetting the controller 1. 'Set port / clock control signal is controller 1
To read the H level / L level from the setting port 3 and to send the L level clock control signal.
【0049】’キーボードクロックは、システムゲー
トアレイ2からコントローラ1に供給する外部クロック
である。 ’設定ポートのチェックは、’キーボードリセット
によってコントローラ1をリセットした後、当該コント
ローラ1が’設定ポート3の状態を、ここではHレベ
ル(外部クロックを使用する旨)を認識する。The keyboard clock is an external clock supplied from the system gate array 2 to the controller 1. 'Checking the set port' recognizes the state of the'set port 3 ', that is, the H level here (external clock is used), after the controller 1 is reset by the keyboard reset.
【0050】’スリープ/ストップモードは、図2の
S5のYESで省電力モードが指示されたので、システ
ムゲートアレイ2によるキーボードクロック11を低周
波あるいは停止し、スリープ/ストップモードに遷移す
る。In the sleep / stop mode, since the power saving mode is instructed by YES in S5 of FIG. 2, the keyboard clock 11 by the system gate array 2 is stopped at a low frequency or the sleep / stop mode is entered.
【0051】’割込みは、スリープ/ストップモード
の状態で、システムゲートアレイ2およびコントローラ
1に割込みが発生し、システムゲートアレイ2によるキ
ーボードクロック11を元に戻す。The interrupt causes the system gate array 2 and the controller 1 to be interrupted in the sleep / stop mode, and restores the keyboard clock 11 by the system gate array 2.
【0052】[0052]
【発明の効果】以上説明したように、本発明によれば、
設定ポート3をクロックで動作するコントローラ1に設
け、設定ポート3が外部クロックの入力状態(例えばH
レベル)のときに外部クロックを取り込んでこれを使用
して動作し、当該外部クロックの低周波あるいは停止に
対応して省電力を図り、一方、設定ポート3が振動子4
の接続状態(例えばLレベル)のときに振動子4からの
クロックを取り込んでこれを使用して動作し、当該内部
クロックの低周波あるいは停止して省電力を図る構成を
採用しているため、クロックで動作するコントローラ1
の省電力を図るために外部クロックや内部クロックのス
リープ/ストップを簡単な構成で共用可とすることがで
きる。これにより、例えばキーボードコントローラ用の
クロックが外部クロックのシステムと、内部クロックの
システムとの両方に本発明のコントローラ1を適用でき
るため、システムごとにコントローラ1を開発する必要
がなくなる。この際、外部クロックと内部クロックを判
別する設定ポート3と、外部クロックのときに当該外部
クロックの低周波/停止させるクロック制御信号を送出
する信号線を共用しているので、コントローラ1のポー
ト(信号線)を削減できる。As described above, according to the present invention,
The setting port 3 is provided in the controller 1 that operates with a clock, and the setting port 3 receives the external clock input state (for example, H
Level), an external clock is taken in and used to operate, and power is saved in response to the low frequency or stoppage of the external clock, while the setting port 3 causes the oscillator 4 to operate.
In the connected state (for example, L level), the clock from the oscillator 4 is taken in and operated by using the clock, and the low frequency or stop of the internal clock is adopted to save power. Controller 1 that operates with clock
In order to save power, the sleep / stop of the external clock and the internal clock can be shared with a simple configuration. Thus, for example, the controller 1 of the present invention can be applied to both a system in which the clock for the keyboard controller is an external clock and a system in which the clock is an internal clock, and it is not necessary to develop the controller 1 for each system. At this time, since the setting port 3 for discriminating the external clock from the internal clock and the signal line for transmitting the clock control signal for stopping / stopping the low frequency of the external clock at the time of the external clock are shared, the port of the controller 1 ( Signal lines) can be reduced.
【図1】本発明の1実施例構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.
【図2】本発明の動作説明フローチャートである。FIG. 2 is a flowchart explaining the operation of the present invention.
【図3】本発明のタイムチャートである。FIG. 3 is a time chart of the present invention.
【図4】従来技術の説明図である。FIG. 4 is an explanatory diagram of a conventional technique.
1:コントローラ 2:システムゲートアレイ 3:設定ポート 4、5:振動子 6:外部クロックフラグ 7:内部クロックフラグ 11:キーボードクロック 12:クロック制御信号 13:キーボードデータ 14:キーボードリセット 1: Controller 2: System gate array 3: Setting port 4, 5: Oscillator 6: External clock flag 7: Internal clock flag 11: Keyboard clock 12: Clock control signal 13: Keyboard data 14: Keyboard reset
Claims (3)
ク制御方式において、 外部クロックの入力状態あるいは振動子(4)の接続状
態を設定する設定ポート(3)を、クロックで動作する
コントローラ(1)に設け、 この設定ポート(3)が外部クロックの入力状態(例え
ばHレベル)のときに、外部クロックを取り込んでこれ
を使用して動作し、当該外部クロックの低周波あるいは
停止に対応して省電力を図り、 一方、設定ポート(3)が振動子(4)の接続状態(例
えばLレベル)のときに、振動子(4)からクロックを
取り込んでこれを使用して動作し、当該内部クロックの
低周波あるいは停止して省電力を図るように構成したこ
とを特徴とするクロック制御方式。1. A clock control system for controlling a clock of a controller, wherein a setting port (3) for setting an input state of an external clock or a connection state of an oscillator (4) is provided in a clock-operated controller (1). , When the setting port (3) is in the input state (for example, H level) of the external clock, it takes in the external clock and operates by using it, and saves power in response to the low frequency or stop of the external clock. On the other hand, when the setting port (3) is in the connection state (for example, L level) of the oscillator (4), the clock is fetched from the oscillator (4) and the clock is used to operate to lower the internal clock. A clock control method characterized by being configured to save power by stopping the frequency or stopping.
力状態(例えばHレベル)のときに、外部クロックを取
り込んでこれを使用して動作すると共に、当該設定ポー
ト(3)から低周波クロックあるいはクロック停止する
信号を送出し、これを受けた回路がコントローラ(1)
に送出していたクロックを低周波あるいは停止し、省電
力を図るように構成したことを特徴とする請求項1記載
のクロック制御方式。2. When the setting port (3) is in the input state (for example, H level) of the external clock, the external clock is fetched and operated by using the external clock, and the low frequency clock is output from the setting port (3). Alternatively, the circuit that sends the signal to stop the clock and receives this signal is the controller (1).
2. The clock control system according to claim 1, wherein the clock sent to the device is configured to save power by stopping at a low frequency or stopped.
て構成したことを特徴とする請求項1記載および請求項
2記載のクロック制御方式。3. The clock control system according to claim 1 or 2, wherein the controller (1) is composed of a CMOS.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4216763A JP2686024B2 (en) | 1992-08-14 | 1992-08-14 | Clock control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4216763A JP2686024B2 (en) | 1992-08-14 | 1992-08-14 | Clock control system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0667748A true JPH0667748A (en) | 1994-03-11 |
| JP2686024B2 JP2686024B2 (en) | 1997-12-08 |
Family
ID=16693529
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4216763A Expired - Lifetime JP2686024B2 (en) | 1992-08-14 | 1992-08-14 | Clock control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2686024B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6373398B2 (en) | 1997-06-10 | 2002-04-16 | Kabushiki Kaisha Toshiba | Automobile tuner system |
-
1992
- 1992-08-14 JP JP4216763A patent/JP2686024B2/en not_active Expired - Lifetime
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6373398B2 (en) | 1997-06-10 | 2002-04-16 | Kabushiki Kaisha Toshiba | Automobile tuner system |
| US6771942B2 (en) | 1997-06-10 | 2004-08-03 | Kabushiki Kaisha Toshiba | Receiver |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2686024B2 (en) | 1997-12-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6163851A (en) | Data processor | |
| JP2005076375A (en) | Communication device | |
| US5623286A (en) | Power source control apparatus for display unit | |
| US4849919A (en) | System wake up circuit for computer | |
| JP2686024B2 (en) | Clock control system | |
| JPH11177731A (en) | Communication terminal device with computer interface | |
| JP3283754B2 (en) | Power supply control apparatus and facsimile apparatus having the same | |
| US11928370B2 (en) | Image forming apparatus, communication device, and image forming system | |
| JP3314527B2 (en) | Wireless transceiver | |
| JP2645456B2 (en) | Power control device | |
| JPH0323725A (en) | Mobile radio communication equipment | |
| JP2944480B2 (en) | Transmission power control method | |
| JPH0651863A (en) | Serial data communication controller | |
| JPS6273359A (en) | Control circuit of computer system | |
| JPS6243211B2 (en) | ||
| JP2010140244A (en) | Control system | |
| KR940001474B1 (en) | Cooking data reusing method of microwave oven | |
| JPS6383801A (en) | Operation switching device | |
| JPH08221148A (en) | Information processing device | |
| KR100385454B1 (en) | Malfunction prevention circuit in the control system | |
| JPH04279912A (en) | Clock control circuit | |
| JPH10240393A (en) | Terminal control system | |
| JPH01261716A (en) | Information input device | |
| JPH0635512A (en) | Operating state monitoring system for programmable controller | |
| JPS61182364A (en) | Start system of remote supervisory device utilizing telephone line |