TIMER DEVICE AND METHOD FOR OPERATING SAID TIMER DEVICE
20170351222 · 2017-12-07
Inventors
Cpc classification
G06F11/0706
PHYSICS
International classification
Abstract
A timer device comprising a first timer in communication with control means, the control means being in communication with an external component and the first timer sending an order to the control means after a first preset time period is counted by the first timer, the timer device also comprising a second timer in communication with the control means, the second timer counting a second preset time period that is a portion of the first preset time period. The timer device permits an accurate operation, even with changes of temperature and voltage, and with a reduced cost.
Claims
1. A timer device, comprising a first timer in communication with control means, said control means being in communication with an external component and said first timer sending an order to the control means after a first preset time period is counted by the first timer, wherein the timer device also comprises a second timer in communication with said control means, said second timer counting a second preset time period that is a portion of said first preset time period.
2. The timer device according to claim 1, wherein said first timer is a watchdog timer.
3. The timer device according to claim 1, wherein it also comprises a memory in communication with the control means, which memory acts as a counter and is incremented each time the second time period counted by the second timer expires.
4. The timer device according to claim 1, wherein said first and second timers are placed inside the timer device.
5. A method for operating the timer device according to claim 1, comprising the following steps: set a first time period to be counted by a first timer; set a second time period to be counted by a second timer, said second time period being a portion of the first time period; when said second time period is expired, but said first time period is not expired, the second timer begins again the measure of the second time period; and when said second time period is expired and said first time period is also expired, control means of the timer device are reset, and a component connected with the timer device starts a new operation cycle.
6. The method according to claim 5, wherein when the second time period is expired but the first time period is not expired, the value of a memory is incremented, and when said second time period is expired and said first time period is also expired the value of the memory is read and it is used to calculate a new time base, which is used as the first time period for the next operation cycle.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0022] For a better understanding of what has been disclosed, some drawings are attached in which, diagrammatically and only as a non-limitative example a specific embodiment is shown.
[0023]
DESCRIPTION OF A PREFERRED EMBODIMENT
[0024]
[0025] The timer device according to the invention also comprises a second timer 13 in communication with said control means 11, said second timer 13 counting a second preset time period that is a portion of said first preset time period.
[0026] The timer device according to the invention also comprises a memory 14 in communication with the control means 11, which memory 14 acts as a counter and is incremented each time the second time period counted by the second timer 13 expires, as will be explained hereinafter.
[0027] As shown in
[0028] Firstly, it must be pointed out that “operation cycle” is considered all activities done by the control means 11 in order to follow what the software requires for the component 15. If the component 15 is a fragrance dispenser, the normal operations are the temporized activation/deactivation of the heater or fan, the led blinks, checking for the button activation and change the device status consequently, and so on.
[0029] The method according to the invention comprises the following steps:
[0030] set a first time period to be counted by a first timer 12 and a second time period to be counted by a second timer 13, said second time period being a portion of the first time period;
[0031] when said second time period is expired, but said first time period is not expired, the second timer 13 begins again the measure of the second time period; and
[0032] when said second time period is expired and said first time period is also expired, control means 11 of the timer device are reset, and a component 15 connected with the timer device 1 starts a new operation cycle.
[0033] Preferably, when the second time period is expired but the first time period is not expired, the value of a memory 14 is incremented, and when said second time period is expired and said first time period is also expired the value of the memory 14 is read and it is used to calculate a new time base, which is used as the first time period for the next operation cycle.
[0034] One example of a component is a fragrance dispenser, in which an operation cycle is defined and which is repeated cyclically, for example activating a heater or fan for dispensing the fragrance and then deactivating said heater or fan.
[0035] In this case, the first time period can be of 10 seconds, which will be counted by the first timer 12 and the second time period can be 500 milliseconds, which will be counted by the second timer 13.
[0036] When the first 500 milliseconds are counted by the second timer 13 and the second time period is the count of the memory 14, originally 0, will be increased by 1, because the first time period will not be expired.
[0037] This count of the second time period will be repeated 20 times, until the expiration of the first time period, 10 seconds after. At this time, the control means 11 will be reset, the value of the memory (in this case 20) will be read, and this value will be used as a basis for calculating a new time base, which will be used as the first time period for the next operation cycle.
[0038] Even though reference is made to a specific embodiment of the invention, it is apparent for a person skilled in the art that the timer device and the method are susceptible of numerous variations and modifications, and all the details cited can be substituted by other technically equivalent ones, without departing from the scope of protection defined by the attached claims.