摘要 |
A key system includes a microcontroller and a plurality of keys. The first ends of the keys are coupled to a plurality of data input ports of the microcontroller respectively. The second ends of the keys are coupled to a key input port of the microcontroller. The key system utilizes the data signals inputted to the microcontroller as scan signals for the keys. The signal received by the key input port is detected to determine which key is triggered. Thus, only one key input port is sufficient to detect which of the plurality of keys is triggered.
|