A Keyboard Matrix Scanning System That Saves I/O
A keyboard matrix and scanning system technology, applied in the field of scanning systems, can solve the problems of increasing programming complexity, increasing programming difficulty, adding chips, etc., and achieve the effect of reducing programming difficulty, reducing complexity, and reducing chips
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0020] The present invention will be described in detail below in conjunction with examples.
[0021] figure 2 It is a 4×5 keyboard matrix scanning circuit diagram of the present invention; 10 diodes are added to the circuit, and only 4 I / Os are needed. Compared with the traditional 4×5 keyboard matrix scanning circuit, the required I / O number is reduced by 5, which is only 44.4% of the conventional circuit. This reduces the I / O considerably for a single-chip microcomputer with a small number of I / O.
[0022] The circuit scans by row: when scanning the first row, let P0.0 be low level, P0.1, P0.2, P0.3 be high level, that is, P0.0=0, P0.1=P0.2 =P0.3=1. If SW11 is pressed, diode D21 is turned on and P0.1 is pulled down. If SW12 is pressed, diodes D22 and D31 are turned on, and P0.1 and P0.2 are pulled down. If SW13 is pressed, diodes D32 and D41 are turned on, and P0.2 and P0.3 are pulled down. If SW14 is pressed, diode D33 is turned on, and P0.2 is pulled down. If SW15...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 