Electronic apparatus and method for detecting status of keys thereof
First Claim
1. An electronic apparatus, comprising:
- a key module, comprising a plurality of keys, at least one first line and at least one second line, wherein the at least one first line and the at least one second line are coupled to the keys to drive the keys or sense the keys;
a key control circuit, coupled to the at least one first line and the at least one second line, wherein the key control circuit detects whether any one of the keys is pressed, if a detection result is affirmative, the key control circuit scans a press status of each of the keys, and accordingly, obtains a coarse scan result;
a conversion circuit having calibration mechanism, comprising a switch circuit, wherein the switch circuit is coupled to a first circuit to receive a first sensing signal, coupled to the key control circuit to receive at least one second sensing signal on the at least one second line through the key control circuit, and controlled by a switch signal to pre-select the first sensing signal as an analog signal, wherein the conversion circuit having the calibration mechanism performs a conversion on the analog signal to generate a first result; and
a processor, coupled to the key control circuit and the conversion circuit having the calibration mechanism, wherein the processor executes a system function corresponding to the first sensing signal according to the first result,wherein, when the processor determines that at least one of the keys is not pressed according to the coarse scan result, the processor generates the switch signal to cause the switch circuit to select one of the at least one second sensing signal as the analog signal, so that the conversion circuit having the calibration mechanism performs the conversion on the analog signal to generate a second result, and the processor re-determines the press status of the at least one of the keys according to the second result.
1 Assignment
0 Petitions
Accused Products
Abstract
An electronic apparatus and a method for detecting status of keys thereof are provided. The electronic apparatus comprises a key module, a key control circuit, a conversion circuit with calibration mechanism and a processor. The key control circuit detects whether any of keys in the key module is pressed. If the detection result is affirmative, the press status of each of the keys is scanned by the key control circuit to obtain a coarse scan result. The conversion circuit with calibration mechanism is configured to perform the other system function of the electronic apparatus. When the processor determines that at least one of the keys is not pressed according the coarse scan result, the conversion circuit with calibration mechanism is switched to assist a re-scan operation of the press status of the at least one of the keys.
-
Citations
14 Claims
-
1. An electronic apparatus, comprising:
-
a key module, comprising a plurality of keys, at least one first line and at least one second line, wherein the at least one first line and the at least one second line are coupled to the keys to drive the keys or sense the keys; a key control circuit, coupled to the at least one first line and the at least one second line, wherein the key control circuit detects whether any one of the keys is pressed, if a detection result is affirmative, the key control circuit scans a press status of each of the keys, and accordingly, obtains a coarse scan result; a conversion circuit having calibration mechanism, comprising a switch circuit, wherein the switch circuit is coupled to a first circuit to receive a first sensing signal, coupled to the key control circuit to receive at least one second sensing signal on the at least one second line through the key control circuit, and controlled by a switch signal to pre-select the first sensing signal as an analog signal, wherein the conversion circuit having the calibration mechanism performs a conversion on the analog signal to generate a first result; and a processor, coupled to the key control circuit and the conversion circuit having the calibration mechanism, wherein the processor executes a system function corresponding to the first sensing signal according to the first result, wherein, when the processor determines that at least one of the keys is not pressed according to the coarse scan result, the processor generates the switch signal to cause the switch circuit to select one of the at least one second sensing signal as the analog signal, so that the conversion circuit having the calibration mechanism performs the conversion on the analog signal to generate a second result, and the processor re-determines the press status of the at least one of the keys according to the second result. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for detecting a status of keys, configured for a key module of an electronic apparatus, the method comprising:
-
in a detection stage, detecting whether any one of a plurality of keys in the key module is pressed by a key control circuit of the electronic apparatus, if a detection result is affirmative, entering a first scan stage; in the first scan stage, detecting a press status of each of the keys, by the key control circuit, and accordingly, obtaining a coarse scan result; in the first scan stage, determining whether at least one of the keys is not pressed according to the coarse scan result by a processor of the electronic apparatus, if a determination result indicating that at least one of the keys is not pressed, entering into a second scan stage; in the second scan stage, generating a switch signal by the processor, causing a switch circuit in a conversion circuit having calibration mechanism of the electronic apparatus to be switched to select corresponding one of at least one second sensing signal from the key module as an analog signal, and performing a conversion to the analog signal by the conversion circuit having calibration mechanism, so as to generate a second result; in the second scan stage, re-determining the press status of the at least one of the keys according to the second result; after the re-determination of the press status of the at least one of the keys is completed, generating the switch signal by the processor, so as to cause the switch circuit to be switched back to select a first sensing signal from a first circuit as the analog signal, performing the conversion to the analog signal to generate a first result by the conversion circuit having the calibration mechanism, and executing a system function corresponding to the first sensing signal according to the first result by the processor. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
Specification