KR830000625B1 - Time data processing device - Google Patents

Time data processing device Download PDF

Info

Publication number
KR830000625B1
KR830000625B1 KR1019790001135A KR790001135A KR830000625B1 KR 830000625 B1 KR830000625 B1 KR 830000625B1 KR 1019790001135 A KR1019790001135 A KR 1019790001135A KR 790001135 A KR790001135 A KR 790001135A KR 830000625 B1 KR830000625 B1 KR 830000625B1
Authority
KR
South Korea
Prior art keywords
circuit
clock
output
memory
data
Prior art date
Application number
KR1019790001135A
Other languages
Korean (ko)
Inventor
마모루 미즈노
한조오 쯔즈기
Original Assignee
가시오 도시오
가시오 게이상기 가부시기 가이샤
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 가시오 도시오, 가시오 게이상기 가부시기 가이샤 filed Critical 가시오 도시오
Priority to KR1019790001135A priority Critical patent/KR830000625B1/en
Application granted granted Critical
Publication of KR830000625B1 publication Critical patent/KR830000625B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)

Abstract

내용 없음.No content.

Description

계시 데이터 처리장치Time data processing device

제1a도 및 제1b도는 본 발명의 일실시예를 표시한 블록 다이어 그램.1A and 1B are block diagrams showing an embodiment of the present invention.

제2도는 제1도에 도시한 오아게이트 그룹의 구체적 예시블록 다이어 그램.FIG. 2 is a concrete example block diagram of the oragate group shown in FIG. 1. FIG.

제3도는 제1도시의 시계용 메모리 내의 RAM의 기억 영역 예시도.3 is a diagram showing a storage area of a RAM in the clock memory of the first city.

제4도는 제1도시의 시계회로 구성을 도시한 블록 다이어 그램.4 is a block diagram showing the configuration of the clock circuit of the first city.

제5도는 제4도시의 랫치 회로의 구체적 예시 블록 다이어 그램.5 is a specific block diagram of the latch circuit of FIG.

제6도는 (a), (b), (c)는 시계용 메모리가 CPU에 의하여 악세스 될 때의 동작을 설명하기 위한 타입 챠아트.6A, 6B, and 6C are type charts for explaining the operation when the clock memory is accessed by the CPU.

제7도는 CPU가 전술한 시계용 메모리와 데이터의 수수 할 때의 동작을 설명하는 플로 차아트.FIG. 7 is a flowchart illustrating the operation when the CPU receives the aforementioned clock memory and data.

제8도는 (a), (b), (c)는 정전시 에서의 제1도 도시 회로의 동작을 설명하는 타임 챠아트.8 is a time chart illustrating the operation of the circuit shown in FIG. 1 in the case of a power failure.

제9도는 제1도 도시 시계용 메모리의 내의 각종 데이터에 의하여 처리 될 때의 동작을 설명하기 위한 플로 챠아트 이다.FIG. 9 is a flowchart for explaining the operation when processed by various data in the memory of FIG.

본 발명은 시계회로를 갖는 계시 데이터 처리장치에 관한 것으로, 종래에는 예 : 시계부 전자탁상 계산기와 같이 시계회로를 갖는 계산기 장치가 실용화 되고 있다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock data processing apparatus having a clock circuit. Conventionally, a calculator apparatus having a clock circuit such as a clock electronic desk calculator has been put into practical use.

그러나, 시계회로와 CPU(중앙처리 장치)는 각각 독립하여 동작하고 있음으로 시계회로내의 계시 데이터를 CPU에 독출함과 동시에 이 계시데이터에 의한 여러가지 처리를 한다 함은 대단히 곤란 하였었다.However, since the clock circuit and the CPU (central processing unit) operate independently of each other, it is very difficult to read out the time data in the clock circuit to the CPU and perform various processing by the time data.

때문에 종래의 장치에 있어서는 시계 모우드와 계산기 모우드를 절환 사용하는 것으로, 시계 회로를 단순히 결합한 것에 불과하다.Therefore, in the conventional apparatus, the clock mode and the calculator mode are used by switching, which is simply a combination of clock circuits.

따라서 계시 데이터를 사용한 여러 가지 처리, 예 : 시각에 따라 연산종류를 변경할 경우, 시간대(時間帶)별로 데이터를 집게 할 경우등의 복잡한 처리는 이루어질 수 없었다.Therefore, various processing using time data, such as changing the operation type according to time, and complicated processing such as pinching data by time zone, could not be performed.

또 소정의 시각을 설정하고, 시계회로의 계시 데이터 즉, 현재 시각과의 일치를 검출하여 설정시각에 소정의 동작을 하는 기능을 갖는 것에서는 CPU는 정기적으로(예 : 1초마다) 시계회로를 악세스(access)하여 상술한 일치검출 동작을 하게 된다.In addition, if the predetermined time is set, and the clock circuit has the function of detecting the time data, that is, coinciding with the current time, and performing a predetermined operation at the set time, the CPU periodically executes the clock circuit (for example, every second). Access is performed to perform the above-described coincidence detection operation.

이러한 경우, CPU가 시계회로를 악세스 하는 시간 및 일치 검출하는 시간은 짧을 수록 CPU의 부담은 적어진다.In this case, the shorter the CPU access time and the coincidence detection time, the less the burden on the CPU.

본 발명은 상술한 실정을 감안하여 창안된 것으로서, 시계 회로의 있어서의 계시 동작과 그 계시 데이터를 사용하는 여러가지의 처리를 용이하게 하는 계시 데이터 처리장치를 제공함을 목적으로 한다.SUMMARY OF THE INVENTION The present invention has been made in view of the above-described situation, and an object thereof is to provide a time data processing apparatus for facilitating various operations using the time data and the time operation in the clock circuit.

상술한 목적을 달성하기 위하여 본 발명은 시계회로와 중앙처리 장치와의 사이에 시계용 메모리를 형성, 전술 시계 회로는 일정 시각마다 전술한 시계용 메모리 내의 데이터를 독출하여 계시 데이터를 갱신하고, 이 갱신된 데이터를 재차 전술한 시계용 메모리에 서입토록 하고 중앙처리 장치는 전술한 시계용 메모리를 악세스 할 필요가 있을때에 전술한 시계회로가 전술한 시계용 메모리를 악세스 하도록 한 것으로, 중앙처리 장치는 전술한 시계용 메모리를 게시 동작중 이외에는 자유로히 악세스 하고 계시 데이터에 의거한 여러가지 연산 처리를 할수 있도록 계시 데이터 처리 장치를 제공하는 것이다.In order to achieve the above object, the present invention forms a clock memory between the clock circuit and the central processing unit, and the tactical clock circuit reads the data in the aforementioned clock memory at regular time intervals and updates the time data. The updated data is written back into the aforementioned clock memory, and the central processing unit causes the aforementioned clock circuit to access the aforementioned clock memory when it is necessary to access the aforementioned clock memory. A time data processing apparatus is provided so that the above-described clock memory can be freely accessed and various calculation processing based on time data can be performed.

본 발명은 시계회로 내에서 정기적으로 설정 시각과 현재 시각등을 비교하고, 일치가 검술되면 전술한 시계용 메모리 내의 훌랙(flag)을 셋트 하여 두고 전술한 CPU는 시계용 메모리 악세스 할때에 그 훌랙 내용만을 판정하여 처리하도록 된 것임으로, CPU의 전술한 시계용 메모리에 대한 악세스 시간은 최소한으로 줄이며, 또 전술한 시계용 메모리 내에 다수의 시각을 설정할 경우에도 현재시각과의 일치 검술은 CPU와는 독립적으로 시계회로 내에서 이루어짐으로 CPU의 부담을 지극히 가볍게 할 수 있는 것이다.The present invention compares a set time and a current time periodically in a clock circuit, sets a flag in the above-described clock memory when a match is detected, and the above-described CPU accesses the clock when accessing the clock memory. Since only the contents are determined and processed, the CPU access time for the aforementioned clock memory is reduced to a minimum, and even when multiple clocks are set in the aforementioned clock memory, matching with the current time is independent of the CPU. This can be done in the clock circuit, making the CPU burden extremely light.

이하 도면에 따라 본 발명의 실시예를 전자식 금전 등록기의 예를 들어 설명한다.DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of the present invention will be described with reference to the drawings by way of example of an electronic cash register.

제1도는 본 발명을 응용한 전자식 금전등록기의 전체 계통 구성도이다. CPU(중앙 처리 장치) 1은 메모리 회로 2 및 시계용 메모리 회로 3에 대하여 데이터버스 DB 및 행(行) 어드레스 버스 RB, 열(列) 어드레스 버스 CB에 의하여 각각 접속되어 있으며, 상술한 메모리 회로 2 및 시계용 메모리 회로 3은 CPU1에서 보내지는 칩 이내이블(Chip Enable) 신호 CE1 및 CE2에 의하여 칩 지정이 이루어짐과 동시에 독출/서입신호 R/W1로서 독출, 혹은 서입지정이 이루어진다.1 is an overall system configuration diagram of an electronic cash register to which the present invention is applied. The CPU (central processing unit) 1 is connected to the memory circuit 2 and the clock memory circuit 3 by the data bus DB, the row address bus RB, and the column address bus CB, respectively. and a clock circuit for a memory 3 is performed within the chips sent by the CPU1 table (chip Enable) signals CE1 and CE2 by the chip specify the yirueojim and at the same time the read / seoip signal R / W read out as the first, or standing position affection.

또 상술한 CRU1에는 데이터 버스 DB 및 어드레스 버스 CB를 개하여 I/O 포오트 4가 접속된다. 이 I/O 포오트 4에는 CPU1에서 작동신호 J가 부여된다.The CRU1 described above is connected to the I / O port 4 by opening the data bus DB and the address bus CB. This I / O port 4 is provided with an operating signal J at CPU1.

또 상술한 I/O 포오트 4에는 인자부 5 및 표시부 6, 키 입력부 7, 알람(alarm) 보지용 스피커 8이 각각 접속된다.The printing unit 5 and the display unit 6, the key input unit 7, and the alarm holding speaker 8 are connected to the above-mentioned I / O port 4, respectively.

인자부 5는 에 : 라인 프린더(Line Printer)로 인자드럼(Drum)의 인자 위치 신호 T를 I/O 포오트 4에 보내, 이 인자위치 신호 T와 I/O 포오트 4의 인자용 버퍼(Buffer) 21내의 데이터와의 일치로서 발생되는 햄머 구동신호 HD에 의하여 햄머를 구동하고 리시이르 용지(用紙) 및 찬넬(Chanel) 용지에 대하여 인자한다.The print section 5 sends a print position signal T of the print drum to the I / O port 4 by using a line printer, and the print position buffer T and the buffer for printing the I / O port 4 are printed. (Buffer) The hammer is driven by the hammer drive signal HD generated in accordance with the data in 21, and printed on the sheet of paper and chanel.

표시부 6은 I/O 포오트 4에서 디짓트 신호 I/O 및 I/O 포오트 24의 표시용 버퍼 22내의 데이터를 디코더한 시그멘트 신호 SG에 따라서 표시 동작한다.The display unit 6 performs display operation in accordance with the segment signal SG decoded from the digit signal I / O and the display buffer 22 of the I / O port 24 by the I / O port 4.

또 키입력부 7은, 키 조작을 했을 경우 I/O 포오트 4에서 타임 신호 KP에 따라서 키입력신호 K1을 포오트 4내의 입력용 버퍼 23에 입력한다.In addition, the key input unit 7 inputs the key input signal K 1 to the input buffer 23 in the port 4 in response to the time signal KP in the I / O port 4 when the key operation is performed.

표 I/O 포오트 4에서 출력되는 알람 신호 AL는 스피커 8을 구동 한다.The alarm signal AL output from Table I / O Port 4 drives Speaker 8.

또 수집기 24는 데이터버스 DB를 개하여 CPU1과 접속되며 CPU1에서의 콘트롤 신호 L도 입력된다.The collector 24 is connected to CPU1 by opening a data bus DB, and the control signal L from CPU1 is also input.

시계용 메모리 회로 3은 시계용 메모리 301을 갖이며, 이 시계용 메모리 301내의 데이터는 게이트 회로 302를 개하여 시계회로 9에 입력됨과 동시에, 계시중을 표시하는 부호를 서입하기 위한 OR게이트 그룹 303을 개하여 데이터 버스 DB에 접속된다.The clock memory circuit 3 has a clock memory 301. The data in the clock memory 301 is inputted to the clock circuit 9 through the gate circuit 302, and at the same time, the OR gate group 303 for writing a sign indicating the clock is displayed. Is connected to the data bus DB.

다시 데이터 버스 DB위의 데이터 또는 시계회로 9내의 데이터는 게이트 회로 304를 개하여 상술한 시계용 메모리 301에 입력된다.The data on the data bus DB or the data in the clock circuit 9 are again input to the clock memory 301 through the gate circuit 304.

또 게이트 회로 305에는 CPU1에서의 열 어드레스 및 시계회로 9에서의 열 어드레스가 입력된다. 게이트 회로 306에는 CPU1에서의 행 어드레스 및 시계회로 9에서의 행 어드레스가 입력된다.A column address in CPU1 and a column address in clock circuit 9 are input to gate circuit 305. The row address in CPU1 and the row address in clock circuit 9 are input to the gate circuit 306.

게이트 회로 306 및 307의 출력은 디코더 311을 개하여 시계용 메모리 301에 부여 되어 디코더 311의 특정 어드레스는 앤드 회로 312에 입력된다.The outputs of the gate circuits 306 and 307 are provided to the clock memory 301 via the decoder 311, and the specific address of the decoder 311 is input to the AND circuit 312.

CPU1에서 출력되는 신호 R/W1및 신호 CE2는 앤드 회로 307을 개하여 게이트 회로 308에 입력된다. 이 게이트 회로 308에는 다시 시계회로 9에서 R/W2가 입력된다.The signals R / W 1 and the signal CE 2 output from the CPU 1 are input to the gate circuit 308 by opening the AND circuit 307. R / W 2 is again input to the gate circuit 308 by the clock circuit 9.

또 시계회로 9는 1초에 1회 계시 동작을 하는 것으로, 계시 동작 기간의 15,625m sec사이 게시 중 신호 TC로 출력한다.In addition, the clock circuit 9 performs a time-keeping operation once per second, and outputs the signal TC during posting between 15,625 msecs of the time-keeping operation period.

이 게시중 신호 TC는 오아회로 309를 개하여 상술한 게이트 회로 302, 304, 305, 306, 308에 입력되며, 이때 CPU1에서의 행 어드레스, 열 어드레스, R/W1, CE2, 데이터 버스 DB는 시계용 메모리 301에서 단락되며, 시계용 메모리 301은 시계회로 9와 접속된다.This posting signal TC is inputted to the above-described gate circuits 302, 304, 305, 306, and 308 with an OR circuit 309, where a row address, a column address, R / W 1 , CE 2 , and a data bus DB at CPU1. Is shorted in the clock memory 301, and the clock memory 301 is connected to the clock circuit 9. As shown in FIG.

다시 상술한 오아회로 309를 개하여 출력되는 계시중 신호 TC는 앤드 회로 312에도 부여된다. 이 앤드회로 312의 출력은 상술한 OR 게이트 그룹 303에 입력되며 앤드 회로 312의 출력은 "1"일때에, 병열 4빗트의 데이터 버스 DB에 대하여 게시중 부호[1111]을 출력 한다.Again, the clock signal TC outputted by opening the above-described OR circuit 309 is also given to the AND circuit 312. The output of the AND circuit 312 is input to the above-described OR gate group 303, and when the output of the AND circuit 312 is "1", it outputs the publishing code [1111] to the data bus DB of 4 bits of parallel.

이 OR게이트 그룹 303의 회로 예를 제2도에 표시한다. 게이트 회로 302에서 출력되는 병열 4빗트 데이터는 각각 오아 회로 313, 314, 315, 316에 입력된다.A circuit example of this OR gate group 303 is shown in FIG. Parallel 4-bit data output from the gate circuit 302 is input to the OR circuits 313, 314, 315, and 316, respectively.

한편, 앤드회로 312의 출력이 오아회로 313, 314, 315, 316에 공통으로 입력된다.On the other hand, the output of the AND circuit 312 is commonly input to the OR circuits 313, 314, 315, and 316.

상술한 각 오아회로 313∼316의 출력은 병열 4빗트 데이터로서 데이터 버스 DB에 송출된다.The outputs of the above-described OR circuits 313 to 316 are sent to the data bus DB as parallel 4-bit data.

즉 CPU1은 전술한 시계회로 9가 계시중인가 아닌가를 알기 위하여 특정 어드레스로서 앤드 회로 312를 도통 상태로 한다.That is, the CPU 1 turns on the end circuit 312 as a specific address in order to know whether or not the clock circuit 9 described above is being clocked.

이 앤드회로 312 타방에 오아회로 309를 개하여 계시 중 신호 RC가 입력되어져 있고, 상술한 어드레스 지정중에 이 신호 RC가 "1"일 경우에는 앤드 회로 312의 출력이 "1"가 되며 OR게이트 그룹 303으로 계시중 부호[1111]가 서입되며 데이터 버스 DB를 개하여 CPU1에 독입된다. CPU1은 계시중 부호[1111]를 검출 했을 경우에는 전술한 시계용 메모리 301을 악세스 하지 않게 된다.If the RC signal 309 is input to the other end of the AND circuit 312, and the time signal RC is input, and the signal RC is "1" during the addressing mentioned above, the output of the AND circuit 312 becomes "1", and the OR gate group A clock sign [1111] is written to 303, and is read into CPU1 by opening the data bus DB. When the CPU 1 detects the clock code 1111, the CPU 1 does not access the clock memory 301 described above.

또 제1도 도시의 전원부 10은 교류전원 11을 사용하고 있으며 이 교류전원 11은 파워 스위치(Power Switch) 12를 개하여 전원 트랜스 13에 공급된다.In addition, the power supply unit 10 shown in FIG. 1 uses an AC power source 11. The AC power source 11 is supplied to the power transformer 13 through a power switch 12.

이 전원 트랜스 13의 2차 권선 출력 전압은 전파 정류회로 14에 의하여 정류됨과 동시에 평활(平滑) 콘덴서 CA로 평활되여 DC-DC 콘버터 15에 입력된다.The secondary winding output voltage of the power transformer 13 is rectified by the full-wave rectifier circuit 14 and smoothed by the smoothing capacitor CA and input to the DC-DC converter 15.

이 경우 상술한 평활 콘덴서 CA는 (+)전위 측이 접지된다. 상술한 DC-DC 콘버터 15는 입력 전압을 여러 가지 전압으로 변환하여 출력하는 것으로 그 출력 전압은 메모리 회로 2, 시계용 메모리 회로 3, 시계회로 9를 제외한 기타의 회로 100에 공급된다.In this case, the smoothing capacitor CA described above is grounded at the positive potential side. The above-described DC-DC converter 15 converts an input voltage into various voltages and outputs the voltage. The output voltage is supplied to the circuit 100 other than the memory circuit 2, the clock memory circuit 3, and the clock circuit 9.

또 상술한 전원 트랜스 13의 2차 권선의 일단과 접지 사이에는 도시 극성의 다이오드 16 및 콘덴서 CB의 직렬회로가 접속된다.In addition, a series circuit of the diode 16 and the capacitor CB of the illustrated polarity is connected between one end of the secondary winding of the power supply transformer 13 and the ground.

이 경우, 콘덴서 CA, CB는 CA》CB의 관계로 설정된다.In this case, the capacitors CA and CB are set in a relationship of CA >> CB.

그리고 이 다이오드 16과 콘덴서 CB와의 접속점 A에 발생하는 전압은 인버어터 310을 개하여 상술한 오아회로 309에 공급됨과 동시에 인버어터 17.18을 개하여 앤드 회로 19의 일방에 입력된다.The voltage generated at the junction A between the diode 16 and the capacitor CB is supplied to the OR circuit 309 through the inverter 310 and input to one of the AND circuits 19 through the inverter 17.18.

앤드회로 19의 타방에는 CPU1에서 CE1이 입력되어 이 앤드회로 19의 출력이 메모리회로 2회 칩 이네이블 신호가 된다.On the other side of the AND circuit 19, CE 1 is inputted from the CPU 1 , and the output of the AND circuit 19 becomes the memory circuit twice chip enable signal.

또 전원 20은 전원 OFF시, 및 정전시에도 메모리회로 2, 시계용 메모리 회로 3, 시계회로 9, 로 된 회로 200에 전원을 공급한다.The power supply 20 supplies power to the circuit 200 consisting of the memory circuit 2, the clock memory circuit 3, the clock circuit 9, even when the power supply is turned off and in the case of a power failure.

제3도는 시계용 메모리 301의 기억 영역을 표시하는 것으로, 이 메모리는 RAM로 구성되어져 있다.3 shows a storage area of the clock memory 301, which is composed of RAM.

즉, 이 RAM, 4행 16열 구성으로 되며 0행줄에는 11열∼0열에 년, 월, 일, 시, 분, 초의 현재 날자 및 시각 데이터가 서입된다.In other words, the RAM, 4 rows and 16 columns are configured, and the current date and time data of the year, month, day, hour, minute, and second are written in the 11 rows to 0 columns in the 0 row.

1행줄에는 13열 2열에 종류의 수집(收集)될 시각 데이터 TR3∼TR1, 0열 줄에 수집 훌랙 TRF가, 또 2행줄에는 13열∼2열에 3종류의 점검될 시각 데이터 RE3∼RE1, 0열줄에 점검훌랙 REF가 그리고 3행줄에는 13열∼2열에 3중국의 알람의 시각 데이터 AL3∼AL1, 0열중에 알람훌랙 ALF가 각각 서입된다.1 haengjul has 13 columns in column 2 the type of collection (收集) be the time data TR3~TR1, collected hulraek TRF 0 column line, and 2 is 13 10-2 haengjul column 3 type to be checked time data of the RE 3 ~RE 1 , 0 yeoljul checked hulraek REF haengjul and 3, the 13 columns 10-2 alarm hulraek ALF to the third alarm data AL 3 ~AL 1, 0 immersed in China respectively seoip.

상술한 수집훌랙 TRF는 수집 시각데이터 TR1∼TR3이 현재 시각에 일치하였는가, 아닌가를 표시하는 것으로, 0열 내의 3빗트를 이용하고 수집 시각 데이터 TR1∼TR3이 현재 시각에 일치한 경우에 그 대응 빗트에 "1" 신호를 셋트한다.The collection flag TRF described above indicates whether the collection time data TR 1 to TR 3 correspond to the current time or not, and when the collection time data TR 1 to TR 3 correspond to the current time using three bits in column 0 Sets the "1" signal to the corresponding bit.

또 점검훌랙 REF, 알람훌랙 ALF에 대하여도 같으며 0열 내의 3빗트를 이용하고, 점검시각 데이터 RE1∼RE2알람 시각 데이터 AL1∼AL3가 현재 시각에 일치할 경우에 그 대응한 빗트 "1" 신호를 셋트한다.The same applies to the check block REF and the alarm block ALF. If the check time data RE 1 to RE 2 alarm time data AL 1 to AL 3 coincide with the current time, use the 3 bits in the 0 column. Set the "1" signal.

제4도는 시계회로 9를 상세하게 도시한 회로도 로서, 도면중 901은 예 : 32KHz의 기준펄스 신호를 발생하는 펄스 발생회로이며 그 발진출력은 분주카운터 902에 보내져 분주된다.4 is a circuit diagram showing the clock circuit 9 in detail. In the drawing, 901 is a pulse generating circuit for generating a reference pulse signal of, for example, 32 KHz, and its oscillation output is sent to the dividing counter 902 and divided.

이 분주 카운터 902는 에 : 15빗트로 구성되며, 입력 된 32KHz의 신호를 순차 분주하고 최종적으로 1Hz의 신호까지 분주한다.This dividing counter 902 consists of 15 bits, and sequentially divides the input 32KHz signal and finally divides the signal up to 1Hz.

그리고 상술한 분주 카운터 902에 있어서 분주된 8KHz, 4KHz의 빗트 출력은 앤드 회로 903, 2KHz∼256Hz의 빗트 출력은 앤드 회로 904에 입력되며 128Hz∼32Hz 빗트 출력은 앤드 회로 905에 입력되며, 16HZ-1Hz의 빗트 출력은 제로 검출회로 907에 입력된다. 이 제로 검출 회로 907은 분주 카운터 902의 32Hz∼1Hz의 전빗트 출력이 제로가 된 상태를 검출하여 "1" 신호를 출력하는 것으로, 그 검출 출력은 앤드회로 903∼905에 게이트 제어 신호로서 가해짐과 동시에 계시중 신호 TC로서 전술한 시계용 메모리회로 301에 가해진다.In the above-described frequency dividing counter 902, the 8KHz and 4KHz bit outputs are divided into the AND circuit 903, and the 2KHz and 256Hz bit outputs are input to the AND circuit 904, and the 128Hz and 32Hz bit outputs are input to the AND circuit 905, and 16HZ-1Hz. The bit output of is input to the zero detection circuit 907. The zero detection circuit 907 detects a state in which the 32-Hz to 1-Hz all-bit output of the frequency division counter 902 has become zero, and outputs a "1" signal. The detection output is applied to the end circuits 903 to 905 as a gate control signal. At the same time, the clock signal is applied to the clock memory circuit 301 as the clock signal TC.

그리고 상술한 앤드 회로 903의 출력은 빗트 디코더 908, 앤드 회로 904의 출력은 디짓트 디코더 909, 앤드 회로 905의 출력은 워드 디코더 910에 가해진다. 이리하여 상술한 빗트 데코오드 908 및 디짓트 디코더 209, 워드 디코더 910의 각기 대응한 출력 B0∼B3, Do∼D15W0∼W3은 타임 콘트롤 회로 911에 입력된다. 그리고 앤드 회로 904의 출력은 열 어드레스로서, 앤드 회로 905의 출력은 행 어드레스로서 분주회로 902의 128Hz 빗트 출력은 R/W2로서 시계용 메모리회로 3에 입력된다.The output of the AND circuit 903 is applied to the bit decoder 908, the output of the AND circuit 904 is applied to the digit decoder 909, and the output of the AND circuit 905 is applied to the word decoder 910. The outputs B 0 to B 3 and D o to D 15 W 0 to W 3 corresponding to the bit decoder 908, the digit decoder 209, and the word decoder 910 described above are input to the time control circuit 911. The output of the AND circuit 904 is a column address, the output of the AND circuit 905 is a row address, and the 128 Hz bit output of the frequency divider circuit 902 is input to the clock memory circuit 3 as R / W 2 .

이리하여 제로 검출회로 907에서 계시중 신호 TC "1"가 출력되어 있을때에는 시계용 메모리 301에서의 독출 데이터는 게이트 회로 302를 개하여 병열 데이터를 직렬데이터에 변환하는 변화회로 912에 보내진다.Thus, when the clock signal TC "1" is output from the zero detection circuit 907, the read data from the clock memory 301 is sent to the change circuit 912 which converts parallel data into serial data by opening the gate circuit 302.

상술한 변환 회로 912의 출력은 일치 회로 913에 가해짐과 동시에 타이밍 콘트롤 회로 911의 출력으로 제어되는 게이트 회로 914를 개하여 4자리의 시프트 레시스터 915a에 입력된다.The above-described output of the conversion circuit 912 is applied to the four-digit shift register 915a via the gate circuit 914 which is applied to the coincidence circuit 913 and controlled by the output of the timing control circuit 911.

이 시프트 레지스터 915a의 출력은 일치회로 913에 보내짐과 동시에 1자리의 시프트 레지스터 915b에 입력된다. 이 시프트 레지스터 915b는 각 빗트 출력이 타이밍 콘트롤 회로 911에 보내짐과 동시에 최종 빗트 출력이 하프 애더(Half adder) 916의 입력단 a에 입력된다.The output of the shift register 915a is sent to the coincidence circuit 913 and input to the one-digit shift register 915b. In the shift register 915b, each bit output is sent to the timing control circuit 911, and the final bit output is input to the input terminal a of the half adder 916.

또 이 하프애더 916의 입력단 b에는 타이밍콘트롤 회로 911에서 +1 신호가 오아회로 917를 개하여 입력된다.In addition, the +1 signal is inputted to the input terminal b of the half adder 916 by the OR circuit 917 through the timing control circuit 911.

하프애더 916의 캐리 출력은, 1빗트의 지연회로 918 및 오아회로 917을 개하여 자기의 입력단 b에 가해진다.The carry output of the half adder 916 is applied to its input terminal b with the one-bit delay circuit 918 and the OR circuit 917 opened.

그리고 하프애더 916의 가산 출력은 한자리(4빗트)의 시프트 레지스터 915c에 입력된다.The addition output of the half adder 916 is input to the shift register 915c of one digit (4 bits).

이 시프트 레지스터 915c는 각 빗트 출력이 타이밍콘트롤 회로 911에 보내짐과 동시에 최종빗트 출력은 게이트 회로 914를 개하여 시프트 레지스터 915a에 되돌아 간다.Each bit output is sent to the timing control circuit 911, and the final bit output is returned to the shift register 915a by opening the gate circuit 914.

상술한 각 시프트 레지스터 915a∼915c에 의하여 계시 레지스터 915가 구성되며 전술한 빗트 디코터 908에서 출력된 타이밍 펄스에 동거하여 시프트 동작이 제어된다. 그리고 전술한 일치회로 913출력은 일치 출력 기억용 랫치 회로 919에 입력된다. 이 랫치회로 919는 타이밍 콘트롤 회로 911, 부터의 신호에 따라 동작 타이밍이 제어된다.Each of the above-described shift registers 915a to 915c constitutes a time register 915, and the shift operation is controlled in accordance with the timing pulse output from the bit decoder 908 described above. The above-described coincidence circuit 913 output is input to the latch circuit 919 for coincidence output storage. The latch circuit 919 controls the operation timing according to the signal from the timing control circuit 911.

즉, 전술한 기계용 메모리 301에 기억 시킨 수집 시각 데이버, 점검시각 데이터 및 알람시각 데이터와 현재 시각과의 일치, 불일치를 기억 시키도록 되어 있다.That is, the coincidence and inconsistency between the collection time data, the check time data, and the alarm time data stored in the above-described machine memory 301 and the current time are stored.

상술한 랫치 회로 919의 출력은 타이밍 콘트롤 회로 919에 의하여 게이트 제어되는 게이트 회로 920을 개하여 직렬 데이터를 병열 데이터로 변환회로 921에 보내진다.The output of the latch circuit 919 described above is sent to the conversion circuit 921 by converting serial data into parallel data through the gate circuit 920 gate-controlled by the timing control circuit 919.

또 이 변환회로 921에는 시프트 레지스터 915의 출력이 게이트 회로 920를 개하여 용력된다.The output of the shift register 915 is supplied to the conversion circuit 921 by opening the gate circuit 920.

상술한 변환회로 921은 입력되는 직렬 데이버을 병열 데이버로 변환하여 게이트 회로 304를 개하여 시계용 메모리 301에 송출하고 현재 시각 및 수집출력 TRF, 점검훌랙 REF, 알람훌랙 ALF의 서입을 이루게 한다.The above-described conversion circuit 921 converts the input serial data into parallel data, sends out the gate circuit 304 to the clock memory 301, and writes the current time, the collection output TRF, the inspection hook REF, and the alarm hook ALF.

제5도는 제4도시의 랫치회로 919의 회로 예를 예시한 것으로 일치회로 913의 검출 출력은 앤드 회로 61, 62, 63에 입력된다.5 illustrates a circuit example of the latch circuit 919 of FIG. 4, and the detection output of the coincidence circuit 913 is input to the AND circuits 61, 62, and 63. FIG.

현재 시각과 설정시각이 일치했을 경우에는 일치회로 913의 출력은 "0"로, 불일치. 경우는 "1"이다.If the current time and the set time match, the output of the coincidence circuit 913 is "0", which is inconsistent. The case is "1".

다시 앤드 회로 61, 62, 63에는 워드 디코더 39의 출력중, 출력 W2, W4, W6모두에 입력된다. 다시 앤드 회로 61에는 디짓트 디코더 38의 출력중 출력 D2∼D1가, 앤드회로 62에는 출력 D6∼D9가, 앤드회로 63에는 출력 D10∼D13이 입력되어 있다.Back-end circuit 61, 62 and 63 is input to both of the outputs of the word decoder 39, the output W 2, W 4, W 6 . Again, outputs D 2 to D 1 of the output of the digit decoder 38 are input to the AND circuit 61, outputs D 6 to D 9 are input to the AND circuit 62, and outputs D 10 to D 13 are input to the AND circuit 63.

상술한 앤드 회로 61, 62, 63의 출력은 각각 플립플롭회로(Flip Flop回路) 64, 65, 66의 셋트 입력단자 S에 입력단자 S에 입력된다. 상술한 각 플립플롭회로 64, 65, 66의 리셋트 입력단자 R에는 출력 W3·D1·W5·D1·W7·D1모두에 입력된다.The outputs of the AND circuits 61, 62, and 63 described above are input to the input terminal S to the set input terminals S of the flip-flop circuits 64, 65, and 66, respectively. Reset input terminal R of the above-described respective flip-flop circuits 64, 65, 66 is input to both the output W 3 · D 1 · W 5 · D 1 · W 7 · D 1.

또 상술한 각 플립플롭회로 64, 65, 66의 리셋트 출력단자 Q에서의 출력신호는 각각 앤드 회로 67, 68, 69에 부여된다.The output signals at the reset output terminals Q of the flip-flop circuits 64, 65, and 66 described above are applied to the AND circuits 67, 68, and 69, respectively.

이 앤드 회로 67, 68, 69에는 출력W3·D0·W5·D0·W7·D0모두가 입력되며 다시 앤드 회로 67에는 빗트 디코더 37의 출력중 출력 B0가 앤드 회로 68에는 출력 B1가, 앤드 회로 69에는 출력 B2가 입력되어 있다.The AND circuit 67, 68, 69, the output W 3 · D 0 · W 5 · D 0 · W 7 · D 0 both the input and back-end circuit 67, the output of the output of bitteu decoder 37 B 0 the AND circuit 68 is output B 1 is, AND circuit 69 has an output B 2 is input.

상술한 각 앤드 회로 67, 68, 69의 출력은 오아회로 70을 개하여 게이트 회로 920에 부여된다. 다음에 시계회로 9의 동작을 설명하면, 분주 카운터 902의 16Hz∼1Hz의 밧트 출력이 모두 "0"이 되는 것은 1초에 1회 이며 그 기간은 32.25m sec이다.The above-described outputs of the AND circuits 67, 68, and 69 are provided to the gate circuit 920 by opening the OR circuit 70. Next, the operation of the clock circuit 9 will be described. The battery output of 16 Hz to 1 Hz of the frequency dividing counter 902 is all “0” once per second, and the period is 32.25 m sec.

이 기간에서는 제로 검출회로 907에서 출력되는 계시중 신호 TC가 "1"가 되기 위하여 앤드회로 903, 904, 905가 도통상태가 되어 계시 동작이 이루어진다. 또 상술한 계시중 신호 TC는 제1도시한 시계용 메모리회로 3의 게이트 회로 302, 304, 305, 306, 308을 절환하여 시계회로 9와의 데이터의 입출력을 하게 된다.In this period, the end circuits 903, 904, and 905 are in a conductive state so that the clock signal TC output from the zero detection circuit 907 becomes " 1 " The clock signal TC described above switches the gate circuits 302, 304, 305, 306, and 308 of the clock memory circuit 3 shown in the first illustration to input and output data to and from the clock circuit 9.

또 앤드 회로 905의 출력「000」,「100」,「010」,「110」,「001」,「101」,「011」,「111」로 변화하고 각 상태는 W0, W1, W2……W7의 8워어드이다.The output of the end circuit 905 changes to "000", "100", "010", "110", "001", "101", "011", and "111", and each state is W 0 , W 1 , W 2 …. … 8 War of the Admiral W 7.

이 W0∼W7의 8워어드 기간이 게시 동작기간의 3225m sec이다.8 Weird War period of the W 0 ~W 7 is a 3225m sec of post operation period.

먼저, W0의 워어드 에서는, 128Hz 밧트의 출력인 R/W2가「0」로서 앤드 회로 905의 출력인 RA는「00」이므로 시계용 메모리 301의 0행줄이 순차 독출되며, 변화회로 912, 게이트 회로 914를 개하여 계시용 레지스터 915에 입력된다.First, in the word of W 0 , since the R / W 2 output of the 128 Hz batt is "0" and the RA output of the end circuit 905 is "00", the row 0 line of the clock memory 301 is read out sequentially, and the change circuit 912 The gate circuit 914 is opened and input to the time register 915.

이때 독출된 현재 시간은 하프애더 916으로 +1초 된다. W1의 워어드에서는 R/W2=1, RA=「00」이고, 게이트 회로 920, 변환회로 921을 개하여 시계용 메모리 301의 0행줄에 서입된다.At this time, the read time is +1 second to the half adder 916. In the word of W 1 , R / W 2 = 1 and RA = "00", and the gate circuit 920 and the conversion circuit 921 are opened and written to line 0 of the memory 301 for clock.

이때, 시, 분의 데이터는 게이트회로 914를 개하여 4자리분의 시프트 레지시터 915a에도 입력되며 이후 시프트 레지스터 915a의 출력은 게이트 회로 914를 개하여 재차 시프트 레지스터 915a에 입력되며 시, 분의 데이터를 순환 보지하고 있다.At this time, the hour and minute data is input to the shift register 915a for four digits by opening the gate circuit 914, and the output of the shift register 915a is again input to the shift register 915a by opening the gate circuit 914. I'm watching the cycle.

다음에 W2의 워어드에서는 R/W2=ORA=10이므로 시계용 메모리 301의 1행줄의 데이터가 독출된다.Next, since the W 2 word is R / W 2 = ORA = 10, the data of one line of the clock memory 301 is read out.

이때 독출되는 수집시각 데이터는 변화회로 912를 개하여 일치회로 913일방에 입력된다. 이 일치회로 913타방에는 현재 시각이 입력되어 있는 것으로 현재 신각과 수집 시각의 일치 검출이 이루어진다.At this time, the acquisition time data to be read out is input to one of the coincidence circuit 913 through the change circuit 912. The current time is input to the other coincidence circuit 913, and the coincidence detection between the current time and the collection time is performed.

이 검출 결과는 랫치 회로 919에 기역되며, W3의 워어드 D0의 디짓트로 출력되며, 게이트 회로 920, 변환회로 921을 개하여 시계용 메모리 301의 1행줄의 0열에 수집훌랙 REF로서 서입된다.The detection result is written to the latch circuit 919 and output to the digit of the word D 0 of W 3 , and the gate circuit 920 and the conversion circuit 921 are opened and written as collection collection REF in column 0 of the first row of the clock memory 301. .

이하, 점검시각 데이터, 알람시각 데이터의 일치검출이 이루어 진다.Hereinafter, coincidence detection of the check time data and the alarm time data is performed.

이상으로 시계회로 9는 게시동작을 종료하고, 제로 검출회로 907에서의 게시중 신호 TC는 "0"가 된다. 게시중 신호 TC는 "0"가 되면, 이 신호에 의하여 게이트 회로 302, 304, 305, 306, 308이 절환되어 시계용 메모리 301은 CPU1과의 데이터 입출력이 이루게 된다.The clock circuit 9 finishes the posting operation as described above, and the posting signal TC in the zero detection circuit 907 becomes " 0 ". When the signal TC during posting becomes " 0 ", the gate circuits 302, 304, 305, 306 and 308 are switched by this signal, and the clock memory 301 performs data input / output with the CPU1.

다음에 CPU1이 시계용 메모리 301을 악세스 할 때의 동작을 설명한다.Next, the operation when the CPU1 accesses the clock memory 301 will be described.

제6도 (a)시와 같이 시계회로 9는 1초에 1회 동작하고, 그 동작기간은 32.25m sec이다.As shown in Fig. 6 (a), the clock circuit 9 operates once per second, and its operation period is 32.25 m sec.

이 기간은 시계회로 9에서 게이중 신호 TC가 "1"신호를 출력하고 있는 제6도(b), 이 기간은 시계회로 9가 시계용 메모리 301을 사용하고 있으므로 CPU1에서 시계용 메모리 301을 악세스 할 수 없는 제6도(c), CPS1이 시계용 메모리 301과 데이터의 수수(授受)를 하는 것우는, 제7도시의 처리 A와 같이, 먼저 계시중 부호의 유무를 검출한다.This period is shown in Fig. 6 (b) in which the gyrosignal signal TC outputs the "1" signal in the clock circuit 9. In this period, the clock memory 301 is accessed from the CPU1 because the clock circuit 9 uses the clock memory 301. In FIG. 6C, where CPS1 cannot transfer the data with the clock memory 301, the presence or absence of the time code is detected first as in the processing A of FIG. 7.

즉, CPU1은 앤드 회로 312를 지정하는 특정 에드레스치를 행 어드레스 버스 RB, 열 어드레스 버스 CB를 개하여 송출한다.That is, CPU1 sends out specific address values specifying the AND circuit 312 by opening the row address bus RB and the column address bus CB.

이때 상술한 앤드 회로 312타방에 계시중 신호 TC가 있으면 이 앤드 회로 312의 출력은 "1"가 되며 OR게이트 그룹 303으로 계시중 부호「1111」이 서입되며, 데이터 버스 DB에 송출된다.At this time, if the clock signal TC in the other end of the AND circuit 312 is described above, the output of the AND circuit 312 becomes "1", and the clock sign "1111" is written to the OR gate group 303, and is sent to the data bus DB.

CPU1은 이 데이터버스 DB위에 데이터를 읽으며, 계시중 부호인가, 아닌가를 검출하는 것이다. 계시중 부호가 없으면 재차 상술한 처리 a를 반복한다.CPU1 reads data on this data bus DB and detects whether it is a sign during timekeeping. If there is no sign in time, the above-described process a is repeated.

계시중 부호가 있으면 다음처리 b로 진출, 상술한 처리 a와 같이 계시중 부호의 유무를 검출하는 동작을 하며 계시중 부호가 없어지면 처리 c로 진출한다. 이 처리 c로서 시작하여 CPU1은 시계용 메모리 301을 악세스하며, 예 : 시계용 메모리 301내의 점검훌랙 REF를 독출하여 CPU1내의 레지스터a(도시않음)에 입력한다. 이와같이 CPU1은 게시중 부호의 유무를 검출하고 게시중 부호가 없어진 것을 확인한 후에 시계용 메모리에 대하여 데이터의 독출 또는 서입한다.If there is a sign in time, the process proceeds to the next process b. As shown in process a, the operation for detecting the presence or absence of the sign in time is performed. Starting from this process c, the CPU1 accesses the clock memory 301. For example, the CPU 1 reads the check block REF in the clock memory 301 and inputs it to the register a (not shown) in the CPU1. In this way, CPU1 detects the presence or absence of the code during posting and confirms that the code is missing during posting, and then reads or writes data to the clock memory.

다음에 정전시의 회로 동작을 설명하면, 제1도시와 같이 파워스위치 12투입시에는, 상용 교류 전원 11이 정류 회로 14로 정류됨과 동시에 콘덴서 CA로 평활되어 DC-DC 콘버터 15에 입력된다.Next, the circuit operation at the time of power failure will be described. At the time of power switch 12 input as shown in the first illustration, the commercial AC power supply 11 is rectified to the rectifier circuit 14 and smoothed by the capacitor CA and input to the DC-DC converter 15.

이 DC-DC 콘버터 15는 입력전압을 각종 전압으로 변화하여 회로 100에 공급된다. 또 상술한 전원트랜스 13의 2차 권선에 전원이 발생하면, 이 전압은 다이오드 16으로 정류되어 콘덴서 CB에 저장된다.The DC-DC converter 15 changes the input voltage into various voltages and supplies them to the circuit 100. When power is generated in the secondary winding of the power supply transformer 13 described above, this voltage is rectified to the diode 16 and stored in the capacitor CB.

이때문에 a점에 제8도(b)시와 같은 소정전위-Va가 발생하고, 이 전압은 인버어터 310 및 인버어터 17에 가해진다.For this reason, the predetermined electric potential Va similar to FIG. 8 (b) arises at point a, and this voltage is applied to inverter 310 and inverter 17. As shown in FIG.

이 때문에 전원 on 중은 인버어터 310 및 17의 출력은 "0"로서, 인버어터 18의 출력은 "1"이다.For this reason, while the power is on, the outputs of the inverters 310 and 17 are "0", and the output of the inverter 18 is "1".

따라서 오아회로 309에는 인버어터 310에 따른 출력은 없고, 또 앤드 회로 19는 CPU1에서의 칩이 내이블 CE1을 메모리회로 2에 송출한다.Therefore, there is no output according to the inverter 310 in the OR circuit 309, and in the AND circuit 19, the chip in the CPU 1 sends the enable CE 1 to the memory circuit 2.

이 상태에서 제8도시와 같이 정전의 것우, 콘덴서 CB의 용량을 대단히 적게 설정되어 있으므로 콘덴서 CB의 충전하는 곧바로 방전한다.In this state, since the capacity of the capacitor CB is set very small in the case of power failure as shown in FIG. 8, the charging of the capacitor CB discharges immediately.

이 때문에 A점의 전위로 제8도 (b)시와 같이 급속히 0레벨로 접근 인버어터 310 및 인버어터 17의 출력이 "1". 된다.For this reason, as shown in FIG. 8 (b), the output of the approach inverter 310 and the inverter 17 is “1” as rapidly as in FIG. do.

이 때문에 인버어터 310의 출력 "1"이 된다. 이 때문에 인버어터 310의 출력 "1"은 오아회로 309를 개하여 게이트 회로 302, 304, 305, 306, 308에 부여되어 이각 게이트를 시계회로 9와의 데이터 수수 상태로 절환된다.For this reason, the output of the inverter 310 becomes "1". Therefore, the output " 1 " of the inverter 310 is provided to the gate circuits 302, 304, 305, 306, and 308 by opening the OR circuit 309, and switches the respective gates to the data transfer state with the clock circuit 9.

다시 상술한 인버어터 310의 출력은 오아회로 309를 개하여 앤드 회로 312에도 부여되어 이 앤드 회로 312의 일방을 어드레스에 의하여 지정되었을 경우에 OR 게이트 그룹 303에 출력되어 게시중 부호를 출력하게 된다. 이 때문에 시계용 메모리 301에 대한 CPU1의 악세스는 금지된다.In addition, the above-described output of the inverter 310 is provided to the AND circuit 312 by opening the OR circuit 309, and when one of the AND circuits 312 is designated by the address, it is outputted to the OR gate group 303 to output the sign being posted. For this reason, CPU1's access to clock memory 301 is prohibited.

한편, 인버어터 17의 출력은 인버어터 18에 의하여 반전되어 "0"가 되며 앤드 회로 19를 폐성한다.On the other hand, the output of inverter 17 is inverted by inverter 18 to become " 0 " to close the AND circuit 19.

이 때문에 CPU1에서 출력되는 칩이 네이블신호 CE1은 차단되어 메모리 회로 2에의 악세스가 금지 된다.For this reason, the chip output from the CPU 1 cuts off the enable signal CE 1 , thereby preventing access to the memory circuit 2.

이상과 같이 하여 정전시의 전원 전압 저하에 따르는 CPU1의 오동작으로서 시계용 메모리 301 및 메모리회로 2의 정상적인 기억 데이터가 파괴되는 것을 방지한다.As described above, the malfunction of the CPU 1 caused by the power supply voltage drop during power failure is prevented from destroying the normal memory data of the clock memory 301 and the memory circuit 2.

정지시 또는 전원 OFF시에는 메모리 회로 2 및 시계용 메모리 회로 3, 시계회로 9에는 전원 20으로부터 전압이 공급되어 기억 데이터를 보지함과 동시에 시계회로 9는 계시동작을 한다.When stopped or when the power supply is turned off, a voltage is supplied from the power supply 20 to the memory circuit 2, the clock memory circuit 3, and the clock circuit 9 so as to retain the stored data, and at the same time, the clock circuit 9 operates the clock.

또 전원부 10에서의 평활 콘덴서 CA는 충분한 큰 용량으로 설정되며 정전후에도 일정기간 DC-DC콘버어터 15에의 입력 전압을 소정치로 보지하고 있다.In addition, the smoothing capacitor CA in the power supply unit 10 is set to a sufficiently large capacity, and holds the input voltage to the DC-DC converter 15 for a predetermined period even after a power failure.

따라서 DC-DC 콘버터 15의 출력전압은 제8도(a) 시와 같이 소정치로 보지된다.Therefore, the output voltage of the DC-DC converter 15 is held at a predetermined value as shown in FIG.

이 DC-DC 콘버터 15의 출력전압이 소정치로 보지되어 있는 사이에, CPS1은 정전처리를 한다.While the output voltage of the DC-DC converter 15 is held at a predetermined value, the CPS1 performs an electrostatic process.

이리하여 상술한 정전 회복후, 교류 전원 11이 회복하면, DC-DC 콘버터 15에서 제8도(a) 시와 같이 소정 전압이 출력된다.Thus, when the AC power source 11 recovers after the above-described power failure recovery, a predetermined voltage is output from the DC-DC converter 15 as shown in FIG.

다음에 CPU1이 시계용 메모리 301내의 현재시각 데이터 CLK, 수집훌랙 TRF, 점검훌랙 REF 알람훌랙 ALF를 사용하여 여러가지 처리를 할 것우의 동작을 제9도 플로챠아트를 따라 설명하면, 먼저, 스텝 S11과 같이 I/O 포오트 4내의 입력용 버퍼 23의 내용을 CPU내에 형성되는 레지스터 ACC에 독입한다.Next, when the CPU1 performs various processes using the current time data CLK, the collection hook TRF, and the check hook REF alarm hook ALF in the clock memory 301, the operation of FIG. As shown in 11 , the contents of the input buffer 23 in the I / O port 4 are read into the register ACC formed in the CPU.

이어서 스텝 S12와 같이 상술한 레지스터 ACC1에 데이터가 보지 되어 있는가, 아닌가, 즉, 키 입력데이터가 있는가 없는가를 판정한다. 키 입력부 7에 있어서 키 입력조작이 되면, 먼저 I/O 포오트 4내의 입력용 버퍼 23에 키 입력 데이터가 독입되므로, 입력용 버퍼 23, 기억내용을 조사함에 따라 키 입력 데이터의 유무를 판정할 수가 있다.Then, as in step S 12 , it is determined whether or not data is held in the above-described register ACC 1 , that is, whether there is key input data. When the key input operation is performed in the key input unit 7, key input data is first read into the input buffer 23 in the I / O port 4, so that the presence or absence of the key input data can be determined by examining the input buffer 23 and the stored contents. There is a number.

스텝 S12로 키 입력 데이터 "있음"으로 판정되면 처리 스텝 S13으로 진출, 키 입력에 대한 처리를 실행하다.If it is determined in step S 12 that the key input data is present, the process advances to step S 13 to execute processing for key input.

그리고 그 처리를 종료하면 스텝 S11로 되돌아가며 재차 입력용 버퍼 23에서 CPU1내의 레지스터 ACC1에의 데이터, 독입을 한다. 또, 스텝 S12에 있어서 키 입력 데이터 "없음"으로 판정되면 스텝 S14로 진출, 제시중 부호가 있음을 검출한 후 스텝 S15에 진출한다. 이 스텝 S15로 게시중 부호가 없어진 것을 검출한 후 스텝 S16에 진출 시계용 메모리 301내의 현재 시간데이터 CLK를 독출하여 상술한 CPU1내의 소정 영역에 있는 레지스터 ACC2에 셋트한다.And when ends the processing returns to step S 11 to cause the data again, the dock to the register ACC 1 in the CPU1 in the input buffer 23 for. If it is determined in step S 12 that the key input data is "none", the process advances to step S 14 , and after detecting that there is a sign presenting, the process advances to step S 15 . After detecting that the missing step of a post code in S 15 reads out current time data CLK in the step S 16 for entering the memory clock 301 to be set to the ACC register 2 in the predetermined area in the above-described CPU1.

다음에 스텝 S17에 진출, 상술한 CPU1에 형설된 레지스터 ACC2및 레지스터 ACC3의 내용이 같은가, 아닌가를 판정한다.Next, the process advances to step S 17 , and it is determined whether or not the contents of the registers ACC 2 and ACC 3 described in the CPU1 described above are the same.

이 레지스터 ACC3의 내용은 최초「0」이나, 후술하는 스텝 S18또는 S21또는 S24에 있어서 현재시각 데이터 CLK가 서입된다.The contents of this register ACC 3 are initially "0", but the present time data CLK is written in step S 18 or S 21 or S 24 described later.

이리하여 상술한 레지스터 ACC3내용은 최초「0」이므로 스텝 S17에의 판정은 최초의 NO이고 스텝 S18에 진출한다. 이 스텝 S11에서는 시계용 메모리 301에 기억되어 있는 수집 훌랙 TRF가 셋트되어 있는가 아닌가를 판정한다.Thus the register ACC 3 content above is because it is the first "0" to the decision step S 17 is advanced to the first step S 18 is NO. In this step S 11 , it is determined whether the collection block TRF stored in the clock memory 301 is set.

현재 시각 CLK는 수집 시각 데이터 TR1∼TR3중 어느쪽에나 일치하고 있으면 수직 훌랙 TRF의 어느 곳에의 빗트에 "1"이 셋트되어 있으므로 수집 훌랙은 TRF "0"은 아니므로 스텝 S18에서는 NO로 판정되어, 스텝 S19로 진출, 이 스텝 S19에서는 CPU1의 훌랙 레지스터(도시없음) F1에 "1"을 서입, 그후 스텝 S20로 진출하여 상술한 바와같이 시계용 메모리 301에서 현재 시각 데이터 CLK를 독출하여 CPU1내의 레시스터 ACC3에 서입한다.Current time data CLK is collected time TR 1 ~TR If coincides, or which side of the three "1" is set in bitteu of any depth in the vertical hulraek TRF so collected hulraek is a TRF "0" is not in the step S 18 NO In step S 19 , at step S 19 , " 1 " is written to the CPU register F1 (not shown) F1 of CPU1, and then step S 20 is entered, and the present time data is stored in the clock memory 301 as described above. Read the CLK and write it to register ACC 3 in CPU1.

그리고 이 스텝 S20을 끝다면 다음 스텝 S21로 진출한다. 또 상술한 스텝 S18을 수지훌랙 TRF는 "0"으로 판정된 것우에도 스텝 S21로 진출한다. 스텝 S21에서는 시계용 메모리 301에 기억되어 있는 점검훌랙 REF가 셋트되어 있는가, 아닌가를 판정한다.And if the end of the step S 20 to advance to the next step S 21. In the above-described step S 18 resin hulraek TRF will be determined as "0" Yiwu also advance to step S 21. In step S 21 there is checked stored in the clock memory 301 for hulraek REF is set, it is determined whether.

현재 시각이 점검시각 데이터 RE1∼RE3중 어느 것에라도 일치했을 경우에는 점검훌랙 REF의 어느 것에도 빗트에 "1"이 셋트되어 있으므로 이 스텝 S21에서는 NO로 판정되어 스텝에 진출한다.If the current time coincides with any of the inspection time data RE 1 to RE 3 , since "1" is set in the bit in all of the inspection flow REF, it is determined as NO in this step S 21 and advances to the step.

스텝 S22에서는 CPU1의 훌랙 량지스터(도시않음) F2에 "1"을 서입, 그후 스텝 S23에 진출하여 상술한 바와같이 시계용 메모리 301에서 현재시각 데이터 CLK를 독출하여 CPU1내의 레지스터 ACC3에 서입한다. 그리고 이 스텝 S23을 종료하면 다음 스텝 S24로 진출한다.Step S 22 in hulraek amount of CPU1 register (not shown) to "1" to F2 in seoip, then clock the memory 301 for, as described above in advance to the step S 23 reads out current time data CLK to the register ACC 3 in the CPU1 Introduce. And Exiting the step S 23 to advance to the next step S 24.

또 상술한 스텝 S21로 점검훌랙 REF가 "0"으로 판정된 것우에도 스텝 S24로 진출한다. 스텝 S24에서는, 시계용 메모리 301에 기억되어 있는 알람 훌랙 ALF가 셋트되어 있는가, 아닌가를 판정한다. 현재시각이 알람설정 시각 데이터 AL1∼AL3중 어느 것에라도 일치하고 있으면, 알람훌랙 ALF의 어느 것이가의 빗트에 "1"이 셋트되어 있으므로 이 스텝 S24에서는 NO로 판정되어 스텝 S25로 진출한다. 스텝 S26에서는, CPU1내의 훌랙 레지스터(도시않음) F3에 "1"을 서입, 그후 스텝 S26에 진출하여 상술한 바와같이 시계용 메모리 301에서 현재시각 데이터 CLK를 독출하여 CPU1내의 레지스터 ACC3에 서입한다.In addition to the check of the above-described step S 21 hulraek REF is determined to be "0" will Yiwu also advance to the step S 24. In step S 24, there is stored in the memory 301 for the alarm clock hulraek ALF are set, it is determined whether. If the current time matches any of the alarm setting time data AL 1 to AL 3 , since "1" is set in the bit of any of the alarm stacks ALF, it is determined as NO in this step S 24 , and the process proceeds to step S 25 . Advance. The step S in the 26, hulraek register (not shown) in the CPU1 F 3 to the "1" in seoip, then clock the memory 301 for, as described above in advance to the step S 26 reads out current time data CLK register ACC 3 in the CPU1 Write on.

그리고 다음 스텝 S27에 진출한다. 또 상술한 스텝 S24로 알람 훌랙 ALF는 "0"이라고 판정된 경우와 상술한 스텝 S17로 CPU1내의 레지스터 ACC2와 ACC3이 같다고 판정되었을 경우에도 스텝 S27에 진출한다. 여기서 S17로 레지스터 ACC2와 ACC3의 내용을 비교하고 그 결과가 같을 경우에는 스텝 S18∼S26을 실행하지 않고 스텝 S27로 진출한다.Then, the flow advances to the next step S27 . In addition to the above-described step S 24 hulraek alarm ALF is also advanced to the step S 27, if the register is equal ACC ACC 2 and 3 in the case where it is determined as "0", and the CPU1 to the above-described step S 17 is determined. Here, the contents of the registers ACC 2 and ACC 3 are compared with each other at S 17 , and when the results are the same, the process proceeds to step S 27 without executing steps S 18 to S 26 .

그 이유는, 상술한 각 훌랙은 셋트 되어 1초간 이를 보지할 필요가 있으므로 앞서의 스텝 S16으로 레지스터 ACC2에 독입된 현재 시각데이터 CLK는 1초 진출하여 스텝 S17의 비교결과가 NO가 될 때까지는, 다음의 훌랙 셋트 동작 즉 스텝 S18∼S26은 실행하지 않기 때문이다.The reason is that each of the above-described hulks need to be set and hold for one second. Therefore, the current time data CLK read in the register ACC 2 in step S 16 advances for one second, and the comparison result of step S 17 becomes NO. This is because the next hulk set operation, that is, steps S 18 to S 26 are not executed until then.

상술한 스텝 S27은 CPU1내에 있는 리시이트 발행 후 "1"을 기억하는 리시이트 발행 훌랙 RT이 셋트되어 있는가, 아닌가, 즉, 리시이트의 발행이 이루어졌는가, 아닌가를 판정하고 있으며 현재 등록 처리로 리시이트 발행이 아직 되어여 있지 않으면 스텝 S11에 되돌아간다.The above-described step S 27 determines whether or not the issue issuance full RT that stores "1" is set after issuing the receive in CPU1, i.e., issuing of a receive is made. If the sheet re-issue is not over yet goes back to step S 11.

그러나, 스텝 S27로 리시이트 발행 훌랙 RT가 "1"이라고 판정 되면, 즉, 리시이트 발행 종료가 확인되면 스텝 S28로 진출, 수집 기억 훌랙 F1이 셋트 되어 있는가 아닌가를 판정한다.However, if it is determined in step S 27 that the receipt issuance RT RT is "1", that is, the completion of the receipt issuance is confirmed, the process proceeds to step S 28 and it is determined whether or not the collection storage funnel F 1 is set.

이 스텝 S26으로 수집기억훌랙 F1이 "1"이라고 판정되면 스텝 S29로 진출, CPU1로부터 데이터라인 DB를 개하여 수집데이터 D를 수집기 24에 전송한다. 이때 CPU1은 수집기 24에 대하여 콘트롤 신호 L를 송출한다.When the acquisition memory hulraek F 1 is determined to be "1" in the step S 26 to step S 29 advance, by one data line DB from the CPU1 sends the collected data D to the collector 24. At this time, the CPU 1 transmits a control signal L to the collector 24.

일련의 수집동작이 끝나면, 스텝 S30에 진출, 훌랙 F1에 "0"를 서입한다. 그리고 스텝 S31에 진출한다. 또 상술한 스텝 S28를 훌랙 F1이 0이라고 판정된 경우에도 스텝 S31에 진출한다.At the end of a series of collecting operation will be seoip a "0" in advance, hulraek F 1 in step S 30. The process then advances to step S 31 . In addition, even if hulraek the above step S 28 it is determined that F1 is 0, the advance to the step S 31.

스텝 S31은 훌랙 F2가 셋트되어 있는가, 아닌가를 타정한다.Step S 31 determines whether the hull F2 is set or not.

여기에 훌랙 F2가 "1"로 판정되면 스텝 S32에 진출 소정의 점검 처리를 한 후, 스텝 S33으로 훌랙 F2에 "0"를 셋트한다.When the determination here hulraek F2 to "1" after a predetermined inspection process advanced to the step S 32, will be set to "0" in hulraek F2 to step S 33.

그리고 스텝 S34에 진출한다. 또 상술한 스텝 D31로 점검 기억 훌랙 F2가 "0"으로 타정된 경우에도 스텝 S34로 진출한다.And it is advanced to step S 34. Further, when the check memory block F 2 is compressed to "0" in step D 31 described above, the process proceeds to step S 34 .

스텝 S34에서는 훌랙 F3이 "0"인가 아닌가를 판정한다.In step S 34 , it is determined whether the hull F3 is "0".

알람 기억 훌랙 F301이 "1"이라고 판정되면 스텝 S35에 진출하여 CPU1에서 I/O 포오트 4에 알람셋트의 코오드 신호를 보내 알람 동작을 이루게 한다.Alarm memory hulraek F301 is to advance to Step S 35 if it is determined as "1" to send the I / O port 4 Upper cords of the alarm signal from CPU1 is set to fulfill the alarm operation.

그리고 스텝 S36으로 훌랙 F3에 "0"을 셋트하고 스텝 S11에 되돌아간다.And it sets "0" in the step S 36 hulraek F 3, and the process returns to step S 11.

또 상술한 스텝 S34로 알람 기억 훌랙 F3이 "0"이라고 판정된 경우에도 스텝 S11에 되돌아 간다.In addition to the above-described step S 34, even if the alarm memory hulraek F 3 is determined to be "0", the process returns to step S 11.

그리고 이 플로 챠트를 반복하고 각종 설정 시각 검출을 하게된다.The flowchart is repeated to detect various set times.

Claims (1)

계시 데이터를 기억하는 시계용 메모리와 전술한 시계용 메모리에 접속되어 전술한 시계용 메모리에서 독출된 계시 데이터를 갱신한 후, 재차 전술한 시계용 메모리에 서입하는 계시 동작을 일정시간 마다 이루는 시계회로와 전술한 시계용 메모리에 접속되여 전술한 시계회로의 계시동작 이외에 전술한 시계용 메모리내의 계시 데이터를 악세스하기 위한 중앙 처리 장치 등으로 되는 계시 데이터 처리장치.A clock which is connected to the clock memory for storing time data and the clock memory described above, updates the time data read out from the clock memory described above, and then repeats the time-keeping operation written to the aforementioned clock memory at predetermined time intervals. And a central processing unit connected to the circuit and the aforementioned clock memory, the central processing unit for accessing the clock data in the aforementioned clock memory in addition to the clock clock operation described above.
KR1019790001135A 1979-04-11 1979-04-11 Time data processing device KR830000625B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019790001135A KR830000625B1 (en) 1979-04-11 1979-04-11 Time data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019790001135A KR830000625B1 (en) 1979-04-11 1979-04-11 Time data processing device

Publications (1)

Publication Number Publication Date
KR830000625B1 true KR830000625B1 (en) 1983-03-18

Family

ID=19211348

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019790001135A KR830000625B1 (en) 1979-04-11 1979-04-11 Time data processing device

Country Status (1)

Country Link
KR (1) KR830000625B1 (en)

Similar Documents

Publication Publication Date Title
TW436697B (en) Patching apparatus and method for upgrading modem software code
US4238832A (en) Time data processing apparatus
JPH035580B2 (en)
KR830000625B1 (en) Time data processing device
US4330840A (en) Multi-function electronic digital watch
CN204066274U (en) Public transport POS
US6134187A (en) Real-time clock device suitable for portable computer having auto power-on function
JPS5593162A (en) Central control device for recorder
JPH0449142B2 (en)
JPS5724082A (en) Computer system
US4366545A (en) Recording type electronic apparatus
JPS5949622B2 (en) Timing data processing device
JPH0637471Y2 (en) Memory backup device
KR100338265B1 (en) Identifying devices on the face of the watch and how to identify them
JPH0330877Y2 (en)
JP2532447Y2 (en) Memory backup device
JPH0373958B2 (en)
SU1624527A2 (en) Permanent memory unit
KR830001450B1 (en) Electronic digital multifunction watch
SU1327103A1 (en) Microprogram control device
SU1642522A1 (en) Associative bubble memory drive
JPH0311755Y2 (en)
JPS5740790A (en) Storage control system
SU1569870A1 (en) Indicating device
SU1357978A2 (en) Device for determining reliability of objects