CN102122131B - Control method of touch keys applied to clock - Google Patents

Control method of touch keys applied to clock Download PDF

Info

Publication number
CN102122131B
CN102122131B CN 201010000538 CN201010000538A CN102122131B CN 102122131 B CN102122131 B CN 102122131B CN 201010000538 CN201010000538 CN 201010000538 CN 201010000538 A CN201010000538 A CN 201010000538A CN 102122131 B CN102122131 B CN 102122131B
Authority
CN
China
Prior art keywords
information
pointer
register
numerical value
clock
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN 201010000538
Other languages
Chinese (zh)
Other versions
CN102122131A (en
Inventor
马学成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen City Mos-Soft Electronic Technology Co Ltd
Original Assignee
Shenzhen City Mos-Soft Electronic Technology Co Ltd
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 Shenzhen City Mos-Soft Electronic Technology Co Ltd filed Critical Shenzhen City Mos-Soft Electronic Technology Co Ltd
Priority to CN 201010000538 priority Critical patent/CN102122131B/en
Publication of CN102122131A publication Critical patent/CN102122131A/en
Application granted granted Critical
Publication of CN102122131B publication Critical patent/CN102122131B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electric Clocks (AREA)
  • Electromechanical Clocks (AREA)

Abstract

The invention provides a control method of touch keys applied to a clock. The method comprises the following steps of: judging and acquiring information through touch keys; and enquiring corresponding touch keys to realize the indication function information of a pointer, record the scale value of the current clock pointer and driving the corresponding pointer to execute in a position needed for realizing the indication function so as to finish the indication of the needed function content. The invention has the advantages that a control method applied to the touch screen and the clock is provided; when a user finger contacts with a certain position of the clock mirror, the position is analyzed and sensed so as to trigger corresponding functions, and a friendly, direct and accurate interactive interface matched with the display screen of the clock can be provided, and the multifunctional indication technologies of touch and the pointer are unified, thus the use interest and the new meanings of a user for the clock functions are improved.

Description

Touch key-press is applied to the control method of clock and watch
[technical field]
The present invention relates to a kind of wrist-watch control method, refer in particular to the control method of a kind of touch-screen in clock and watch.
[background technology]
Along with the appearance of electronic watch, the volume of clock and watch is significantly compressed, and function is more and more stronger, and wherein traditional analog timepiece still is subject to liking of most of users.Along with day by day many at present functions have concentrated on the clock and watch, but the volume that is limited to clock and watch, the button of its setting is often too much unsuitable, for various functions are controlled, can only adopt the method for the folded operational correspondence function of button, and too complicated key combination can cause undoubtedly the user in use can't clearly must understand fast instantly the corresponding key mode of function institute is what what or the function that triggers that pushes button be, the unnecessary puzzlement of initiation consumer.And at present in the various electronic products touch-screen be used widely, one of its need are positioned at diaphragm (or glass sheet) under the face-piece can be finished by touch and control, need not additionally around clock and watch too much button to be set, greatly simplified the structure of wrist-watch, its application prospect is very wide.And have no at present the ready-made scheme that has touch-screen to be combined with wrist-watch in the industry to use, temporarily can't be with both in conjunction with application.
[summary of the invention]
The object of the invention is to overcome defects, a kind of method that touch key-press is controlled of using in clock and watch is provided.
The object of the present invention is achieved like this: a kind of touch key-press is applied to the control method of clock and watch, and it comprises step:
A), initialization setting
Port register, corresponding touch key-press number are provided with a plurality of read-writes position, are used for the information whether Petting Area of storage touch key-press is triggered,
Pointer register is used for storing the instantly information of the hour hands numerical value time of running, and numerical range is 0-59,
Pointer register comprises:
The second hand register is used for storing the constantly information of numerical value of instantly second runner,
The minute hand register is used for the instantly information of the minute hand numerical value time of running of storing,
And the hour hands register, be used for the instantly information of the hour hands numerical value time of running of storing,
The corresponding corresponding information that realizes the pointer information deixis by second hand, minute hand or hour hands of touch key-press that in functional database, stores.
Timer is used for setting port register and detects time between interruptions information,
Working storage is used for storing the hour hands operation numerical information of pointer information deixis to be achieved,
Functional database is used for the corresponding information that realizes which kind of pointer information deixis with touch key-press of storage;
B), wait for touch key-press
Port register is detected according to the time interval that timer is set, after detecting port register read-write position and changing, obtain this touch key-press information corresponding to read-write position, the continuation step;
It also comprises
A1), open scanning behind the setting time between interruptions;
B1), whether reach time between interruptions, continuation after default time between interruptions satisfies;
C1), whether a button is pressed, be then to enter step D1, otherwise enter step H1;
D1), push button and whether sweep the key sign, otherwise sweep the key sign and return step B1 for this button setting, be then to continue;
E1), with last time record of keys relatively, judge twice whether be same button triggering, be then to continue, otherwise return step B1;
F1), button triggers the duration and whether arrives the default retention time, otherwise returns step B1, is then to continue;
G1), confirm the button push and remove to sweep the key sign and return step B1, wait for that next button triggers;
H1), whether button reach default lifting the time, otherwise returns step B1, is then to continue;
I1), remove and to sweep the key sign and return step B1, wait for that next button triggers.
C), obtain corresponding function information
The information of the corresponding user pointer information deixis of setting of this triggering touch key-press of inquiry from functional database, and will be instantly the records of values of clock pointers place scale position, numerical value according to this records of values and required realization look facility converts, thereby obtain scale positional number value information corresponding to pointer deixis, deposit working storage in;
D), pointer information indication
Compare numerical value in pointer register and the working storage, the time between interruptions drives interrupts motor driving pointer of then setting according to timer is advanced if both are not identical, pointer register numerical value of the corresponding modification of motor of simultaneously every driving is until the identical CD-ROM drive motor that stops with numerical value in the working storage of pointer register;
It also comprises, behind numerical value in relatively pointer register and the working storage, if pointer register less than working storage numerical value, then the clockwise stepping of CD-ROM drive motor forward once and adds one with pointer register; If pointer register greater than working storage numerical value then CD-ROM drive motor oppositely counterclockwise stepping once and pointer register subtracted one, until pointer register equates to stop driving with numerical value in the working storage.
Than common wrist-watch control method, beneficial effect of the present invention has been to provide the method for application controls on a kind of touch-screen and the clock and watch, when user's finger contacts during to table minute surface some position, can analyze perception to it, thereby triggering corresponding function, and by with the interactive interface that can provide friendly, direct, clear and definite that cooperates of clock and watch display screen, thereby improve the client to the use of watch function.
[description of drawings]
Below in conjunction with accompanying drawing in detail concrete structure of the present invention is described in detail
Fig. 1 is method flow diagram of the present invention
Fig. 2 is touch overhaul flow chart of the present invention
Fig. 3 is that the present invention is applied to multifunctional pointer-type electronic watch system control pie graph
Fig. 4 is the dial plate information that the present invention is applied to the multifunctional pointer-type electronic watch
[embodiment]
As shown in Figure 1, the present invention relates to the control method that a kind of touch key-press is applied to clock and watch, it comprises step
A), initialization setting
Port register (TEMP_port), corresponding touch key-press number are provided with a plurality of read-writes position, for the information whether Petting Area of storing touch key-press is triggered, (numerical value is determined by the delivery outlet level of touch key-press);
Pointer register (TEMP_needle), be used for the instantly information of the hour hands numerical value time of running of storing, numerical range is 0-59, this pointer register can be according to the required realization pointer of actual clock and watch indication information function setting: the second hand register is used for storing the constantly information of numerical value of instantly second runner; The minute hand register is used for the instantly information of the minute hand numerical value time of running of storing; The hour hands register is used for the instantly information of the hour hands numerical value time of running of storing; In combination in any or one of them, thereby drive the deixis that its second hand, minute hand or hour hands carry out corresponding informance so that clock and watch are can be when the client controls corresponding;
Timer (Timer0) is used for setting port register and detects time between interruptions M millisecond information;
Working storage (TEMP) is used for storing the hour hands operation numerical information of pointer information deixis to be achieved;
Functional database is used for the information of which kind of pointer information deixis of the corresponding realization with touch key-press of storage, or according to pointer register to second, minute, the information of second hand, minute hand or the hour hands realization pointer information deixis of the utilization storage correspondence of hour hands.
B), wait for touch key-press
Port register (TEMP_port) is detected according to the time interval that timer is set, after detecting port register read-write position and changing, obtain this touch key-press information corresponding to read-write position, the continuation step;
Referring to Fig. 2, the detection of touch key-press specifically can be adopted:
A1), open scanning behind the setting time between interruptions; Open and touch the IC function, open simultaneously key scan and interrupt, time between interruptions is set to the M millisecond.
B1), whether reach time between interruptions, continuation after default time between interruptions satisfies;
C1), whether a button is pressed, be then to enter step D1, otherwise enter step H1; When button was pressed, the delivery outlet level that touches IC was dragged down, judge that it is low touching the IC output pin?
D1), push button and whether sweep the key sign, otherwise sweep the key sign and return step B1 for this button setting, be then to continue; It is low whether having been swept to delivery outlet before, judges that namely sweeping the key sign has or not
E1), with last time record of keys relatively, judge twice whether be same button triggering, be then to continue, otherwise return step B1; Whether it is consistent whether to catch up with time result of scanning, be that same mouth is dragged down namely
F1), button triggers the duration and whether arrives the default retention time, otherwise returns step B1, is then to continue; The maintenance regular hour just can be thought effective button, namely judges whether to maintain to reach the Y millisecond, and the Y millisecond is generally the integral multiple of N millisecond.
G1), confirm the button push and remove to sweep the key sign and return step B1, wait for that next button triggers; Whether judgement is effective by being lifted, and can think just that when all mouthfuls keep the high level certain hour button has lifted all output pins of touch IC and all entirely whether reached the N millisecond for the high time
H1), whether button reach default lifting the time, otherwise returns step B1, is then to continue;
I1), remove and to sweep the key sign and return step B1, wait for that next button triggers.
C), obtain corresponding function information
The information of the corresponding user pointer information deixis of setting of this triggering touch key-press of inquiry from functional database, and will be instantly the records of values of clock pointers place scale position, numerical value according to this records of values and required realization look facility converts, thereby obtain scale positional number value information corresponding to pointer deixis, deposit working storage in;
D), pointer information indication
Numerical value in pointer register and the working storage relatively, if both are not identical, if pointer register less than working storage numerical value, then the clockwise stepping of CD-ROM drive motor forward once and adds one with pointer register; If pointer register greater than working storage numerical value then CD-ROM drive motor oppositely counterclockwise stepping once and pointer register subtracted one, until pointer register equates to stop driving with numerical value in the working storage.
The oppositely contrary gesture of above-mentioned step motor drives by existing type of drive commonly used and can't realize, and only have by two groups of I/O mouths and divide two groups to transmit single counter-rotating drive waveforms to step motor,
Wherein first group of drive waveforms sequential comprises:
T1 millisecond high level, wherein t1=0.1-5.1ms;
T2 millisecond low level, wherein t2=0.5-6.7ms;
T3 millisecond high level, wherein t3=1.5-10ms;
T4 millisecond low level, wherein t4=0.2-3.2ms;
And the mutual periodic waveform that changes of a high and low level, this is stated the mutual periodic waveform that changes of high and low level and comprises that S dutycycle is the periodic waveform of Ds, and wherein S=0-10, Ds=1/8-7/8.
And described second group of drive waveforms sequential comprises:
One t5 millisecond high level and the low level of all the other times, t5=1.5-10ms wherein, the t5 high level send should with the corresponding transmission of low level t2 of first appearance in first group of drive waveforms sequential.
The counter-rotating that so can finish stepper motor drives.
As shown in Figure 2, known electronic watch has a main control MCU, and MCU connects Driving Stepping Motor and drives pointer running on the dial plate, and the main control MCU of portions of electronics table also connects an electric wave reception module.The inventive method is before use by (this touch-screen can directly overlay the watch or clock glass surface in order to add touch-screen in the electronic watch again, or directly its watch crystal design is added electrode), the a plurality of touch areas of operated by rotary motion on the touch-screen, it is connected in the main control MCU of primary electron table by a touch key-press IC.Then can realize all kinds of controlling by touch key-press by employing the inventive method,
Be a common multifunctional pointer-type electronic watch such as Fig. 3, the surface can find out that it provides except the persond eixis scale from figure, also has date indicating graduation, week indicating graduation, battery capacity indication scale, electric wave indicating graduation etc.The indication that common clock and watch need to be finished above content needs respectively to do for oneself at least, and it is equipped with a pointer, this undoubtedly can be so that the surface be very in disorder numerous and diverse, in order to control so various functions, the button that is used for controlling on its wrist-watch also needs to arrange many in addition, has increased undoubtedly the volume of table.And employing the inventive method only need increase a transparent touch key-press from the teeth outwards, then is equipped with when simple, minute, second three pins get final product.Its scheme is summarized as follows:
Relate to that parameters comprises in original electronic watch control system:
Second register (TEMP_second) is used for the information (numerical range 0-59) of second storage time,
Divide register (TEMP_minute), for the information (numerical range 0-59) of dividing storage time,
The time register (TEMP_hour), be used for the information (numerical range 0-23) of storage time hour,
Day register (TEMP_day) is used for the information (numerical range 0-31) on storage date,
Week stockpile device (TEMP_week), for the information (numerical range 1-7) in storage week,
Battery electric quantity register (TEMP_battery), the information (numerical range 0-2) that is used for storing the clock and watch cell voltage,
Timer (Sclk), its interruption is spaced apart 1s,
During operation, timer (Sclk) per second interrupts once, CD-ROM drive motor drives pointer and advances, and the second hand register in the cumulative pointer register (TEMP_needle), simultaneously register second (TEMP_second) is added up one, it overflows backward minute register (TEMP_minute) of numerical range, in like manner divide register (TEMP_minute) numerical range to overflow rear register (TEMP_hour) when cumulative, the time register (TEMP_hour) numerical range overflow rear cumulative day register (TEMP_day), day register (TEMP_day) numerical range is overflowed rear cumulative week register (TEMP_week), thus finished clock and watch daily normally walk the time operation.
And when using touch key-press to trigger the pointer information deixis, system's correspondence is transferred the execution setting (be need to inquire about instantly dates/weeks/battery allowance etc. such as this function) of this function in the functional database, obtain driving second hand, which pointer carries out the information indication in minute hand and the hour hands, then according to this pointer instantly the scale positional information calculate required forward or repercussion Driving Stepping Motor, thereby driving this pointer leaves instantly indication position constantly and moves on the dial plate on the corresponding informance scale (as: index futures on the corresponding above-mentioned dial plate show scale/week indicating graduation/battery capacity indication scale/electric wave indicating graduation etc.), thereby finish indication, system is again according to register second behind the stop setting-up time, minute register and the time instantly time of recording in the register readjust pointer and get back to persond eixis.This shows and adopt the inventive method effectively touch-screen control to be integrated in one with many pointer informations deixis, provide convenience more and new experience for the user uses wrist-watch.

Claims (4)

1. a touch key-press is applied to the control method of clock and watch, and it is characterized in that: it comprises step
A), initialization setting
Port register, corresponding touch key-press number are provided with a plurality of read-writes position, are used for the information whether Petting Area of storage touch key-press is triggered,
Pointer register is used for storing the instantly information of the hour hands numerical value time of running, and numerical range is 0-59,
Timer is used for setting port register and detects time between interruptions information,
Working storage is used for storing the hour hands operation numerical information of pointer information deixis to be achieved,
Functional database is used for the corresponding information that realizes which kind of pointer information deixis with touch key-press of storage;
B), wait for touch key-press
Port register is detected according to the time interval that timer is set, after detecting port register read-write position and changing, obtain this touch key-press information corresponding to read-write position, the continuation step;
C), obtain corresponding function information
The information of the corresponding user pointer information deixis of setting of this triggering touch key-press of inquiry from functional database, and will be instantly the records of values of clock pointers place scale position, numerical value according to this records of values and required realization look facility converts, thereby obtain scale positional number value information corresponding to pointer deixis, deposit working storage in;
D), pointer information indication
Compare numerical value in pointer register and the working storage, the time between interruptions drives interrupts motor driving pointer of then setting according to timer is advanced if both are not identical, pointer register numerical value of the corresponding modification of motor of simultaneously every driving is until the identical CD-ROM drive motor that stops with numerical value in the working storage of pointer register.
2. touch key-press as claimed in claim 1 is applied to the control method of clock and watch, it is characterized in that: the pointer register of initialization setting comprises described steps A)
The second hand register is used for storing the constantly information of numerical value of instantly second runner,
The minute hand register is used for the instantly information of the minute hand numerical value time of running of storing,
And the hour hands register, be used for the instantly information of the hour hands numerical value time of running of storing,
The corresponding corresponding information that realizes the pointer information deixis by second hand, minute hand or hour hands of touch key-press that in functional database, stores.
3. touch key-press as claimed in claim 1 is applied to the control method of clock and watch, it is characterized in that: also comprise described step D), behind numerical value in comparison pointer register and the working storage, if pointer register is less than working storage numerical value, then the clockwise stepping of CD-ROM drive motor forward once and adds one with pointer register; If pointer register greater than working storage numerical value then CD-ROM drive motor oppositely counterclockwise stepping once and pointer register subtracted one, until pointer register equates to stop driving with numerical value in the working storage.
4. touch key-press as claimed in claim 1 is applied to the control method of clock and watch, it is characterized in that: also comprise described step B)
A), open scanning behind the setting time between interruptions;
B), whether reach time between interruptions, continuation after default time between interruptions satisfies;
C), whether a button is pressed, be then to enter step D, otherwise enter step H;
D), push button and whether sweep the key sign, otherwise sweep the key sign and return step B for this button setting, be then to continue;
E), with last time record of keys relatively, judge twice whether be same button triggering, be then to continue, otherwise return step B;
F), button triggers the duration and whether arrives the default retention time, otherwise returns step B, is then to continue;
G), confirm the button push and remove to sweep the key sign and return step B, wait for that next button triggers;
H), whether button reach default lifting the time, otherwise returns step B, is then to continue;
I), remove and to sweep the key sign and return step B, wait for that next button triggers.
CN 201010000538 2010-01-12 2010-01-12 Control method of touch keys applied to clock Expired - Fee Related CN102122131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010000538 CN102122131B (en) 2010-01-12 2010-01-12 Control method of touch keys applied to clock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010000538 CN102122131B (en) 2010-01-12 2010-01-12 Control method of touch keys applied to clock

Publications (2)

Publication Number Publication Date
CN102122131A CN102122131A (en) 2011-07-13
CN102122131B true CN102122131B (en) 2013-02-27

Family

ID=44250702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010000538 Expired - Fee Related CN102122131B (en) 2010-01-12 2010-01-12 Control method of touch keys applied to clock

Country Status (1)

Country Link
CN (1) CN102122131B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375690A (en) * 2011-10-25 2012-03-14 深圳桑菲消费通信有限公司 Touch screen mobile terminal and time setting method thereof
CN103577078A (en) * 2012-07-24 2014-02-12 中兴通讯股份有限公司 Time setting method and device
CN106354398A (en) * 2015-07-15 2017-01-25 中兴通讯股份有限公司 Event information processing method and device
CN105302376B (en) * 2015-11-13 2018-08-24 伍宗仁 A kind of control method of tyre pressure indicator and tyre pressure indicator
CN110501897B (en) * 2019-08-30 2021-08-17 安徽华米信息科技有限公司 Intelligent watch and touch control method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2791708Y (en) * 2005-04-13 2006-06-28 郝伟光 Electronic watch with touch screen
CN101110005A (en) * 2006-07-19 2008-01-23 鸿富锦精密工业(深圳)有限公司 Electronic device for self-defining touch panel and method thereof
WO2008010641A1 (en) * 2006-07-18 2008-01-24 Heratimes Co., Ltd Programable time switch
CN101470553A (en) * 2007-12-27 2009-07-01 比亚迪股份有限公司 Data preprocessing ranking circuit and method of touch screen controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2791708Y (en) * 2005-04-13 2006-06-28 郝伟光 Electronic watch with touch screen
WO2008010641A1 (en) * 2006-07-18 2008-01-24 Heratimes Co., Ltd Programable time switch
CN101110005A (en) * 2006-07-19 2008-01-23 鸿富锦精密工业(深圳)有限公司 Electronic device for self-defining touch panel and method thereof
CN101470553A (en) * 2007-12-27 2009-07-01 比亚迪股份有限公司 Data preprocessing ranking circuit and method of touch screen controller

Also Published As

Publication number Publication date
CN102122131A (en) 2011-07-13

Similar Documents

Publication Publication Date Title
CN102122131B (en) Control method of touch keys applied to clock
US20140293755A1 (en) Device with functional display and method for time management
CN105005387B (en) The application affairs based reminding method and smartwatch of a kind of smartwatch
CN104460307B (en) A kind of input block, wearable intelligent equipment and the input method in integrative display area
CN100524105C (en) Interactive switch device for portable electronic apparatus
CN103033743A (en) Measuring device of actuation time of switching element
CN104615469A (en) Method for fast starting application programs of wrist mobile phone
CN204515354U (en) A kind of intelligent watch
CN204374701U (en) Timing time controller
CN108375896B (en) Content display method and device of smart watch and smart watch
CN101966680B (en) Numerical control system of grinding machine
CN107145060B (en) Communication device, electronic watch and communication means
CN102866622A (en) Energy-saving watch
CN203207814U (en) Guarantee period indicating device of barreled water in water drinker
CN212302223U (en) Countdown timer
CN202661995U (en) Man-machine interaction device applied to electric power instrument
CN205262512U (en) PM2. 5 detector that shows multiple information
CN204731537U (en) A kind of intelligent watch
CN105243251A (en) Multifunctional calendar with touch screen
CN105516491A (en) Alarm display method and alarm display device
CN109683783A (en) Information processing method and electronic equipment
CN110703337A (en) Capacitive intelligent station detection system
CN204422982U (en) A kind of multi-function wrist-instrument
CN204347922U (en) A kind of Multifunctional projection wardrobe device
CN204515355U (en) There is the quartz watch of touch mileometer adjustment function

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130227

Termination date: 20160112

CF01 Termination of patent right due to non-payment of annual fee