APPARATUS FOR CONTROLLING AN ELECTRICAL COOKER AND RELATED METHOD THEREOF
The present invention provides a micro-control device, which comprises a RC oscillator for generating a reference clock, a plurality of analog switches coupled to the touch switches for controlling transmission of the transition signal and a plurality of counters for counting time, all of the counters stop counting when one of the counters overflows and content of all counters being read, wherein ON/OFF of the analog switches controlled by a software.
Latest HOLTEK SEMICONDUCTOR INC. Patents:
- APPARATUS AND METHOD FOR DETECTING MOTOR ROTOR POSITION
- Whole blood measurement method associated to hematocrit
- WHOLE BLOOD MEASUREMENT METHOD ASSOCIATED TO HEMATOCRIT
- Whole blood measurement method associated to hematocrit (HCT) and whole blood measurement circuit thereof
- WHOLE BLOOD MEASUREMENT METHOD ASSOCIATED TO HEMATOCRIT (HCT) AND WHOLE BLOOD MEASUREMENT CIRCUIT THEREOF
1. Field of the Invention
The invention relates to an apparatus for controlling an electrical cooker and a method for detecting states of a plurality of touch switches, and more particularly to a micro-control device comprises a RC oscillator, a plurality of touch switches, a plurality of analog switches and two counters to simplify peripheral devices and utilize a software to adjust the sensitivity of the touch switches.
2. Description of the Related Art
In modern life, 3C products hold a large part of modern life. The consumer electronics become light, thin, short, small and smart. For example, an electrical magnetic cooker, a hotplate or a rice cooker, it is easy to use for cooking or heating food and only need electrical power. It is also safe than a cooker with gas and fire.
Generally, input devices of conventional electrical cookers are mechanical button. The shortage of the mechanical button is elasticity fatigue by frequently pressing, or shape changed because of high temperature. In other hand, some electrical cookers have touch switches, but it is complicated to design. Besides a basic micro-control unit, many different electric devices, for example, a device for adjusting the sensitivity of the touch switch, are also need. Consequently, it causes the higher cost.
Referring to
Referring to
To solve the disadvantage of the prior art. The present invention provides an apparatus for controlling an electrical cooker, a method for detecting states of a plurality of touch switches and a micro-control unit.
The present invention provides an apparatus for controlling an electrical cooker comprises at least one touch switch for generating a transition signal, a panel control unit for processing and detecting states of the touch switch to generate an electric signal and a micro-control unit for receiving the electric signal transmitted by the panel control unit and controlling power the electrical cooker.
The present invention also provides an IC circuit comprised in the panel control unit, the IC circuit comprises a RC oscillator for generating a reference clock, a plurality of analog switches coupled to the touch switches for controlling transmission of the transition signal and a plurality of counters for counting time, whereby all of the counters stop counting when one of the counters overflows and content of all counters being read, wherein ON/OFF of the analog switches controlled by a software.
The present invention provides an apparatus for controlling an electrical cooker comprises an apparatus for controlling an electrical cooker, comprises a plurality of touch switches for generating a transition signal indicating one of the touch switches being touched by human beings, a panel control unit coupled to the touch switches and including a IC circuit for processing and detecting states of the touch switch to generate an electronic signal, wherein the IC circuit comprises: a RC oscillator for generating a reference clock; a plurality of analog switches for controlling transmission of the transition signal; and a plurality of counters for counting time, all of the counters stop counting when one of the counters overflows and content of all counters being read; wherein ON/OFF of the analog switches controlled by a software; and a micro-control unit coupled to the panel control unit for receiving the electric signal transmitted by the panel control unit and controlling power the electrical cooker.
The present invention also provides a method for detecting states of a plurality of touch switches comprises determining one of the touch switches for detection, setting source of a first counter, configuring the first counter and a second counter to stop counting when the first counter overflows, initializing the first counter and the second counter, starting a RC oscillator, the first counter and the second counter, determining whether the first counter and the second counter stop or not, storing content of the first counter in a first memory (X0) of a micro-controller, initializing the first counter, setting content of the second counter to 0, starting the RC oscillator, the first counter and the second counter, determining whether the first counter and the second counter stop or not, storing content of the first counter in a second memory (X1) of the micro-controller and determining whether (X0-X1) is larger than a sensitivity value or not.
A detailed description is given in the following embodiments with reference to the accompanying drawings.
The invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
Several exemplary embodiments of the invention are described with reference to
The invention discloses an apparatus for controlling an electrical cooker, a method for detecting states of a plurality of touch switches and a micro-control unit.
Referring to
The apparatus comprises at least one touch switch 24, a RC circuit 25, a panel control unit 22, a light-emitting diode 23, and a micro-control unit 21. The touch switch 24 being a electronic switch for generating a transition signal to the panel control unit 24 when the touch switch 24 is touched by human beings. The panel control unit 22 is coupled to the touch switch 24 for processing and detecting states (for example, ON/OFF) of the touch switch 24 according to the transition signal, and generating an electric signal according a frequency. The micro-control unit 21 is coupled to the panel control unit 22 for receiving the electric signal transmitted by the panel control unit 22 and controlling power the electrical cooker. The light-emitting diode (LED) circuit 23 coupled to the panel control unit 22 is controlled by the micro-control unit 21 to drive LEDs (not shown). Further, the panel control unit 22 transmits the states of the touch switch 24 to the micro-control unit 21 and receives information from the micro-control unit 21 to light the LEDs of the LED circuit 23. Moreover, the panel control unit 22 further comprises a IC circuit having three pins IN, RREF and CREF for forming a RC oscillator so as to the frequency being changed by the RC circuit 25 coupled to IN, RREF and CREF three pins, and wherein the RC circuit 25 includes at least one register and at least one capacitor. With respect to the description of the IC circuit, it will be discussed in detail later. In one embodiment, the panel control unit 22 detects, for example, 16 touch switches by software, a RC oscillator included in itself, two 16-bits counters and 16 analog switches. The panel control unit 22 utilizes two built-in 8-bits counters and 16 pins having enforced driving capability to light 64 LEDs. The micro-control unit 21 communicates the panel control unit 22 with 3 pins, and transmits the states of the touch switch 24 and information about lighting LEDs.
Referring to
The IC circuit 221 comprises a RC oscillator, a first counter 2213, a second counter 2214, three pins (IN, RREF, CREF) 2212 and an analog switch on/off control register (ASON) 2211. The first counter 2213 and the second counter 2214 are, for example, 8-bits counters. The RC oscillator and two counters 2213, 2214 have the same control source to start at the same time. In this embodiment, the first counter 2213 has a default value could be configured by software. When the first counter 2213 overflows, two counters stop counting at the same time and the content of two counters are stored. The software can set which analog switches (T.G.1˜T.G.16) to turn on and pass the input (K1˜K16) accordingly. K1˜K16 are pins of the IC circuit 221 and coupled to the touch switches like a piece of metal covered glass/acrylic or copper ring covered glass/acrylic on a circuit board. KOUT is one of pins of the IC circuit 221 and coupled to K1˜K16 via T.G.1˜T.G.16. The ASON 2211 could turn one of T.G.1˜T.G.16 on and one corresponding pins K1˜K16 will connect to KOUT, the ASON reference table is shown in Table 1. When one of touch switches K1˜K16 is touched by human beings, the frequency of RC will be changed and a transition signal is transmitted through one of analog switches (T.G.1˜T.G.16) to KOUT. The RC oscillator is the combination of resisters and capacitor correspondingly coupled to IN, RREF and CREF pins.
Referring to
The first counter 33 receives a system pulse signal 31 and a ¼ system pulse signal 32. The second counter 34 receives the output of the RC oscillator 36. A start control register (T1ON) 35 connects to the first counter 33 and the second counter 34. The operation is as follow:
-
- a. determining the input of the first counter 33 is the system pulse signal 31 or the ¼ system pulse signal 32;
- b. transmitting signal of the RC oscillator 36 to the second counter 34;
- c. generating an interrupt when the first counter 33 or the second counter 34 overflows to reset T1ON 35 to zero whereby stop the first counter 33 or the second counter 34 counting, wherein the first counter 33 and the second counter 34 is selected by the OVB control register;
- d. In the step c, the T1ON 35 controls two counters to start counting when T1ON is 1 and to stop counting when T1ON is 0.
The operation described above also could apply to a case of multiple touch switches by increasing multiple ASONs for detecting multiple touch switches one by one.
Referring to
Referring to
-
- a. determining one of the touch switches for detection;
- b. setting source of a first counter;
- c. configuring the first counter and a second counter to stop counting when the first counter overflows;
- d. initializing the first counter;
- e. setting content of the second counter to 0;
- f. starting the RC oscillator, the first counter and the second counter;
- g. determining whether the first counter and the second counter stop or not, if yes, go to h. step; otherwise, keep g. step;
- h. storing content of the first counter in the first memory (X0) of the micro-controller;
- i. initializing the first counter;
- j. setting content of the second counter to 0;
- k. starting the RC oscillator, the first counter and the second counter;
- l. determining whether the first counter and the second counter stop or not, if yes, go to m. step; otherwise, keep l. step;
- m. storing content of the second counter in the second memory (X1) of the micro-controller;
- n. determining whether (X0-X1) is larger than a sensitivity value or not, if yes, the touch switch is off, otherwise, is on; and
- o. repeating the steps i. to step n. to continue detecting the touch switches.
Referring to
In the timing diagram, the master presents the panel control unit and the slave presents the micro-control unit. The master transmits/receives data from output/input pins before the falling edge of the clock, but the slave transmits/receives data from output/input pins after the falling edge of the clock.
Referring to
Eight 8-bits data, for example, could be encoded in 81 bits. Each one data has a parity bit (bit D8 is even parity of bits D0˜D7). Also, bit D72 is even parity of bit D0, D9, D18, D27, D36, D45, D54 and D63. Furthermore, bit D80 is even parity of bits D72˜D79. In other word, there are M+N+1 even parity bits if M N-bits data. To prevent the interference from the noise of the AC power (50 Hz or 60 Hz), it should be set the frequency of the RC oscillator to 50 Hz or 60 Hz. More touch switches need detection, less detection speed occurs. For example, detecting 16 touch switches needs 0.32 second (one touch switch 20 ms/50 Hz). The time 0.32 seconds is too slow to tolerate by users. It may be set 200 Hz to detect 16 touch switches that needs only 0.08 seconds. Then detecting the state of the touch switch is on or off needs 0.02 seconds. Totally it needs 0.1 seconds faster than 0.32 seconds.
Methods and systems of the present disclosure, or certain aspects or portions of embodiments thereof, may take the form of program code (i.e., instructions) embodied in media, such as floppy diskettes, CD-ROMS, hard drives, firmware, or any other machine-readable storage medium, wherein, when the program code is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing embodiments of the disclosure. The methods and apparatus of the present disclosure may also be embodied in the form of program code transmitted over some transmission medium, such as electrical wiring or cabling, through fiber optics, or via any other form of transmission, wherein, when the program code is received and loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing and embodiment of the disclosure. When implemented on a general-purpose processor, the program code combines with the processor to provide a unique apparatus that operates analogously to specific logic circuits.
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Claims
1. An apparatus for controlling an electrical cooker, comprising:
- at least one touch switch for generating a transition signal;
- a panel control unit coupled to the least one touch switch for processing and detecting states of the touch switch to generate an electric signal; and
- a micro-control unit coupled to the panel control unit for receiving the electric signal transmitted by the panel control unit and controlling power the electrical cooker.
2. The apparatus as claimed in claim 1, further comprising a light-emitting circuit controlled by the micro-control unit.
3. The apparatus as claimed in claim 2, wherein the light-emitting circuit comprises a light-emitting diode and a resister which restricts current.
4. The apparatus as claimed in claim 1, wherein the panel controller further comprises a IC circuit, which comprises:
- a RC oscillator for generating a reference clock;
- a plurality of analog switches for controlling transmission of the transition signal; and
- a plurality of counters for counting time, all of the counters stop counting when one of the counters overflows and content of all counters being read; wherein ON/OFF of the analog switches controlled by a software.
5. The apparatus as claimed in claim 4, wherein the IC circuit further comprises three pins IN, RREF and CREF, coupled to resister and capacitance for changing the frequency of the RC oscillator.
6. An apparatus for controlling an electrical cooker, comprising:
- a plurality of touch switches coupled to the least one touch switch for generating a transition signal indicating one of the touch switches being touched by human beings;
- a panel control unit, coupled to the touch switches and including a IC circuit for processing and detecting states of the touch switch to generate an electronic signal, wherein the IC circuit comprises:
- a RC oscillator for generating a reference clock;
- a plurality of analog switches for controlling transmission of the transition signal; and
- a plurality of counters for counting time, all of the counters stop counting when one of the counters overflows and content of all counters being read; wherein ON/OFF of the analog switches controlled by a software; and
- a micro-control unit coupled to the panel control unit for receiving the electric signal transmitted by the panel control unit and controlling power the electrical cooker.
Type: Application
Filed: Aug 20, 2010
Publication Date: Feb 17, 2011
Applicant: HOLTEK SEMICONDUCTOR INC. (Hsinchu)
Inventors: Wen-Liang Liu (Hsinchu City), Chin-Hung Yang (Hsinchu City)
Application Number: 12/859,936
International Classification: H05B 3/02 (20060101);