Method for fast scanning and positioning of matrix keyboard

A matrix keyboard, fast scanning technology, applied in the input/output direction of user/computer interaction, can solve the problems of continuous key touch, keyboard jitter, voltage signal instability, etc., to avoid level instability and jitter, improve The effect of high accuracy and control precision

Active Publication Date: 2010-09-22
NO 54 INST OF CHINA ELECTRONICS SCI & TECH GRP
View PDF2 Cites 84 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Since the keyboard is a mechanical device, the keyboard will vibrate when it is lifted and pressed, and the voltage signal will be unstable in a short period of time and glitches will appear, which will easily cause wrong keys, contin

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
  • Method for fast scanning and positioning of matrix keyboard
  • Method for fast scanning and positioning of matrix keyboard

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] refer to figure 1 , the principle block diagram of the method realized by the present invention is as follows figure 1 shown. Embedded equipment utilizes Linux operating system to realize, and described embedded equipment comprises matrix keyboard and register, and its concrete steps are as follows:

[0024] 1. In the method of the present invention, after the kernel is started, at first the keyboard device is initialized, and operations such as registering the keyboard device name, device information, driver information, device read and write wait, and initial operations are carried out to the KPC register, including For the input and output of the matrix keyboard, enable and other parts; in this example, the initialization operation is completed through the function pxa270_kp_init.

[0025] 2. The keyboard device applies to the system for an interrupt request request_irq, and waits for the matrix keyboard to trigger the interrupt signal;

[0026] 3. When the matrix...

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 method for fast scanning and positioning of a matrix keyboard, which relates to a method for the fast scanning and positioning of the matrix keyboard in the field of controlling an embedded system, and is particularly suitable for designing the matrix keyboard of an embedded terminal device. The method comprises the following steps of: initializing a keyboard device and registering the keyboard device; waiting for the keyboard to trigger an interruption signal by a system; triggering a keyboard interruption signal; responding to the interruption signal by the system; performing keyboard scanning; judging whether keys are effective; and outputting a keyboard key value to a queue, and waiting for an application program to read the key value. The method can effectively avoid instable and dithering levels of the matrix keyboard because of per se mechanical properties, improves the accuracy of the scanning and the positioning of the matrix keyboard, and has the characteristics of simple algorithm, steady performance, high control accuracy and the like.

Description

technical field [0001] The invention relates to a fast scanning and positioning method of a matrix keyboard in the control field of an embedded system (Embedded System), and is especially suitable for the design of a combined keyboard of an embedded terminal device. Background technique [0002] With the continuous development of embedded technology, the current embedded terminal equipment widely uses the keyboard as the main input device, but the keyboard, as an input device used by the embedded terminal, still has the advantages of simple operation, high reliability, and fast response time. Good stability and other characteristics, so it is still widely used in the field of industrial control and embedded terminal equipment. [0003] Since the keyboard is a mechanical device, the keyboard will vibrate when it is lifted and pressed, and the voltage signal will be unstable in a short period of time and glitches will appear, which will easily cause wrong keys, continuous key ...

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): G06F3/02
Inventor 陈路路酒乐陈荣李晓鑫程延沛宋之民
Owner NO 54 INST OF CHINA ELECTRONICS SCI & TECH GRP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products