JPS62148883A - Electronic timepiece with function to discriminate leap year - Google Patents
Electronic timepiece with function to discriminate leap yearInfo
- Publication number
- JPS62148883A JPS62148883A JP61046714A JP4671486A JPS62148883A JP S62148883 A JPS62148883 A JP S62148883A JP 61046714 A JP61046714 A JP 61046714A JP 4671486 A JP4671486 A JP 4671486A JP S62148883 A JPS62148883 A JP S62148883A
- Authority
- JP
- Japan
- Prior art keywords
- year
- digit
- remainder
- leap
- circuit
- 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
- Electric Clocks (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、電子時計における閏年判定処理手段の改良に
関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an improvement of leap year determination processing means in an electronic timepiece.
時計の様に、基準信号上計数し、これ2時2分秒1年9
月2日それぞれに応じた桁毎に計数結果を出力する場合
は、各年が平年か閏年かに工って2月の月末処理を行う
必要がある0即ち、その年が閏年の場合は2月29日ま
で全有効日とみなしその翌日に3月1日への日送りを行
う。逆に平年の場合は2月28日までが有効日とし、そ
の翌日に6月1日に日送りしなければならない。そして
この閏年か平年か全判別する方法には、過去1)西暦年
号を数字の4で除算し、それが割り切れるか否かで閏年
か否かを判定する7j法。Like a clock, it counts on the reference signal, and this is 2 hours, 2 minutes, seconds, 1 year, 9.
If you want to output counting results for each digit according to the second day of the month, you need to calculate whether each year is a normal year or a leap year and then process the end of February. The 29th day of the month will be considered as the full effective date, and the date will be moved to March 1st the following day. Conversely, in normal years, the effective date is until February 28th, and must be moved to the next day, June 1st. The methods for determining whether it is a leap year or a normal year include: 1) The 7J method, which divides the Western calendar year number by the number 4 and determines whether it is a leap year or not based on whether or not it is divisible.
2)年十位桁がOt含む偶数でかつ年一位桁が0.4.
8のとき、又は年十位桁が奇数でかつ年一位桁が2.6
のときr閏年として判断する方法(特公昭5B−851
1による。これを回路的に実現した場合の回路構成図を
男7図に、又それをソフト処理し九時の流れ図t−第8
図に示す〕3)計時用の年桁のカウンターとは別に、閏
年判定用の4進カウンター七設け、その計数値が零のと
き閏年として判断する方法
等が存在していた。2) The tenth digit of the year is an even number including Ot, and the first digit of the year is 0.4.
8, or the tenth digit of the year is an odd number and the first digit of the year is 2.6
How to judge it as a leap year when
According to 1. The circuit configuration diagram when this is realized in a circuit is shown in Figure 7, and the flowchart at 9 o'clock t-8 shows the software processing of it.
As shown in the figure] 3) In addition to the year-digit counter for timekeeping, there were seven quaternary counters for determining leap years, and there was a method to determine that it was a leap year when the counted value was zero.
しかし従来技術(1)で示す様な方法では、四桁の除算
回路又は、除算用プログラムが必要となるtめ、回路規
模又は、処理プログラムの増加を招き1、更に処理時間
、消費電流の増大t−招いてし1うという問題点を有す
る。However, the method shown in prior art (1) requires a four-digit division circuit or a division program, which leads to an increase in circuit scale or processing program1, and further increases processing time and current consumption. It has the problem of inviting people.
又、従来技術(2)で示す様な方法では、該(1)に比
ベソフト、ハード的な負荷は軽減される。しかし処理と
しては、まず年十位桁が偶数か奇数かt判定し、その後
、年十位桁が偶数の場合は、年一位桁が0又は4又は8
、年十位桁が奇数の場合は、年一位桁が2又は6かを4
1定しなければならず、(第7図、第8図診照)処理が
1!雑化してしまうという問題点’に’llf“する。Furthermore, in the method shown in prior art (2), the software and hardware loads are reduced compared to the method (1). However, as a process, it is first determined whether the tenth digit of the year is an even number or an odd number, and then, if the tenth digit of the year is an even number, the first digit of the year is 0, 4, or 8.
, if the tenth digit of the year is an odd number, indicate whether the first digit of the year is 2 or 6.
1 must be determined, and the processing (see Figures 7 and 8) is 1! I'll ``llf'' the problem that it becomes cluttered.
又、従来技術の(3)に示す方法では、ハード又はソフ
ト的に、時計用のカウンターとは別に西進カウンターが
必要になり回路基規、ソフトの増大を招ぐ。更に、この
様なカウンタ一方法にした場合基本時計を修正する場合
は必ずこの西進カウンターのカウンター値も補正しなけ
ればならないという問題点上Mする。Furthermore, in the method (3) of the prior art, a westward counter is required in addition to the clock counter in terms of hardware or software, resulting in an increase in circuit standards and software. Furthermore, if such a counter method is adopted, the counter value of this westward counter must also be corrected whenever the basic clock is corrected, which is M.
裏って本発明はこの様な従来技術における問題点を解決
し、回路旧にもソフト的にもその規模を必g最低限に押
さえ、かつ処理そのものも簡易なものとし、消費電流、
処理時間の縮小上図り、小型携帯に適した汎用性の高い
、閏年判定機能付腕時計を提供する@を目的とする。On the other hand, the present invention solves these problems in the conventional technology, reduces the size of circuits and software to the necessary minimum, and simplifies the processing itself, reducing current consumption and
The purpose is to reduce processing time and provide a highly versatile wristwatch with a leap year determination function suitable for small portable devices.
本発明の閏年判定機能は電子時計は、基準信号を計数し
、その値を液晶等の表示装TJIL−を用いて表示する
電子時計にふ・いて。The leap year determination function of the present invention is based on an electronic timepiece that counts a reference signal and displays the value using a display device such as a liquid crystal display.
a)基本時計の年一位桁及び年十位桁tそれぞれ独立に
行う年桁計数手段
b)年十位桁の計数値を2倍する年十位桁乗算手段
C)該年十位桁t−2倍し九僅と、年一位桁の計数値゛
七加算し、その4の剰余を求める剰余検出手段
d)該剰余検出結果が零か否かに工って閏年か否か七判
定する閏年判定手段
全備えt事を特徴とする。a) Means for counting the year digits independently of the first digit and the tenth digit of the year b) Multiplication means for the tenth digit of the year by doubling the count value of the tenth digit of the year C) Tens digit t of the year - Remainder detection means for calculating the remainder of 4 by adding 2 times 90 and the count value of the first digit of the year by 7d) Determining whether or not it is a leap year by checking whether or not the remainder detection result is zero It is characterized by having a full range of leap year determination means.
本発明は以上の構氏°七Mするため、独立して計数され
た基本時計の年十位桁゛f年一位桁に看目し、1ず年十
位桁の計数値?、年十位桁刺算手段によって2倍し、そ
の結果と年一位桁の計数値七万口算する0そしてその加
算結果を4で割った剰余を、剰余検出手段に工って検出
し、それが零か否かを閏年判定手段に工って判別し、簡
単に閏年か否かの判定が可能となる。In order to carry out the above structure, the present invention looks at the tenth digit of the year and the first digit of the year of the basic clock, which are counted independently, and calculates the counted value of the tenth digit of the year? , multiply by 2 using year tenth digit subtraction means, calculate the result by 70,000 units of the count value of year first digit 0, and detect the remainder by dividing the addition result by 4 by using remainder detection means, By using a leap year determining means to determine whether or not it is zero, it becomes possible to easily determine whether or not it is a leap year.
以下、本発明について実施例に基づいて詳細に説明する
〇
第1図は本発明による閏年判定機能付電子時計の一実捲
例のブロック図でアub。Hereinafter, the present invention will be described in detail based on embodiments. Fig. 1 is a block diagram of an example of an electronic timepiece with a leap year determination function according to the present invention.
10は水晶振動子やセラミック振動子等を用いて基本信
号を発振させる発振回路である。20は該発振回路10
からの基準信号100を分周し1Hz等の信号101を
生成する分周回路である。10 is an oscillation circuit that oscillates a basic signal using a crystal resonator, a ceramic resonator, or the like. 20 is the oscillation circuit 10
This is a frequency dividing circuit that divides the frequency of a reference signal 100 from a 1 Hz signal and generates a signal 101 of 1 Hz or the like.
50は該信号101を秒→分→時と順次計数する時1分
1秒計数手段、31.32は該時1分2秒計数手段50
からの桁上げ信号102を順次計数する日桁計数手段及
び月桁計数手段である。53゜34.35.36は各々
該月桁計数手段32の桁上げ信号を順次計数する年一位
桁計数手段、年十位桁計数手段、年百位桁計数手段、年
十位桁計数手段である。50 is hour 1 minute 1 second counting means for counting the signal 101 in the order of seconds → minutes → hours; 31.32 is hour 1 minute 2 second counting means 50
These are day digit counting means and month digit counting means for sequentially counting carry signals 102 from . 53゜34, 35, 36 are year one digit counting means, year tenth digit counting means, year hundredth digit counting means, and year tenth digit counting means, respectively, which sequentially count the carry signals of the month digit counting means 32. It is.
40に該年十位桁計数手段の#数値を2倍にする年十位
桁剰算手段である050は該剰算結果と、年一位桁計数
手段53の計数1直とを刃口具し、ぞの四の剰余を求め
る剰余検出手段である。60は該剰余検出結果が零か否
かに工って、当年が閏年か否かを判別する閏年判定手段
であり、場合によっては年百位桁計数手段35、年十位
桁計数手段36の各計数値による閏年補正判定が必要と
なる。050, which is a year tenth digit surplus calculation means that doubles the # value of the year tenth digit counting means 53, is a cutting tool that doubles the # value of the year tenth digit counting means 53. This is a remainder detection means for finding the remainder of the fourth. Reference numeral 60 denotes a leap year determination means for determining whether or not the current year is a leap year by checking whether or not the remainder detection result is zero. Leap year correction judgment is required based on each count value.
〔詳細については後述〕。70は該閏年判定手段の判定
結果108の信号を受け、2月の月末修正処理を行う月
末補正手段である。[More details below]. Reference numeral 70 denotes month-end correction means that receives the signal of the judgment result 108 from the leap year judgment means and performs the end-of-month correction processing for February.
一力、82は外部スイッチであり、ここから取り込まれ
比信号は、81のスイッチ制御手段に裏って判別処理さ
れる。判別され友スイッチ信号のうち基本時計の修正信
号110については、基本時計修正制御手段80に出力
され、基本時計の計数手段(ろ0〜66〕から修正桁を
選択しその桁を修正するが、年桁が修正された場合は、
先述と同様に年十位桁5141算手段40、剰余検出手
段50、閏年判定手段60に裏って修正された年が、閏
年か否かを判別する。Reference numeral 82 is an external switch, and the ratio signal taken in from the switch is discriminated and processed by the switch control means 81. Among the discriminated friend switch signals, the basic clock correction signal 110 is output to the basic clock correction control means 80, selects a correction digit from the basic clock counting means (0 to 66), and corrects that digit. If the year digits have been corrected,
Similarly to the above, it is determined whether or not the year corrected by the year tenth digit 5141 calculating means 40, remainder detecting means 50, and leap year determining means 60 is a leap year.
尚、前述の30〜36,40,50,60゜70.80
,81.90の各手段については、回路として#面する
事も可能であるし、プログラムとしてソフト的に実現す
る事も可能である。In addition, the above-mentioned 30 to 36, 40, 50, 60°70.80
, 81.90 can be implemented as a circuit, or can be implemented in software as a program.
次に、本発明のポイントである、閏年判定処理の基本的
な考え力について説明する。Next, the basic thinking behind leap year determination processing, which is the key point of the present invention, will be explained.
−Sに閏年は4年に1回ずつ、即ち年桁を4で割って割
り切れる年が閏年であるとされている0但し、その年が
100で割り切れる場合は平年と見做し、更にその年が
400で割り切れた場合は閏年と見做す。- In S, a leap year occurs once every four years, that is, a year that is divisible by dividing the year digit by 4 is considered a leap year.0However, if the year is divisible by 100, it is considered a normal year, and If it is divisible by 400, it is considered a leap year.
工って今、1000年〜2099年までを対象として考
えると、任意の年(Y)は、年十位桁〜年一位桁の各桁
の計数値をa * b * Cr dとすれば、Y=a
X1000+bX100+cX10+dと表わされる。If we consider the period from 1000 to 2099, any year (Y) can be calculated as a * b * Cr d if the count value of each digit from the 10th digit to the 1st digit of the year is a * b * Cr d , Y=a
It is expressed as X1000+bX100+cX10+d.
工ってこれを4で割った剰余は、(以下これを、mod
aで我わす)
Y(moda )=aX1 oo O(moda )+
bX100 (moda )+cXiO(moda)+
d(moda)と?Lるが、1 (100、100にツ
イテU4O剰余に0であり、更に10=2*4+2で表
わされるため、最終的には
Y(moda)=c:B(modd)+a(moda)
−((c*z)+a)(LIIoaa) となる。The remainder obtained by dividing this by 4 is (hereinafter referred to as mod
a) Y(moda)=aX1 oo O(moda)+
bX100(moda)+cXiO(moda)+
What is d (moda)? L is 1 (100, 100, Tweet U4O remainder is 0, and it is further expressed as 10 = 2 * 4 + 2, so finally Y (moda) = c: B (modd) + a (moda)
-((c*z)+a)(LIIoaa).
即ち、任意の年が閏年か否かを判別するには、年十位桁
を2倍し比値と、年一位桁を加算した値の4の剰余を求
めれば良い事が分かる。もちろん、年十位桁を2倍し比
値の4の剰余を求め、それを年一位桁の4の剰余とを加
算しても構わないし、又、年十位桁の4の剰余を求め、
それを2倍して、年一位桁の4の剰余を加算しても構わ
ない。That is, in order to determine whether a given year is a leap year, it is sufficient to double the tenth digit of the year, calculate the ratio value, and find the remainder of 4, which is the sum of the first digit of the year. Of course, you can also double the tenth digit of the year to find the remainder of 4 in the ratio value and add it to the remainder of 4 in the first digit of the year, or you can also find the remainder of 4 in the tenth digit of the year. ,
You can also double it and add the remainder of 4 in the first digit of the year.
次に、本発明のポイントとなる部分について、ハード及
びソフト各々の実癩例に基づいて説明するO
第2図は、本発明を回路で構kzZ L九場合の一夷グ
ー例の論理回路図である。図中63.34は年一位桁カ
ウンタ、及び年十位桁ガウンタでめり、フリソブフロツ
1等を用いた二進に十進法(以下BCDコート°とよぶ
)による4ビツト出力のカウンタである。コ5.56は
年百位桁カウンタ、及び年十位桁用カウンタである。こ
の5il!2図の実抛例では、1901〜2099年を
対象年として扱つているため、百年桁以上は閏年判定処
理の対象にはなっていない。Next, the main points of the present invention will be explained based on actual examples of hardware and software. Fig. 2 is a logic circuit diagram of an example in which the present invention is implemented using a circuit. It is. In the figure, 63.34 is a 4-bit output counter in binary to decimal notation (hereinafter referred to as BCD code) using Frisobuflotz 1, etc., which is incremented by a year one digit counter and a year ten digit counter. 5.56 is a year hundreds digit counter and a year tenth digit counter. This 5il! In the example shown in FIG. 2, the years 1901 to 2099 are treated as target years, so the 100-year digit and above are not subject to leap year determination processing.
まr、年十位桁カウンタ34の4ビツトのBCDコード
は41の剰算用シフトレジスタc年十位桁剰算手段〕に
出力される。ここで左へ1回シフトする事に工ってレジ
スタの中の値へ1ビツトずつ左へ移行し、最下位ビット
には0が入り、年十位桁の計数値が2倍される0次に年
一位桁カウンタ53の計数値の下位2ビツトの出力及び
該剰算用シフトレジスタ41の左シフト結果の下位2ビ
ツトが51の剰余検出回路に出力される。The 4-bit BCD code of the year tens digit counter 34 is output to the remainder shift register 41 (year tens digit remainder calculation means). Here, by shifting to the left once, the value in the register is shifted to the left one bit at a time, the least significant bit is set to 0, and the count value of the tenth digit of the year is doubled. Then, the output of the lower two bits of the count value of the year one-digit counter 53 and the lower two bits of the left shift result of the remainder shift register 41 are output to the remainder detection circuit 51.
ここで各々下位2ビツトのみを剰余検出回路51に出力
しているのは、BCDコードでは上位2ビツトを無視す
る事(以下マスクすると工ぶ〕に工って4の剰余が求め
られるためである〇(例えば9(10進)=[1001
J(BCD)の4の剰余は1であり、これij: B
CDコードの上位2ビツトをマスクして5r00”Jt
求める事と等しい0〕
この様に、年十位桁を2倍した値の4の剰余と、年一位
桁の4の剰余は、51の剰余検出回路において2ピント
の加算処理される。この2ピントの加算処理によって、
年一位桁と年十位桁を2倍し1mの4の剰余が2ピント
のコードで求められる。The reason why only the lower two bits are output to the remainder detection circuit 51 is that in the BCD code, the remainder of 4 is obtained by ignoring the upper two bits (hereinafter referred to as masking). 〇(For example, 9 (decimal) = [1001
The remainder of 4 in J(BCD) is 1, which is ij: B
Mask the upper 2 bits of the CD code to 5r00”Jt
0, which is equal to what we want] In this way, the remainder of 4 of the value obtained by doubling the tenth digit of the year and the remainder of 4 of the first digit of the year are subjected to 2-pinto addition processing in the remainder detection circuit 51. By this 2-focus addition process,
Double the first digit of the year and the tenth digit of the year and find the remainder of 4 of 1m using a 2-pinto code.
更にこの2ピントのコードは61の閏年判定回路で排他
的論理和が求められ、2ビツトコードが「OO」の時、
月末1正手段70にハイレベルの信号161が出力され
る。Furthermore, this 2-pin code is subjected to an exclusive OR in the 61 leap year judgment circuit, and when the 2-bit code is "OO",
A high level signal 161 is output to the month-end first means 70.
又、これをソフト的に実現した場合のフローチャートを
第4図に示す。但し、ここではソフトの処理の関係上、
400で年十位桁カウンタの値を左へ1回シフトして2
倍したのち、401では年一位桁カウンタの値と年十位
桁カウンタの値を2倍した値を4ピントの加算処理をし
、その後、402で加算結果を左へ2回シフトして、四
の剰余を求めているが、これによって4ピツトのレジス
タ又はメモリの内容を左へ1ピントずつずらし最下位ピ
ントには順次0が入る。このシフト結果は加算結果を4
倍して上位2ピントをマスクした事になるため、それが
零が否かによって閏年か否かが判別できるが、正しい4
の剰余を求めている事にはならない。(正しい4の剰余
を求めるには第5図に示すように、年中位桁′t−2倍
して上位2ピントをマスクしく4の剰余を求め)、それ
と年一位桁の上位2ピントをマスクしたものを加算し更
にその上位2ピントをマスクする方法もある)次に、第
3図に示す実施例について説明する。FIG. 4 shows a flowchart when this is realized in software. However, due to software processing,
At 400, shift the value of the year tenth digit counter once to the left and set it to 2.
After the multiplication, at 401, the value of the one-digit year counter and the value of the tenth-digit counter of the year are multiplied by 4 points, and then at 402, the addition result is shifted to the left twice, The remainder of 4 is calculated by shifting the contents of the 4-pit register or memory to the left by 1 pin, and 0 is sequentially placed in the lowest pin. This shift result is the addition result of 4
Since it is multiplied and the top two points are masked, you can determine whether it is a leap year or not depending on whether or not there is a zero, but the correct 4
It does not mean that we are looking for the remainder of . (To find the correct remainder of 4, as shown in Figure 5, multiply the middle digit of the year by 't-2, mask the top 2 pintos, and find the remainder of 4.) (There is also a method of adding the masked values and then masking the top two focuses.) Next, the embodiment shown in FIG. 3 will be described.
この実施例は、100年桁以上についての閏年補正を含
んでおり、先例に比べて長期間に亘る閏年判定が可能に
なっている。This embodiment includes leap year correction for digits of 100 years or more, and enables leap year determination over a longer period of time than in the previous example.
まず55〜66は、各々二進化十進法によるカウンタで
あり、4ピントのBとDコードを出力する。52は剰余
検出回路であり、年十位桁の2倍するという操作の換わ
りに、年十位桁の最下位ピント(0ピント)をとシ、そ
れと年一位桁の第1ピントの排他的論理ntとシ、その
結果と、年一位桁の0ビツトとの排他的論理和をとって
、結果的に(年十位桁を2倍した値の4の剰余)と(年
一位桁の4の剰余)を加算し、更にその剰余を求め、そ
れが零か否かを判別する信号152を出力する。一方、
閏年判定回路62では、年一位桁、年十位桁が共に零で
かつ年十位桁を2倍した値と年百位桁の和の4の剰余が
零か否か、即ち、100年で割シきれ、かつ400年で
割シきれるか否かをチェックし、最終的には、その年が
、100年で割シ切れずにかつ、4の剰余が零となるか
、あるいは100年で割シ切れかつ400年で割り切れ
る年を閏年と判定し、閏年判定信号162を出力する。First, 55 to 66 are counters based on the binary coded decimal system, and output 4-pin B and D codes. 52 is a remainder detection circuit, and instead of multiplying the tenth digit of the year by two, it calculates the lowest focus (0 focus) of the tenth digit of the year, and exclusively doubles the first focus of the first digit of the year. Exclusively OR the logical nt and the 0 bit of the first digit of the year, and the result is (remainder of 4 of the value obtained by doubling the tenth digit of the year) and (the first digit of the year). (remainder of 4) is added, the remainder is further determined, and a signal 152 is output for determining whether or not it is zero. on the other hand,
The leap year judgment circuit 62 determines whether the first digit of the year and the tenth digit of the year are both zero and the remainder of 4 of the sum of the value obtained by doubling the tenth digit of the year and the hundredth digit of the year is zero, that is, 100. Check whether the year is divisible by 400 years and whether the year is divisible by 100 years and the remainder of 4 is zero, or 100 years. A year that is divisible by and evenly divisible by 400 years is determined to be a leap year, and a leap year determination signal 162 is output.
月末修正手段70においてはこの閏年判定信号162の
信号レベルに応じて2月の月末処理を行う。The month-end correction means 70 processes the end of February in accordance with the signal level of the leap year determination signal 162.
又、第6図は、この百年桁以上の補正を含めた閏年判定
の処理プログラムの70−チャートである。年一位桁、
年十位桁が00か否かで処理が分岐しているが、602
〜604と602′〜6041は処理プログラムと1は
同一であるため、サブルーチン化する事も可能である。Further, FIG. 6 is a 70-chart of a processing program for leap year determination including correction for 100-year digits or more. first digit of the year,
The processing branches depending on whether or not the tenth digit of the year is 00, but it is 602
~604 and 602'~6041 are the same as the processing program 1, so they can be made into subroutines.
又、602〜606の処理内容としては、先の第4図の
フローチャートと等しく、年十位桁のカウンタの値を左
へ1回シフトして2倍しく602) 、それと年一位桁
とを加算する(605) 、これを2回圧ヘシフトして
上位2ビツトをマスクし、加算結果の4の剰余が零か否
かと判断して、閏年判定クラブをセントしている。もち
ろん602〜606の処理を、先の笛5図に示した処理
に置き換えても構わない。In addition, the processing contents in steps 602 to 606 are the same as in the flowchart shown in FIG. Addition (605), this is shifted to double pressure, the upper two bits are masked, and it is determined whether the remainder of 4 in the addition result is zero or not, and the leap year judgment club is set. Of course, the processes 602 to 606 may be replaced with the processes shown in FIG. 5 of the whistle.
更に、ここの例では、年のカウンタをBODコード対応
の4ピントカウンタをして実施例を示しているが特にこ
れに限るものではない。Further, in this example, the year counter is a 4-pin counter corresponding to the BOD code, but the present invention is not limited to this.
又、剰余検出、閏年判定回路及び、各プログラム処理に
ついても、ここに挙げたものは一実施例にすぎず、特に
これに限定されるものではない。Furthermore, the remainder detection, leap year determination circuit, and each program processing are merely examples, and are not particularly limited thereto.
以上の様に、本発明によれば閏年判定機能付電子時計の
閏年判定において、基本時計の年一位桁及び年十位桁を
それぞれ独立に計数し、その年十位桁の計数値を2倍し
、それと年一位桁の和をとってその4の剰余を求め、そ
れが零か否かによって閏年か否かを判別するように構成
したので、任意の年の閏年判定処理が、極めて簡単な回
路及び処理プログラムによって単時間で実現可能になっ
たという効果を有する。As described above, according to the present invention, when determining a leap year in an electronic watch with a leap year determination function, the first digit of the year and the tenth digit of the year are counted independently, and the counted value of the tenth digit of the year is calculated as 2. The system is configured so that it is multiplied, the sum of the first digit of the year is calculated, and the remainder of 4 is determined, and whether or not it is a leap year is determined based on whether or not the remainder is zero. This has the advantage that it can be realized in a short time using a simple circuit and processing program.
特に回路的に構成した場合、年桁カウンターとしては一
般に良く使用されている4ピントカウンタのBCDコー
ド出力をそのまま用いる事ができるため、新たな付加回
路としては、下位2ピントの加算回路だけで良い。よっ
て従来の電子時計のシステム全体に対する回路負荷は極
めて少なく、コスト的にも消費電流の面からも大きな効
果を有する。又、これを更に応用1〜で年百位桁、年十
位桁を含めて、長期間に亘る閏年判定処理を行う場合も
、本発明によれば年十位、−位桁に対する処理と同様の
処理を年千位、百位桁に施せば良く、僅かに、年一位桁
、十位桁が共に零か否かをチェックする判別ゲート回路
を付加するだけである。In particular, when the circuit is configured, the BCD code output of a 4-pin counter, which is commonly used as a year digit counter, can be used as is, so the only new additional circuit required is an adder circuit for the lower 2 pins. . Therefore, the circuit load on the entire system of the conventional electronic timepiece is extremely small, and has great effects in terms of cost and current consumption. Furthermore, when performing leap year judgment processing over a long period of time, including the year hundredth digit and year tenth digit in Application 1~, according to the present invention, the processing for the year tenth place and - year digit is the same. It is sufficient to apply the above processing to the thousands and hundreds digits of the year, and only requires adding a discriminating gate circuit to check whether both the first and tenth digits of the year are zero.
よって回路的、消費電流的にもほとんど負荷をかけずに
、長期的に亘る閏年判定機能付電子時計への応用が可能
であるという効果を有する。Therefore, it has the effect that it can be applied to an electronic timepiece with a leap year determination function over a long period of time with almost no load on the circuit or current consumption.
もちろんソフト的に見ても、従来のもの(第8図参照)
に比べて分岐処理が少ないため、プログラム処理時間の
短縮及び消費電流の低減に大きな効果を有する。又、処
理そのものが4ピント単位の簡単な加算及び4ピントシ
フト処理が中心となっており、いかなる低ピントのcp
uを用いても簡単に実現できるという効果を有する。更
にこの応用として年百位、十位桁の処理を含め長期間に
亘る閏年判定処理を行う場合も剰余検出については年−
位、十位桁のそれと処理操作が同じであるためサブルー
チン化して、プログラムの削減が可能であるという効果
を有する。Of course, from a software perspective, it is the conventional one (see Figure 8).
Since there is less branch processing compared to the previous version, it has a great effect on shortening program processing time and reducing current consumption. In addition, the processing itself is centered on simple addition in 4-focus units and 4-focus shift processing, so any low focus CP
This has the advantage that it can be easily realized even by using u. Furthermore, as an application of this, when performing leap year judgment processing over a long period of time, including processing of the hundreds and tenth digits of the year, the remainder detection will be performed using the year -
Since the processing operations are the same as those for the digits and tens digits, it is possible to create a subroutine and reduce the number of programs.
もちろん、本発明によれば閏年判定は、基本時計の現在
の計数値たけに依存するため、外部信号による基本時計
の修正や、対象とする年が未来、過去いずれの年であっ
ても、これとは無関係に閏年判定処理が回置であるとい
う、極めて高い汎用性を有している。Of course, according to the present invention, leap year determination depends on the current count value of the basic clock, so it does not matter whether the basic clock is corrected by an external signal or the target year is in the future or the past. It has extremely high versatility in that the leap year determination process is inverted regardless of the date.
従って、本発明によれば低消費電流、小型携帯性を目的
とするあらゆる電子時計において、コスト、回路又はプ
ログラム規模の点からもほとんど負荷をかける事なく、
閏年判定機能を付加する事が可能となる。Therefore, according to the present invention, in any electronic watch that aims to have low current consumption and small size and portability, it can be used with almost no load in terms of cost, circuit or program size.
It becomes possible to add a leap year determination function.
第1図は、本発明の閏年判定機能付電子時計のブロック
図、第2図は本発明の閏年判定処理回路の論理回路図、
第3図は本発明を応用した年百位、十位桁を含めた閏年
判定処理回路の論理回路図。
第4図及び第5図は本発明の閏年判定処理プログラムの
フローチャート図である。第6図は、本発明を応用した
年百位、十位桁を含めた閏年判定処理プログラムのフロ
ーチャート図である。第7図は従来例による閏年判定の
論理回路図。第8図は従来例による閏年判定処理プログ
ラムのフローチャート図である。図中
10・・・発振回路
20・・・分周回路
60・・・時分秒計数手段
51・・・日桁計数手段
52・・・月桁計数手段
35・・・年一位桁計数手段
54・・・年十位桁計数手段
65・・・年百位桁計数手段
56・・・年十位桁計数手段
40・・・年十位桁乗算手段 41・・・乗算用シフト
レジ50・・・剰余検出手段 スタ60・・
・閏年判定手段 51.52・・・剰余検出口70
・・・月末補正手段 路80・・・基本
時計修正制御手段
81・・・スイッチ制御手段 61.62・・・閏年判
定画82・・・外部スイッチ 路90・
・・表示出力制御装置 0・・・入力端子91・・・表
示装置
900.901・・・出力端子
以 上
出願人 セイコーエプソン株式会社
代理人 弁理士 最 上 務、・。
)−1,゛〜°゛;
第4図FIG. 1 is a block diagram of an electronic timepiece with a leap year determination function of the present invention, and FIG. 2 is a logic circuit diagram of a leap year determination processing circuit of the present invention.
FIG. 3 is a logic circuit diagram of a leap year determination processing circuit including the hundreds and tens digits of the year to which the present invention is applied. 4 and 5 are flowcharts of the leap year determination processing program of the present invention. FIG. 6 is a flowchart of a leap year determination processing program including year hundreds and tens digits to which the present invention is applied. FIG. 7 is a logic circuit diagram for leap year determination according to a conventional example. FIG. 8 is a flowchart of a conventional leap year determination processing program. In the figure, 10... Oscillation circuit 20... Frequency dividing circuit 60... Hour minute/second counting means 51... Day digit counting means 52... Month digit counting means 35... Year one digit counting means 54... Year tens digit counting means 65... Year hundreds digit counting means 56... Year tens digit counting means 40... Year ten digit multiplication means 41... Shift register for multiplication 50...・Remainder detection means star 60...
・Leap year determination means 51.52... Surplus detection port 70
. . . Month end correction means 80 . . . Basic clock correction control means 81 . . . Switch control means 61. 62 .
...Display output control device 0...Input terminal 91...Display device 900.901...Output terminal or higher Applicant: Seiko Epson Co., Ltd. Agent, Patent Attorney Mogami,... )−1,゛~°゛; Figure 4
Claims (1)
表示する電子時計において、 a)基本時計の年一位桁及び年十位桁をそれぞれ独立に
計数を行う年桁計数手段 b)年十位桁の計数値を2倍する年十位桁乗算手段 c)該年十位桁を2倍した値と、年一位桁の計数値を加
算し、その4の剰余を求める剰余検出手段 d)該剰余検出結果が零か否かによって、閏年か否かを
判定する閏年判定手段 を有する事を特徴とする閏年判定機能付電子時計。[Scope of Claims] An electronic timepiece that counts reference signals and displays the value using a display device such as a liquid crystal, which: a) counts independently the first digit of the year and the tenth digit of the year of the basic clock; Year digit counting means b) Year 10th digit multiplication means that doubles the count value of the year 10th digit c) Adds the value obtained by doubling the year 10th digit and the count value of the year 1st digit; d) Remainder detection means for determining the remainder of d) An electronic timepiece with a leap year determination function, comprising a leap year determination means for determining whether or not it is a leap year based on whether or not the remainder detection result is zero.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60-205647 | 1985-09-18 | ||
JP20564785 | 1985-09-18 |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS62148883A true JPS62148883A (en) | 1987-07-02 |
JPH0731255B2 JPH0731255B2 (en) | 1995-04-10 |
Family
ID=16510354
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61046714A Expired - Lifetime JPH0731255B2 (en) | 1985-09-18 | 1986-03-04 | Electronic clock with leap year determination function |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0731255B2 (en) |
-
1986
- 1986-03-04 JP JP61046714A patent/JPH0731255B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JPH0731255B2 (en) | 1995-04-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6809993B1 (en) | Electronic timepiece including a time related data item based on a decimal system | |
KR950006580B1 (en) | Divisional operation system | |
CN101738238B (en) | Liquid level metering device with computer and method for controlling computer. | |
JPS62191926A (en) | Arithmetic unit | |
JPS62148883A (en) | Electronic timepiece with function to discriminate leap year | |
US4330840A (en) | Multi-function electronic digital watch | |
US9921605B2 (en) | Apparatus and method using first and second clocks | |
JPS6035701B2 (en) | Date information processing device | |
KR100554488B1 (en) | Comb filter | |
JPS6029408B2 (en) | divider | |
US6820108B2 (en) | Method and apparatus to perform division in hardware | |
SU1043640A1 (en) | Binary-decimal code substraction device | |
JPH0680438B2 (en) | Electronic clock with automatic day of the week device | |
SU659977A1 (en) | Arrangement for checking frequency divider | |
JPH0655207B2 (en) | Electronic device with pulse rate detection function | |
SU824203A1 (en) | Device for adding n-digit decimal numbers | |
JPS6213636B2 (en) | ||
JPS60134975A (en) | Arithmetic circuit of sum of products | |
JPS626326A (en) | Arithmetic processor | |
SU579613A1 (en) | Device for serial addition and substraction | |
JPS59224590A (en) | Detecting method of leap year | |
KR880001343B1 (en) | Linear feedback shift register | |
JPH03211491A (en) | Electronic timepiece | |
SU517152A1 (en) | Periodic Pulse Frequency Multiplier | |
SU1266009A1 (en) | Device for generating integral characteristics of modular code |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
EXPY | Cancellation because of completion of term |