Method and device for detecting keyboard key values

A key-value, keyboard technology, applied in the field of microprocessors, can solve the problem of large consumption of MCU resources

Active Publication Date: 2016-06-01
BEIJING JINHONG XI DIAN INFORMATION TECH
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a method and device for detecting keyboard key values, which are used to s

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 and device for detecting keyboard key values
  • Method and device for detecting keyboard key values
  • Method and device for detecting keyboard key values

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0062] figure 1 It is a schematic flowchart of Embodiment 1 of the method for detecting keyboard key values ​​provided by the present invention. The execution body of the method is an MCU, a microprocessor or a system-on-chip (System on Chip, referred to as Soc), etc., and the MCU is used as an example for description below. Such as figure 1 As shown, the method includes:

[0063] S101. Execute keyboard scanning, and acquire the identification of the current...

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 provides a method and a device for detecting keyboard key values. The method includes the steps of: executing keyboard scanning; obtaining a current keyboard detection state, the current keyboard detection state including any one of a first keyboard detection state, a second keyboard detection state, a third keyboard detection state and a fourth keyboard detection state; executing an operation corresponding to the current keyboard detection state according to the current keyboard detection state and the current key state; and updating the current keyboard detection state as a new keyboard detection state when the operation result satisfies a state update condition. The four current keyboard detection states indicate the processes that the keys are pressed and finally recognized and efficient, so that the division of keyboard detection states is clear and simple, and thus MCU resources are efficiently used. At the same time the storage and distribution of the key value information are separated. The MCU use rate, the system real-time performance and the module compatibility are improved.

Description

technical field [0001] The invention relates to microprocessor technology, in particular to a method and device for detecting keyboard key values. Background technique [0002] In electronic equipment, the keyboard is the most common means of human-computer interaction. In electronic equipment with a keyboard, the keys on the keyboard are generally connected to the general-purpose input and output I / O ports of the Microcontroller Unit (MCU) in the electronic equipment through direct connection, matrix connection, etc. Read the key value of the keyboard corresponding to the general-purpose I / O port, and then debounce the keyboard through a certain algorithm to determine the final key value. [0003] In the prior art, when using the periodic scanning method to detect the key value of the keyboard, a key state will be determined in each scanning cycle, and a new key state will be determined according to the read key value information in the next scanning cycle, and Determine ...

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 BEIJING JINHONG XI DIAN INFORMATION TECH
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