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

A scanning positioning method of a keyboard

A technology of scanning positioning and keyboard scanning, applied in the field of scanning and positioning of matrix keyboards, can solve the problem of not considering the keyboard operation function, etc., and achieve the effect of avoiding the influence of jitter and being easy to handle.

Inactive Publication Date: 2015-12-09
HUNAN UNIV OF TECH
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the single-key operation and the combined key operation of the method need to be processed separately; the keyboard operation function of effective operation is not performed after the keyboard state is maintained for a period of time; when increasing or decreasing the key operation function or adjusting the key operation function, it is necessary to modify the keyboard scan Locate program structure

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
  • A scanning positioning method of a keyboard
  • A scanning positioning method of a keyboard

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The present invention will be further described below in conjunction with accompanying drawing.

[0029] figure 1 It is a block diagram of keyboard scanning positioning principle of the inventive method, figure 2 It is a circuit diagram illustrating an embodiment of the method of the present invention, the method is realized by an embedded device and a keyboard scanning positioning program, the embedded device includes a keyboard and a microcontroller, and the keyboard scanning positioning program is in the microcontroller run in the machine.

[0030] figure 2 Among them, the 4 keys of the keyboard are arranged in a 2×2 matrix, and all the row lines and column lines are connected to the power supply +VCC through pull-up resistors, and connected to the I / O interface of the microcontroller. This embodiment requires utilizing 4 keys to realize the following operations:

[0031] Operation 0: When the keyboard recovers from key press to no key press, when the time reac...

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

A keyboard scanning positioning method includes initializing a keyboard, waiting a keyboard scanning sampling time, taking samples and reading current state key values, judging whether the key state is stable, combining the current state key values to be a current state state code, timing the current keyboard state maintaining time, checking a state code table to obtain state numbers and key numbers, determining the key numbers according to the state numbers and the keyboard state maintaining time, processing the key numbers and the like. According to the keyboard scanning positioning method, keyboard operation and keyboard states are converted to the state code to be stored in the table, the key numbers are obtained in a mode of checking the state number table, and effective operations are performed after single key operation, combined key operation and keyboard state maintaining for a period in the same method. The size of the state code table is simply needed to be increased or decreased or the key numbers corresponding to the state numbers in the state number table are simply needed to be adjusted when the key operation function is increased or decreased or adjusted.

Description

technical field [0001] The invention relates to a scanning and positioning method for a keyboard, in particular to a scanning and positioning method for a matrix keyboard. Background technique [0002] With the continuous development of embedded technology, various electronic products generally use microcontrollers as the control core, and keyboards as the main input device, which have been widely used. [0003] The invention patent with the application number CN201010153560.2 "A Quick Scanning and Positioning Method for a Matrix Keyboard" adopts the method of keyboard interrupt triggering to enter the scanning and positioning process of the keyboard, and uses the method of repeating the keyboard scanning steps several times to determine whether the keys are valid, and The state of the obtained key value is judged; if the state of multiple sampling is the same, it is in a stable state, and the key value is valid; if the state of multiple sampling is different, the key value ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/02
Inventor 凌云周维龙李飞
Owner HUNAN UNIV OF TECH
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