Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for realizing a plurality of key functions by using single IO

A button and a single technology, applied in the direction of logic circuit coupling/interface, logic circuit connection/interface layout, etc. using field effect transistors, can solve the problems of many IO interface resources, high cost, and multiple IO interface resources for buttons

Pending Publication Date: 2020-10-23
SHENZHEN TRENDIT CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, for independent buttons, one IO interface can only expand one button. If you want to expand multiple buttons, you need multiple IO interfaces. The buttons occupy more IO interface resources, so you need to choose IO Chips with many interfaces are expensive; matrix buttons expand multiple buttons through multiple IO interfaces, which still occupy more IO interface resources

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 realizing a plurality of key functions by using single IO
  • Method and device for realizing a plurality of key functions by using single IO
  • Method and device for realizing a plurality of key functions by using single IO

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0032] One of the core concepts of the embodiments of the present invention is to provide a method for realizing multiple button functions by using a single IO, by detecting the voltage of the IO interface, obtaining the voltage parameter, and when the voltage parameter reaches the first standard, the The IO interface is configured as an output state. When the voltage parameter reaches the second standard, configure the IO interface as an input state and start timing. When the voltage parameter reaches the first standard again, stop timing and obtain the time Parameters, according to the value range of the time parameter, output the key value, which can realize the function of using a single IO interface to expand multiple buttons,...

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 for realizing a plurality of key functions by using a single IO. An IO interface is integrated in a key detection circuit, the key detection circuit further comprises aprocessor and a plurality of keys, one end of each key is respectively connected with resistors with different resistance values in series and then is connected with the IO interface, and one end, connected with the IO interface, of each key is connected with a power supply after being connected with a resistor in series, and the key detection method comprises the following steps: detecting the voltage of the IO interface and obtaining voltage parameters; when the voltage parameter reaches a first standard, configuring the IO interface to be in an output state; when the voltage parameter reaches a second standard, configuring the IO interface to be in an input state, and starting timing; when the voltage parameter reaches the first standard again, stopping timing, and obtaining a time parameter; and outputting the key value according to the numerical interval where the time parameter is located. Key value distinguishing is carried out by changing the state of the IO interface and detecting the voltage parameter change time length, and the function of expanding a plurality of keys by utilizing a single IO interface can be realized.

Description

technical field [0001] The invention relates to the technical field of electronic circuits, in particular to a method for realizing multiple button functions by using a single IO and a device for realizing multiple button functions by using a single IO. Background technique [0002] With the rapid development of electronic equipment, more and more signals need to be detected by the chip. [0003] Taking the button signal or status control signal as an example, the common IO interface expansion button methods mainly include stand-alone and matrix. The stand-alone button requires the chip to have enough IO interfaces, which are respectively connected to a button or a status control switch; matrix The keyboard is composed of row and column lines, and the keys are located at the intersection of the row and column lines, such as a 4*4 matrix, which controls 16 keys through 8 IO interfaces, 4 outputs and 4 inputs. [0004] However, for independent buttons, one IO interface can on...

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 Applications(China)
IPC IPC(8): H03K19/0185
CPCH03K19/0185
Inventor 邹志强
Owner SHENZHEN TRENDIT CO LTD