主权项 |
1. An electronic device with a touch sensor, the electronic device comprising:
a touch screen including touch sensors defined by Tx lines and Rx lines; a touch sensing circuit that supplies a drive signal to the Tx lines and senses a voltage change in the touch sensors to output sensing data; and a microcontroller executing program instructions stored in a memory, which is configured to perform noise filtering, which;
profile a type of noise in the sensing data in order to compensate the sensing data so that the compensated sensing data is near a maximum threshold or a minimum threshold which is calculated based on an average value of the sensing data of a previous frame, or within a range between the maximum and the minimum thresholds;compare the average value of the sensing data with a preset touch threshold, determine whether the sensing data is classified as touch or no touch, and set sensing data classified as touch being a first parameter and set sensing data classified as no touch being a second parameter. |