Method for calculating position information in touchscreen and electronic device
AssigneeHonor Device Co., Ltd.
InventorsYue DING, Guangxu ZHAO, Juncheng TIAN
Life of this patent
Estimating the term…
Abstract
This application provides a method for calculating position information in a touchscreen and an electronic device. In the method for calculating position information in a touchscreen, because a touch chip transmits, by using a high-speed serial bus, source data generated by a trigger operation, first duration t1 for the touch chip to transmit the source data generated by the trigger operation can be shorter. Because position information of the trigger operation in the touchscreen is calculated in a CPU, second duration t2 for the CPU to calculate coordinates of a position at which a user triggers the touchscreen can also be shorter.
Claims20
A method for calculating position information in a touchscreen, wherein the method is applied to an electronic device, the electronic device comprises a touchscreen, a touch chip, and a central processing unit CPU, and the method comprises:
- sampling, by the touch chip, source data generated by a trigger operation in the touchscreen, when the touchscreen receives the trigger operation;
- transmitting, by the touch chip, the source data to the CPU by using a high-speed serial bus, wherein the source data is used to indicate capacitance of the touch chip;
- and
- calculating, by the CPU, position information of the trigger operation in the touchscreen based on the source data.
An electronic device, comprising a touchscreen, a touch chip, and a central processing unit (CPU), wherein when the touchscreen receives a trigger operation, the electronic device performs a method, the method comprising:
- sampling, by the touch chip, source data generated by a trigger operation in the touchscreen, when the touchscreen receives the trigger operation;
- transmitting, by the touch chip, the source data to the CPU by using a high-speed serial bus, wherein the source data is used to indicate capacitance of the touch chip;
- and
- calculating, by the CPU, position information of the trigger operation in the touchscreen based on the source data.
Dependencies are inferred from the claim text.