Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3454672B2 - Real-time clock circuit - Google Patents
[go: Go Back, main page]

JP3454672B2 - Real-time clock circuit - Google Patents

Real-time clock circuit

Info

Publication number
JP3454672B2
JP3454672B2 JP15352297A JP15352297A JP3454672B2 JP 3454672 B2 JP3454672 B2 JP 3454672B2 JP 15352297 A JP15352297 A JP 15352297A JP 15352297 A JP15352297 A JP 15352297A JP 3454672 B2 JP3454672 B2 JP 3454672B2
Authority
JP
Japan
Prior art keywords
real
time clock
ram
clock circuit
data
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.)
Expired - Fee Related
Application number
JP15352297A
Other languages
Japanese (ja)
Other versions
JPH112684A (en
Inventor
健二郎 的場
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP15352297A priority Critical patent/JP3454672B2/en
Publication of JPH112684A publication Critical patent/JPH112684A/en
Application granted granted Critical
Publication of JP3454672B2 publication Critical patent/JP3454672B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electric Clocks (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、リアルタイムクロ
ック回路に係り、詳細には、ディジタル装置にリアルタ
イムでクロックデータを供給するリアルタイムクロック
回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a real time clock circuit, and more particularly to a real time clock circuit for supplying clock data to a digital device in real time.

【0002】[0002]

【従来の技術】映像装置、テレビ会議システム等の電子
機器では、リアルタイムでクロックデータを必要とする
場合がある。リアルタイムにクロックデータを供給する
回路としてリアルタイムクロック(以下、RTCとい
う)回路がある。
2. Description of the Related Art Electronic equipment such as video equipment and video conference systems may require clock data in real time. A real-time clock (hereinafter referred to as RTC) circuit is a circuit that supplies clock data in real time.

【0003】従来のリアルタイムクロック回路には、カ
ウンタを用いたカウンタ方式によるRTC回路や演算方
式によるRTC回路がある。
As a conventional real-time clock circuit, there is a counter type RTC circuit using a counter and an arithmetic type RTC circuit.

【0004】図14はカウンタ方式によるRTC回路を
示す回路構成図である。図14において、このRTC回
路は、1Hzのクロック信号が入力され0〜59までカ
ウントする秒カウンタ11、秒カウンタ11の桁上がり
出力が入力され0〜59までカウントする分カウンタ1
2、分カウンタ12の桁上がり出力が入力され0〜23
までカウントする時カウンタ13から構成され、各カウ
ンタの出力がそれぞれ秒、分、時のRTCデータを表す
ものである。
FIG. 14 is a circuit diagram showing an RTC circuit of the counter type. In FIG. 14, the RTC circuit includes a second counter 11 that receives a 1 Hz clock signal and counts from 0 to 59, and a minute counter 1 that receives a carry output from the second counter 11 and counts from 0 to 59.
2. Carry output of minute counter 12 is input and 0-23
Is composed of an hour counter 13 for counting up to, and the outputs of the respective counters represent RTC data of seconds, minutes, and hours, respectively.

【0005】図15は演算方式によるRTC回路を示す
回路構成図である。図15において、このRTC回路
は、RAMからデータを読み出すアドレスを指定するア
ドレスカウンタ21、秒、分、時、曜、日、月、年のデ
ータを格納するデータ格納用RAM22、RAM22か
らのRTCデータを判定する判定回路23、アドレスカ
ウンタからの内部アドレスと外部アドレスを切り替えて
RAM22のアドレスに出力するセレクタ24、内部R
AMプリチャージ信号PC及び内部RAM書き込み信号
WRと外部RAMプリチャージ信号PC及び外部RAM
書き込み信号WRとを切り替えてRAM22に出力する
セレクタ25から構成される。
FIG. 15 is a circuit configuration diagram showing an RTC circuit according to a calculation method. 15, the RTC circuit includes an address counter 21 for designating an address for reading data from the RAM, a data storage RAM 22 for storing data of seconds, minutes, hours, days of the week, days, months, and years, and RTC data from the RAM 22. Determination circuit 23, selector 24 for switching the internal address and the external address from the address counter and outputting to the address of RAM 22, internal R
AM precharge signal PC and internal RAM write signal WR and external RAM precharge signal PC and external RAM
It is composed of a selector 25 which switches the write signal WR and outputs it to the RAM 22.

【0006】判定回路23がRAM22に+1データを
出力し、RAM22からのRTCデータを判定して所望
のデータを得ることができる。
The determination circuit 23 outputs +1 data to the RAM 22, and the RTC data from the RAM 22 can be determined to obtain desired data.

【0007】セレクタ25及びアドレスカウンタ21に
は、RTC演算中であることを示すフラグUIPが入力
される。
A flag UIP indicating that the RTC operation is being performed is input to the selector 25 and the address counter 21.

【0008】上記内部PC、WR、アドレスは、IC内
部でのRTC演算時に使用し、上記内部PC、WR、ア
ドレスは、IC外部よりデータを設定する場合または読
み出す場合に使用する。
The internal PC, WR and address are used for RTC calculation inside the IC, and the internal PC, WR and address are used when setting or reading data from outside the IC.

【0009】図16は上記演算方式によるRTC回路の
動作を示すタイミングチャートであり、内部PC、W
R、アドレスによりRTC演算を行う場合を示す。外部
PC、WR、アドレスは、ALL0としている。図16
に示すように、RTC演算中であることを示すフラグU
IPがある場合には、秒、分、時の時間単位毎にRAM
入力が+1され(それぞれ前時間単位でキャリーUPが
ある場合+1され、そうでなければ+0される。)、書
き込みタイミングWRでRAM22に書き込まれる。
FIG. 16 is a timing chart showing the operation of the RTC circuit according to the above-mentioned calculation method.
The case where the RTC operation is performed by R and the address is shown. The external PC, WR, and address are ALL0. FIG.
As shown in, the flag U indicating that the RTC operation is in progress
If there is an IP, RAM for each time unit of seconds, minutes, and hours
The input is incremented by 1 (+1 if there is a carry-up in the previous time unit, and incremented by 0 otherwise), and written to the RAM 22 at the write timing WR.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、このよ
うな従来のリアルタイムクロック回路にあっては、各時
間単位毎に、RAMプリチャージが必要であり、消費電
力の低減が図れなかった。例えば、図16に示す動作を
させた場合、毎秒14回のプリチャージサイクルが必要
であり、消費電力はカウンタ方式に比べて大きくなる。
However, in such a conventional real-time clock circuit, RAM precharge is required for each time unit, and power consumption cannot be reduced. For example, when the operation shown in FIG. 16 is performed, 14 precharge cycles are required per second, and the power consumption becomes larger than that of the counter method.

【0011】本発明は、消費電力を低減できるリアルタ
イムクロック回路を提供することを目的とする。
An object of the present invention is to provide a real-time clock circuit that can reduce power consumption.

【0012】[0012]

【課題を解決するための手段】本発明に係るリアルタイ
ムクロック回路は、リアルタイムクロックデータを記憶
する記憶手段と、記憶手段から読み出したデータの桁上
げを判定して少なくとも2種類の時間単位のタイムデー
タを得るリアルタイムクロック回路において、前時間単
位の演算時に桁上げが発生しなかったとき、記憶手段へ
のデータの書き込みを停止させる手段を備えている。
SUMMARY OF THE INVENTION A real-time clock circuit according to the present invention has a storage means for storing real-time clock data, and a carry-out of data read from the storage means to determine at least two types of time data in time units. In the real-time clock circuit for obtaining the above, there is provided means for stopping the writing of data to the storage means when a carry does not occur during the calculation in the previous time unit.

【0013】本発明に係るリアルタイムクロック回路
は、リアルタイムクロックデータを記憶する記憶手段
と、記憶手段から読み出したデータの桁上げを判定して
少なくとも2種類の時間単位のタイムデータを得るリア
ルタイムクロック回路において、前時間単位の演算時に
桁上げが発生しなかったとき、記憶手段へのプリチャー
ジ信号の供給を停止させる手段を備えている。
A real-time clock circuit according to the present invention is a memory means for storing real-time clock data, and a real-time clock circuit for determining carry of data read from the memory means to obtain time data of at least two types of time units. A means is provided for stopping the supply of the precharge signal to the storage means when a carry does not occur during the calculation in the previous time unit.

【0014】本発明に係るリアルタイムクロック回路
は、アドレスカウンタからのアドレス指定によりリアル
タイムクロックデータを記憶する記憶手段と、記憶手段
から読み出したデータの桁上げを判定して少なくとも2
種類の時間単位のタイムデータを得るリアルタイムクロ
ック回路において、前時間単位の演算時に桁上げが発生
しなかったとき、アドレスカウンタの動作を停止させる
手段を備えている。
The real-time clock circuit according to the present invention determines at least 2 by storing means for storing real-time clock data by address designation from the address counter and carry of data read from the storing means.
A real-time clock circuit that obtains time data of various time units includes means for stopping the operation of the address counter when no carry occurs during the calculation of the previous time unit.

【0015】本発明に係るリアルタイムクロック回路
は、前時間単位の演算時に桁上げが発生しなかったと
き、記憶手段を、タイムデータの演算処理から解放する
手段を備えたものであってもよい。
The real-time clock circuit according to the present invention may be provided with means for releasing the storage means from the arithmetic processing of the time data when no carry occurs during the arithmetic operation in the previous time unit.

【0016】本発明に係るリアルタイムクロック回路
は、テスト信号を入力するテスト端子と、テスト信号が
入力されている時には、全時間単位において桁上げを発
生させる手段とを備えたものであってもよい。
The real-time clock circuit according to the present invention may include a test terminal for inputting a test signal and a means for generating a carry in all time units when the test signal is input. .

【0017】本発明に係るリアルタイムクロック回路
は、記憶手段が、デュアルポートRAMであってもよ
い。
In the real-time clock circuit according to the present invention, the storage means may be a dual port RAM.

【0018】[0018]

【発明の実施の形態】本発明に係るリアルタイムクロッ
ク回路は、電子機器にクロックデータを供給するリアル
タイムクロック回路に適用することができる。
BEST MODE FOR CARRYING OUT THE INVENTION The real-time clock circuit according to the present invention can be applied to a real-time clock circuit that supplies clock data to electronic equipment.

【0019】第1の実施形態 図1は本発明の第1の実施形態に係るリアルタイムクロ
ック回路の構成を示す回路図である。
First Embodiment FIG. 1 is a circuit diagram showing the configuration of a real-time clock circuit according to the first embodiment of the present invention.

【0020】図1において、リアルタイムクロック回路
100は、RAMからデータを読み出すアドレスを指定
するアドレスカウンタ101、秒、分、時、曜、日、
月、年のRTCデータを格納するデータ格納用RAM1
02(記憶手段)、RAM102からのRTCデータを
判定する判定回路103、アドレスカウンタからの内部
アドレスと外部アドレスを切り替えてRAM102のア
ドレスに出力するセレクタ104、内部RAMプリチャ
ージ信号PC及び内部RAM書き込み信号WRと外部R
AMプリチャージ信号PC及び外部RAM書き込み信号
WRとを切り替えてRAM102に出力するセレクタ1
05、判定回路103からのキャリーUP検出出力と内
部RAM書き込み信号WRとのAND論理をとるAND
ゲート回路106、内部RAMプリチャージ信号PCと
RTC演算フラグUIPとのAND論理をとるANDゲ
ート回路107から構成される。
In FIG. 1, a real-time clock circuit 100 includes an address counter 101 for designating an address for reading data from a RAM, seconds, minutes, hours, days of the week, days,
RAM1 for data storage that stores RTC data for month and year
02 (storage means), a determination circuit 103 for determining RTC data from the RAM 102, a selector 104 for switching the internal address and the external address from the address counter and outputting them to the address of the RAM 102, an internal RAM precharge signal PC and an internal RAM write signal. WR and external R
Selector 1 for switching between AM precharge signal PC and external RAM write signal WR and outputting to RAM 102
05, AND which takes AND logic of carry UP detection output from the determination circuit 103 and internal RAM write signal WR
The gate circuit 106 is composed of an AND gate circuit 107 that takes an AND logic of the internal RAM precharge signal PC and the RTC operation flag UIP.

【0021】アドレスカウンタ101は、データ格納用
RAM102からデータを読み出すアドレスを指定す
る。
The address counter 101 designates an address for reading data from the data storage RAM 102.

【0022】データ格納用RAM102は、アドレス
The data storage RAM 102 has an address

〔00〕〜〔12〕毎にそれぞれ秒、分、時、曜、日、
月、年のRTCデータを格納し、アドレス指定されたデ
ータを出力する。また、判定回路103からの+1(イ
ンクリメント)データによりRTCデータを更新して格
納するとともに、RTCデータを判定回路103に出力
する。
Every [00] to [12], seconds, minutes, hours, days of the week, days,
It stores RTC data for the month and year and outputs the addressed data. Further, the RTC data is updated and stored by the +1 (increment) data from the determination circuit 103, and the RTC data is output to the determination circuit 103.

【0023】判定回路103は、データ格納用RAM1
02からのRTCデータを基に桁上がり判定を行って最
終RTCデータを得るものである。
The determination circuit 103 is a RAM 1 for data storage.
A carry determination is made based on the RTC data from No. 02 to obtain the final RTC data.

【0024】ANDゲート回路106は、判定回路10
3からのキャリーUP検出出力と内部RAM書き込み信
号WRとのAND論理をとり、キャリーUP検出出力が
あったときのみ内部RAM書き込み信号WRをセレクタ
105に出力するものである。
The AND gate circuit 106 is used for the decision circuit 10
AND logic of the carry UP detection output from 3 and the internal RAM write signal WR is taken, and the internal RAM write signal WR is output to the selector 105 only when there is a carry UP detection output.

【0025】このように本実施形態に係るリアルタイム
クロック回路100は、アドレスカウンタ101、デー
タ格納用RAM102及び判定回路103からなる演算
処理方式によるRTC回路部に、新たにキャリーUP検
出出力があったときのみ内部RAM書き込み信号WRを
出力するANDゲート回路106を付加した構成となっ
ている。
As described above, in the real-time clock circuit 100 according to the present embodiment, when a carry-up detection output is newly provided in the RTC circuit section based on the arithmetic processing method including the address counter 101, the data storage RAM 102 and the determination circuit 103. Only the AND gate circuit 106 that outputs the internal RAM write signal WR is added.

【0026】以下、上述のように構成されたリアルタイ
ムクロック回路100の動作を説明する。
The operation of the real-time clock circuit 100 configured as described above will be described below.

【0027】図2はリアルタイムクロック回路100の
動作を説明するためのタイミングチャートであり、秒か
らのキャリーUPのみが発生した場合の例である。ま
た、内部演算に関するものであるからUIP=“L”の
動作は省略している。
FIG. 2 is a timing chart for explaining the operation of the real-time clock circuit 100, which is an example when only carry UP from the second occurs. Further, the operation of UIP = "L" is omitted because it relates to the internal calculation.

【0028】図2に示すように、従来例の演算処理方式
によるRTC回路と同様に、RAMを用いた演算処理に
よってRTCデータを得る。すなわち、判定回路103
がデータ格納用RAM102に+1データを出力し、デ
ータ格納用RAM102からのRTCデータの桁上がり
判定を行って最終RTCデータを得る。
As shown in FIG. 2, RTC data is obtained by arithmetic processing using a RAM, similarly to the RTC circuit according to the arithmetic processing method of the conventional example. That is, the determination circuit 103
Outputs +1 data to the data storing RAM 102, carries the carry of the RTC data from the data storing RAM 102, and obtains the final RTC data.

【0029】本実施形態では、前時間単位(例えば、分
の場合は秒、月の場合は日を示す)の演算時にキャリー
UP(桁上がり)が発生しなかった場合、判定回路10
3からキャリーUP検出が出力されず、従って、内部R
AM書き込み信号WRはANDゲート回路106及びセ
レクタ105を介してRAM102に供給されない。こ
のため、RAM102にはデータ書き込みが行われず、
RAM102の動作は停止される。
In the present embodiment, if carry UP (carry) does not occur during the calculation of the previous time unit (for example, seconds indicate minutes and days indicate months), the determination circuit 10 is executed.
Carry UP detection is not output from 3 and therefore internal R
The AM write signal WR is not supplied to the RAM 102 via the AND gate circuit 106 and the selector 105. Therefore, no data is written in the RAM 102,
The operation of the RAM 102 is stopped.

【0030】例えば、図2に示すように秒からのキャリ
ーUPが発生した後、分からのキャリーUPが発生しな
かった場合には、RAM書き込み信号WRのRAM10
2への供給が停止され、以降の書き込み動作は停止す
る。一般に、RAMの書き込み動作時に比較的多くの消
費電力を必要とするが、その書き込みの頻度が大幅に減
少する。
For example, as shown in FIG. 2, when carry UP from second occurs and carry UP from minute does not occur, RAM 10 of RAM write signal WR
2 is stopped, and the subsequent write operation is stopped. Generally, a relatively large amount of power consumption is required for the write operation of the RAM, but the write frequency is greatly reduced.

【0031】このように、前時間単位の演算時にキャリ
ーUPが発生しなかった場合、RAM102にデータを
+0として書き込むのではなく、データそのものを書き
込まない、すなわち書き込み動作を停止するようにす
る。これにより、RAM書き込み信号WRによるRAM
102への書き込み動作回数が減少するので、消費電力
の増大を抑えることができる。
In this way, when carry-up does not occur during the calculation in the previous time unit, the data itself is not written, ie, the write operation is stopped, instead of writing the data as +0 in the RAM 102. As a result, the RAM according to the RAM write signal WR
Since the number of write operations to 102 is reduced, increase in power consumption can be suppressed.

【0032】以上説明したように、第1の実施形態に係
るリアルタイムクロック回路100は、アドレスカウン
タ101、データ格納用RAM102及び判定回路10
3からなる演算処理方式によるRTC回路部に、新たに
キャリーUP検出出力があったときのみ内部RAM書き
込み信号WRを出力するANDゲート回路106を付加
した構成としたので、RAM書き込み信号WRが“H”
レベル、すなわちRAMにデータ書き込みを行うタイミ
ングが、前時間単位のキャリーを受けて発生することと
なり、RAMの書き込み回数を減らして消費電力を大幅
に低減させることができる。
As described above, the real-time clock circuit 100 according to the first embodiment has the address counter 101, the data storage RAM 102, and the determination circuit 10.
Since the AND gate circuit 106 that outputs the internal RAM write signal WR only when the carry UP detection output is newly provided is added to the RTC circuit section according to the arithmetic processing method of 3, the RAM write signal WR is "H". ”
The level, that is, the timing of writing data to the RAM is generated by receiving the carry of the previous time unit, and the number of times of writing to the RAM can be reduced, and the power consumption can be significantly reduced.

【0033】第2の実施形態 図3は本発明の第2の実施形態に係るリアルタイムクロ
ック回路の構成を示す回路図である。なお、本実施形態
に係るリアルタイムクロック回路の説明にあたり図1に
示すリアルタイムクロック回路と同一構成部分には同一
符号を付して重複部分の説明を省略する。
Second Embodiment FIG. 3 is a circuit diagram showing the configuration of a real-time clock circuit according to the second embodiment of the present invention. In the description of the real-time clock circuit according to the present embodiment, the same components as those of the real-time clock circuit shown in FIG. 1 will be assigned the same reference numerals and overlapping description will be omitted.

【0034】図3において、リアルタイムクロック回路
200は、RAMからデータを読み出すアドレスを指定
するアドレスカウンタ101、秒、分、時、曜、日、
月、年のRTCデータを格納するデータ格納用RAM1
02、RAM102からのRTCデータを判定する判定
回路103、アドレスカウンタからの内部アドレスと外
部アドレスを切り替えてRAM102のアドレスに出力
するセレクタ104、内部RAMプリチャージ信号PC
及び内部RAM書き込み信号WRと外部RAMプリチャ
ージ信号PC及び外部RAM書き込み信号WRとを切り
替えてRAM102に出力するセレクタ105、判定回
路103からのキャリーUP検出出力と内部RAM書き
込み信号WRとのAND論理をとるANDゲート回路1
06、判定回路103からのキャリーUP検出出力と内
部RAMプリチャージ信号PCとのAND論理をとるA
NDゲート回路201、内部RAMプリチャージ信号P
CとRTC演算フラグUIPとのAND論理をとるAN
Dゲート回路107から構成される。
In FIG. 3, a real time clock circuit 200 includes an address counter 101 for designating an address for reading data from the RAM, seconds, minutes, hours, days of the week, days,
RAM1 for data storage that stores RTC data for month and year
02, a determination circuit 103 for determining RTC data from the RAM 102, a selector 104 for switching between an internal address and an external address from an address counter and outputting to an address of the RAM 102, an internal RAM precharge signal PC
And the AND logic of the carry UP detection output from the selector 105 and the determination circuit 103 which switch the internal RAM write signal WR and the external RAM precharge signal PC and the external RAM write signal WR and output to the RAM 102. AND gate circuit 1
06, A which takes an AND logic of the carry UP detection output from the determination circuit 103 and the internal RAM precharge signal PC
ND gate circuit 201, internal RAM precharge signal P
AN that takes the AND logic of C and the RTC operation flag UIP
It is composed of a D gate circuit 107.

【0035】ANDゲート回路201は、判定回路10
3からのキャリーUP検出出力と内部RAMプリチャー
ジ信号PCとのAND論理をとり、キャリーUP検出出
力があったときのみ内部プリチャージ信号PCをセレク
タ105に出力するものである。
The AND gate circuit 201 is used for the decision circuit 10
AND logic of the carry UP detection output from 3 and the internal RAM precharge signal PC is taken, and the internal precharge signal PC is output to the selector 105 only when there is a carry UP detection output.

【0036】このように本実施形態に係るリアルタイム
クロック回路200は、アドレスカウンタ101、デー
タ格納用RAM102及び判定回路103からなる演算
処理方式によるRTC回路部に、キャリーUP検出出力
があったときのみ内部RAM書き込み信号WRを出力す
るANDゲート回路106及び内部プリチャージ信号P
Cを出力するANDゲート回路201を付加した構成と
なっている。
As described above, the real-time clock circuit 200 according to the present embodiment internally operates only when the carry-up detection output is present in the RTC circuit section based on the arithmetic processing method including the address counter 101, the data storage RAM 102 and the determination circuit 103. AND gate circuit 106 for outputting RAM write signal WR and internal precharge signal P
The configuration is such that an AND gate circuit 201 that outputs C is added.

【0037】以下、上述のように構成されたリアルタイ
ムクロック回路200の動作を説明する。
The operation of the real-time clock circuit 200 configured as described above will be described below.

【0038】図4はリアルタイムクロック回路200の
動作を説明するためのタイミングチャートであり、秒か
らのキャリーUPのみが発生した場合の例である。ま
た、内部演算に関するものであるからUIP=“L”の
動作は省略している。
FIG. 4 is a timing chart for explaining the operation of the real-time clock circuit 200, which is an example of the case where only carry UP from the second occurs. Further, the operation of UIP = "L" is omitted because it relates to the internal calculation.

【0039】図4に示すように、前時間単位の演算時に
キャリーUPが発生しなかった場合、判定回路103か
らキャリーUP検出が出力されず、従って、内部RAM
書き込み信号WRとプリチャージ信号PCとはANDゲ
ート回路106,201及びセレクタ105を介してR
AM102に供給されない。このため、RAM102に
はデータ書き込み動作及びプリチャージ動作が行われ
ず、RAM102の動作は停止される。
As shown in FIG. 4, when carry-up is not generated during the calculation in the previous time unit, the decision circuit 103 does not output carry-up detection, and therefore the internal RAM
The write signal WR and the precharge signal PC are R via the AND gate circuits 106 and 201 and the selector 105.
Not supplied to AM 102. Therefore, the data write operation and the precharge operation are not performed on the RAM 102, and the operation of the RAM 102 is stopped.

【0040】例えば、図4に示すように秒からのキャリ
ーUPが発生した後、分からのキャリーUPが発生しな
かった場合には、RAM書き込み信号WR及びプリチャ
ージ信号PCのRAM102への供給が停止され、以降
の書き込み動作及びプリチャージ動作は停止する。
For example, as shown in FIG. 4, when carry UP from second occurs and carry UP from minute does not occur, supply of RAM write signal WR and precharge signal PC to RAM 102 is stopped. Then, the subsequent write operation and precharge operation are stopped.

【0041】以上説明したように、第2の実施形態に係
るリアルタイムクロック回路200は、アドレスカウン
タ101、データ格納用RAM102及び判定回路10
3からなる演算処理方式によるRTC回路部に、キャリ
ーUP検出出力があったときのみ内部RAM書き込み信
号WRを出力するANDゲート回路106及び内部プリ
チャージ信号PCを出力するANDゲート回路201を
付加した構成としたので、第1の実施形態の消費電力低
減効果に加え、さらにプリチャージ信号PC停止による
プリチャージ動作回数の減少により一層の消費電力の低
減を図ることができる。
As described above, the real-time clock circuit 200 according to the second embodiment has the address counter 101, the data storage RAM 102, and the determination circuit 10.
A configuration in which an AND gate circuit 106 that outputs an internal RAM write signal WR and an AND gate circuit 201 that outputs an internal precharge signal PC are added to the RTC circuit section according to the arithmetic processing method of 3 in which a carry UP detection output is provided. Therefore, in addition to the power consumption reduction effect of the first embodiment, the power consumption can be further reduced by reducing the number of precharge operations by stopping the precharge signal PC.

【0042】第3の実施形態 図5は本発明の第3の実施形態に係るリアルタイムクロ
ック回路の構成を示す回路図である。なお、本実施形態
に係るリアルタイムクロック回路の説明にあたり図3に
示すリアルタイムクロック回路と同一構成部分には同一
符号を付して重複部分の説明を省略する。
Third Embodiment FIG. 5 is a circuit diagram showing the configuration of a real-time clock circuit according to the third embodiment of the present invention. In the description of the real-time clock circuit according to this embodiment, the same components as those of the real-time clock circuit shown in FIG.

【0043】図5において、リアルタイムクロック回路
300は、RAMからデータを読み出すアドレスを指定
するアドレスカウンタ101、秒、分、時、曜、日、
月、年のRTCデータを格納するデータ格納用RAM1
02、RAM102からのRTCデータを判定する判定
回路103、アドレスカウンタからの内部アドレスと外
部アドレスを切り替えてRAM102のアドレスに出力
するセレクタ104、内部RAMプリチャージ信号PC
及び内部RAM書き込み信号WRと外部RAMプリチャ
ージ信号PC及び外部RAM書き込み信号WRとを切り
替えてRAM102に出力するセレクタ105、判定回
路103からのキャリーUP検出出力と内部RAM書き
込み信号WRとのAND論理をとるANDゲート回路1
06、判定回路103からのキャリーUP検出出力と内
部RAMプリチャージ信号PCとのAND論理をとるA
NDゲート回路201、内部RAMプリチャージ信号P
CとRTC演算フラグUIPとのAND論理をとるAN
Dゲート回路107から構成される。
In FIG. 5, the real-time clock circuit 300 includes an address counter 101 for designating an address for reading data from the RAM, seconds, minutes, hours, days of the week, days,
RAM1 for data storage that stores RTC data for month and year
02, a determination circuit 103 for determining RTC data from the RAM 102, a selector 104 for switching between an internal address and an external address from an address counter and outputting to an address of the RAM 102, an internal RAM precharge signal PC
And the AND logic of the carry UP detection output from the selector 105 and the determination circuit 103 which switch the internal RAM write signal WR and the external RAM precharge signal PC and the external RAM write signal WR and output to the RAM 102. AND gate circuit 1
06, A which takes an AND logic of the carry UP detection output from the determination circuit 103 and the internal RAM precharge signal PC
ND gate circuit 201, internal RAM precharge signal P
AN that takes the AND logic of C and the RTC operation flag UIP
It is composed of a D gate circuit 107.

【0044】ANDゲート回路201は、判定回路10
3からのキャリーUP検出出力と内部RAMプリチャー
ジ信号PCとのAND論理をとり、キャリーUP検出出
力があったときのみ内部プリチャージ信号PCをセレク
タ105及びANDゲート回路107に出力するもので
ある。
The AND gate circuit 201 includes the decision circuit 10
The AND logic of the carry UP detection output from 3 and the internal RAM precharge signal PC is taken, and the internal precharge signal PC is output to the selector 105 and the AND gate circuit 107 only when the carry UP detection output is given.

【0045】ここで、アドレスカウンタ101に入力さ
れる、システムクロックとしての内部RAMプリチャー
ジ信号PCは、ANDゲート回路201を経由したプリ
チャージ信号PCが入力される。
Here, as the internal RAM precharge signal PC as the system clock, which is input to the address counter 101, the precharge signal PC via the AND gate circuit 201 is input.

【0046】このように本実施形態に係るリアルタイム
クロック回路300は、アドレスカウンタ101、デー
タ格納用RAM102及び判定回路103からなる演算
処理方式によるRTC回路部に、キャリーUP検出出力
があったときのみ内部RAM書き込み信号WRを出力す
るANDゲート回路106と、キャリーUP検出出力が
あったときのみ内部プリチャージ信号PCをRAM10
2及びアドレスカウンタ101に出力するANDゲート
回路201を付加した構成となっている。
As described above, the real-time clock circuit 300 according to the present embodiment internally operates only when the carry-up detection output is present in the RTC circuit section based on the arithmetic processing method including the address counter 101, the data storage RAM 102 and the determination circuit 103. The AND gate circuit 106 that outputs the RAM write signal WR, and the internal precharge signal PC are sent to the RAM 10 only when the carry UP detection output is generated.
2 and an AND gate circuit 201 for outputting to the address counter 101 is added.

【0047】以下、上述のように構成されたリアルタイ
ムクロック回路300の動作を説明する。
The operation of the real-time clock circuit 300 configured as described above will be described below.

【0048】図6はリアルタイムクロック回路300の
動作を説明するためのタイミングチャートであり、秒か
らのキャリーUPのみが発生した場合の例である。ま
た、内部演算に関するものであるからUIP=“L”の
動作は省略している。
FIG. 6 is a timing chart for explaining the operation of the real-time clock circuit 300, which is an example when only carry UP from the second occurs. Further, the operation of UIP = "L" is omitted because it relates to the internal calculation.

【0049】図6に示すように、前時間単位の演算時に
キャリーUPが発生しなかった場合、判定回路103か
らキャリーUP検出が出力されず、従って、内部RAM
書き込み信号WRとプリチャージ信号PCとはANDゲ
ート回路106,201及びセレクタ105を介してR
AM102に供給されない。このため、RAM102に
はデータ書き込み動作及びプリチャージ動作が行われ
ず、RAM102の動作は停止される。これに加えて、
前時間単位の演算時にキャリーUPが発生しなかった場
合には、アドレスカウンタ101へのプリチャージ信号
PCの入力も停止される。
As shown in FIG. 6, when carry-up is not generated in the calculation in the previous time unit, carry-up detection is not output from the determination circuit 103, and accordingly, the internal RAM is not detected.
The write signal WR and the precharge signal PC are R via the AND gate circuits 106 and 201 and the selector 105.
Not supplied to AM 102. Therefore, the data write operation and the precharge operation are not performed on the RAM 102, and the operation of the RAM 102 is stopped. In addition to this,
When the carry-up is not generated during the calculation in the previous time unit, the input of the precharge signal PC to the address counter 101 is also stopped.

【0050】例えば、図6に示すように秒からのキャリ
ーUPが発生した後、分からのキャリーUPが発生しな
かった場合には、RAM書き込み信号WR及びプリチャ
ージ信号PCのRAM102への供給が停止され、以降
の書き込み動作及びプリチャージ動作は停止するととも
に、アドレスカウンタ101へのプリチャージ信号PC
の入力停止によりアドレス信号の変化もなくなる。
For example, as shown in FIG. 6, when carry UP from second occurs and carry UP from minute does not occur, supply of the RAM write signal WR and the precharge signal PC to the RAM 102 is stopped. Then, the subsequent write operation and precharge operation are stopped, and the precharge signal PC to the address counter 101 is sent.
The change of the address signal disappears when the input of is stopped.

【0051】以上説明したように、第3の実施形態に係
るリアルタイムクロック回路300は、キャリーUP検
出出力があったときのみ内部RAM書き込み信号WRを
出力するANDゲート回路106と、キャリーUP検出
出力があったときのみ内部プリチャージ信号PCをRA
M102及びアドレスカウンタ101に出力するAND
ゲート回路201を付加した構成としたので、第1、第
2の実施形態の消費電力低減効果に加え、さらにアドレ
スカウンタ101におけるアドレスアクセスの減少によ
りさらなる消費電力の低減を図ることができる。
As described above, in the real-time clock circuit 300 according to the third embodiment, the AND gate circuit 106 which outputs the internal RAM write signal WR only when the carry UP detection output and the carry UP detection output are provided. RA only when there is an internal precharge signal PC
AND output to M102 and address counter 101
Since the configuration is such that the gate circuit 201 is added, in addition to the power consumption reduction effect of the first and second embodiments, it is possible to further reduce power consumption by reducing address access in the address counter 101.

【0052】第4の実施形態 図7は本発明の第4の実施形態に係るリアルタイムクロ
ック回路の構成を示す回路図である。なお、本実施形態
に係るリアルタイムクロック回路の説明にあたり図5に
示すリアルタイムクロック回路と同一構成部分には同一
符号を付して重複部分の説明を省略する。
Fourth Embodiment FIG. 7 is a circuit diagram showing the configuration of a real-time clock circuit according to the fourth embodiment of the present invention. In the description of the real-time clock circuit according to the present embodiment, the same components as those of the real-time clock circuit shown in FIG. 5 will be assigned the same reference numerals and overlapping description will be omitted.

【0053】図7において、リアルタイムクロック回路
400は、RAMからデータを読み出すアドレスを指定
するアドレスカウンタ101、秒、分、時、曜、日、
月、年のRTCデータを格納するデータ格納用RAM1
02、RAM102からのRTCデータを判定する判定
回路103、アドレスカウンタからの内部アドレスと外
部アドレスを切り替えてRAM102のアドレスに出力
するセレクタ104、内部RAMプリチャージ信号PC
及び内部RAM書き込み信号WRと外部RAMプリチャ
ージ信号PC及び外部RAM書き込み信号WRとを切り
替えてRAM102に出力するセレクタ105、判定回
路103からのキャリーUP検出出力と内部RAM書き
込み信号WRとのAND論理をとるANDゲート回路1
06、判定回路103からのキャリーUP検出出力と内
部RAMプリチャージ信号PCとのAND論理をとるA
NDゲート回路201、外部からのRTC_START
信号をラッチして演算フラグUIPを出力するラッチ4
01、内部RAMプリチャージ信号PCとRTC演算フ
ラグUIPとのAND論理をとるANDゲート回路10
7から構成される。
In FIG. 7, a real-time clock circuit 400 includes an address counter 101 for designating an address for reading data from the RAM, seconds, minutes, hours, days of the week, days,
RAM1 for data storage that stores RTC data for month and year
02, a determination circuit 103 for determining RTC data from the RAM 102, a selector 104 for switching between an internal address and an external address from an address counter and outputting to an address of the RAM 102, an internal RAM precharge signal PC
And the AND logic of the carry UP detection output from the selector 105 and the determination circuit 103 which switch the internal RAM write signal WR and the external RAM precharge signal PC and the external RAM write signal WR and output to the RAM 102. AND gate circuit 1
06, A which takes an AND logic of the carry UP detection output from the determination circuit 103 and the internal RAM precharge signal PC
ND gate circuit 201, RTC_START from the outside
Latch 4 that latches the signal and outputs the operation flag UIP
01, AND gate circuit 10 which takes the AND logic of the internal RAM precharge signal PC and the RTC operation flag UIP
It consists of 7.

【0054】ラッチ401は、NORゲート及びインバ
ータから構成され、外部からのRTC_START信号
を、判定回路103からのキャリーUP検出出力が入力
されるまでラッチして演算フラグUIPとしてセレクタ
105及びANDゲート回路107に出力するものであ
る。
The latch 401 is composed of a NOR gate and an inverter, and latches the RTC_START signal from the outside until the carry UP detection output from the determination circuit 103 is input, and as a calculation flag UIP, the selector 105 and the AND gate circuit 107. Is output to.

【0055】このように本実施形態に係るリアルタイム
クロック回路300は、外部からのRTC_START
信号をキャリーUP検出出力が入力されるまでラッチし
てRTC演算のためのフラグUIPを作成するラッチ4
01を付加した構成となっている。
As described above, the real-time clock circuit 300 according to the present embodiment is provided with RTC_START from the outside.
Latch 4 that latches the signal until the carry UP detection output is input and creates the flag UIP for the RTC operation
01 is added to the configuration.

【0056】以下、上述のように構成されたリアルタイ
ムクロック回路400の動作を説明する。
The operation of the real-time clock circuit 400 configured as above will be described below.

【0057】図8はリアルタイムクロック回路400の
動作を説明するためのタイミングチャートであり、秒か
らのキャリーUPのみが発生した場合の例である。
FIG. 8 is a timing chart for explaining the operation of the real-time clock circuit 400, which is an example of the case where only carry UP from the second occurs.

【0058】時間単位の演算時にキャリーUPが発生し
なかった場合におけるRTC動作は前記第3の実施形態
と同一である。
The RTC operation when the carry-up does not occur during the time unit calculation is the same as that of the third embodiment.

【0059】本実施形態では、時間単位の演算時にキャ
リーUPが発生しなかった場合、ラッチ401は判定回
路103からのキャリーUP検出出力を受けてリセット
され、図8に示すように、UIP信号を“L”にする。
したがって、RAM102はRTC動作から解放され、
外部からRAM102にアクセスできる時間を増やすこ
とができる。
In this embodiment, when carry-up is not generated during the time unit calculation, the latch 401 is reset by receiving the carry-up detection output from the determination circuit 103, and as shown in FIG. Set to "L".
Therefore, the RAM 102 is released from the RTC operation,
The time during which the RAM 102 can be accessed from the outside can be increased.

【0060】以上説明したように、第4の実施形態に係
るリアルタイムクロック回路400は、外部からのRT
C_START信号をキャリーUP検出出力が入力され
るまでラッチしてRTC演算のためのフラグUIPを作
成するラッチ401を付加した構成としたので、前記各
実施形態の消費電力低減効果に加え、さらに外部からの
RAMへのアクセス可能時間を増やすことができる。
As described above, the real-time clock circuit 400 according to the fourth embodiment is provided with an RT from the outside.
Since the configuration is such that the latch 401 that latches the C_START signal until the carry UP detection output is input and creates the flag UIP for the RTC operation is added, in addition to the power consumption reduction effect of each of the above-described embodiments, externally It is possible to increase the accessible time to the RAM.

【0061】第5の実施形態 図9は本発明の第5の実施形態に係るリアルタイムクロ
ック回路の構成を示す回路図である。なお、本実施形態
に係るリアルタイムクロック回路の説明にあたり図1及
び図7に示すリアルタイムクロック回路と同一構成部分
には同一符号を付して重複部分の説明を省略する。
Fifth Embodiment FIG. 9 is a circuit diagram showing the configuration of a real-time clock circuit according to the fifth embodiment of the present invention. In the description of the real-time clock circuit according to the present embodiment, the same components as those of the real-time clock circuit shown in FIGS. 1 and 7 are designated by the same reference numerals, and duplicated description will be omitted.

【0062】図9において、リアルタイムクロック回路
500は、RAMからデータを読み出すアドレスを指定
するアドレスカウンタ101、秒、分、時、曜、日、
月、年のRTCデータを格納するデュアルポートRAM
501、デュアルポートRAM501からのRTCデー
タを判定する判定回路103、判定回路103からのキ
ャリーUP検出出力と内部RAM書き込み信号WRとの
AND論理をとるANDゲート回路106、判定回路1
03からのキャリーUP検出出力と内部RAMプリチャ
ージ信号PCとのAND論理をとるANDゲート回路2
01、外部からのRTC_START信号をラッチして
演算フラグUIPを出力するラッチ401、内部RAM
プリチャージ信号PCとRTC演算フラグUIPとのA
ND論理をとるANDゲート回路107から構成され
る。
In FIG. 9, the real-time clock circuit 500 includes an address counter 101 for designating an address for reading data from the RAM, second, minute, hour, day, day,
Dual port RAM to store RTC data of month and year
501, a determination circuit 103 for determining RTC data from the dual port RAM 501, an AND gate circuit 106 for ANDing the carry UP detection output from the determination circuit 103 and the internal RAM write signal WR, and the determination circuit 1
AND gate circuit 2 which takes AND logic of carry UP detection output from 03 and internal RAM precharge signal PC
01, a latch 401 that latches an RTC_START signal from the outside and outputs a calculation flag UIP, an internal RAM
A of precharge signal PC and RTC operation flag UIP
It is composed of an AND gate circuit 107 taking ND logic.

【0063】デュアルポートRAM501は、2系統の
入出力端子を持ち双方のポートから独立してアクセス可
能なメモリであり、一方のポートには内部RAMプリチ
ャージ信号PC、RAM書き込み信号WR及び内部アド
レスを接続し、他方のポートには外部RAMプリチャー
ジ信号PC、RAM書き込み信号WR及び内部アドレス
を接続する。
The dual port RAM 501 is a memory that has two input / output terminals and can be accessed independently from both ports. One port is provided with an internal RAM precharge signal PC, a RAM write signal WR and an internal address. The external RAM precharge signal PC, the RAM write signal WR and the internal address are connected to the other port.

【0064】ANDゲート回路106の出力及びAND
ゲート回路201の出力は、デュアルポートRAM50
1の一方のポートにそのまま接続される。
Output of AND gate circuit 106 and AND
The output of the gate circuit 201 is the dual port RAM 50.
1 is directly connected to one port.

【0065】以下、上述のように構成されたリアルタイ
ムクロック回路500の動作を説明する。
The operation of the real-time clock circuit 500 configured as above will be described below.

【0066】図8はリアルタイムクロック回路400の
動作を説明するためのタイミングチャートであり、UI
P=“H”中に月の設定をする場合の例である。
FIG. 8 is a timing chart for explaining the operation of the real time clock circuit 400.
This is an example of setting the month while P = “H”.

【0067】RTC動作の基本的な動作は前記第7の実
施形態と同様である。
The basic operation of the RTC operation is similar to that of the seventh embodiment.

【0068】図8に示す例では、デュアルポートRAM
501の一方のポートを用いて内部アクセスを、他方の
ポートを用いて外部アクセスを行っている。この場合に
は、内部アクセスによるRTC動作とは独立して外部ア
クセスによる月の設定を行うことができるが、図8に示
すタイミングでは内部において分の演算中であるため、
分以外のデータについては正常に書き込むことができ
る。
In the example shown in FIG. 8, a dual port RAM
One port of 501 is used for internal access, and the other port is used for external access. In this case, the month can be set by external access independently of the RTC operation by internal access, but since the minutes are being calculated internally at the timing shown in FIG.
Data other than minutes can be written normally.

【0069】以上説明したように、第5の実施形態に係
るリアルタイムクロック回路500は、デュアルポート
RAM501を用いて構成したので、前記各実施形態の
効果に加え、さらに回路規模を縮小することができ、ま
た任意のタイミングで外部からのRAMへのアクセスが
可能になる。
As described above, since the real-time clock circuit 500 according to the fifth embodiment is constructed by using the dual port RAM 501, the circuit scale can be further reduced in addition to the effect of each of the above embodiments. Further, it becomes possible to access the RAM from the outside at an arbitrary timing.

【0070】第6の実施形態 図11は本発明の第6の実施形態に係るリアルタイムク
ロック回路の構成を示す回路図である。なお、本実施形
態に係るリアルタイムクロック回路の説明にあたり図1
及び図9に示すリアルタイムクロック回路と同一構成部
分には同一符号を付して重複部分の説明を省略する。
Sixth Embodiment FIG. 11 is a circuit diagram showing the configuration of a real-time clock circuit according to the sixth embodiment of the present invention. Note that, in describing the real-time clock circuit according to the present embodiment, FIG.
Also, the same components as those of the real-time clock circuit shown in FIG.

【0071】図9において、リアルタイムクロック回路
500は、RAMからデータを読み出すアドレスを指定
するアドレスカウンタ101、秒、分、時、曜、日、
月、年のRTCデータを格納するデュアルポートRAM
601、RTC演算に関係しないデータを格納するシン
グルポートRAM602、デュアルポートRAM601
からのRTCデータを判定する判定回路103、判定回
路103からのキャリーUP検出出力と内部RAM書き
込み信号WRとのAND論理をとるANDゲート回路1
06、判定回路103からのキャリーUP検出出力と内
部RAMプリチャージ信号PCとのAND論理をとるA
NDゲート回路201、外部からのRTC_START
信号をラッチして演算フラグUIPを出力するラッチ4
01、内部RAMプリチャージ信号PCとRTC演算フ
ラグUIPとのAND論理をとるANDゲート回路10
7から構成される。
In FIG. 9, a real-time clock circuit 500 includes an address counter 101 for designating an address for reading data from RAM, second, minute, hour, day, day,
Dual port RAM to store RTC data of month and year
601, a single port RAM 602 for storing data not related to RTC calculation, a dual port RAM 601
Circuit 103 for determining RTC data from the AND circuit, AND gate circuit 1 for ANDing the carry UP detection output from the determination circuit 103 and the internal RAM write signal WR
06, A which takes an AND logic of the carry UP detection output from the determination circuit 103 and the internal RAM precharge signal PC
ND gate circuit 201, RTC_START from the outside
Latch 4 that latches the signal and outputs the operation flag UIP
01, AND gate circuit 10 which takes the AND logic of the internal RAM precharge signal PC and the RTC operation flag UIP
It consists of 7.

【0072】デュアルポートRAM601は、2系統の
入出力端子を持ち双方のポートから独立してアクセス可
能なメモリであり、一方のポートには内部RAMプリチ
ャージ信号PC、RAM書き込み信号WR及び内部アド
レスを接続し、他方のポートには外部RAMプリチャー
ジ信号PC、RAM書き込み信号WR及び内部アドレス
を接続する。
The dual port RAM 601 is a memory that has two input / output terminals and can be accessed independently from both ports. One port is provided with an internal RAM precharge signal PC, a RAM write signal WR and an internal address. The external RAM precharge signal PC, the RAM write signal WR and the internal address are connected to the other port.

【0073】シングルポートRAM602は、RTC演
算に関係しないデータを格納する通常のRAMであり、
例えばIC内で使用されるRAMである。
The single port RAM 602 is a normal RAM for storing data not related to RTC calculation,
For example, it is a RAM used in an IC.

【0074】本実施形態では、外部PC、外部WR、外
部アドレス、外部への出力、外部からの入力の各端子に
ついては、デュアルポートRAM601の一方のポート
及びシングルポートRAM602のポートを共通とする
ように接続する。
In this embodiment, the external PC, the external WR, the external address, the output to the external, and the input from the external are configured such that one port of the dual port RAM 601 and the port of the single port RAM 602 are common. Connect to.

【0075】このように、第6の実施形態に係るリアル
タイムクロック回路600は、RTCデータを格納する
デュアルポートRAM601とRTC演算に関係しない
データを格納するシングルポートRAM602の入出力
ポートを共通に構成したので、本来2ブロックに分けな
ければならないRAMを1ブロックで実現することが可
能になる。この場合、2種類のRAMの入出力部はポー
トを共有しており、さらにRTC演算用のRAM601
以外は、シングルポートRAMで構成しているため、前
記第5の実施形態の効果に加え、小規模のデュアルポー
トRAMを使用することができ、全体的な回路規模をよ
りさらに小さくすることができる。
As described above, in the real-time clock circuit 600 according to the sixth embodiment, the input / output ports of the dual port RAM 601 for storing the RTC data and the single port RAM 602 for storing the data not related to the RTC calculation are configured in common. Therefore, it becomes possible to realize the RAM, which should originally be divided into two blocks, in one block. In this case, the input / output units of the two types of RAM share a port, and the RAM 601 for RTC calculation is further used.
Other than the above, since it is configured with a single-port RAM, in addition to the effect of the fifth embodiment, a small-scale dual-port RAM can be used, and the overall circuit scale can be further reduced. .

【0076】第7の実施形態 図12は本発明の第7の実施形態に係るリアルタイムク
ロック回路の構成を示す回路図である。なお、本実施形
態に係るリアルタイムクロック回路の説明にあたり図1
及び図9に示すリアルタイムクロック回路と同一構成部
分には同一符号を付して重複部分の説明を省略する。
Seventh Embodiment FIG. 12 is a circuit diagram showing the configuration of a real-time clock circuit according to the seventh embodiment of the present invention. Note that, in describing the real-time clock circuit according to the present embodiment, FIG.
Also, the same components as those of the real-time clock circuit shown in FIG.

【0077】前記第5の実施形態では、カウントUPの
テスト(評価)を行う場合、0年1月1日〜99年12
月31日59分59秒まで約31憶サイクルを要する。
そこで本実施形態ではTEST端子を設けることにより
テストのための演算サイクルを大幅に減らすようにする
ものである。
In the fifth embodiment, when the count UP test (evaluation) is performed, January 1, 0 to 12, 1999.
It takes about 3 billion cycles until 59 minutes 59 seconds on the 31st of the month.
Therefore, in this embodiment, by providing a TEST terminal, the number of operation cycles for testing is greatly reduced.

【0078】図12において、リアルタイムクロック回
路700は、RAMからデータを読み出すアドレスを指
定するアドレスカウンタ101、秒、分、時、曜、日、
月、年のRTCデータを格納するデュアルポートRAM
501、デュアルポートRAM501からのRTCデー
タを判定する判定回路103、TEST端子入力とTE
ST信号とのAND論理をとるANDゲート回路70
1、ANDゲート回路701出力と判定回路103から
のキャリーUP検出出力とのOR論理をとるORゲート
回路702、TEST信号またはORゲート回路702
を介して判定回路103から出力されたキャリーUP検
出出力と内部RAM書き込み信号WRとのAND論理を
とるANDゲート回路106、TEST信号または前記
キャリーUP検出出力と内部RAMプリチャージ信号P
CとのAND論理をとるANDゲート回路201、外部
からのRTC_START信号をラッチして演算フラグ
UIPを出力するラッチ401、内部RAMプリチャー
ジ信号PCとRTC演算フラグUIPとのAND論理を
とるANDゲート回路107から構成される。
In FIG. 12, the real-time clock circuit 700 includes an address counter 101 for designating an address for reading data from the RAM, second, minute, hour, day, day,
Dual port RAM to store RTC data of month and year
501, determination circuit 103 for determining RTC data from dual port RAM 501, TEST terminal input and TE
AND gate circuit 70 taking AND logic with the ST signal
1, an OR gate circuit 702 that takes an OR logic between the output of the AND gate circuit 701 and the carry UP detection output from the determination circuit 103, the TEST signal or the OR gate circuit 702
AND gate circuit 106 for ANDing the carry UP detection output and the internal RAM write signal WR output from the determination circuit 103 via the TEST signal or the carry UP detection output and the internal RAM precharge signal P.
An AND gate circuit 201 that takes an AND logic with C, a latch 401 that latches an RTC_START signal from the outside and outputs an operation flag UIP, an AND gate circuit that takes an AND logic with the internal RAM precharge signal PC and the RTC operation flag UIP It is composed of 107.

【0079】ラッチ401は、外部からのRTC_ST
ART信号を、判定回路103からのキャリーUP検出
出力が入力されるまでラッチして演算フラグUIPとし
てセレクタ105及びANDゲート回路107に出力す
るものであるが、テスト時にはTEST端子は“H”と
なるためTEST信号が“L”になるまでUIPを出力
する。
The latch 401 is an external RTC_ST.
The ART signal is latched and output to the selector 105 and the AND gate circuit 107 as the operation flag UIP until the carry UP detection output from the determination circuit 103 is input, but the TEST terminal becomes "H" at the time of testing. Therefore, UIP is output until the TEST signal becomes "L".

【0080】以下、上述のように構成されたリアルタイ
ムクロック回路700の動作を説明する。
The operation of the real-time clock circuit 700 configured as described above will be described below.

【0081】図13はリアルタイムクロック回路400
の動作を説明するためのタイミングチャートである。
FIG. 13 shows a real time clock circuit 400.
3 is a timing chart for explaining the operation of FIG.

【0082】図13に示すように、テスト時にTEST
端子に入力されるTEST信号の時間幅は固定とする。
As shown in FIG. 13, the TEST
The time width of the TEST signal input to the terminal is fixed.

【0083】TEST端子“H”時は、前時間単位のキ
ャリーUPに関係なく、全時間単位が+1されるため、
0年1月1日〜99年12月31日59分59秒まで最
大99サイクルの演算サイクルでカウントUPのテスト
が可能となる。
When the TEST terminal is "H", all the time units are incremented by 1 regardless of the carry-up of the previous time unit.
It is possible to test the count UP in a maximum of 99 operation cycles from January 1, 0 to December 31, 1999, 59 minutes 59 seconds.

【0084】したがって、前記第5の実施形態の効果に
加え、テスト時間を大幅に削減することができる。
Therefore, in addition to the effects of the fifth embodiment, the test time can be significantly reduced.

【0085】なお、本実施形態では、前記第5の実施形
態の回路に適用しているが、同様の方法により他の実施
形態に適用してもよいことは言うまでもない。
Although the present embodiment is applied to the circuit of the fifth embodiment, it goes without saying that the same method may be applied to other embodiments.

【0086】このように、上記各実施形態に係るリアル
タイムクロック回路は、簡単な回路構成でありながら、
消費電力の低減を実現することができ、種々の電子機器
内部に搭載することができるという優れた特長を有す
る。
As described above, the real-time clock circuit according to each of the above embodiments has a simple circuit configuration,
It has an excellent feature that it can reduce power consumption and can be mounted inside various electronic devices.

【0087】なお、上記各実施形態では、記憶手段にR
AMを用いているが勿論これには限定されず、同様の動
作を行う他のメモリでもよい。また、各種信号の立ち上
がりで動作するようにしているが、立ち下がりで動作す
るように構成してもよいことは言うまでもない。
It should be noted that in each of the above-described embodiments, R is stored in the storage means.
Although the AM is used, of course, the present invention is not limited to this, and another memory that performs the same operation may be used. Further, although the operation is performed at the rising edge of various signals, it goes without saying that the operation may be performed at the falling edge.

【0088】また、上記リアルタイムクロック回路は、
各種電子機器にクロックデータを供給するリアルタイム
クロック回路に適用することができるが、クロックデー
タを出力するものであればどのようなリアルタイムクロ
ック回路にも適用できることは言うまでもない。また、
本実施形態に係るリアルタイムクロック回路が集積回路
内部に組み込まれて設置されていてもよいし、あるいは
独立した装置に適用してもよい。
Further, the real-time clock circuit is
The present invention can be applied to a real-time clock circuit that supplies clock data to various electronic devices, but it goes without saying that it can also be applied to any real-time clock circuit that outputs clock data. Also,
The real-time clock circuit according to the present embodiment may be incorporated and installed inside the integrated circuit, or may be applied to an independent device.

【0089】また、上記リアルタイムクロック回路を構
成するフリップフロップやゲート回路の種類や個数、接
続状態等は上記各実施形態に限定されない。
Further, the types and number of flip-flops and gate circuits constituting the real-time clock circuit, the connection state, etc. are not limited to those in the above embodiments.

【0090】[0090]

【発明の効果】本発明に係るリアルタイムクロック回路
では、前時間単位の演算時に桁上げが発生しなかったと
き、記憶手段へのデータの書き込みを停止させる手段を
備えて構成したので、書き込み回数を減らして消費電力
を大幅に低減させることができる。
Since the real-time clock circuit according to the present invention is provided with a means for stopping the writing of data to the storage means when a carry does not occur during the calculation in the previous time unit, the number of writing times can be reduced. Power consumption can be significantly reduced by reducing the power consumption.

【0091】本発明に係るリアルタイムクロック回路で
は、前時間単位の演算時に桁上げが発生しなかったと
き、記憶手段へのプリチャージ信号の供給を停止させる
手段を備えて構成したので、プリチャージ動作回数の減
少により消費電力の低減をさせることができる。
Since the real-time clock circuit according to the present invention is provided with means for stopping the supply of the precharge signal to the storage means when the carry does not occur during the calculation in the previous time unit, the precharge operation is performed. By reducing the number of times, power consumption can be reduced.

【0092】本発明に係るリアルタイムクロック回路で
は、前時間単位の演算時に桁上げが発生しなかったと
き、アドレスカウンタの動作を停止させる手段を備えて
構成したので、アドレスアクセスの減少により消費電力
の低減を図ることができる。
Since the real-time clock circuit according to the present invention is provided with means for stopping the operation of the address counter when no carry occurs during the calculation in the previous time unit, the power consumption is reduced due to the decrease in address access. It can be reduced.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明を適用した第1の実施形態に係るリアル
タイムクロック回路の構成を示す回路図である。
FIG. 1 is a circuit diagram showing a configuration of a real-time clock circuit according to a first embodiment to which the present invention is applied.

【図2】上記リアルタイムクロック回路の動作を説明す
るためのタイミングチャートである。
FIG. 2 is a timing chart for explaining the operation of the real-time clock circuit.

【図3】本発明を適用した第2の実施形態に係るリアル
タイムクロック回路の構成を示す回路図である。
FIG. 3 is a circuit diagram showing a configuration of a real-time clock circuit according to a second embodiment to which the present invention is applied.

【図4】上記リアルタイムクロック回路の動作を説明す
るためのタイミングチャートである。
FIG. 4 is a timing chart for explaining the operation of the real-time clock circuit.

【図5】本発明を適用した第3の実施形態に係るリアル
タイムクロック回路の構成を示す回路図である。
FIG. 5 is a circuit diagram showing a configuration of a real-time clock circuit according to a third embodiment of the present invention.

【図6】上記リアルタイムクロック回路の動作を説明す
るためのタイミングチャートである。
FIG. 6 is a timing chart for explaining the operation of the real-time clock circuit.

【図7】本発明を適用した第4の実施形態に係るリアル
タイムクロック回路の構成を示す回路図である。
FIG. 7 is a circuit diagram showing a configuration of a real-time clock circuit according to a fourth embodiment of the present invention.

【図8】上記リアルタイムクロック回路の動作を説明す
るためのタイミングチャートである。
FIG. 8 is a timing chart for explaining the operation of the real-time clock circuit.

【図9】本発明を適用した第5の実施形態に係るリアル
タイムクロック回路の構成を示す回路図である。
FIG. 9 is a circuit diagram showing a configuration of a real-time clock circuit according to a fifth embodiment of the present invention.

【図10】上記リアルタイムクロック回路の動作を説明
するためのタイミングチャートである。
FIG. 10 is a timing chart for explaining the operation of the real-time clock circuit.

【図11】本発明を適用した第6の実施形態に係るリア
ルタイムクロック回路の構成を示す回路図である。
FIG. 11 is a circuit diagram showing a configuration of a real-time clock circuit according to a sixth embodiment of the present invention.

【図12】本発明を適用した第7の実施形態に係るリア
ルタイムクロック回路の構成を示す回路図である。
FIG. 12 is a circuit diagram showing a configuration of a real-time clock circuit according to a seventh embodiment of the present invention.

【図13】上記リアルタイムクロック回路の動作を説明
するためのタイミングチャートである。
FIG. 13 is a timing chart for explaining the operation of the real-time clock circuit.

【図14】従来のカウンタ方式によるリアルタイムクロ
ック回路の構成を示す回路図である。
FIG. 14 is a circuit diagram showing a configuration of a conventional real-time clock circuit using a counter method.

【図15】従来の演算方式によるリアルタイムクロック
回路の構成を示す回路図である。
FIG. 15 is a circuit diagram showing a configuration of a real-time clock circuit according to a conventional arithmetic method.

【図16】従来のリアルタイムクロック回路の動作を説
明するためのタイミングチャートである。
FIG. 16 is a timing chart for explaining the operation of the conventional real-time clock circuit.

【符号の説明】[Explanation of symbols]

100,200,300,400,500,600,7
00 リアルタイムクロック回路、101 アドレスカ
ウンタ、102 データ格納用RAM、103判定回
路、104,105 セレクタ、106,107,20
1,701 ANDゲート回路、401 ラッチ、50
1,601 デュアルポートRAM、602 シングル
ポートRAM、702 ORゲート回路
100, 200, 300, 400, 500, 600, 7
00 real-time clock circuit, 101 address counter, 102 data storage RAM, 103 determination circuit, 104, 105 selector, 106, 107, 20
1,701 AND gate circuit, 401 latch, 50
1,601 Dual port RAM, 602 Single port RAM, 702 OR gate circuit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G04G 1/00 - 3/00 G04F 10/00 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) G04G 1/00-3/00 G04F 10/00

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 リアルタイムクロックデータを記憶する
記憶手段と、 前記記憶手段から読み出したデータの桁上げを判定して
少なくとも2種類の時間単位のタイムデータを得るリア
ルタイムクロック回路において、 前時間単位の演算時に前記桁上げが発生しなかったと
き、前記記憶手段へのデータの書き込みを停止させる手
段を備えたことを特徴とするリアルタイムクロック回
路。
1. A storage unit for storing real-time clock data, and a real-time clock circuit for determining carry of data read from the storage unit to obtain time data of at least two kinds of time units A real-time clock circuit comprising means for stopping writing of data to the storage means when the carry does not occur at times.
【請求項2】 リアルタイムクロックデータを記憶する
記憶手段と、 前記記憶手段から読み出したデータの桁上げを判定して
少なくとも2種類の時間単位のタイムデータを得るリア
ルタイムクロック回路において、 前時間単位の演算時に前記桁上げが発生しなかったと
き、前記記憶手段へのプリチャージ信号の供給を停止さ
せる手段を備えたことを特徴とするリアルタイムクロッ
ク回路。
2. A storage unit for storing real-time clock data, and a real-time clock circuit for determining carry of data read from the storage unit to obtain time data of at least two kinds of time units A real-time clock circuit comprising means for stopping the supply of the precharge signal to the storage means when the carry is not generated.
【請求項3】 アドレスカウンタからのアドレス指定に
よりリアルタイムクロックデータを記憶する記憶手段
と、 前記記憶手段から読み出したデータの桁上げを判定して
少なくとも2種類の時間単位のタイムデータを得るリア
ルタイムクロック回路において、 前時間単位の演算時に前記桁上げが発生しなかったと
き、前記アドレスカウンタの動作を停止させる手段を備
えたことを特徴とするリアルタイムクロック回路。
3. A storage unit for storing real-time clock data by address designation from an address counter, and a real-time clock circuit for determining carry of data read from the storage unit to obtain time data of at least two types of time units. 2. A real-time clock circuit, comprising means for stopping the operation of the address counter when the carry does not occur during the calculation in the previous time unit.
【請求項4】 請求項1、2又は3の何れかに記載のリ
アルタイムクロック回路において、 前時間単位の演算時に前記桁上げが発生しなかったと
き、前記記憶手段を、前記タイムデータの演算処理から
解放する手段を備えたことを特徴とするリアルタイムク
ロック回路。
4. The real-time clock circuit according to claim 1, 2 or 3, wherein when the carry does not occur during the operation of the previous time unit, the storage means is operated to process the time data. A real-time clock circuit comprising means for releasing the clock from the real-time clock circuit.
【請求項5】 請求項1、2、3又は4の何れかに記載
のリアルタイムクロック回路において、 テスト信号を入力するテスト端子と、 前記テスト信号が入力されている時には、全時間単位に
おいて前記桁上げを発生させる手段とを備えたことを特
徴とするリアルタイムクロック回路。
5. The real-time clock circuit according to claim 1, 2, 3 or 4, wherein a test terminal for inputting a test signal, and the digit in all time units when the test signal is being input. A real-time clock circuit comprising: means for generating a rise.
【請求項6】 前記記憶手段は、 デュアルポートRAMであることを特徴とする請求項
1、2、3又は4の何れかに記載のリアルタイムクロッ
ク回路。
6. The real time clock circuit according to claim 1, wherein the storage means is a dual port RAM.
JP15352297A 1997-06-11 1997-06-11 Real-time clock circuit Expired - Fee Related JP3454672B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15352297A JP3454672B2 (en) 1997-06-11 1997-06-11 Real-time clock circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15352297A JP3454672B2 (en) 1997-06-11 1997-06-11 Real-time clock circuit

Publications (2)

Publication Number Publication Date
JPH112684A JPH112684A (en) 1999-01-06
JP3454672B2 true JP3454672B2 (en) 2003-10-06

Family

ID=15564381

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15352297A Expired - Fee Related JP3454672B2 (en) 1997-06-11 1997-06-11 Real-time clock circuit

Country Status (1)

Country Link
JP (1) JP3454672B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6486144B2 (en) * 2015-02-27 2019-03-20 アール・ビー・コントロールズ株式会社 Timing device

Also Published As

Publication number Publication date
JPH112684A (en) 1999-01-06

Similar Documents

Publication Publication Date Title
JP3262033B2 (en) Semiconductor storage device
EP0443775A2 (en) Signature circuit for non-volatile memory device
JP3454672B2 (en) Real-time clock circuit
JPH0136146B2 (en)
KR970000561B1 (en) Delay circuit
US5221906A (en) Program control digital pulse generator
JPH09330274A (en) Device and method for parity inspection logic circuit in dynamic ram
JP3071435B2 (en) Multi-bit match circuit
JPS60254488A (en) Semiconductor storage device
US5566322A (en) Method and apparatus for performing read accesses from a counter which avoid large rollover error when multiple read access cycles are used
US5406131A (en) Exponential circuit
JPH1049444A (en) Storage device and its control method
JP2893350B2 (en) Data processing device, image processing device, shift register circuit, lookup table circuit, arithmetic circuit, image processing system
US6381195B2 (en) Circuit, apparatus and method for generating address
KR960016265B1 (en) Private line selection circuit for digital key-phone system
KR100274085B1 (en) Multi-data delay circuit using ram
JP3009533B2 (en) Large-capacity counter using memory
JPS6111803Y2 (en)
JP2771628B2 (en) Timer counter
JPH0419894A (en) Elastic store circuit
US5924123A (en) Semiconductor storage apparatus with copy guard function
JPH112685A (en) Real time clock circuit
EP1050785A2 (en) Electronic watch
JPH10149681A (en) Data read-out circuit
JPH04163783A (en) Semiconductor storage device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030715

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080725

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080725

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090725

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090725

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100725

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100725

Year of fee payment: 7

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313115

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100725

Year of fee payment: 7

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100725

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110725

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees