Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Row/column matrix keyboard interface circuit and row/column matrix keyboard scanning method

A matrix keyboard and interface circuit technology, applied in the field of circuits, can solve the problems of not saving I/O port resources, wasting I/O port resources, etc., and achieve simplified key scanning workload, high application value, and simple location Effect

Pending Publication Date: 2017-02-22
CHINA UNIV OF GEOSCIENCES (WUHAN)
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The I / O port resources of the single-chip microcomputer are very limited, and the above-mentioned independent key structure is the most wasteful of the I / O port resources, and one I / O port corresponds to a key; the general matrix keyboard structure saves more I than the independent key structure. / O port resources, but when there are 16 buttons, 8 I / O ports need to be used, which does not save I / O port resources very much.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Row/column matrix keyboard interface circuit and row/column matrix keyboard scanning method
  • Row/column matrix keyboard interface circuit and row/column matrix keyboard scanning method
  • Row/column matrix keyboard interface circuit and row/column matrix keyboard scanning method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] Embodiment 1, a row-column matrix keyboard interface circuit. see below figure 2 and image 3 The circuit provided by this embodiment is described.

[0027] see figure 2 The row-column matrix keyboard interface circuit provided in this embodiment includes a single-chip microcomputer MCU and a touch chip U1, the interrupt INT0 of the single-chip microcomputer MCU is connected to the pin PENIRQN of the touch chip U1, and the single-chip microcomputer MCU is connected to the touch chip U1 through the I2C / SPI bus , to realize the I2C / SPI communication between the MCU and the touch chip U1, the pin VCC is connected to the 3.3V power supply, and the pin GND is grounded. Connect m resistors in series between pin X+ and pin X- of the touch chip U1 as row resistors, and connect n resistors in series between pin Y+ and pin Y- as column resistors, between every two adjacent row resistors Lead out a column line, lead out a row line between every two adjacent column resistors,...

Embodiment 2

[0030] Embodiment 2, a scanning method of a row-column matrix keyboard. Combine below Figure 4-Figure 6 The scanning method provided in this embodiment is described.

[0031] see Figure 4 , the scanning method of the row-column matrix keyboard that the present embodiment provides comprises:

[0032] S1, the interrupt INT0 of the single-chip MCU generates an enabling drive signal to drive the touch chip U1 to work;

[0033] S2, when the button is pressed, the driving voltage V is applied to the pin X+ of the touch chip U1 Drive , pin X- is grounded to form a voltage gradient, and the output voltage V is measured at the terminal of pin Y+ xout ;

[0034] S3, apply the driving voltage V at the pin Y+ of the touch chip U1 Drive , pin Y- is grounded to form a voltage gradient, and the output voltage V is measured at the pin X+ terminal Yout ;

[0035] S4, the touch chip U1 will measure the obtained V xout and V Yout Transmit to single-chip MCU through I2C / SPI communicat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a row / column matrix keyboard interface circuit and a row / column matrix keyboard scanning method. The interface circuit comprises a microcontroller and a touch chip. M resistors as row resistors are connected between a pin X+ and a pin X- of the touch chip in series. N resistors as column resistors are connected between the pin X+ and the pin X- in series. A column line is leaded out between two adjacent column resistors. A row line is leaded out between two adjacent row resistors. A key is arranged at an intersection of each row line and each column line. A resistor network is constructed by utilization of the touch chip. A voltage gradient is formed. The matrix keyboard with any row / column number can be realized only through 3-4 I / O ports of the microcontroller according to a touch screen principle. The usage number of the I / O ports of the microcontroller is reduced. More I / O port resources are left for other external devices. Moreover, the location of the pressed key is determined by the touch screen chip through adoption of hardware scanning, so the key scanning workload of the microcontroller is greatly simplified. The interface circuit and the method have great application value in the field of the externally connected matrix keyboard of the microcontroller.

Description

technical field [0001] The invention relates to the field of circuits, in particular to a row-column matrix keyboard interface circuit and a row-column matrix keyboard scanning method. Background technique [0002] At present, there are two main types of single-chip button circuit design, one is the independent button structure, that is, one I / O port corresponds to one button; the other is the matrix keyboard structure, see figure 1 , when there are many keys in the keyboard, in order to reduce the occupation of the I / O port, the keys are usually arranged in a matrix form. In a matrix keyboard, each horizontal and vertical line is not directly connected at the intersection, but is connected by a key. In this way, one port (such as P1 port) can form 4*4=16 keys, which is twice as much as using the port line directly for the keyboard, and the more lines there are, the more obvious the difference is, for example, adding one more line Just can form the keyboard of 20 keys, and...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H03M11/20
CPCH03M11/20
Inventor 付先成高恒强钟剑文张文君张宇龙周志威刘银
Owner CHINA UNIV OF GEOSCIENCES (WUHAN)
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products