Claims (5)
전원주파수의 1주기마다 발생되는 외부인터럽트가 걸리면, 내부타이머를 동작시키는 1주기시간이 경과되기 전에 외부인터럽트가 걸리는지, 소정시간을 경과한후에 외부인터럽트가 걸리는지에 의거하여 60Hz인지 50Hz인지에 대해 서로구별되게 세팅시키는 1차판독과정과, 그 1차판독과정에서 세팅된 이전세팅값과 현재세팅값이 같은지를 판단하여 같은 경우에만 횟수카운트를 증가시키는 횟수카운트과정과, 그 횟수 카운트값이 미리 설정된 소정횟수를 넘게되면, 상기 세팅된 값에 따라 해당주파수로 판단하여 주파수 판독을 완료하는 주파수판독과정을 수행하도록 이루어진 것을 특징으로 하는 전자레인지의 전원주파수 판독 방법.If an external interrupt occurs every 1 cycle of the power frequency, distinguish between 60Hz and 50Hz based on whether an external interrupt occurs before one cycle time of operating the internal timer or if an external interrupt occurs after a predetermined time. The first reading process for setting the number of times, the number counting process for increasing the count count only when the same value is determined by determining whether the previous setting value and the current setting value are the same in the first reading process, and the predetermined number of times is set in advance. When the number of times is exceeded, the power frequency reading method of the microwave oven, characterized in that the frequency is determined to perform a frequency reading process to complete the frequency reading by determining the corresponding frequency according to the set value.
제1항에 있어서, 상기 1차판독과정은, 상기 내부타이머의 카운트시간이 상기 미리설정된 소정시간에 도달되는지를 판단하는 시간체크단계와, 그 시간체크 결과 내부타이머의 카운트 시간이 상기 미리설정된 소정시간에 도달될때까지 상기 외부인터럽트가 다시 걸리는지를 판단하는 외부인터럽트 판단단계와, 그 외부인터럽트 판단 단계에서 외부인터럽트가 걸리면, 제1램에 60Hz 판단에 따른 1차세트(RAM1=2)를 하는 60Hz판단단계와, 상기 내부타이머의 카운트시간이 상기 미리설정된 소정시간에 도달되면, 상기 제1램에 50Hz 판단에 따른 1차세트(RAM1=1)를 하는 50Hz판단단계를 수행하도록 이루어진 것을 특징으로 하는 전자레인지의 전원주파수 판독방법.The method of claim 1, wherein the first reading process comprises: a time checking step of determining whether the count time of the internal timer reaches the predetermined time, and the count time of the internal timer is determined by the predetermined time as a result of the time check. An external interrupt determination step of determining whether the external interrupt is applied again until time is reached, and if an external interrupt is caught in the external interrupt determination step, 60 Hz of performing a first set (RAM1 = 2) according to the 60 Hz judgment on the first RAM. And a 50 Hz determination step of performing a first set (RAM1 = 1) according to a 50 Hz determination on the first RAM when the counting time of the internal timer reaches the predetermined predetermined time. How to read the power frequency of the microwave oven.
제1항에 있어서, 상기횟수카운트과정은, 이전세팅값을 저장하는 제2램과 현재세팅값을 저장하는 제1램의 세팅값이 서로 같은지를 판단하는 단계와, 그 제1램의 세팅값과 제2램의 세팅값이 서로 다른 경우에는 상기 제2램을 제1램의 현재 세팅값으로 치환하고, 횟수카운터를 클리어시키는 이전값 저장단계와, 상기 제1램과 제2램의 세팅값이 서로 같으면, 상기 횟수카운터의 카은트값을 1증가시키는 횟수카운트 증가단계를 수행하도록 이루어진 것을 특징으로 하는 전자레인지의 전원주파수 판독 방법.The method of claim 1, wherein the counting process comprises: determining whether the setting values of the second ram storing the previous setting value and the first ram storing the current setting value are the same, and the setting value of the first ram; If the setting value of the RAM and the second is different from each other, the second RAM is replaced with the current setting value of the first RAM, the previous value storage step of clearing the count counter, the setting value of the first RAM and the second RAM If the same, the power frequency reading method of the microwave oven, characterized in that to perform a count count increasing step of increasing the count value of the count counter by one.
제1항에 있어서, 상기 주파수 판독과정은, 횟수카운터의 카운터값이 미리설정된 소정횟수가 되는지를 판단하여 그 소정횟수에 도달될때까지 상기 1주기 카운트과정으로 되돌아가는 단계와, 상기 횟수카운트값이 미리설정된 소정횟수에 도달되면, 상기 1차판독과정에서 세팅된 세팅값이 60Hz판독에 따른 세팅값(RAM1=2)인지를 판단하는 단계와, 그 결과 60Hz판독에 따른 세팅값(RAM1=2)이면, 전원주파수를 60Hz로 판단하고, 50Hz판독에 따른 세팅값(RAM1=2)인경우에는 전원주파수를 50Hz로 판단하여 주파수 판독을 완료하는 단계를 수행하도록 이루어진 것을 특징으로 하는 전자레인지의 전원주파수 판독 방법.2. The method of claim 1, wherein the frequency reading process includes: determining whether the counter value of the number counter becomes a predetermined number of times and returning to the one cycle counting process until the predetermined number of times is reached; When a predetermined number of times is reached, determining whether the setting value set in the first reading process is a setting value (RAM1 = 2) according to 60 Hz reading, and as a result, setting value (RAM1 = 2) according to 60 Hz reading. In this case, the power supply frequency of the microwave oven is determined to be 60 Hz, and in the case of a setting value (RAM1 = 2) according to the 50 Hz reading, the power supply frequency is determined to be 50 Hz to complete the frequency reading. Read method.
제4항에 있어서, 상기 횟수카운터의 카운트값과 비교하는 소정횟수는 10회인 것을 특징으로 하는 전자레인지의 전원주파수 판독방법.5. The method of claim 4, wherein the predetermined number of times compared with the count value of the number counter is 10 times.
※ 참고사항 : 최초출원 내용에 의하여 공개하는 것임.※ Note: The disclosure is based on the initial application.