CN109144223B - Touch screen clock output method, mobile terminal and storage medium - Google Patents

Touch screen clock output method, mobile terminal and storage medium Download PDF

Info

Publication number
CN109144223B
CN109144223B CN201810977964.XA CN201810977964A CN109144223B CN 109144223 B CN109144223 B CN 109144223B CN 201810977964 A CN201810977964 A CN 201810977964A CN 109144223 B CN109144223 B CN 109144223B
Authority
CN
China
Prior art keywords
clock
touch screen
request signal
request
output
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.)
Active
Application number
CN201810977964.XA
Other languages
Chinese (zh)
Other versions
CN109144223A (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.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN201810977964.XA priority Critical patent/CN109144223B/en
Publication of CN109144223A publication Critical patent/CN109144223A/en
Application granted granted Critical
Publication of CN109144223B publication Critical patent/CN109144223B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a touch screen clock output method, a mobile terminal and a storage medium, wherein the method comprises the following steps: when the touch screen is in a lighting state, the touch screen sends a clock request signal to the main controller; and the master controller receives the clock request signal and outputs or stops outputting a clock to the touch screen according to the clock request signal. According to the invention, when the touch screen of the mobile terminal is in a lighting state, the main controller is not required to output the clock to the touch screen any more, and when a user does not touch the touch screen, the main controller stops outputting the clock to the touch screen, so that the consumption of the electric quantity of the battery is reduced, the electric energy is saved, and the cruising ability of the mobile terminal is improved.

Description

Touch screen clock output method, mobile terminal and storage medium
Technical Field
The invention relates to the field of mobile terminals, in particular to a touch screen clock output method, a mobile terminal and a storage medium.
Background
With the development of science and technology, the touch screen is generally used as a main input device of the mobile terminal, and therefore, the excellent performance of the touch screen and the accuracy of data transmission are of great importance. In the prior art, a main controller of a mobile terminal is connected with a touch screen, and the main controller of the mobile terminal provides a clock signal for the touch screen, so that the touch screen can work normally, and coordinate data output by the touch screen can be synchronously transmitted to the mobile terminal.
However, in the prior art, as long as the mobile terminal is in a state that the screen is lighted, the mobile terminal needs the main controller to provide the clock signal for the touch screen all the time. In fact, although the screen of the mobile terminal is in a lighting state, the user is not necessarily touching the screen at this time, and the main controller is not required to output a clock to the touch screen when the user does not touch the screen. Therefore, in the prior art, certain battery power consumption is additionally introduced, which is not beneficial to saving electric energy.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The present invention provides a touch screen clock output method, a mobile terminal and a storage medium, aiming at solving the problem that the main controller always provides a clock signal to the touch screen when the touch screen is in a lighting state, which wastes battery power.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a touch screen clock output method comprises the following steps:
when the touch screen is in a lighting state, the touch screen sends a clock request signal to the main controller;
and the master controller receives the clock request signal and outputs or stops outputting a clock to the touch screen according to the clock request signal.
The clock output method of the touch screen comprises the steps that the clock request signal comprises a clock opening request signal and a clock closing request signal.
The touch screen clock output method, wherein the receiving of the clock request signal by the master controller and the outputting or stopping of the clock output to the touch screen according to the clock request signal specifically comprises:
when the main controller receives a clock opening request signal, outputting a clock to the touch screen according to the clock opening request signal;
and when the main controller receives a clock closing request signal, stopping outputting a clock to the touch screen according to the clock closing request signal.
According to the clock output method of the touch screen, the clock opening request signal is a high-level signal output by a clock request pin on the touch screen; the clock closing request signal is a low level signal output by a clock request pin on the touch screen.
The touch screen clock output method, wherein outputting a clock to the touch screen according to the clock turn-on request signal when the main controller receives the clock turn-on request signal specifically includes:
when the master controller receives a high-level signal output by the clock request pin, the rising edge interrupt is generated on the GPIO connected with the clock request pin, and the master controller outputs a clock to the touch screen.
The method for outputting the clock to the touch screen, wherein when the master controller receives a clock turn-off request signal, stopping outputting the clock to the touch screen according to the clock turn-off request signal specifically comprises:
when the master controller receives a low level signal output by the clock request pin, a falling edge interrupt is generated on the GPIO connected with the clock request pin, and the master controller stops outputting a clock to the touch screen.
A mobile terminal comprising a processor, and a memory coupled to the processor,
the memory stores a touch screen clock output program that when executed by the processor implements the steps of:
when the touch screen is in a lighting state, the touch screen sends a clock request signal to the main controller;
the master controller receives the clock request signal and outputs or stops outputting a clock to the touch screen according to the clock request signal; the clock request signal comprises a clock on request signal and a clock off request signal;
the processor is used for calling the touch screen clock output program instruction.
The mobile terminal, wherein when the touch screen clock output program is executed by the processor, the following steps are further implemented:
when the main controller receives a clock opening request signal, outputting a clock to the touch screen according to the clock opening request signal; the clock opening request signal is a high-level signal output by a clock request pin on the touch screen;
when the main controller receives a clock closing request signal, stopping outputting a clock to the touch screen according to the clock closing request signal; the clock closing request signal is a low level signal output by a clock request pin on the touch screen.
The mobile terminal, wherein when the touch screen clock output program is executed by the processor, the following steps are further implemented:
when the master controller receives a high-level signal output by a clock request pin, a rising edge interrupt is generated on a GPIO connected with the clock request pin, and the master controller outputs a clock to the touch screen;
when the master controller receives a low level signal output by the clock request pin, the GPIO connected with the clock request pin generates falling edge interruption, and the master controller stops outputting a clock to the touch screen.
A storage medium, wherein the storage medium stores a touch screen clock output program, and the touch screen clock output program, when executed by a processor, implements the steps of the touch screen clock output method as described above.
The invention provides a touch screen clock output method, a mobile terminal and a storage medium, wherein the method comprises the following steps: when the touch screen is in a lighting state, the touch screen sends a clock request signal to the main controller; and the master controller receives the clock request signal and outputs or stops outputting a clock to the touch screen according to the clock request signal. When the touch screen of the mobile terminal is in a lighting state, the main controller is not required to output the clock to the touch screen any more, and when a user does not touch the touch screen, the main controller stops outputting the clock to the touch screen, so that the consumption of the electric quantity of the battery is reduced, the electric energy is saved, and the cruising ability of the mobile terminal is improved. Therefore, the problem that the electric quantity of the battery is wasted because the main controller provides clock signals for the touch screen all the time when the touch screen is in a lighting state is solved.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of a touch screen clock output method of the present invention.
Fig. 2 is a functional block diagram of a preferred embodiment of the mobile terminal of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a clock output method of a touch screen according to a preferred embodiment of the present invention. As shown in fig. 1, a touch screen clock output method according to an embodiment of the present invention includes the following steps:
and step S100, when the touch screen is in a lighting state, the touch screen sends a clock request signal to the main controller.
When a touch screen (also called a "touch screen" or a "touch panel") touches a graphic button on the screen, the on-screen haptic feedback system can drive various link devices according to a pre-programmed program, so as to replace a mechanical button panel and produce vivid video and audio effects by means of a liquid crystal display screen. As a latest computer input device, the touch screen is the simplest, convenient and natural man-machine interaction mode at present.
The method comprises the steps that a touch screen of the mobile terminal is connected with a main controller, when the touch screen is in a lighting state, a clock request signal is sent to the main controller, and the main controller obtains the clock request signal sent by the touch screen.
In the preferred embodiment of the present invention, the clock request signals include a clock-on request signal and a clock-off request signal.
When the touch screen is in a lighting state and a user touches the touch screen, the touch screen sends a clock opening request signal, and the main controller acquires the clock opening request signal; when the user does not touch the touch screen, the touch screen sends a clock closing request signal, and the main controller acquires the clock closing request signal.
And S200, the main controller receives the clock request signal and outputs or stops outputting a clock to the touch screen according to the clock request signal.
The step S200 specifically includes:
s210: and when the main controller receives a clock opening request signal, outputting a clock to the touch screen according to the clock opening request signal.
S220: and when the main controller receives a clock closing request signal, stopping outputting a clock to the touch screen according to the clock closing request signal.
In a preferred embodiment of the present invention, the instruction corresponding to the clock turn-on request signal is that the host controller needs to output a clock to the touch screen, and the instruction corresponding to the clock turn-off request signal is that the host controller does not need to output a clock to the touch screen.
Further, the clock turn-on request signal is a high level signal output by a clock request pin on the touch screen; the clock closing request signal is a low level signal output by a clock request pin on the touch screen.
In the mobile terminal, a clock request pin is connected to a GPIO of a main controller on a touch screen. The pins are called pins, and are wires led out from an internal circuit of an integrated circuit (i.e. a chip) and connected with a peripheral circuit, and all the pins form an interface of the chip. GPIO is then a bus expander that can provide additional control and monitoring functions when the microcontroller or chipset does not have enough I/O ports, or when the system needs to employ far-end serial communication or control.
High level refers to a high voltage as opposed to low level. Among the logic levels, the minimum input high level allowed when the input of the logic gate is a high level is guaranteed, and when the input level is higher than the input high voltage (Vih), the input level is considered as a high level. In a digital logic circuit, a low level indicates 0, and a high level indicates 1. Generally, the low level is 0-0.25V and the high level is 3.5-5V.
When a user touches the touch screen, the clock request pin of the touch screen outputs a high level signal, and when the user does not touch the touch screen, the clock request pin of the touch screen outputs a low level signal, which means that the touch screen does not need clock input.
In the preferred embodiment of the present invention, step S210 specifically includes:
s211: when the master controller receives a high-level signal output by the clock request pin, the rising edge interrupt is generated on the GPIO connected with the clock request pin, and the master controller outputs a clock to the touch screen.
Step S220 specifically includes:
s221: when the master controller receives a low level signal output by the clock request pin, a falling edge interrupt is generated on the GPIO connected with the clock request pin, and the master controller stops outputting a clock to the touch screen.
In a digital circuit, the time when the digital level changes from low level (digital "0") to high level (digital "1") is called a rising edge; the moment when the digital level changes from high (digital "1") to low (digital "0") is called a falling edge.
The main controller can know whether the clock opening request signal or the clock closing request signal is generated by the touch screen only by detecting the level change on the GPIO connected with the clock request pin of the touch screen. When a clock request pin of the touch screen outputs a high-level signal, the GPIO can generate rising edge interruption, the master controller detects the rising edge interruption generated on the GPIO and obtains a clock opening request signal, and therefore a clock is output to the touch screen, namely the clock can be output to the touch screen. When a clock request pin of the touch screen outputs a low-level signal, the GPIO can generate falling edge interruption, the main controller detects the falling edge interruption generated on the GPIO and obtains a clock closing request signal, so that the clock is stopped being output to the touch screen, namely the output clock is forbidden to the touch screen.
The present invention will be further described with reference to specific examples.
Example one
When the mobile terminal is in a lighting state, a user touches the touch screen, a clock request pin on the touch screen outputs a high-level signal, rising edge interruption is generated on a GPIO connected with the clock request pin, the main controller detects a rising edge interruption signal generated on the GPIO, and a clock is output to the touch screen.
Example two
When the mobile terminal is in a lighting state, a user does not touch the touch screen, the clock request pin on the touch screen outputs a low-level signal, the GPIO connected with the clock request pin generates falling edge interruption, the main controller detects the falling edge interruption signal generated on the GPIO, and the output of the clock to the touch screen is stopped.
As shown in fig. 2, an embodiment of the present invention further provides a mobile terminal, which may be a mobile phone, where the mobile terminal of this embodiment includes a processor 10 and a memory 20 connected to the processor 10;
the memory stores a touch screen clock output program that when executed by the processor performs the steps of:
when the touch screen is in a lighting state, the touch screen sends a clock request signal to the main controller;
the main controller receives the clock request signal and outputs or stops outputting a clock to the touch screen according to the clock request signal; the clock request signal comprises a clock on request signal and a clock off request signal;
the processor is configured to invoke the touch screen clock output program instruction, as described above.
The mobile terminal, wherein when the touch screen clock output program is executed by the processor, the following steps are further implemented:
when the main controller receives a clock opening request signal, outputting a clock to the touch screen according to the clock opening request signal; the clock opening request signal is a high-level signal output by a clock request pin on the touch screen;
when the main controller receives a clock closing request signal, stopping outputting a clock to the touch screen according to the clock closing request signal; the clock turn-off request signal is a low level signal output by a clock request pin on the touch screen, as described above.
The mobile terminal, wherein when the touch screen clock output program is executed by the processor, the following steps are also implemented:
when the master controller receives a high-level signal output by a clock request pin, a rising edge interrupt is generated on a GPIO connected with the clock request pin, and the master controller outputs a clock to the touch screen;
when the main controller receives the low level signal output by the clock request pin, a falling edge interrupt is generated on the GPIO connected to the clock request pin, and the main controller stops outputting the clock to the touch screen, as described above.
An embodiment of the present invention further provides a storage medium, where the storage medium stores a touch screen clock output program, and the touch screen clock output program, when executed by a processor, implements the steps of the touch screen clock output method, which are specifically described above.
In summary, according to the touch screen clock output method, the mobile terminal and the storage medium provided by the invention, the main controller judges the level change generated on the GPIO connected to the clock request pin through the level change output by the clock request pin on the touch screen, so as to output or stop outputting the clock to the touch screen, so that when the touch screen of the mobile terminal is in a lighting state, the main controller is not required to output the clock to the touch screen any more, and when a user does not touch the touch screen, the main controller stops outputting the clock to the touch screen, thereby reducing the consumption of battery power, saving electric energy and improving the cruising ability of the mobile terminal.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (8)

1. A touch screen clock output method is characterized by comprising the following steps:
when the touch screen is in a lighting state, the touch screen sends a clock request signal to the main controller;
the master controller receives the clock request signal and outputs or stops outputting a clock to the touch screen according to the clock request signal;
the clock request signal comprises a clock on request signal and a clock off request signal;
the receiving, by the master controller, the clock request signal, and outputting or stopping outputting the clock to the touch screen according to the clock request signal specifically includes:
when the main controller receives a clock opening request signal, outputting a clock to the touch screen according to the clock opening request signal;
when the main controller receives a clock closing request signal, stopping outputting a clock to the touch screen according to the clock closing request signal;
when the touch screen is in a lighting state, when a user touches the touch screen, the touch screen sends a clock opening request signal; when the user does not touch the touch screen, the touch screen sends out a clock closing request signal.
2. The touch screen clock output method according to claim 1, wherein the clock turn-on request signal is a high level signal output from a clock request pin on the touch screen; the clock closing request signal is a low level signal output by a clock request pin on the touch screen.
3. The touch screen clock output method according to claim 2, wherein outputting the clock to the touch screen according to the clock turn-on request signal when the main controller receives the clock turn-on request signal specifically comprises:
when the master controller receives a high-level signal output by the clock request pin, the rising edge interrupt is generated on the GPIO connected with the clock request pin, and the master controller outputs a clock to the touch screen.
4. The touch screen clock output method according to claim 2, wherein stopping outputting the clock to the touch screen according to the clock off request signal when the master controller receives the clock off request signal specifically comprises:
when the master controller receives a low level signal output by the clock request pin, a falling edge interrupt is generated on the GPIO connected with the clock request pin, and the master controller stops outputting a clock to the touch screen.
5. A mobile terminal comprising a processor, and a memory coupled to the processor,
the memory stores a touch screen clock output program that when executed by the processor implements the steps of:
when the touch screen is in a lighting state, the touch screen sends a clock request signal to the main controller;
the master controller receives the clock request signal and outputs or stops outputting a clock to the touch screen according to the clock request signal; the clock request signal comprises a clock on request signal and a clock off request signal;
the processor is used for calling the touch screen clock output program instruction;
when the touch screen clock output program is executed by the processor, the following steps are also realized:
when the main controller receives a clock opening request signal, outputting a clock to the touch screen according to the clock opening request signal;
when the main controller receives a clock closing request signal, stopping outputting a clock to the touch screen according to the clock closing request signal;
when the touch screen is in a lighting state, when a user touches the touch screen, the touch screen sends a clock opening request signal; when the user does not touch the touch screen, the touch screen sends out a clock closing request signal.
6. The mobile terminal of claim 5,
the clock opening request signal is a high-level signal output by a clock request pin on the touch screen;
the clock closing request signal is a low level signal output by a clock request pin on the touch screen.
7. The mobile terminal of claim 6, wherein the touch screen clock output program, when executed by the processor, further performs the steps of:
when the master controller receives a high-level signal output by a clock request pin, a rising edge interrupt is generated on a GPIO connected with the clock request pin, and the master controller outputs a clock to the touch screen;
when the master controller receives a low level signal output by the clock request pin, a falling edge interrupt is generated on the GPIO connected with the clock request pin, and the master controller stops outputting a clock to the touch screen.
8. A storage medium storing a touch screen clock output program, the touch screen clock output program when executed by a processor implementing the steps of the touch screen clock output method of any one of claims 1 to 4.
CN201810977964.XA 2018-08-27 2018-08-27 Touch screen clock output method, mobile terminal and storage medium Active CN109144223B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810977964.XA CN109144223B (en) 2018-08-27 2018-08-27 Touch screen clock output method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810977964.XA CN109144223B (en) 2018-08-27 2018-08-27 Touch screen clock output method, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109144223A CN109144223A (en) 2019-01-04
CN109144223B true CN109144223B (en) 2022-05-06

Family

ID=64828015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810977964.XA Active CN109144223B (en) 2018-08-27 2018-08-27 Touch screen clock output method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109144223B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4821030A (en) * 1986-12-19 1989-04-11 Tektronix, Inc. Touchscreen feedback system
CN108121434A (en) * 2017-12-27 2018-06-05 Tcl移动通信科技(宁波)有限公司 A kind of clock control method of display interface, mobile terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7812830B2 (en) * 2007-03-12 2010-10-12 Texas Instruments Incorporated Touch-initiated power-saving clock system and method for touch screen controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4821030A (en) * 1986-12-19 1989-04-11 Tektronix, Inc. Touchscreen feedback system
CN108121434A (en) * 2017-12-27 2018-06-05 Tcl移动通信科技(宁波)有限公司 A kind of clock control method of display interface, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN109144223A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN102778943B (en) Condition control method, device and portable terminal device
WO2019144488A1 (en) Display apparatus, electronic device, and screen display control method
US20090204834A1 (en) System and method for using inputs as wake signals
CN201233589Y (en) Double touch screen display apparatus
CN108205393B (en) Semiconductor device, man-machine interface device, and electronic apparatus
EP2857929B1 (en) Information processing apparatus, information processing system, and power control method
EP2791753B1 (en) Multi-supply sequential logic unit
US10459737B2 (en) Waking and sleeping a display among a plurality of displays using gestures
CN102650904B (en) Low power consumption circuit and method for reducing power consumption
US20150138120A1 (en) Method for reducing power consumption and electronic device thereof
WO2020134566A1 (en) Control method for doze mode of mobile terminal, storage medium and mobile terminal
CN108628792B (en) Communication interface current leakage prevention system and method
JP3070527B2 (en) Wireless mobile terminal
WO2022135060A1 (en) Terminal device, nfc clock control method, nfc module, and medium
CN110703892A (en) EC reset circuit and electronic equipment based on USB C type interface
KR20130101754A (en) Control method for mobile device using setting pattern and mobile device using it
CN109144223B (en) Touch screen clock output method, mobile terminal and storage medium
CN207780714U (en) A kind of display device and electronic equipment
JP2010055265A (en) System lsi, control method of system lsi, program, and storage medium
CN105721665A (en) Mobile terminal incoming call answering method and device
US20170142245A1 (en) Electronic apparatus with shareable input devices and input device sharing method thereof
CN111897763A (en) Control method, control device and electronic equipment
CN114285935A (en) Terminal control method and device, storage medium and electronic equipment
US20070206718A1 (en) Register circuit, semiconductor device, and electric appliance
CN111818695A (en) Control system, method and display module

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant