KR20000003533A - Input frequency judging method to revise clock of microwave oven - Google Patents
Input frequency judging method to revise clock of microwave oven Download PDFInfo
- Publication number
- KR20000003533A KR20000003533A KR1019980024783A KR19980024783A KR20000003533A KR 20000003533 A KR20000003533 A KR 20000003533A KR 1019980024783 A KR1019980024783 A KR 1019980024783A KR 19980024783 A KR19980024783 A KR 19980024783A KR 20000003533 A KR20000003533 A KR 20000003533A
- Authority
- KR
- South Korea
- Prior art keywords
- frequency
- input
- determined
- interrupt signal
- determination
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B6/00—Heating by electric, magnetic or electromagnetic fields
- H05B6/64—Heating using microwaves
- H05B6/6435—Aspects relating to the user interface of the microwave heating apparatus
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Measuring Frequencies, Analyzing Spectra (AREA)
Abstract
Description
본 발명은 전자렌지의 시계 보정을 위한 입력주파수 판단방법에 관한 것으로, 보다 상세하게는 외부전원 주파수가 50헤르쯔나 60헤르쯔가 아닌 불안정한 주파수인 65헤르쯔, 55헤르쯔 및 45헤르쯔등이 입력되어도 그에 해당하는 주파수를 판별하여 시계의 카운트 동작을 보정할 수 있도록 한 전자렌지의 시계보정을 위한 입력주파수 판단방법에 관한 것이다.The present invention relates to an input frequency determination method for correcting a clock of a microwave oven, and more particularly, even when an external power source frequency such as 65 Hz, 55 Hz, 45 Hz, etc., which is an unstable frequency other than 50 Hz or 60 Hz is input thereto. The present invention relates to a method for determining an input frequency for correcting a clock of a microwave oven, by which a frequency to be corrected can be corrected.
일반적으로 전자렌지에 적용되는 시계의 카운트 동작은 그 지역의 전원 주파수를 판독하여 동작하고 있는데 도 1에 도시된 바와같이 외부로부터 입력되는 교류전원은 트랜스(T)와 정류부(70)를 통해 직류 전원으로 정류되고 평활부(71)를 통해 클럭펄스로 변환되어 스위칭부(72)에 인가된다. 그러면 이 스위칭부(72)는 입력되는 신호에 의해 주기적으로 스위칭 동작하고 이 스위칭 동작에 의해 마이컴(73)의 외부입력 단자(EXINT)로는 주기적으로 인터럽트 신호가 입력된다. 이때 이 마이컴(73)에는 일정시간을 주기(0.2msec)로 타이머(74)가 카운트 동작을 하고 있다. 그러므로 상기 마이컴(73)은 스위칭부(72)의 스위칭 동작으로 인해 인터럽트 신호가 입력될 때 임의의 한 주기 동안에 타이머(74)에서 출력되는 카운트 값을 읽음으로서 현재 입력되는 전원 주파수를 판단할 수 있다. 이에 상기 마이컴(73)은 시계제어부(75)에 소정의 신호를 인가함으로서 정확한 시간이 카운트되는 것이다.In general, the counting operation of the clock applied to the microwave is operated by reading the power frequency of the region. As shown in FIG. 1, the AC power input from the outside is DC power through the transformer T and the rectifier 70. Rectified and converted into clock pulses through the smoothing unit 71, and applied to the switching unit 72. Then, the switching unit 72 performs a switching operation periodically by an input signal, and an interrupt signal is periodically input to the external input terminal EXINT of the microcomputer 73 by this switching operation. At this time, the timer 74 performs a count operation on the microcomputer 73 at a period of time (0.2 msec). Therefore, the microcomputer 73 may determine the power frequency currently input by reading a count value output from the timer 74 during a period when the interrupt signal is input due to the switching operation of the switching unit 72. . The microcomputer 73 applies a predetermined signal to the clock controller 75 so that the correct time is counted.
즉, 도 2에 도시된 바와같이 60헤르쯔의 전원주파수가 입력되면 이때의 한주기 T1은 16.67 msec가 되고 50헤르쯔의 전원주파수가 입력되면 이때의 한주기는 20 msec가 된다. 그러므로 도 3가에 도시된 바와같이 상기 마이컴에서는 내부적으로 카운터 동작을 순차적으로 감소시키며 수행하고(이때의 타이머 주기는 0.2msec이고 그 카운터 데이터는 16진수의 레지스터이다)That is, as shown in FIG. 2, when a 60 Hz power frequency is input, one period T1 is 16.67 msec, and when a 50 Hz power frequency is input, one period is 20 msec. Therefore, as shown in FIG. 3A, the microcomputer internally decrements the counter operation sequentially (in this case, the timer period is 0.2 msec and the counter data is a hexadecimal register).
이때, 계속적으로 내부 카운터 동작중에 입력된 상용주파수가 도 3나에 도시된 바와같이 A위치에서 라이징 에지(rising edge)가 발생한다. 그러면 이때 내부 타이머(T3)의 카운터값(타이머가 0.2msec의 주기로 카운터하는 레지스터값)을 읽어 현재의 주파수가 60헤르쯔임을 판별한다.At this time, a rising edge is generated at the A position as the commercial frequency input during the internal counter operation is continuously shown in FIG. Then, at this time, the counter value of the internal timer T3 (the register value at which the timer counters at a period of 0.2 msec) is read to determine that the current frequency is 60 Hz.
또한, 내부 카운터 동작중에 입력된 상용주파수가 도 3다에 도시된 바와같이 B위치에서 라이징 에지(rising edge)가 발생하면 이때 마이컴(73)은 내부 타이머(T3)의 카운터 값을 읽어 현재의 주파수가 50헤르쯔임을 판별한다.In addition, when a rising edge occurs at the B position as the commercial frequency input during the internal counter operation is shown in FIG. 3C, the microcomputer 73 reads the counter value of the internal timer T3 at the present frequency. Determines that is 50 Hz.
그러므로 상기 마이컴(73)은 현재 판별된 입력주파수가 60헤르쯔이면 외부입력단자를 통해 인터럽트가 60회 발생하면 이때를 1초로 카운트하고, 또한 현재 판별된 주파수가 50헤르쯔이면 외부입력 단자를 통해 인터럽트가 50회 발생하면 이때를 1초로 카운트함으로서 정확한 시계의 동작을 유지할 수 있도록 한다.Therefore, if the current determined input frequency is 60 Hz, the microcomputer 73 counts 1 second when an interrupt occurs 60 times through the external input terminal. Also, if the current determined frequency is 50 Hz, the microcomputer 73 interrupts the external input terminal. If it occurs 50 times, this time is counted as 1 second to maintain accurate clock operation.
한편, 이와같이 외부입력 단자로 입력되는 인터럽트 신호에 의해 전원주파수를 판별할 수 있음은 상기 타이머의 16진수 데이터인 레지스터 값을 0.2msec 주기로 감소하면서 카운터 동작을 수행함으로 가능한 것으로 즉, 도 4에 도시된 바와같이 타이머의 16진수 데이터는 $FF에서 카운트를 0.2msec 주기로 감소 카운팅하면서 인터럽트 신호가 $B1(15.6 msec)에서 $A7(17.6msec)사이의 시간(S1)에 입력되면 이때의 정격 주파수를 60헤르쯔로 판별하고, 인터럽트 신호가 $A(19.0msec)에서 $96(21.0msec)사이의 시간(S2)에 입력되면 이때의 정격 주파수를 50헤르쯔로 판별한다.On the other hand, it is possible to determine the power frequency by the interrupt signal input to the external input terminal as described above is possible by performing the counter operation while reducing the register value, which is the hexadecimal data of the timer in 0.2msec period, that is, shown in FIG. As shown in the figure, the hexadecimal data of the timer is counted down from $ FF to 0.2msec. When the interrupt signal is input from $ B1 (15.6 msec) to $ A7 (17.6msec), the rated frequency is 60. If the interrupt signal is input at a time S2 between $ A (19.0 msec) and $ 96 (21.0 msec), the rated frequency at this time is determined as 50 hertz.
그리고 도 5에 도시된 같이 기존의 주파수 판단방법을 자세히 살펴보면 다음과 같다.A detailed frequency determination method as shown in FIG. 5 is as follows.
먼저, 외부로부터 입력되는 인터럽트 신호에 의해 인터럽트의 루틴(S51)에서는 레지스터 저장단계(S52)로 진행한다. 그러므로 이 레지스터 저장단계(S52)에서는 타이머의 레지스터 값을 저장하고 주파수판단 종료 판단단계(S3)로 진행한다. 따라서 이 주파수판단 종료 판단단계(S53)에서 판단한 결과 입력되는 주파수 판단이 종료되지 않음으로 판단되면 지연시간 동작단계(S4)로 진행한다. 그러므로 이 지연시간 동작단계(S4)에서는 외부로부터 입력되는 인터럽트 신호를 설정된 지연시간을 두고 주파수판단 플래그설정 판단단계(S55)로 진행한다. 그러므로 이 주파수판단 플래그설정 판단단계(S55)에서 판단한 결과 입력되는 인터럽트 신호와 내부 타이머의 카운트를 위한 플래그가 설정됨으로 판단되면 제 1카운트 판단단계(S56)로 진행한다.First, the interrupt routine S51 proceeds to the register storing step S52 by the interrupt signal input from the outside. Therefore, in the register storing step S52, the register value of the timer is stored and the flow proceeds to the frequency determination end determination step S3. Therefore, if it is determined that the input frequency determination is not finished as determined by the frequency determination end determination step (S53), the process proceeds to the delay time operation step (S4). Therefore, the delay time operation step S4 proceeds to the frequency determination flag setting determination step S55 with a delay time set for the interrupt signal input from the outside. Therefore, when it is determined in the frequency determination flag setting determination step (S55) that the flag for counting the input interrupt signal and the internal timer is set, the process proceeds to the first count determination step (S56).
따라서 이 제 1카운터 판단단계(S56)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $96보다 큰 값으로 판단되면 제 2카운터 판단단계(S77)로 진행한다. 따라서 이 제 2카운터 판단단계(S57)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $A0보다 크거나 동일한 값이 아님으로 판단되면 50헤르쯔 제 1플래그설정 판단단계(S58)로 진행한다.Therefore, when it is determined in the first counter determination step S56 that the timer counter value when the rising edge is generated from the input interrupt signal is greater than $ 96, the process proceeds to the second counter determination step S77. Therefore, when it is determined in the second counter determination step (S57) that the timer counter value when the rising edge is generated is not greater than or equal to $ A0 in the input interrupt signal, the 50 Hz first flag setting determination step (S58). Proceed to).
그러므로 이 50헤르쯔 1회 플래그설정 판단단계(S58)에서 판단한 결과 현재 50헤르쯔의 플래그 설정이 1회로 판단되면 주파수판단 플래그 설정단계(S62)로 진행하여 입력주파수에 따른 주파수 판단 플래그를 재 설정하고 타어머 카운터설정단계(S63)로 진행한다. 그러므로 이 타이머카운터 설정단계(S63)에서는 타이머카운트인 레지스터 값을 $FF로 제 입력하고 타이머동작단계(S64)로 진행한다. 그러므로 이 타이머 동작단계(S64)에서는 현재 타이머 타운터인 $FF 레지스터 값을 0.2msec주기로 디스크리먼트하고 레지스터 로드단계(S66)로 진행하여 현재 출력되는 레지스터 값을 읽어들이고 주 루틴으로 리턴됨으로 결국 인터럽트의 루틴(S51)으로 복귀하여 루프를 반복 수행한다.Therefore, if it is determined in the 50 Hz single flag setting decision step (S58) that the current 50 Hz flag is determined once, proceed to the frequency judging flag setting step (S62) to reset the frequency judgment flag according to the input frequency, The process proceeds to the mother counter setting step (S63). Therefore, in this timer counter setting step S63, the register value, which is a timer count, is input again as $ FF, and the flow advances to the timer operation step S64. Therefore, in this timer operation step (S64), the $ FF register value, which is the current timer townter, is decremented at 0.2msec period and proceeds to the register loading step (S66) to read the currently output register value and return to the main routine. The routine returns to the routine S51 to repeat the loop.
한편, 상기 제 2카운터 판단단계(S57)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $A0보다 큰값으로 판단되면 제 3카운터 판단단계(S59)로 진행한다. 이때 이 제 3카운터 판단단계(S59)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $A7보다 큰 값으로 판단되면 제 4카운터 판단단계(S60)로 진행한다. 그러므로 이 제 4카운터 판단단계(S60)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $B1보다 크거나 동일한 값이 아님으로 판단되면 60헤르쯔 1회 플래그설정 판단단계(S61)로 진행한다. 그러므로 이 60헤르쯔 1회 플래그설정 판단단계(S61)에서 판단한 결과 입력된 60헤르쯔의 플래그 설정이 1회로 판단되면 주파수판단 플래그 설정단계(S62)로 진행하여 재차 주파수 판단을 위한 동작을 반복 수행하고, 또한 상기 판단한 결과 입력된 60헤르쯔의 플래그 설정이 1회가 아닌 것으로 판단되면 즉, 2회로 판단되면 주파수판단 종료플래그 설정단계(S65)로 진행한다. 이에 이 주파수판단 종료플래그 설정단계(S65)에서는 주파수 판단에 따른 종료 플래그를 설정하고 레지스터 로드단계(S66)단계로 진행한다. 따라서 이 레지스터 로드단게(S66)에서는 현재 출력되는 레지스터 값을 읽어들이고 주 루틴으로 리턴됨으로 설정된 주파수에 의한 시계 카운트 동작을 수행한다.On the other hand, if it is determined in the second counter determination step S57 that the timer counter value when the rising edge is generated from the input interrupt signal is greater than $ A0, the process proceeds to the third counter determination step S59. At this time, if it is determined in the third counter determination step S59 that the timer counter value when the rising edge is generated from the input interrupt signal is greater than $ A7, the process proceeds to the fourth counter determination step S60. Therefore, if it is determined in the fourth counter determination step (S60) that the timer counter value when the rising edge is generated is not greater than or equal to $ B1 from the input interrupt signal, the 60Hz one time flag setting determination step (S61). Proceed to). Therefore, if it is determined in the 60 Hz one time flag setting determination step (S61) that the input 60 Hz flag setting is determined once, the process proceeds to the frequency determination flag setting step (S62) and repeats the operation for frequency determination again. In addition, if it is determined that the inputted 60 Hz flag setting is not one time, that is, the determination is made twice, the determination process of the frequency determination end flag proceeds to step S65. Accordingly, in this frequency determination end flag setting step (S65), an end flag is set according to the frequency determination and the process proceeds to the register loading step (S66). Therefore, the register load step S66 reads the current register value and performs a clock count operation by the frequency set to return to the main routine.
한편, 상기 50헤르쯔 1회 플래그설정 판단단계(S58)에서 판단한 결과 현재 50헤르쯔의 플래그 설정이 1회가 아닌 것으로 판다되면, 즉 2회로 판단되면 주파수판단 종료플래그 설정단계(S65)로 위에서 설명한 루프를 수행한다.On the other hand, if it is determined in the 50 Hz one time flag setting determination step (S58) that the current 50 Hz flag setting is not one time, that is, if it is determined as two times, the loop as described above in the frequency determination end flag setting step (S65). Do this.
이상과 같이 종래에는 교류입력 파형을 클럭 펄스로 변환하여 파형의 라이징에지시 내부 카운터 값을 읽어 입력되는 전원주파수가 50헤르쯔이거나 60헤르쯔인지를 판단하여 시계가 카운트되도록 함으로서 주파수가 상이한 국가에서도 정확하게 시계동작이 이루어지도록 하고 있다.As described above, the AC input waveform is converted into a clock pulse to read the internal counter value of the rising edge of the waveform to determine whether the input power frequency is 50 Hz or 60 Hz so that the clock is counted. It's working.
그러나 이와같이 전자렌지에서 입력되는 주파수를 이용하여 시계를 카운트함으로서 저렴한 가격으로 정확한 시계 기능을 갖출 수 있으나 주파수가 불 안정한 나라에서는 시계가 빠르거나 느림으로 인해 사용자는 전자렌지 자체에 이상이 있는 것으로 오인하게 되고 또한 조리를 위해 설정된 시간이 정확하지 않음으로 인해 예정된 조리시간을 초과함으로 음식물이 타는등의 현상이 나타나 결국 제품의 신뢰성이 떨어지는 문제점이 있었다.However, by counting the clock using the frequency input from the microwave in this way, it is possible to have a precise clock function at a low price, but in a country where the frequency is unstable, the user is mistaken that the microwave oven itself is abnormal due to the fast or slow clock. Also, due to the inaccurate time set for cooking, a phenomenon such as burning of food appears due to exceeding a predetermined cooking time, resulting in a problem that the reliability of the product is lowered.
이에 본 발명은 이와같은 문제점을 보완하기 위해 안출된 것으로 종래의 65헤르쯔, 55헤르쯔 및 45헤르쯔등의 불안정한 주파수가 입력되어도 그 주파수를 50헤르쯔와 60헤르쯔에 근접한 값으로 판단하였으나 본원에서는 50헤르쯔나 60헤르쯔가 아닌 불안정한 전원 주파수인 65헤르쯔, 55헤르쯔 및 45헤르쯔등이 입력되어도 그에 해당하는 주파수를 판별하여 시계의 카운트 동작을 정확히 수행함으로서 전자렌지의 경우 조리시간을 정확히 할 수 있도록 한 전자렌지의 시계보정을 위한 입력주파수 판단방법을 제공함에 그 목적이 있다.Therefore, the present invention was devised to compensate for such a problem, and even though the unstable frequencies such as the conventional 65 Hz, 55 Hz and 45 Hz were input, the frequency was determined to be close to 50 Hz and 60 Hz, but in the present application, 50 Hz Even if input frequency of unstable power frequency such as 65Hz, 55Hz and 45Hz is inputted, it is possible to determine the corresponding frequency and perform the counting operation of the clock accurately. The purpose is to provide an input frequency determination method for clock correction.
이와같은 목적을 이루기 위한 본 발명은 설정된 지연시간을 갖고 입력주파수에 따른 인터럽트 신호를 내부 타이머에 의해 카운트 하기 위한 플래그를 설정하는 주파수판단 플래그 설정과정과, 입력 주파수에 따른 인터럽트 신호가 제 1카운트 값 범위내이면 이때의 레지스터 값을 읽어들여 45헤르쯔의 주파수를 판단하는 제 1주파수 판단과정과, 입력 주파수에 따른 인터럽트 신호가 제 2카운트 값 범위내이면 이때의 레지스터 값을 읽어들여 50헤르쯔의 주파수로 판단하는 제 2주파수 판단과정과, 입력 주파수에 따른 인터럽트 신호가 제 3카운트 값 범위내이면 이때의 레지스터 값을 읽어들여 55헤르쯔의 주파수로 판단하는 제 3주파수 판단과정과, 입력 주파수에 따른 인터럽트 신호가 제 4카운트 값 범위내이면 이때의 레지스터 값을 읽어들여 60헤르쯔의 주파수로 판단하는 제 4주파수 판단과정과, 입력 주파수에 따른 인터럽트 신호가 제 5카운트 값 범위내이면 이때의 레지스터 값을 읽어들여 65헤르쯔의 주파수로 판단하는 제 5주파수 판단과정으로 이루어진 것을 특징으로 한다.In order to achieve the above object, the present invention provides a frequency determination flag setting process of setting a flag for counting an interrupt signal according to an input frequency by an internal timer with a set delay time, and an interrupt signal according to an input frequency having a first count value. If the range is within the first frequency determination process to read the register value at this time to determine the frequency of 45Hz, and if the interrupt signal according to the input frequency is within the second count value range, the register value at this time is read to the frequency of 50Hz A second frequency judging process for judging, a third frequency judging process for reading a register value at this time and judging it as a frequency of 55 hertz when the interrupt signal according to the input frequency is within the third count value range, and an interrupt signal according to the input frequency Is within the range of the fourth count value, the register value is read and 60 Hz is read. And a fourth frequency judging process for judging by frequency, and a fifth frequency judging process for reading a register value at this time and judging at a frequency of 65 hertz if the interrupt signal according to the input frequency is within the fifth count value range. .
도 1은 종래 전자렌지의 시계 카운터를 위한 주파수 판단 동작을 설명하는 도면.1 is a view for explaining a frequency determination operation for the clock counter of the conventional microwave oven.
도 2는 입력주파수에 따른 각 정격 주파수에 따른 클럭 펄스의 한주기를 설명하는 도면.2 is a diagram illustrating one period of a clock pulse according to each rated frequency according to an input frequency.
도 3은 종래 마이컴에서 입력 주파수 판단을 설명하는 도면.3 is a diagram illustrating input frequency determination in a conventional microcomputer.
도 4는 종래 타이머에서 출력된 클럭펄스에 의해 입력 주파수의 판단을 설명하는 도면.4 is a view for explaining determination of an input frequency by a clock pulse output from a conventional timer.
도 5는 도 4에 적용된 주파수 판단에 의해 종래 입력 주파수 검출을 설명하는 플로우챠트.FIG. 5 is a flowchart for explaining conventional input frequency detection by frequency determination applied to FIG. 4; FIG.
도 6은 본 발명에 따른 타이머에서 출력된 클럭펄스에 의해 입력 주파수의 판단을 설명하는 도면.6 is a view for explaining the determination of the input frequency by the clock pulse output from the timer according to the present invention.
도 7은 도 6에 적용된 주파수 판단에 따라 본 발명의 입력주파수 검출을 설명하는 플로우챠트.FIG. 7 is a flow chart illustrating input frequency detection of the present invention in accordance with the frequency determination applied to FIG. 6; FIG.
이에 본 발명을 첨부된 도면을 참조로하여 구체적으로 설명하면 다음과 같다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.
본 발명에 따라 외부로부터 입력되는 인터럽트의 신호를 더욱 세분화하여 타이머의 16진수 데이터인 레지스터 값을 0.2msec 주기로 감소하면서 카운터 동작을 수행할 때 입력되는 인터럽트 신호에 라이징 에지가 발생시의 레지스터 값을 읽음으로서 주파수를 판별한다.According to the present invention, the interrupt signal inputted from the outside is further subdivided to decrease the register value, which is the hexadecimal data of the timer, by 0.2 msec period, and to read the register value when the rising edge occurs in the interrupt signal input when the counter operation is performed. Determine the frequency.
즉, 도 6에 도시된 바와같이 타이머의 16진수 데이터는 $FF에서 카운트를 0.2msec 주기로 감소 카운팅하면서 인터럽트 신호가 $B8(14.2msec)에서 $B2(15.4msec)사이인 A구간에서 입력되면 이때의 정격주파수를 65헤르쯔로 판별하고, 또한 인터럽트 신호가 내부 카운터인 $AF(16.0msec)에서 $A9(17.6msec)사이인 B구간에 입력되면 이때의 정격 주파수를 60헤르쯔로 판별하고, 인터럽트 신호가 입력될 때의 내부 카운터가 $A6(17.8msec)에서 $A1(18.8msec)사이인 C구간의 범위이면 이때의 정격주파수를 55헤르쯔로 판별한다.That is, as shown in FIG. 6, when the hexadecimal data of the timer is counted down from $ FF to 0.2msec period, the interrupt signal is inputted from section A between $ B8 (14.2msec) and $ B2 (15.4msec). The rated frequency of is determined to be 65Hz, and when the interrupt signal is input to the B section between $ AF (16.0msec) and $ A9 (17.6msec), which is an internal counter, the rated frequency is determined to be 60Hz, and the interrupt signal If the internal counter when is input is in the range of section C between $ A6 (17.8msec) and $ A1 (18.8msec), the rated frequency at this time is determined as 55Hz.
그리고 인터럽트 신호가 입력될 때의 내부 카운터가 $9E(19.4msec)에서 $98(20.6msec)사이인 D구간의 범위이면 이때의 정격주파수를 50헤르쯔로 판별하고,인터럽트 신호가 입력될 때의 내부 카운터가 $95(21.2msec)에서 $8F(22.4msec)사이인 E구간의 범위이면 이때의 정격주파수를 45헤르쯔로 판별한다. 그러므로 입력주파수가 어느 정도 불안정 하더라도 해당 주파수에 따른 내부 카운터의 레지스터 값을 읽어 정확한 시계동작을 위한 주파수 판별이 가능하다.If the internal counter when the interrupt signal is input is in the range of D between $ 9E (19.4 msec) and $ 98 (20.6 msec), the rated frequency is determined as 50 Hz, and the internal counter when the interrupt signal is input. If the range is E, between $ 95 (21.2 msec) and $ 8F (22.4 msec), then the rated frequency is determined to be 45 hertz. Therefore, even if the input frequency is unstable to some extent, it is possible to determine the frequency for accurate clock operation by reading the register value of the internal counter according to the corresponding frequency.
여기서 시계보정을 위한 입력주파수 판단방법은 도 7a 및 b에 도시된 바와같이 외부로부터 입력되는 인터럽트 신호에 의한 인터럽트의 루틴(S1)에서는 레지스터 저장단계(S2)로 진행한다. 그러므로 이 레지스터 저장단계(S2)에서는 타이머의 레지스터 값을 저장하고 주파수판단 종료 판단단계(S3)로 진행한다. 따라서 이 주파수판단 종료 판단단계(S3)에서 판단한 결과 입력되는 주파수 판단이 종료되지 않음으로 판단되면 지연시간 동작단계(S4)로 진행한다. 그러므로 이 지연시간 동작단계(S4)에서는 외부로부터 입력되는 인터럽트 신호를 설정된 지연시간을 두고 주파수판단 플래그설정 판단단계(S5)로 진행한다. 그러므로 이 주파수판단 플래그설정 판단단계(S5)에서 판단한 결과 입력되는 일정시간 지연동작 후 입력되는 인터럽트 신호와 내부 타이머의 카운트를 위한 플래그가 설정됨으로 판단되면 제 1카운트 판단단계(S6)로 진행한다.Here, the input frequency determination method for clock correction proceeds to the register storage step S2 in the interrupt routine S1 by the interrupt signal input from the outside, as shown in FIGS. 7A and 7B. Therefore, the register storing step S2 stores the register value of the timer and proceeds to the frequency determination end determination step S3. Therefore, when it is determined that the input frequency determination is not finished as determined by the frequency determination end determination step S3, the process proceeds to the delay time operation step S4. Therefore, the delay time operation step S4 proceeds to the frequency determination flag setting determination step S5 with a delay time set for the interrupt signal input from the outside. Therefore, if it is determined in the frequency determination flag setting determination step S5 that the flag for counting the interrupt signal and the internal timer that is input after the input delay time is inputted, the flow proceeds to the first count determination step S6.
따라서 이 제 1카운터 판단단계(S6)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $8F보다 작은값으로 판단되면 제 2카운터 판단단계(S7)로 진행한다. 그러면 이 제 2카운터 판단단계(S7)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $95보다 크거나 동일한 값이 아닌 것으로 판단되면 45헤르쯔 제 1플래그설정 판단단계(S8)로 진행한다. 그러므로 이 45헤르쯔 제 1플래그설정 판단단계(S8)에서 판단한 결과 현재 45헤르쯔의 플래그 설정이 1회로 판단되면 즉, 플레그 1이 셋트 되지 않을때는 주파수판단 플래그 설정단계(S21)로 진행한다. 그러므로 이 타이머 재설정단계(S21)에서는 타이머 카운트인 레지스터 값을 $FF로 재 입력하고 타이머 동작단계(S22)로 진행한다. 그러므로 이 타이머 동작단계(S22)에서는 현재 타이머 타운터인 $FF 레지스터 값을 0.2msec주기로 디스크리먼트하고 레지스터 로드단계(S24)로 진행하여 현재 출력되는 레지스터 값을 읽어들이고 주 루틴으로 리턴됨으로 인터럽트의 루틴(S1)으로 복귀하여 루프를 재 동작한다.Therefore, when it is determined in the first counter determination step S6 that the timer counter value when the rising edge is generated is less than $ 8F in the input interrupt signal, the process proceeds to the second counter determination step S7. Then, when it is determined in the second counter determination step S7 that the timer counter value when the rising edge is generated is not greater than or equal to $ 95 as a result of the input interrupt signal, the 45 Hz first flag setting determination step S8 is performed. Proceed to Therefore, if it is determined in the 45 Hz first flag setting decision step S8 that the current 45 Hz flag setting is determined once, that is, when flag 1 is not set, the process proceeds to the frequency determination flag setting step S21. Therefore, in this timer resetting step S21, the register value, which is a timer count, is input again as $ FF, and the flow advances to the timer operation step S22. Therefore, in this timer operation step (S22), the $ FF register value, which is the current timer townter, is decremented at 0.2msec period, and the register load step (S24) is read to read the current register value and returned to the main routine. The loop returns to the routine S1 to resume operation of the loop.
한편, 상기 제 2카운터 판단단계(S7)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $95보다 크거나 동일한 값으로 판단되면 제 3카운터 판단단계(S9)로 진행한다. 이때 이 제 3카운터 판단단계(S9)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $98보다 큰 것으로 판단되면 제 4카운터 판단단계(S10)로 진행한다. 그러므로 이 제 4카운터 판단단계(S10)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $9E보다 크거나 동일한 값이 아님으로 판단되면 50헤르쯔 1회 플래그설정 판단단계(S11)로 진행한다. 그러므로 이 50헤르쯔 1회 플래그설정 판단단계(S11)에서 판단한 결과 입력된 50헤르쯔의 플래그 설정이 1회로 판단되면 주파수판단 플래그 설정단계(S21)로 진행하여 재차 주파수 판단을 위한 동작을 반복 수행하고, 또한 상기 판단한 결과 입력된 50헤르쯔의 플래그 설정이 1회가 아닌 것으로 판단되면 즉, 2회로 판단되면 주파수판단 종료플래그 설정단계(S24)로 진행한다. 이에 이 주파수판단 종료플래그 설정단계(S24)에서는 주파수 판단에 따른 종료 플래그를 설정하고 레지스터 로드단계(S25)로 진행한다. 따라서 이 레지스터 로드단계(S25)에서는 현재 출력되는 레지스터 값을 읽어들이고 주 루틴으로 리턴됨으로 설정된 주파수에 의한 시계 카운트 동작을 수행한다.On the other hand, if it is determined in the second counter determination step S7 that the timer counter value when the rising edge is generated is greater than or equal to $ 95 in the input interrupt signal, the process proceeds to the third counter determination step S9. In this case, when it is determined that the timer counter value when the rising edge is generated from the input interrupt signal is greater than $ 98 as a result of the determination in the third counter determination step S9, the process proceeds to the fourth counter determination step S10. Therefore, if it is determined in the fourth counter determination step (S10) that the timer counter value when the rising edge is generated is not greater than or equal to $ 9E in the input interrupt signal, the 50Hz one-time flag setting determination step (S11). Proceed to). Therefore, if it is determined in the 50 Hz one time flag setting determination step (S11) that the input 50 Hz flag setting is determined once, the process proceeds to the frequency determination flag setting step (S21) and repeats the operation for frequency determination again. In addition, if it is determined that the input 50Hz flag setting is not one time, that is, if it is determined two times, the process proceeds to the frequency determination end flag setting step (S24). Accordingly, in this frequency determination end flag setting step (S24), the end flag is set in accordance with the frequency determination, and the process proceeds to the register loading step (S25). Therefore, in this register loading step (S25), the current counting register value is read and a clock count operation by the frequency set to return to the main routine is performed.
그리고 상기 제 4카운터 판단단계(S10)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $9E보다 크거나 동일한 값으로 판단되면 제 5카운터 판단단계(S12)로 진행한다. 이때 이 제 5카운터 판단단계(S12)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터 값이 $A1보다 큰 것으로 판단되면 제 6카운터 판단단계(S13)로 진행한다. 그러므로 이 제 6카운터 판단단계(S13)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $A6보다 크거나 동일한 값이 아님으로 판단되면 55헤르쯔 1회 플래그설정 판단단계(S14)로 진행한다. 그러므로 이 55헤르쯔 1회 플래그설정 판단단계(S14)에서 판단한 결과 입력된 55헤르쯔의 플래그 설정이 1회로 판단되면 주파수판단 플래그 설정단계(S21)로 진행하여 재차 주파수 판단을 위한 동작을 반복 수행하고, 또한 상기 판단한 결과 입력된 50헤르쯔의 플래그 설정이 1회가 아닌 것으로 판단되면 즉, 2회로 판단되면 주파수판단 종료플래그 설정단계(S24)로 진행한다. 이에 이 주파수판단 종료플래그 설정단계(S24)에서는 주파수 판단에 따른 종료 플래그를 설정하고 레지스터 로드단계(S25)로 진행한다. 따라서 이 레지스터 로드단계(S25)에서는 현재 출력되는 레지스터 값을 읽어들이고 주 루틴으로 리턴됨으로 설정된 주파수에 의한 시계 카운트 동작을 수행한다.If it is determined in the fourth counter determining step S10 that the timer counter value when the rising edge is generated is greater than or equal to $ 9E in the input interrupt signal, the process proceeds to the fifth counter determining step S12. In this case, when it is determined that the timer counter value when the rising edge is greater than $ A1 is determined as the result of the determination in the fifth counter determination step S12, the process proceeds to the sixth counter determination step S13. Therefore, if it is determined in the sixth counter determination step (S13) that the timer counter value when the rising edge is generated is not greater than or equal to $ A6 in the input interrupt signal, the 55Hz one time flag setting determination step (S14). Proceed to). Therefore, if it is determined in the 55 Hz one-time flag setting determination step (S14) that the input 55 Hz flag setting is determined once, the process proceeds to the frequency determination flag setting step (S21) and repeats the operation for frequency determination again. In addition, if it is determined that the input 50Hz flag setting is not one time, that is, if it is determined two times, the process proceeds to the frequency determination end flag setting step (S24). Accordingly, in this frequency determination end flag setting step (S24), the end flag is set in accordance with the frequency determination, and the process proceeds to the register loading step (S25). Therefore, in this register loading step (S25), the current counting register value is read and a clock count operation by the frequency set to return to the main routine is performed.
또한, 상기 제 6카운터 판단단계(S13)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $A6보다 크거나 동일한 값으로 판단되면 제 7카운터 판단단계(S15)로 진행한다. 이때 이 제 7카운터 판단단계(S15)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $A9보다 큰 것으로 판단되면 제 8카운터 판단단계(S16)로 진행한다. 그러므로 이 제 8카운터 판단단계(S16)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $AF보다 크거나 동일한 값이 아님으로 판단되면 60헤르쯔 1회 플래그설정 판단단계(S17)로 진행한다. 그러므로 이 60헤르쯔 1회 플래그설정 판단단계(S17)에서 판단한 결과 입력된 60헤르쯔의 플래그 설정이 1회로 판단되면 주파수판단 플래그 설정단계(S21)로 진행하여 재차 주파수 판단을 위한 동작을 반복 수행하고, 또한 상기 판단한 결과 입력된 50헤르쯔의 플래그 설정이 1회가 아닌 것으로 판단되면 즉, 2회로 판단되면 주파수판단 종료플래그 설정단계(S24)로 진행하여 위에서 상술한 루프로 동작한다.In addition, when it is determined in the sixth counter determination step S13 that the timer counter value when the rising edge is generated is greater than or equal to $ A6 in the input interrupt signal, the process proceeds to the seventh counter determination step S15. . In this case, if it is determined that the timer counter value when the rising edge is greater than $ A9 is determined as the result of the determination in the seventh counter determination step (S15), the process proceeds to the eighth counter determination step (S16). Therefore, if it is determined in the eighth counter determination step (S16) that the timer counter value when the rising edge is generated is not greater than or equal to $ AF as a result of the input interrupt signal, the 60Hz one time flag setting determination step (S17). Proceed to). Therefore, if it is determined in the 60 Hz one time flag setting determination step (S17) that the input 60 Hz flag setting is determined once, the process proceeds to the frequency determination flag setting step (S21) and repeats the operation for frequency determination again. In addition, if it is determined that the input 50Hz flag setting is not one time, that is, if it is determined as two times, the process proceeds to the frequency determination end flag setting step S24 and operates in the loop described above.
한편, 상기 제 8카운터 판단단계(S16)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $AF보다 크거나 동일한 값으로 판단되면 제 9카운터 판단단계(S18)로 진행한다. 이때 이 제 9카운터 판단단계(S18)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $B2보다 큰 값으로 판단되면 제 10카운터 판단단계(S19)로 진행한다. 그러므로 이 제 10카운터 판단단계(S19)에서 판단한 결과 입력되는 인터럽트 신호에서 라이징 에지 발생될 때의 타이머 카운터값이 $B2보다 크거나 동일한 값이 아님으로 판단되면 65헤르쯔 1회 플래그설정 판단단계(S20)로 진행한다. 그러므로 이 65헤르쯔 1회 플래그설정 판단단계(S20)에서 판단한 결과 입력된 65헤르쯔의 플래그 설정이 1회로 판단되면 주파수판단 플래그 설정단계(S21)로 진행하여 재차 주파수 판단을 위한 동작을 반복 수행하고, 또한 상기 판단한 결과 입력된 65헤르쯔의 플래그 설정이 1회가 아닌 것으로 판단되면 즉, 2회로 판단되면 주파수판단 종료플래그 설정단계(S24)로 진행한다.On the other hand, if it is determined in the eighth counter determination step (S16) that the timer counter value when the rising edge is generated is greater than or equal to $ AF from the input interrupt signal, the process proceeds to the ninth counter determination step (S18). . In this case, when it is determined in the ninth counter determination step S18 that the timer counter value when the rising edge is generated is greater than $ B2 in the input interrupt signal, the flow proceeds to the tenth counter determination step S19. Therefore, when it is determined in the tenth counter determination step (S19) that the timer counter value when the rising edge is generated is not greater than or equal to $ B2 in the input interrupt signal, the 65Hz one-time flag setting determination step (S20). Proceed to). Therefore, if it is determined in the 65 Hz one-time flag setting determination step (S20) that the input 65 Hz flag setting is determined once, the process proceeds to the frequency determination flag setting step (S21) and repeats the operation for frequency determination again. In addition, if it is determined that the inputted flag setting of 65 Hz is not one time, that is, if it is determined two times, the process proceeds to the frequency determination end flag setting step (S24).
한편, 상기 주파수판단 플래그설정 판단단계(S5)에서 판단한 결과 입력되는 일정시간 지연동작 후 입력되는 인터럽트 신호와 내부 타이머의 카운트를 위한 플래그가 설정되지 않거나 제 1카운터 판단단계(S6), 제 3카운터 판단단계(S9),제 5카운터 판단단계(S12),제 7카운터 판단단계(S15) 및 제 9카운터 판단단계(S18)에서 판단한 결과 해당하는 각 카운터의 값이 설정된 값보다 작은 것으로 판단되면 주파수판단 플래그 설정단계(S21)로 진행하여 루프를 반복 수행한다.Meanwhile, as a result of the determination in the frequency determination flag setting determination step (S5), a flag for counting the interrupt signal and the internal timer input after a predetermined time delay operation is not set or the first counter determination step (S6) and the third counter. If it is determined in the determination step (S9), the fifth counter determination step (S12), the seventh counter determination step (S15) and the ninth counter determination step (S18) that the value of each counter is smaller than the set value, the frequency The process proceeds to the determination flag setting step S21 to repeat the loop.
이와같이 본 발명은 최대한 입력 주파수대를 확대하여 입력주파수가 불안정하여도 해당 주파수에 따른 각각 주파수대를 판단함으로서 입력주파수가 불안정하여도 시계의 시간 보정을 정확히 할 수 있도록 하여 조리시간에 따른 정확한 조리를 가능하게 함은 물론 제품의 신뢰성이 향상되는 효과가 있다.As such, the present invention enlarges the input frequency band as much as possible to determine the respective frequency bands according to the corresponding frequency even if the input frequency is unstable, so that accurate time correction of the clock can be performed even if the input frequency is unstable to enable accurate cooking according to the cooking time. Of course, there is an effect that improves the reliability of the product.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019980024783A KR100262122B1 (en) | 1998-06-29 | 1998-06-29 | An input-frequency decision method for time correction of microwave oven |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019980024783A KR100262122B1 (en) | 1998-06-29 | 1998-06-29 | An input-frequency decision method for time correction of microwave oven |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20000003533A true KR20000003533A (en) | 2000-01-15 |
KR100262122B1 KR100262122B1 (en) | 2000-07-15 |
Family
ID=19541310
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019980024783A KR100262122B1 (en) | 1998-06-29 | 1998-06-29 | An input-frequency decision method for time correction of microwave oven |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100262122B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100688339B1 (en) * | 2005-03-30 | 2007-03-02 | 강성택 | The changeable cemetery |
-
1998
- 1998-06-29 KR KR1019980024783A patent/KR100262122B1/en not_active IP Right Cessation
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100688339B1 (en) * | 2005-03-30 | 2007-03-02 | 강성택 | The changeable cemetery |
Also Published As
Publication number | Publication date |
---|---|
KR100262122B1 (en) | 2000-07-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5491440A (en) | Automatic clock duty cycle adjusting circuit | |
KR100262122B1 (en) | An input-frequency decision method for time correction of microwave oven | |
US5212439A (en) | Charging apparatus with battery voltage monitoring circuitry | |
US5373224A (en) | Method and apparatus for varying the power in a load connected to the mains | |
KR0137780B1 (en) | Pulse width discriminating circuit | |
KR200337665Y1 (en) | An apparatus to compensate the counter of a microwave oven | |
KR960008184A (en) | Humidity Sensor Lead Time Control Method of Microwave Oven | |
CN112181047B (en) | Self-adaptive method based on power frequency clock source of power grid | |
JP3383437B2 (en) | Time measurement method and clock | |
US4941160A (en) | Frequency multiplier circuitry and method | |
KR950013602B1 (en) | Frequency measuring device | |
JPS6123738B2 (en) | ||
JPH0125508Y2 (en) | ||
JPH02227698A (en) | Automatic adjusting device for clock | |
JPS61183722A (en) | Load voltage control device | |
KR950009111A (en) | How to read power supply frequency of microwave oven | |
KR970001362B1 (en) | Method for maintenance of regular power consumption | |
JPH0285792A (en) | Ac period watch | |
JPS6216718A (en) | Rice cooker | |
JPS5758434A (en) | Clock synchronizing circuit | |
JPH04312352A (en) | Input under voltage detecting circuit | |
JP2004053455A (en) | Electronic watthour meter | |
JPH01147644A (en) | Programmable controller | |
JPH03173093A (en) | Power control of magnetron power supply | |
JPH04337920A (en) | Timer device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20120402 Year of fee payment: 13 |
|
FPAY | Annual fee payment |
Payment date: 20130401 Year of fee payment: 14 |
|
LAPS | Lapse due to unpaid annual fee |