[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN115686230A - Hall mechanical keyboard MCU control system based on polling framework - Google Patents

Hall mechanical keyboard MCU control system based on polling framework Download PDF

Info

Publication number
CN115686230A
CN115686230A CN202211347573.2A CN202211347573A CN115686230A CN 115686230 A CN115686230 A CN 115686230A CN 202211347573 A CN202211347573 A CN 202211347573A CN 115686230 A CN115686230 A CN 115686230A
Authority
CN
China
Prior art keywords
pin
mcu
hall element
hall
clock signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211347573.2A
Other languages
Chinese (zh)
Inventor
叶锦祥
刘文雄
李飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Jiuchang Semiconductor Co ltd
Original Assignee
Hefei Jiuchang Semiconductor Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Jiuchang Semiconductor Co ltd filed Critical Hefei Jiuchang Semiconductor Co ltd
Priority to CN202211347573.2A priority Critical patent/CN115686230A/en
Publication of CN115686230A publication Critical patent/CN115686230A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses a Hall mechanical keyboard MCU control system based on a polling framework, which comprises an MCU unit and a plurality of Hall elements, wherein the Hall elements are provided with corresponding mechanical keys, the MCU unit is provided with VDD1, CLK, RST, SEL1 and GND pins, and the Hall elements are connected in series and are provided with VDD1, SEL2, GND, I and O pins; the pins VDD1 are connected with the power supply input VDD2 of the voltage stabilizer, the pins GND are grounded, the pin CLK of the MCU unit is a clock signal output pin and is connected with the pin I of the first Hall element, and the pin RST of the MCU unit is connected with the pin O of the last Hall element. The invention has novel design and reasonable structure, ensures the accurate detection of the keys of the Hall mechanical keyboard, effectively reduces the dependence on a main control chip under the condition of insufficient chip capacity, can complete the keyboard design by using a simple chip, reduces the chip cost, simplifies a circuit, and reduces the design and production cost of a circuit board.

Description

Hall mechanical keyboard MCU control system based on polling framework
Technical Field
The invention relates to the technical field of computer peripheral equipment, in particular to a Hall mechanical keyboard MCU control system based on a polling framework.
Background
The keyboard is a command and data input device for operating equipment, is the most common and most main input equipment, and can input English letters, numbers, punctuation marks and the like into a computer through the keyboard so as to send commands, input data and the like to the computer, wherein each key of the mechanical keyboard is provided with an independent switch for controlling the closing, and the mechanical keyboard is always used as a representative of high-end products.
At present traditional mechanical keyboard all uses the mode design of button matrix, there is certain requirement to its main control chip, need more foot position just can guarantee can not conflict between the button, at present because chip productivity scheduling problem, the price of chip is high at present, the influence of to a great extent keyboard design and production cost, the circuit board design of matrix keyboard is also complicated relatively simultaneously, the cost of production and the design degree of difficulty of circuit board have been increased, the main control chip power consumption of current mechanical keyboard is also higher simultaneously, be unfavorable for improving the continuation of the journey and the development of green of keyboard.
Disclosure of Invention
The invention aims to solve the defects of high requirements on a main control chip, high chip design and production costs, complex circuit board design, high production cost and high power consumption of the main control chip in the prior art, and provides a polling architecture-based MCU control system for a Hall mechanical keyboard.
In order to achieve the purpose, the invention adopts the following technical scheme:
the utility model provides a hall mechanical keyboard MCU control system based on polling framework, includes MCU unit and a plurality of hall element, and all be equipped with corresponding mechanical button on the hall element, the MCU unit is equipped with VDD1, CLK, RST, SEL1 and GND foot position, the hall element series connection all is equipped with VDD1, SEL2, GND, I and O foot position.
The pins VDD1 are connected with a voltage stabilizer for power supply and input VDD2, the pins GND are grounded, the pin CLK of the MCU unit is a clock signal output pin and is connected with the pin I of the first Hall element, the pin RST of the MCU unit is connected with the pin O of the last Hall element, and the pins I and O of the other two adjacent Hall elements are correspondingly connected.
The SEL2 pin of the Hall element is connected with the SEL1 pin of the MCU unit, the SEL1 pin of the MCU unit is used for receiving a potential signal output by the SEL2 pin of the Hall element, and a pull-up resistor is arranged between the SEL2 pin and a power supply input.
The mechanical keyboard MCU control system has the working principle that:
s1, the MCU unit sends out a wake-up Clock signal;
s2: the first Hall element is started, whether the key is triggered or not is judged, if the key is triggered, a signal is transmitted back to the MCU, and the MCU detects the triggering of the first key;
s3: the working time of the last Hall element is finished and the Hall element enters the sleep mode, and a clock signal is output to the second Hall element;
s4: starting the next Hall element and judging whether the key is triggered, if so, transmitting a signal back to the MCU, and detecting the triggering of the second key by the MCU;
s5: repeating the steps of S3 and S4 until the working time of the last Hall element is finished and the Hall element enters the sleep mode, and informing the MCU that the scanning is finished;
s6: after the single scan is completed, the MCU waits for a period of time to enter the next poll.
Preferably, the RST pin of the MCU is a Reset signal input pin, and when the RST pin detects that the clock signal returns, the CLK pin pauses for a period of time and then retransmits the clock signal, and the MCU clears the key record of this round.
Preferably, the SEL1 pin of the MCU unit is a key detection input pin, and the pin pressed in the polling can be known by combining the SEL1 pin level information and the clock count information.
Preferably, the pin SEL2 of the hall element is a key detection output pin, and when the hall element detects that the mechanical key is pressed, the pin SEL2 is pulled down from a high level to a low level and is detected by the pin SEL 1.
Preferably, the pin I of the hall element is a clock signal input pin, and after receiving the clock signal and a period of steady-state time after receiving the rising edge signal in the first period, the hall element starts to detect until the negative edge signal triggers to finish detecting.
More preferably, the steady-state time of the hall element is 20 microseconds.
Preferably, the pin O of the hall element is a clock signal output pin, and the clock signal is output from the pin O after the pin I of the hall element receives the clock signal.
Compared with the prior art, the invention has the beneficial effects that:
1. according to the invention, the Hall element is matched with the main control unit, the Hall element is polled through the clock signal, the pressed key of the Hall mechanical keyboard is efficiently and accurately detected, and the use effect of the Hall mechanical keyboard is ensured;
2. the invention adopts a polling framework mode, effectively reduces the dependence of the traditional keyboard on a main control chip, does not require more pins for main control, effectively solves the problems of chip shortage and overhigh price, and can complete the keyboard design and production only by using simpler main control;
3. the connection structure of the main control chip and the Hall element effectively simplifies the design of the circuit, facilitates the design and production of the circuit board, effectively reduces the power consumption of the circuit and the main control chip, and reduces the production and use cost.
The invention has novel design and reasonable structure, ensures accurate detection of the keys of the Hall mechanical keyboard, effectively reduces the dependence on a main control chip under the condition of insufficient chip capacity, can complete keyboard design by using a simple chip, reduces the chip cost, simplifies a circuit, and reduces the design and production cost of a circuit board.
Drawings
FIG. 1 is a schematic diagram of a connection structure of an MCU unit and a Hall element according to the present invention;
FIG. 2 is a schematic diagram of a Hall element pin;
FIG. 3 is a schematic diagram of clock signal transmission according to the present invention;
fig. 4 is a schematic diagram of the operating principle of the MCU control system of the mechanical keyboard according to the present invention.
In the figure: a. the sensing time of Key 1; a1, IC steady-state time; b. the sensing time of Key 2; c. the potential of the SEL2 pin changes when Key2 is pressed down; d. the RST pin of the MCU unit receives the time of the clock signal pause.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
Referring to fig. 1-4, a hall mechanical keyboard MCU control system based on polling architecture includes an MCU unit and a plurality of hall elements, and the hall elements are all provided with corresponding mechanical keys, the installation method between the mechanical keys and the hall elements can refer to the fixed structure of the hall elements and the mechanical keys in CN210488504U or CN212484318U, the MCU unit is provided with VDD1, CLK, RST, SEL1 and GND pins, the MCU unit model selected in the present invention is bivy BYK901 or BYK916 master control chip, the hall elements are connected in series and are all provided with VDD1, SEL2, GND, I and O pins, the hall elements are packaged in SOT23-5 packaging manner (refer to fig. 2), and are more suitable for the layout of a single-panel circuit board.
The pins VDD1 are all connected with a voltage stabilizer for power supply input VDD2, the pins GND are all grounded, the CLK pin of the MCU unit is a clock signal output pin and is connected with the I pin of the first Hall element, the MCU unit outputs a clock signal through the CLK pin and inputs the clock signal into the Hall element through the I pin, the RST pin of the MCU unit is connected with the O pin of the last Hall element, the O pin of the last Hall element outputs the clock signal to the RST pin, the MCU receives a signal which finishes scanning, finishes single polling, enters next side polling (refer to d in the attached drawing 3) after pausing for a period of time, the pausing time is 0.085ms, the I pins and the O pins of the other two adjacent Hall elements are uniformly and correspondingly connected, and the clock signal is transmitted to the I pin of the next Hall element from the O pin of the last Hall element.
The SEL2 pins of the Hall elements are connected with the SEL1 pin of the MCU unit, the SEL1 pin of the MCU unit is used for receiving a potential signal output by the SEL2 pin of the Hall element, when the key is pressed, the corresponding SEL2 pin of the Hall element changes from a high level to a low level (refer to c in the attached figure 3), the SEL1 of the MCU unit detects the level change of the SEL2 pin of the corresponding Hall element, namely the key is pressed, and a pull-up resistor is arranged between the SEL2 pin and the power supply input, so that the high level state of the SEL2 pin when the key is not pressed is ensured.
Referring to fig. 3 and 4, the operating principle of the mechanical keyboard MCU control system is as follows:
s1, the MCU unit sends out a wake-up Clock signal;
s2: the first Hall element is started, whether the key is triggered or not is judged, if the key is triggered, a signal is transmitted back to the MCU, and the MCU detects the triggering of the first key;
s3: after the working time of the last Hall element is finished, the Hall element enters the sleep mode, waits for the next awakening, and outputs a clock signal to the second Hall element;
s4: starting the next Hall element and judging whether the key is triggered, if so, transmitting a signal back to the MCU, and detecting the triggering of the second key by the MCU;
s5: repeating the steps S3 and S4 until the working time of the last Hall element is finished and the Hall element enters the sleep mode, and informing the MCU that the scanning is finished;
s6: after the single scan is completed, the MCU waits for a period of time to enter the next poll.
The Hall mechanical keyboard with the polling structure does not need a complex MCU unit to process signals, can complete signal processing only by using the MCU with at least five pins, effectively reduces the dependence on chip manufacturing, has simple circuit, simple design and manufacturing of a circuit board, reduces the production cost, can ensure the independent identification of a single key by matching with a clock signal of a polling system, does not generate the conditions of conflict and key string, and is particularly suitable for the design and use of small keyboards below 25 keys.
As shown in fig. 1, the RST pin of the MCU is a Reset signal input pin, when the RST pin detects that the clock signal returns, the CLK pin pauses for a period of time and then retransmits the clock signal (see d in fig. 3), and the pause time is within 0.085ms, so as to ensure real-time detection of the keys, prevent missing of the keys, ensure the use effect of the hall mechanical keyboard, and at the same time, the MCU clears the key record of this round, prepare for the next polling, and avoid the key record from being mixed.
As shown in fig. 1, the SEL1 pin of the MCU unit is a key detection input pin, the pin pressed in the polling can be known by combining the level information of the SEL1 pin and the clock counting information, the potential signal returned by the hall element is received, and when the low level signal is detected, the corresponding key pressed is determined according to the clock information, so as to complete the positioning and confirmation of the pressed key.
As shown in fig. 1 and 2, the SEL2 pin of the hall element is a key detection output pin, when the hall element detects that a mechanical key is pressed, the SEL2 pin will be pulled down from a high level to a low level and detected by the SEL1, when the hall element IC enters a sensing time (refer to a and b in fig. 3), the magnetic field intensity changes when the key is pressed, the SEL2 pin level is pulled down to a low level (refer to c in fig. 3), and the key press detection is completed.
As shown in fig. 1-3, the pin I of the hall element is a clock signal input pin, and after receiving a clock signal and after a period of steady-state time (refer to a1 in fig. 3) after receiving a rising edge signal in a first period, the hall element starts to detect until the detection is finished when the negative edge signal triggers, (refer to a and b in fig. 3) the hall element IC is generally in a sleep mode, and enters a sensing time after receiving the clock signal, and detects the key press until the detection is finished when the negative edge signal triggers.
As shown in fig. 1 and 2, the steady-state time of the hall element is 20 microseconds, and a certain buffer time is given to the IC when the IC wakes up, so that the IC can clear the residual record and prepare for signal processing.
As shown in fig. 1 and 2, the O pin of the hall element is a clock signal output pin, and the clock signal is output from the O pin after the I pin of the hall element receives the clock signal, so as to ensure the transmission of the clock signal between the hall elements.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.

Claims (7)

1. The Hall mechanical keyboard MCU control system based on the polling framework is characterized by comprising an MCU unit and a plurality of Hall elements, wherein the Hall elements are provided with corresponding mechanical keys, the MCU unit is provided with VDD1, CLK, RST, SEL1 and GND pins, and the Hall elements are connected in series and are provided with VDD1, SEL2, GND, I and O pins;
the pins VDD1 are all connected with a voltage stabilizer for power supply input VDD2, the pins GND are all grounded, the pin CLK of the MCU unit is a clock signal output pin and is connected with the pin I of the first Hall element, the pin RST of the MCU unit is connected with the pin O of the last Hall element, and the pins I, O of the rest Hall elements are all connected end to end in a one-to-one correspondence manner;
the SEL2 pin of the Hall element is connected with the SEL1 pin of the MCU unit, the SEL1 pin of the MCU unit is used for receiving a potential signal output by the SEL2 pin of the Hall element, and a pull-up resistor is arranged between the SEL pin and the power supply input;
the mechanical keyboard MCU control system has the working principle that:
s1, the MCU unit sends out a wake-up Clock signal;
s2: the first Hall element is started, whether the key is triggered or not is judged, if the key is triggered, a signal is transmitted back to the MCU, and the MCU detects the triggering of the first key;
s3: the working time of the next Hall element is finished and the next Hall element enters the sleep mode, and a clock signal is output to the second Hall element;
s4: starting the next Hall element and judging whether the key is triggered, if so, transmitting a signal back to the MCU, and detecting the triggering of the second key by the MCU;
s5: repeating the steps of S3 and S4 until the working time of the last Hall element is finished and the Hall element enters the sleep mode, and informing the MCU that the scanning is finished;
s6: after the single scan is completed, the MCU waits for a period of time to enter the next poll.
2. The MCU control system of claim 1, wherein the RST pin of the MCU is a Reset signal input pin, and when the RST pin detects a clock signal returning, the CLK pin is paused for a period of time and then retransmits the clock signal, and the MCU clears the key record of the round.
3. The MCU control system of claim 1, wherein the SEL1 pin of the MCU is a key detection input pin, and the pin pressed in the polling can be known by combining the SEL1 pin level information and clock count information.
4. The MCU control system according to claim 1, wherein the SEL2 pin of the Hall element is a key detection output pin, and when the Hall element detects a mechanical key press, the SEL2 pin pulls down from a high level to a low level and is detected by SEL 1.
5. The MCU control system according to claim 1, wherein the I pin of the Hall element is a clock input pin, and the Hall element starts detecting after a period of steady-state time after receiving the rising edge signal of the first period after receiving the clock signal until the negative edge signal triggers the end of detecting.
6. The MCU control system of claim 5, wherein the steady state time of the Hall element is 20 microseconds.
7. The MCU control system according to claim 1, wherein the pin O of the Hall element is a clock signal output pin, and the pin I of the Hall element receives a clock signal and outputs the clock signal from the pin O.
CN202211347573.2A 2022-10-31 2022-10-31 Hall mechanical keyboard MCU control system based on polling framework Pending CN115686230A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211347573.2A CN115686230A (en) 2022-10-31 2022-10-31 Hall mechanical keyboard MCU control system based on polling framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211347573.2A CN115686230A (en) 2022-10-31 2022-10-31 Hall mechanical keyboard MCU control system based on polling framework

Publications (1)

Publication Number Publication Date
CN115686230A true CN115686230A (en) 2023-02-03

Family

ID=85046368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211347573.2A Pending CN115686230A (en) 2022-10-31 2022-10-31 Hall mechanical keyboard MCU control system based on polling framework

Country Status (1)

Country Link
CN (1) CN115686230A (en)

Similar Documents

Publication Publication Date Title
US7612690B2 (en) Method and apparatus for scanning a key or button matrix
CN102043489B (en) Position detector and position indicator
CN101951263B (en) Key scanning method and system
US7714746B2 (en) Method and apparatus for keyboard readout
CN113489497A (en) Realization circuit and chip for TCK or ADC
US8368565B2 (en) Power saving method in sleep mode and keyboard controller using the same
CN115686230A (en) Hall mechanical keyboard MCU control system based on polling framework
US7237132B2 (en) Power reduction for unintentional activation of a wireless input device using a flip-flop to detect event termination
CN101872172B (en) Sleep mode power saving method, keyboard control circuit and triangular scanning keyboard
CN205091722U (en) Receive response subassembly and induction system of touch signal and response card signal
CN103391103B (en) Ultralow power consumption wake-up circuit device
CN101272149A (en) Key scanning circuit
US20230384869A1 (en) Spi keyboard module for a parking meter and a parking meter having an spi keyboard module
CN108733294A (en) Touch pressing force checking device and terminal device
CN104423616B (en) Input device and control unit
CN102103805A (en) Multifunctional electronic pointer device with motion control function
CN201203651Y (en) Circuit for detecting key-press status
CN104656413B (en) Blind person's alarm clock
CN102564552B (en) Power supply management method and power supply management device for electronic scale
CN114578939A (en) Single-line awakening and key detection circuit
CN101470639B (en) Start signal generation apparatus
CN208903328U (en) Ballot device
CN101964075A (en) Portable scribing electric counter and counting control chip
CN111600591A (en) Key identification method and system of matrix keyboard
CN104934759B (en) A kind of intelligent modules insert row controllable based on the time and its control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination