Integrated circuit chip, key and mechanical keyboard with data line

By using integrated circuit chips with data lines in mechanical keyboards, integrating magnetic induction and RGB drive circuits, and cascaded connections of data lines, the existing mechanical keyboard circuits are solved, and the number of components and wirings is reduced and the circuit stability is improved.

CN117270701BActive Publication Date: 2025-04-18SHENZHEN XINHEYUN ELECTRONIC TECHNOLOGY CO LTD

Patent Information

Application Number
CN202311224586.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2023-08-27
Filing Date
2023-09-21
Publication Date
2025-04-18
Estimated Expiration
2043-09-21

AI Technical Summary

Technical Problem

The keys of existing mechanical keyboards are independent of each other, resulting in complex PCB layout, complex circuit structure, reduced working stability, and increased the number of components and wiring.

Method used

An integrated circuit chip with data lines is adopted to integrate magnetic induction integrated circuits and RGB color driving circuits. Multiple integrated circuit chips are connected through data lines to form a cascade structure, simplify the circuit layout, and time-sharing transmission of key information and RGB color grayscale information through shared data lines.

Benefits of technology

It reduces the number of components and wiring, simplifies the PCB layout and circuit structure, improves the working stability of the circuit, and reduces the design difficulty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117270701B_ABST
    Figure CN117270701B_ABST
Patent Text Reader

Abstract

The present invention discloses an integrated circuit chip with a data line, a key and a mechanical keyboard, wherein the integrated circuit chip integrates a magnetic induction integrated circuit and an RGB magic color driving circuit; the integrated circuit chip includes a power pin, a ground pin, a data information input pin and a data information output pin, and the connection between the data information input pin and the data information output pin of a plurality of integrated circuit chips forms a data line and is connected to the MCU; an integrated circuit chip cooperates with a key with a magnetic element to obtain a key information, and according to different communication protocols, the RGB magic color driving circuit and the magnetic induction integrated circuit share the data line, and transmit the RGB color grayscale information and the key information in a time-sharing manner. The present invention cascades all the key information through the data line, saves a lot of wiring space, reduces the design difficulty of the PCB, reduces the number of electronic components by multiples, and provides a variety of different code sending methods and working methods, making its application simpler and more efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mechanical keyboards, and in particular to an integrated circuit chip with a data line, a key and a mechanical keyboard. Background Art

[0002] The existing mechanical keyboards have several independent keys, and the input pin and output pin of each key are directly electrically connected to the MCU. Hundreds of keys on the keyboard adopt this wiring method, which makes PCB layout a problem. In particular, for the sake of aesthetics, each key of the mechanical keyboard will be equipped with an LED light, which directly doubles the number of wiring and components. The PCB board wiring space is cramped, the circuit structure is relatively complex, and the circuit design requirements are high. At the same time, the more complex the circuit is, the lower its working stability is. Summary of the invention

[0003] The object of the present invention is to overcome the shortcomings and deficiencies of the prior art and to provide an integrated circuit chip with a data line.

[0004] Another object of the present invention is to provide a key.

[0005] Another object of the present invention is to provide a mechanical keyboard.

[0006] The purpose of the present invention is achieved through the following technical solutions:

[0007] An integrated circuit chip with a data line, the integrated circuit chip integrating a magnetic induction integrated circuit and an RGB magic color driving circuit;

[0008] The integrated circuit chip includes a power pin, a ground pin, a data information input pin and a data information output pin. The power pin is used to power the integrated circuit chip, and the ground pin is used for signal grounding and power grounding. The data information output pin of the integrated circuit chip is connected to the data information input pin of the next adjacent integrated circuit chip, and the data information input pin of the integrated circuit chip is connected to the data information output pin of the previous adjacent integrated circuit chip. The connection between the data information input pins and the data information output pins of several integrated circuit chips forms a data line. Several integrated circuit chips are cascaded and connected to the MCU. An integrated circuit chip cooperates with a key with a magnetic element to obtain a key information. According to different communication protocols, the RGB fantasy color driving circuit and the magnetic induction integrated circuit share the data line, and transmit the RGB color grayscale information and key information in time-sharing. At this time, it is a single data line transmission channel.

[0009] An integrated circuit chip with a data line, the integrated circuit chip integrating a magnetic induction integrated circuit and an RGB magic color driving circuit;

[0010] The integrated circuit chip includes a power pin, a ground pin, a first data information input pin, a first data information output pin, a second data information input pin and a second data information output pin; the power pin is used to power the integrated circuit chip, and the ground pin is used for signal grounding and power grounding; the first data information output pin of the integrated circuit chip is connected to the first data information input pin of the adjacent next integrated circuit chip, and the first data information input pin of the integrated circuit chip is connected to the first data information output pin of the adjacent previous integrated circuit chip; the connection relationship between the second data information input pin and the second data information output pin is similar to the first data information input pin and the first data information output pin; the connection between the first data information input pin and the first data information output pin of several integrated circuit chips forms a first data line; the connection between the second data information input pin and the second data information output pin of several integrated circuit chips forms a second data line; several integrated circuit chips are cascaded and connected to the MCU; one integrated circuit chip cooperates with a key with a magnetic element to obtain a key information, and according to different communication protocols, several key information is transmitted through the first data line; the RGB magic color driving circuit transmits RGB color and grayscale information through the second data line. At this time, it is a dual data line transmission channel.

[0011] An integrated circuit chip with a data line, the integrated circuit chip comprising a magnetic induction integrated circuit chip and an RGB magic color driving circuit chip;

[0012] The magnetic induction integrated circuit chip comprises a power pin, a ground pin, a first data information input pin and a first data information output pin, the power pin is used to supply power to the magnetic induction integrated circuit chip, and the ground pin is used for signal grounding and power grounding; the data information output pin of the magnetic induction integrated circuit chip is connected to the data information input pin of the next adjacent magnetic induction integrated circuit chip, and the data information input pin of the magnetic induction integrated circuit chip is connected to the data information output pin of the previous adjacent magnetic induction integrated circuit chip; the connection between the data information input pins and the data information output pins of several integrated circuit chips forms a first data line; several magnetic induction integrated circuit chips are cascaded and connected to the MCU; one magnetic induction integrated circuit chip cooperates with a key with a magnetic element to obtain a key information, and according to different communication protocols, several key information are transmitted through the first data line;

[0013] The RGB fantasy color driving circuit chip shares the power pin and ground pin of the magnetic induction integrated circuit chip; the RGB fantasy color driving circuit chip also includes a second data information input pin and a second data information output pin, and the connection relationship between the second data information input pin and the second data information output pin is similar to the first data information input pin and the first data information output pin.

[0014] The connection relationship between the second data information input pin and the second data information output pin is as follows: the second data information output pin of the RGB fantasy color driving circuit chip is connected to the second data information input pin of the next adjacent RGB fantasy color driving circuit chip, and the second data information input pin of the RGB fantasy color driving circuit chip is connected to the second data information output pin of the previous adjacent RGB fantasy color driving circuit chip; the connection between the data information input pin and the data information output pin of several RGB fantasy color driving circuit chips forms a second data line; several RGB fantasy color driving circuit chips are cascaded with each other and connected to the MCU; according to different communication protocols, several RGB color and grayscale information are transmitted through the second data line.

[0015] An integrated circuit chip with a data line, the integrated circuit chip is a magnetic induction integrated circuit chip, the magnetic induction integrated circuit chip comprises a power pin, a ground pin, a data information input pin and a data information output pin, the power pin is used to supply power to the magnetic induction integrated circuit chip, and the ground pin is used for signal grounding and power grounding; the data information output pin of the magnetic induction integrated circuit chip is connected to the data information input pin of the next adjacent magnetic induction integrated circuit chip, and the data information input pin of the magnetic induction integrated circuit chip is connected to the data information output pin of the previous adjacent magnetic induction integrated circuit chip; a plurality of the magnetic induction integrated circuit chips are cascaded and connected to an MCU; the connection between the data information input pins and the data information output pins of the plurality of integrated circuit chips forms a data line; a magnetic induction integrated circuit chip cooperates with a key with a magnetic element to obtain a key information, and according to different communication protocols, a plurality of key information is transmitted through the data line.

[0016] Preferably, single key information is transmitted bit by bit, and the n keys of the entire keyboard correspond to n bits of information, and the n bits of information and reset information constitute a cycle of key information; the operating frequency of each magnetic induction integrated circuit chip is adjusted according to the cycle of MCU reading all key information.

[0017] Preferably, the MCU sends out n-bit codes corresponding to n magnetic induction integrated circuit chips at one time, and the n-bit codes pass through n buttons in sequence;

[0018] Each button corresponds to a bit, and each bit corresponds to a unipolar return-to-zero code. The initial code 0 state of the button is set to a high level that occupies an entire period not greater than a first set value; each time a button is passed, if the button is not pressed, the encoding of the button is adjusted to a placeholder code 0 state, and the placeholder code 0 state is a high level that occupies an entire period not greater than a second set value and greater than the first set value; if the button is pressed, the encoding of the button is adjusted to a code 1 state, and the code 1 state is a high level that occupies an entire period greater than a third set value, and the third set value is greater than the second set value.

[0019] Preferably, after the MCU sends a reset code, a number of key information are transmitted in an accumulated manner until they are transmitted to the MCU.

[0020] Preferably, a single key information is transmitted as one byte, and the single key information includes x bits of synchronization information, y bits of magnetic induction integrated circuit chip operating frequency information, and z bits of key voltage information; the sum of x bits, y bits, and z bits is one byte; the key voltage information is continuous voltage information (corresponding to linear magnetic induction) or digital voltage value (corresponding to nonlinear magnetic induction);

[0021] The n keys of the entire keyboard correspond to n bytes of information, and the n bytes of information and the reset information constitute a cycle of key information.

[0022] Preferably, after the MCU sends the reset code, a number of key information are transmitted in an accumulation manner until they are transmitted to the MCU. The advantage of accumulation is that the amount of data is small and the response speed is fast.

[0023] Preferably, the MCU sends out n byte codes corresponding to n magnetic induction integrated circuit chips at one time, and the n byte codes pass through n buttons in sequence;

[0024] Each button corresponds to a byte, and each bit in the byte corresponds to a unipolar return-to-zero code.

[0025] The number of power pins is 1 or 2.

[0026] The integrated circuit chip is provided with a backup data line transmission channel.

[0027] Another object of the present invention is achieved by the following technical solutions:

[0028] A key comprises a key body, wherein the key body comprises an upper shell, a lower shell and a button handle, wherein the upper shell is fixedly connected to the lower shell, the button handle is movably arranged on the upper shell, an accommodating space is formed between the upper shell and the lower shell, an elastic element is arranged in the accommodating space, the elastic element is located below the button handle, and further comprises a magnetic element and a magnetic induction element, wherein the magnetic element is fixed on the button handle and moves up and down with the button handle, the magnetic induction element comprises the above-mentioned integrated circuit chip with a data line, the magnetic induction element is arranged on a printed circuit board, and the magnetic element is arranged corresponding to the magnetic induction element.

[0029] Another object of the present invention is achieved by the following technical solutions:

[0030] A mechanical keyboard comprises a printed circuit board, on which a single-chip microcomputer is arranged, and also comprises a plurality of the above-mentioned keys.

[0031] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0032] 1. The keys of the present invention are connected by data lines, and all the keys are connected by one or two data lines, and then connected to the MCU. The above connection method can save a lot of wiring space and reduce the difficulty of PCB design. At the same time, the present invention provides a variety of different coding methods and working methods, but the core is to cascade different keys with data lines, which fundamentally changes the independent state of the keys of the existing mechanical keyboard.

[0033] 2. The present invention integrates the magnetic induction integrated circuit and the RGB magic color driving circuit integrated circuit on one chip at the same time, or physically packages the magnetic induction integrated circuit chip and the RGB magic color driving circuit chip together, thereby reducing the number of components by at least half.

[0034] Correspondingly, the number of MCU pins for driving RGB and detecting buttons is reduced from dozens to 1 to 2 (depending on the number of data lines). BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a circuit diagram of three integrated circuit chips with data lines cascaded.

[0036] Figure 2 The schematic diagram is a diagram of three integrated circuit chips with data lines using a single-key bit accumulation method to send codes.

[0037] Figure 3 A coding diagram.

[0038] Figure 4 The schematic diagram is a schematic diagram of three integrated circuit chips with data lines using full-key bit overall coding.

[0039] Figure 5 The schematic diagram is a diagram of three integrated circuit chips with data lines using a single-key byte accumulation method to send codes.

[0040] Figure 6 This is a schematic diagram of the composition of a byte.

[0041] Figure 7 The schematic diagram is a diagram of three integrated circuit chips with data lines using full-key byte overall coding.

[0042] Figure 8 It is a circuit diagram of cascading three integrated circuit chips integrating magnetic induction integrated circuits and RGB fantasy color driving circuits corresponding to Example 5.

[0043] Fig. 9It is a schematic diagram of the time-sharing transmission of the RGB magic color driving circuit data information and the magnetic induction circuit data information corresponding to Example 5.

[0044] Fig.10 It is a circuit diagram of cascading three integrated circuit chips integrating magnetic induction integrated circuits and RGB fantasy color driving circuits corresponding to Example 6.

[0045] Fig.11 This is a schematic diagram of the simultaneous transmission of the RGB magic color driving circuit data information and the magnetic induction circuit data information corresponding to Example 6.

[0046] Fig.12 It is a circuit diagram of cascading three integrated circuit chips physically encapsulated with a magnetic induction integrated circuit chip with a data line and an RGB fantasy color driving circuit chip with a data line corresponding to Example 7.

[0047] Fig.13 This is a circuit diagram of embodiment 5, in which three corresponding integrated circuit chips integrating magnetic induction integrated circuits, RGB magic color driving circuits and having two power pins are cascaded.

[0048] Fig.14 This is a circuit diagram of three integrated circuit chips with data lines corresponding to Example 8 after being cascaded. DETAILED DESCRIPTION

[0049] The present invention is further described in detail below in conjunction with embodiments and drawings, but the embodiments of the present invention are not limited thereto.

[0050] Example 1

[0051] An integrated circuit chip with a data line, the integrated circuit chip is a magnetic induction integrated circuit chip, the magnetic induction integrated circuit chip comprises a power pin, a ground pin, a data information input pin and a data information output pin, the power pin is used to supply power to the magnetic induction integrated circuit chip, the ground pin is used for signal grounding and power grounding; the data information output pin of the magnetic induction integrated circuit chip is connected to the data information input pin of the next adjacent magnetic induction integrated circuit chip, and the data information input pin of the magnetic induction integrated circuit chip is connected to the data information output pin of the previous adjacent magnetic induction integrated circuit chip; a plurality of the magnetic induction integrated circuit chips are cascaded and connected to an MCU; the connection between the data information input pins and the data information output pins of the plurality of integrated circuit chips forms a data line; a magnetic induction integrated circuit chip cooperates with a key with a magnetic element to obtain a key information,

[0052] The integrated circuit chip includes only one magnetic induction integrated circuit chip, and the code sending mode of the magnetic induction integrated circuit chip adopts a single-key bit accumulation mode.

[0053] Single key information is transmitted bit by bit. The n keys of the entire keyboard correspond to n bits of information. The n bits of information and reset information constitute a cycle of key information. The operating frequency of each magnetic induction integrated circuit chip is adjusted according to the cycle of MCU reading all key information.

[0054] Take 3 buttons as an example to explain, the same applies to multiple buttons:

[0055] DIN(1), DIN(2), and DIN(3) are respectively the first, second, and third data input pins of the magnetic sensing chip with data lines; DOUT(1), DOUT(2), and DOUT(3) are respectively the first, second, and third data output pins of the magnetic sensing chip with data lines.

[0056] like Figure 1 Cascade three magnetic induction integrated circuit chips with data lines; Figure 2The magnetic induction chip with data line transmits key information by bit accumulation; the magnetic induction integrated circuit chip cooperates with a key with magnetic element to obtain a key information; the magnetic induction chip with data line adopts the return-to-zero code method; the working principle of the magnetic induction chip with data line is as follows: a low-level reset code (length of tens of microseconds) is sent from the MCU to the DIN (1) pin of the first magnetic induction chip with data line to start data transmission. At this time, the first magnetic induction integrated circuit chip is not affected by the corresponding key magnet, so bit0 = 0 code, and the first magnetic induction integrated circuit chip will send bit0 = 0 code through the DOUT (1) pin The second magnetic induction integrated circuit chip with data line is transmitted to the DIN (2) pin of the second magnetic induction chip. At this time, the second magnetic induction integrated circuit chip is not affected by the corresponding key magnet, so bit1 = 0 code, the second magnetic induction integrated circuit chip transmits bit0 = 0, bit1 = 0 code to the DIN (3) pin of the third magnetic induction chip with data line through the DOUT (2) pin. At this time, the third magnetic induction integrated circuit chip with data line is affected by the corresponding key magnet, bit3 = 1 code, the third magnetic induction integrated circuit chip with data line transmits bit0 = 0, bit1 = 0 bit2 = 1 code to the MCU through the DOUT (3) pin. Therefore, the MCU knows from bit0 = 0, bit1 = 0, bit2 = 1 that the first key is not pressed, the second key is not pressed, and the third key is pressed. Then the MCU restarts the reset signal to read the three buttons. If the interval period between the MCU restart reset signal and the last reset signal is 200 microseconds, each magnetic induction chip with data line will sleep for 200 microseconds after working for tens of microseconds. Similarly, if the interval period between the MCU restart reset signal and the last reset signal is 10ms, each magnetic induction chip with data line will sleep for 10ms after working for tens of microseconds. In this way, the MCU can freely and conveniently control the power consumption of the magnetic induction chip with data line by changing the code transmission cycle. The longer the sleep time, the lower the power consumption of the magnetic induction chip with data line. In order to save transmission time, each magnetic induction chip with data line can rewrite data while transmitting information.

[0057] like Figure 3 , each button corresponds to a bit, each bit corresponds to a unipolar return-to-zero code, and the initial code 0 state of the button is set to a high level that occupies about 25% of the entire cycle, that is, TOH1 is close to 1 / 5 cycle; every time a button is passed, if the button is not pressed, the code of the button is adjusted to the placeholder code 0 state, and the placeholder code 0 state is a high level that is slightly less than 50% of the entire cycle, that is, TOH2 is close to 1 / 2 cycle; if the button is pressed, the code of the button is adjusted to the code 1 state, and the code 1 state is a high level that occupies about 66% of the entire cycle, that is, TOH3 is close to 2 / 3 cycle.

[0058] Example 2

[0059] An integrated circuit chip with a data line includes only one magnetic induction integrated circuit chip, which is different from the first embodiment in that: Figure 4 The coding method of the magnetic induction integrated circuit chip of Example 2 adopts a full-key bit overall coding transmission method.

[0060] Take 3 buttons as an example to explain, the same applies to multiple buttons:

[0061] The pin definition and cascade mode of the three magnetic induction chips with data lines are the same as those in Example 1. The encoding rules are also the same as those in Example 1.

[0062] The magnetic induction chip with data line transmits key information bit by bit. The magnetic induction chip with data line uses the return-to-zero code method. The MCU starts the low-level reset code and directly writes 3 0 codes, that is, bit0=0, bit1=0, bit2=0 are directly transmitted to the DIN (1) of the first magnetic induction chip with data line. At this time, the first magnetic induction integrated circuit chip is not affected by the corresponding key magnet, so bit0=0# (0# represents the 0 placeholder code), and then bit0=0#, bit1=0, bit2=0 are transmitted to the DIN (2) of the second magnetic induction chip with data line through the DOUT (1) of the first magnetic induction chip with data line. When the second magnetic induction integrated circuit chip is not affected by the corresponding key magnet, then bit1=0# (0# represents 0 placeholder code), then bit0=0#, bit1=0#, bit2=0 are transmitted to DIN(3) of the third magnetic induction chip with data line through DOUT(2) of the second magnetic induction chip with data line. At this time, the third magnetic induction integrated circuit chip is affected by the corresponding key magnet, then bit2=1, then bit0=0#, bit1=0#, bit2=1 are transmitted to MCU through DOUT(3) of the third magnetic induction chip with data line. In order to save transmission time, each magnetic induction chip with data line can rewrite data while transmitting information. The placeholder code 0# indicates that the key is not pressed and the corresponding key sequence information is occupied, ensuring the accuracy of key information sorting; the code 1 indicates that the key is pressed and the corresponding key sequence information is occupied. Then the MCU restarts the reset signal to read the information of the three buttons. If the interval period between the MCU restart reset signal and the last reset signal is 200 microseconds, each magnetic induction chip with data line will sleep for 200 microseconds after working for tens of microseconds. Similarly, if the interval period between the MCU restart reset signal and the last reset signal is 10ms, each magnetic induction chip with data line will sleep for 10ms after working for tens of microseconds. In this way, the MCU can freely and conveniently control the power consumption of the magnetic induction chip with data line by changing the code transmission cycle. The longer the sleep time, the lower the power consumption of the magnetic induction chip with data line.

[0063] Example 3

[0064] An integrated circuit chip with a data line, having only one magnetic induction integrated circuit chip, which is different from the first embodiment in that: Figure 5 The magnetic induction integrated circuit chip of Example 3 uses a single-key byte accumulation transmission method for sending codes.

[0065] Take 3 buttons as an example to explain, the same applies to multiple buttons:

[0066] The pin definition and cascading method of the three magnetic induction chips with data lines are the same as those in Example 1.

[0067] The magnetic induction chip with data line transmits key information by byte accumulation. The magnetic induction chip with data line uses return-to-zero code to send codes. Figure 6 , 1 byte represents all the information of a key, 1 byte is generally an integer multiple of 8 bits, here 1byte = 8bit as an example: bit0 is defined as the working frequency of the magnetic induction chip with data line, bit0 = 0 is defined as the working frequency of the magnetic induction chip with data line is low frequency working mode, bit0 = 1 is defined as the working frequency of the magnetic induction chip with data line is high frequency working mode. The high and low frequency working mode determines the power consumption of magnetic induction, bit1, bit2, bit3, bit4, bit5, bit6, bit7 represents key information, if the magnetic induction chip with data line is linear magnetic induction, bit1, bit2, bit3, bit4, bit5, bit6, bit7 is the key voltage digital code information: the maximum key voltage is bit1 = 1, bit2 = 1, bit3 = 1, bit4 = 1, bit5 = 1, bit6 = 1, bit7 = 1, the minimum key voltage is bit1 = 0, bit2 = 0, bit3 = 0, bit4 = 0, bit5 = 0, bit6 = 0, bit7 = 0. If the magnetic induction chip with data line is nonlinear magnetic induction, then bit1=0, bit2=0, bit3=0, bit4=0, bit5=0, bit6=0, bit7 represents key information, bit7=0 means the key is not pressed, bit7=1 means the key is pressed.

[0068] The working principle of the magnetic induction chip with data line is as follows:

[0069] A low-level reset code (length of tens of microseconds) is transmitted from the MCU to the DIN(1) pin of the first magnetic induction chip with a data line to start data transmission. At this time, the first magnetic induction integrated circuit chip signs all the key information into the corresponding bit of byte(1), and the first magnetic induction integrated circuit chip transmits the first byte(1) to the DIN(2) of the second magnetic induction chip with a data line through DOUT(1); at this time, the second magnetic induction integrated circuit chip signs all the key information into the corresponding bit of byte(2), and the second magnetic induction integrated circuit chip transmits the first byte(1) and byte(2) to the DIN(3) of the third magnetic induction chip with a data line through DOUT(1). At this time, the third magnetic induction integrated circuit chip signs all the key information into the corresponding bit of byte(3), and the third magnetic induction integrated circuit chip transmits the first byte(1), byte(2), and byte(3) to the MCU through DOUT(3). In order to save transmission time, each magnetic induction chip with a data line can rewrite data while transmitting information.

[0070] Example 4

[0071] An integrated circuit chip with a data line, having only one magnetic induction integrated circuit chip, which is different from the first embodiment in that: Figure 7 The magnetic induction integrated circuit chip of Example 4 adopts a full-key byte overall coding method.

[0072] Take 3 buttons as an example to explain, the same applies to multiple buttons:

[0073] The pin definition and cascading method of the three magnetic induction chips with data lines are the same as those in Example 1.

[0074] The magnetic induction chip with data line transmits key information by byte. The magnetic induction chip with data line adopts return-to-zero code. 1 byte represents all the information of a key, and 1 byte is generally an integer multiple of 8 bits. Here, 1 byte = 8 bits is taken as an example. Bit0 is defined as the placeholder bit of the byte of the magnetic induction chip with data line. When the first byte is transmitted to the first magnetic induction chip with data line, the bit0 of the first byte is set to 1, that is, bit0=1, indicating that the first byte of the first magnetic induction chip with data line is occupied; thus, the first byte represents the first key information; when the second byte is transmitted to the second magnetic induction chip with data line, the bit0 of the second byte is set to 1, that is, bit0=1, indicating that the second byte of the second magnetic induction chip with data line is occupied, thus, the second byte represents the second key information; when the third byte is transmitted to the third magnetic induction chip with data line, the bit0 of the third byte is set to 1, that is, bit0=1, indicating that the third byte of the third magnetic induction chip with data line is occupied, thus, the third byte represents the third key information, and so on. Bit1 is defined as the working frequency and working mode of the magnetic induction chip with data line. Bit1=1 is defined as the working frequency of the magnetic induction chip with data line is high frequency working mode, bit1=0 is defined as the working frequency of the magnetic induction chip with data line is low frequency working mode, high and low frequency working mode determines the power consumption of magnetic induction, bit2, bit3, bit4, bit5, bit6, bit7 represent key information, if the magnetic induction chip with data line is linear magnetic induction, bit2, bit3, bit4, bit5, bit6, bit7 are key voltage digital code information: the maximum key voltage is bit2=1, bit 3=1, bit4=1, bit5=1, bit6=1, bit7=1, the minimum voltage of the key is bit1=0, bit2=0, bit3=0, bit4=0, bit5=0, bit6=0, bit7=0. If the magnetic induction chip with data line is nonlinear magnetic induction, then bit1=0, bit2=0, bit3=0, bit4=0, bit5=0, bit6=0, bit7 represents the key information, bit7=0 means the key is not pressed, bit7=1 means the key is pressed.

[0075] The working principle of the magnetic induction chip with data line is as follows:

[0076] A low-level reset code (tens of microseconds) is transmitted from the MCU to the DIN(1) pin of the first magnetic sensing chip with a data line to start data transmission, and byte(1), byte(2), and byte(3) are transmitted in sequence. At this time, the first magnetic sensing integrated circuit chip signs all the key information into the corresponding bits of byte(1), with the placeholder code bit0=1, and bit1 can be 0 or 1 according to the MCU setting. Bit2, bit3, bit4, bit5, bit6, and bit7 are set according to the actual key information, and byte(2) and byte(3) are transmitted according to the MCU setting without any processing.

[0077] When byte(1), byte(2), and byte(3) are transmitted to the second magnetic induction integrated circuit chip, the first byte(1) is sampled and held, and the second magnetic induction integrated circuit chip signs all the key information into the corresponding bits of byte(2), with the placeholder code bit0 = 1, and bit1 can be 0 or 1 according to the MCU setting. Bit2, bit3, bit4, bit5, bit6, and bit7 are set according to the actual key information, and byte(3) is not processed and transmitted according to the MCU setting.

[0078] When byte(1), byte(2), and byte(3) are transmitted to the third magnetic induction integrated circuit chip, the first byte(1) is sampled and held, the second byte(2) is sampled and held, and the third magnetic induction integrated circuit chip signs all the key information into the corresponding bits of byte(3), with the placeholder code bit0=1, and bit1 can be set to 0 or 1 according to the MCU setting. Bit2, bit3, bit4, bit5, bit6, and bit7 are set according to the actual key information. In this way, the third magnetic induction integrated circuit chip transmits byte(1), byte(2), and byte(3) to the MCU through DOUT(3).

[0079] In order to save transmission time, each magnetic induction chip with a data line can transmit information while rewriting data.

[0080] Example 5

[0081] An integrated circuit chip with a data line, integrating a magnetic induction integrated circuit and an RGB magic color driving circuit;

[0082] The integrated circuit chip includes a power pin, a ground pin, a data information input pin and a data information output pin. The power pin is used to supply power to the integrated circuit chip, and the ground pin is used for signal grounding and power grounding. The data information output pin of the integrated circuit chip is connected to the data information input pin of the adjacent next integrated circuit chip, and the data information input pin of the integrated circuit chip is connected to the data information output pin of the adjacent previous integrated circuit chip. The connection between the data information input pins and the data information output pins of several integrated circuit chips forms a data line. Several integrated circuit chips are cascaded with each other and connected to the MCU. An integrated circuit chip cooperates with a key with a magnetic element to obtain a key information. According to different communication protocols, the RGB fantasy color driving circuit and the magnetic induction integrated circuit share the data line to transmit RGB color grayscale information and key information in time sharing.

[0083] Take 3 buttons as an example to explain, the same applies to multiple buttons:

[0084] Three integrated chips with data lines are cascaded, wherein the integrated circuit chip integrates a magnetic induction integrated circuit and an RGB fantasy color driving circuit; the integrated circuit chip comprises a power pin, a ground pin, a data information input pin and a data information output pin, the power pin is used to supply power to the integrated circuit chip, and the ground pin is used for signal grounding and power grounding; the RGB fantasy color driving circuit and the magnetic induction circuit share the data information input pin and the data information output pin.

[0085] like Figure 8 , the data input pin of the first integrated circuit chip is DIA(1) and the data output pin is DOA(1), the data input pin of the second integrated circuit chip is DIA(2) and the data output pin is DOA(2), and the data input pin of the third integrated circuit chip is DIA(3) and the data output pin is DOA(3).

[0086] like Fig. 9 In this embodiment, the following communication protocol is adopted: the LED data code and key data code of the RGB magic color driving circuit are transmitted in time-sharing mode according to different read and write commands. The RGB magic color driving circuit adopts the writing mode to the data line, and the magnetic induction circuit adopts the reading mode to the data line; the magnetic induction circuit cooperates with the switch with magnetic elements to obtain the key information to form the key data code. The biggest advantage of time-sharing transmission is that it can increase the frequency of obtaining the key information code and improve the key response speed.

[0087] Example 6

[0088] An integrated circuit chip with a data line, integrating a magnetic induction integrated circuit and an RGB magic color driving circuit;

[0089] The integrated circuit chip comprises a power pin, a ground pin, a first data information input pin, a first data information output pin, a second data information input pin and a second data information output pin; the power pin is used to supply power to the integrated circuit chip, and the ground pin is used for signal grounding and power grounding; the first data information output pin of the integrated circuit chip is connected to the first data information input pin of the adjacent next integrated circuit chip, and the first data information input pin of the integrated circuit chip is connected to the first data information output pin of the adjacent previous integrated circuit chip; the connection relationship between the second data information input pin and the second data information output pin is similar to that between the first data information input pin and the first data information output pin; the connection between the first data information input pin and the first data information output pin of several integrated circuit chips forms a first data line; the connection between the second data information input pin and the second data information output pin of several integrated circuit chips forms a second data line; several integrated circuit chips are cascaded and connected to the MCU; one integrated circuit chip cooperates with a key with a magnetic element to obtain a key information, and according to different communication protocols, several key information are transmitted through the first data line; the RGB magic color driving circuit transmits RGB color and grayscale information through the second data line.

[0090] Take 3 buttons as an example to explain, the same applies to multiple buttons:

[0091] like Fig.10 , cascade three integrated chips with data lines, the integrated circuit chip integrates a magnetic induction integrated circuit and an RGB fantasy color driving circuit; the integrated circuit chip includes a power pin, a ground pin, an RGB fantasy color driving circuit data information input pin and an RGB fantasy color driving circuit data information output pin, a magnetic induction circuit data information input pin and a magnetic induction circuit data information output pin. The power pin is used to power the integrated circuit chip, and the ground pin is used for signal grounding and power grounding. Because the RGB fantasy color driving circuit and the magnetic induction circuit have their own data information channels, they can work simultaneously without affecting each other, and the work efficiency is further improved.

[0092] like Fig.11 The magnetic induction circuit data input pin of the first integrated circuit chip is DIA(1) and the magnetic induction circuit data output pin is DOA(1), the magnetic induction circuit data input pin of the second integrated circuit chip is DIA(2) and the magnetic induction circuit data output pin is DOA(2), and the magnetic induction circuit data input pin of the third integrated circuit chip is DOA(3) and the magnetic induction circuit data output pin is DOA(3).

[0093] The data input pin of the RGB magic color driving circuit of the first integrated circuit chip is DIB(1) and the data output pin of the RGB magic color driving circuit is DOB(1); the data input pin of the RGB magic color driving circuit of the second integrated circuit chip is DIB(2) and the data output pin of the RGB magic color driving circuit is DOB(2); the data input pin of the RGB magic color driving circuit of the third integrated circuit chip is DOB(3) and the data output pin of the RGB magic color driving circuit is DOB(3).

[0094] Example 7

[0095] An integrated circuit chip with a data line, comprising a magnetic induction chip with a data line and an RGB magic color driving chip with a data line; the magnetic induction integrated circuit chip comprises a power pin, a ground pin, a first data information input pin and a first data information output pin, the power pin is used to power the magnetic induction integrated circuit chip, and the ground pin is used for signal grounding and power grounding; the data information output pin of the magnetic induction integrated circuit chip is connected to the data information input pin of the next adjacent magnetic induction integrated circuit chip, and the data information input pin of the magnetic induction integrated circuit chip is connected to the data information output pin of the previous adjacent magnetic induction integrated circuit chip; the connection between the data information input pins and the data information output pins of several integrated circuit chips forms a first data line; several magnetic induction integrated circuit chips are cascaded and connected to an MCU; one magnetic induction integrated circuit chip cooperates with a key with a magnetic element to obtain a key information, and according to different communication protocols, several key information is transmitted through the first data line;

[0096] The RGB fantasy color driving circuit chip shares the power pin and ground pin of the magnetic induction integrated circuit chip; the RGB fantasy color driving chip also includes a second data information input pin and a second data information output pin, and the connection relationship between the second data information input pin and the second data information output pin is similar to the first data information input pin and the first data information output pin.

[0097] The second data information output pin of the RGB fantasy color driving circuit chip is connected to the second data information input pin of the next adjacent RGB fantasy color driving circuit chip, and the second data information input pin of the RGB fantasy color driving circuit chip is connected to the second data information output pin of the previous adjacent RGB fantasy color driving circuit chip; the connection between the data information input pins and the data information output pins of several RGB fantasy color driving circuit chips forms a second data line; several RGB fantasy color driving circuit chips are cascaded with each other and connected to the MCU; according to different communication protocols, several RGB color and grayscale information are transmitted through the second data line.

[0098] Take 3 buttons as an example to explain, the same applies to multiple buttons:

[0099] like Fig.12 , cascade three integrated chips with data lines. An integrated circuit chip with data lines includes a magnetic induction integrated circuit chip with data lines and an RGB fantasy color driving circuit chip with data lines. The magnetic induction integrated circuit chip 1 with data lines and the RGB fantasy color driving circuit chip 2 with data lines are physically superimposed by using LED packaging technology, so that they share the power pin VCC and the ground pin GND. The magnetic induction integrated circuit chip 1 with data lines transmits data using its own data lines DI1 and DO1; the RGB fantasy color driving circuit chip 2 with data lines transmits data using its own data lines DI2 and DO2. They are essentially two different chips, but in form, the LED packaging technology is adopted and the magnetic induction integrated circuit chip with data lines and the RGB fantasy color driving circuit chip with data lines share the power pin VCC and the ground pin GND, thereby reducing the number of pins of the finished chip, reducing the volume and reducing the cost.

[0100] In embodiments 1 to 7, the magnetic induction integrated circuit chip is preferably a Hall integrated circuit chip, and the magnetic induction integrated circuit is preferably a Hall integrated circuit; the Hall integrated circuit chip and the Hall integrated circuit can be linear Hall or nonlinear Hall. The magnetic induction integrated circuit chip can also be other chips such as a magnetoresistive integrated circuit chip, and the magnetic induction integrated circuit can also be other circuits such as a magnetoresistive integrated circuit.

[0101] A key comprises a key body, wherein the key body comprises an upper shell, a lower shell and a button handle, wherein the upper shell is fixedly connected to the lower shell, the button handle is movably arranged on the upper shell, an accommodating space is formed between the upper shell and the lower shell, an elastic element is arranged in the accommodating space, the elastic element is located below the button handle, and further comprises a magnetic element and a magnetic induction element, wherein the magnetic element is fixed on the button handle and moves up and down with the button handle, the magnetic induction element comprises the integrated circuit chip with a data line in the above-mentioned embodiments 1 to 7, the magnetic induction element is arranged on a printed circuit board, and the magnetic element is arranged corresponding to the magnetic induction element.

[0102] A mechanical keyboard comprises a printed circuit board, on which a single-chip microcomputer is arranged, and also comprises a plurality of the above-mentioned keys.

[0103] The number of power pins in embodiments 5 and 6 is 1 or 2.

[0104] When the power pin is one, the magnetic induction integrated circuit and the RGB magic color driving circuit share one power pin for power supply.

[0105] like Fig.13 When there are two power pins, the magnetic induction integrated circuit and the RGB fantasy color driving circuit are each powered by one power pin.

[0106] Figure 2 , 4 In , 5, and 7, D1, D2, and D3 are three integrated chips with data lines.

[0107] In embodiments 1 to 7, all chips containing RGB magic color driving circuits need to adopt LED packaging technology.

[0108] In embodiments 1 to 7, the integrated circuit chip may be provided with a backup data line transmission channel. Embodiment 8 is taken as an example for description.

[0109] Example 8

[0110] Based on the first embodiment, this embodiment is provided with a backup data line transmission channel.

[0111] like Fig.14 , three magnetic induction integrated circuit chips with data lines are cascaded. The circuit has two data lines and has a dual data path communication function. When two channels receive valid data information at the same time, the data line formed by DIN (1) pin, DOUT (1) pin, DIN (2) pin, DOUT (2) pin, DIN (3) pin, and DOUT (3) pin is assumed to be the data transmission channel, and the operation status of the data transmission channel is regularly detected. If it is detected that the disconnection time of the data line is greater than the set value (for example, several milliseconds), the data line formed by DIN (4) pin, DOUT (4) pin, DIN (5) pin, DOUT (5) pin, DIN (6) pin, and DOUT (6) pin is automatically used as the data transmission channel. At this time, the data line is used as a backup data line transmission channel, which greatly improves the reliability of the system operation.

[0112] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. An integrated circuit chip with a data line, characterized in that: The integrated circuit chip integrates a magnetic induction integrated circuit and an RGB magic color driving circuit; The integrated circuit chip comprises a power pin, a ground pin, a data information input pin and a data information output pin. The power pin is used to supply power to the integrated circuit chip, and the ground pin is used for signal grounding and power grounding. The data information output pin of the integrated circuit chip is connected to the data information input pin of the next adjacent integrated circuit chip, and the data information input pin of the integrated circuit chip is connected to the data information output pin of the previous adjacent integrated circuit chip. The connection between the data information input pins and the data information output pins of several integrated circuit chips forms a data line. Several integrated circuit chips are cascaded and connected to the MCU. One integrated circuit chip cooperates with a key with a magnetic element to obtain a key information. The RGB fantasy color driving circuit and the magnetic induction integrated circuit share the data line, and transmit the RGB color grayscale information and key information in a time-sharing manner. The single key information is transmitted bit by bit. The n keys of the entire keyboard correspond to n bits of information. The n bits of information and reset information constitute a cycle of key information. The operating frequency of each magnetic induction integrated circuit chip is adjusted according to the cycle of MCU reading all key information. Alternatively, a single key information is transmitted as one byte, and the single key information includes x bits of synchronization information, y bits of magnetic induction integrated circuit chip operating frequency information, and z bits of key voltage information; the sum of x bits, y bits, and z bits is one byte; the key voltage information is continuous voltage information or a digital voltage value; The n keys of the entire keyboard correspond to n bytes of information, and the n bytes of information and the reset information constitute a cycle of key information.

2. An integrated circuit chip with a data line, characterized in that: The integrated circuit chip integrates a magnetic induction integrated circuit and an RGB magic color driving circuit; The integrated circuit chip comprises a power pin, a ground pin, a first data information input pin, a first data information output pin, a second data information input pin and a second data information output pin; the power pin is used to power the integrated circuit chip, and the ground pin is used for signal grounding and power grounding; the first data information output pin of the integrated circuit chip is connected to the first data information input pin of the adjacent next integrated circuit chip, and the first data information input pin of the integrated circuit chip is connected to the first data information output pin of the adjacent previous integrated circuit chip; the second data information output pin of the integrated circuit chip is connected to the second data information input pin of the adjacent next integrated circuit chip, and the second data information input pin of the integrated circuit chip is connected to the second data information output pin of the adjacent previous integrated circuit chip; the connection between the first data information input pin and the first data information output pin of several integrated circuit chips forms a first data line; the connection between the second data information input pin and the second data information output pin of several integrated circuit chips forms a second data line; several integrated circuit chips are cascaded and connected to the MCU; one integrated circuit chip cooperates with a key with a magnetic element to obtain a key information, and several key information are transmitted through the first data line; the RGB magic color driving circuit transmits RGB color and grayscale information through the second data line; The single key information is transmitted bit by bit. The n keys of the entire keyboard correspond to n bits of information. The n bits of information and reset information constitute a cycle of key information. The operating frequency of each magnetic induction integrated circuit chip is adjusted according to the cycle of MCU reading all key information. Alternatively, a single key information is transmitted as one byte, and the single key information includes x bits of synchronization information, y bits of magnetic induction integrated circuit chip operating frequency information, and z bits of key voltage information; the sum of x bits, y bits, and z bits is one byte; the key voltage information is continuous voltage information or a digital voltage value; The n keys of the entire keyboard correspond to n bytes of information, and the n bytes of information and the reset information constitute a cycle of key information.

3. An integrated circuit chip with a data line, characterized in that: The integrated circuit chip includes a magnetic induction integrated circuit chip and an RGB magic color driving circuit chip; The magnetic induction integrated circuit chip comprises a power pin, a ground pin, a first data information input pin and a first data information output pin. The power pin is used to supply power to the magnetic induction integrated circuit chip, and the ground pin is used for signal grounding and power grounding. The first data information output pin of the magnetic induction integrated circuit chip is connected to the first data information input pin of the next adjacent magnetic induction integrated circuit chip, and the first data information input pin of the magnetic induction integrated circuit chip is connected to the first data information output pin of the previous adjacent magnetic induction integrated circuit chip. The connection between the data information input pins and the data information output pins of several integrated circuit chips forms a first data line. Several magnetic induction integrated circuit chips are cascaded and connected to the MCU. One magnetic induction integrated circuit chip cooperates with a key with a magnetic element to obtain a key information, and several key information are transmitted through the first data line. The RGB magic color driving circuit chip shares the power pin and the ground pin of the magnetic induction integrated circuit chip; the RGB magic color driving circuit chip also includes a second data information input pin and a second data information output pin, the second data information output pin of the RGB magic color driving circuit chip is connected to the second data information input pin of the next adjacent RGB magic color driving circuit chip, and the second data information input pin of the RGB magic color driving circuit chip is connected to the second data information output pin of the previous adjacent RGB magic color driving circuit chip; The single key information is transmitted bit by bit. The n keys of the entire keyboard correspond to n bits of information. The n bits of information and reset information constitute a cycle of key information. The operating frequency of each magnetic induction integrated circuit chip is adjusted according to the cycle of MCU reading all key information. Alternatively, a single key information is transmitted as one byte, and the single key information includes x bits of synchronization information, y bits of magnetic induction integrated circuit chip operating frequency information, and z bits of key voltage information; the sum of x bits, y bits, and z bits is one byte; the key voltage information is continuous voltage information or a digital voltage value; The n keys of the entire keyboard correspond to n bytes of information, and the n bytes of information and the reset information constitute a cycle of key information.

4. An integrated circuit chip with a data line, characterized in that: The integrated circuit chip is a magnetic induction integrated circuit chip, and the magnetic induction integrated circuit chip includes a power pin, a ground pin, a data information input pin and a data information output pin. The power pin is used to power the magnetic induction integrated circuit chip, and the ground pin is used for signal grounding and power grounding. The data information output pin of the magnetic induction integrated circuit chip is connected to the data information input pin of the next adjacent magnetic induction integrated circuit chip, and the data information input pin of the magnetic induction integrated circuit chip is connected to the data information output pin of the previous adjacent magnetic induction integrated circuit chip. A plurality of magnetic induction integrated circuit chips are cascaded and connected to the MCU. The connection between the data information input pins and the data information output pins of the plurality of integrated circuit chips forms a data line. A magnetic induction integrated circuit chip cooperates with a key with a magnetic element to obtain a key information, and the plurality of key information is transmitted through the data line. The single key information is transmitted bit by bit. The n keys of the entire keyboard correspond to n bits of information. The n bits of information and reset information constitute a cycle of key information. The operating frequency of each magnetic induction integrated circuit chip is adjusted according to the cycle of MCU reading all key information. Alternatively, a single key information is transmitted as one byte, and the single key information includes x bits of synchronization information, y bits of magnetic induction integrated circuit chip operating frequency information, and z bits of key voltage information; the sum of x bits, y bits, and z bits is one byte; the key voltage information is continuous voltage information or a digital voltage value; The n keys of the entire keyboard correspond to n bytes of information, and the n bytes of information and the reset information constitute a cycle of key information.

5. The integrated circuit chip with data lines according to any one of claims 1 to 4, characterized in that: When a single key information is transmitted bit by bit, the MCU sends out n-bit codes corresponding to n magnetic induction integrated circuit chips at one time, and the n-bit codes pass through n keys in sequence; Each key corresponds to a bit, and each bit corresponds to a unipolar return-to-zero code. The initial code 0 state of the key is set to a high level that occupies an entire period not greater than a first set value; each time a key is passed, if the key is not pressed, the code of the key is adjusted to a placeholder code 0 state, and the placeholder code 0 state is a high level that occupies an entire period not greater than a second set value and greater than a first set value; if the key is pressed, the key code is adjusted to a code 1 state, and the code 1 state is a high level that occupies an entire period greater than a third set value, and the third set value is greater than the second set value; Alternatively, after the MCU sends a reset code, a number of key information are transmitted in an accumulated manner until they are transmitted to the MCU.

6. The integrated circuit chip with data lines according to any one of claims 1 to 4, characterized in that: When a single key information is transmitted as one byte, after the MCU sends a reset code, several key information are transmitted in an accumulated manner until they are transmitted to the MCU; Alternatively, the MCU sends out n-byte codes corresponding to n magnetic induction integrated circuit chips at one time, and the n-byte codes pass through n buttons in sequence; Each button corresponds to a byte, and each bit in the byte corresponds to a unipolar return-to-zero code.

7. The integrated circuit chip with data lines according to any one of claims 1 to 2, characterized in that: The number of the power pins is 1 or 2.

8. The integrated circuit chip with data lines according to any one of claims 1 to 4, characterized in that: The integrated circuit chip is provided with a backup data line transmission channel.

9. A key, comprising a key body, the key body comprising an upper shell, a lower shell and a handle, the upper shell is fixedly connected to the lower shell, the handle is movably arranged on the upper shell, an accommodating space is formed between the upper shell and the lower shell, an elastic element is arranged in the accommodating space, and the elastic element is located below the handle, characterized in that: It also includes a magnetic element and a magnetic induction element, wherein the magnetic element is fixed on the button handle and moves up and down with the button handle, and the magnetic induction element includes an integrated circuit chip with a data line as described in any one of claims 1 to 4, and the magnetic induction element is arranged on a printed circuit board, and the magnetic element is arranged corresponding to the magnetic induction element.

10. A mechanical keyboard, comprising a printed circuit board, on which a single-chip microcomputer is arranged, characterized in that: It also includes several buttons as described in claim 9.

Citation Information

Patent Citations

  • Mechanical key detection chip and mechanical keyboard

    CN113157104A

  • Hall sensor and Hall keyboard

    CN210835202U

  • Luminous keyboard with built-in control chip

    CN216849937U

  • Integrated circuit chip with data line, key and mechanical keyboard

    CN220829701U

Cited By

  • Absolute vector counting magnetic induction encoder

    CN121702433A

  • Printed circuit board (PCB) capable of being directly provided with magnetic shaft, magnetic shaft and keyboard

    CN121742671A

  • Scissor foot magnetic induction keyboard with serial-parallel hot standby communication

    CN121785477A

  • Hot standby fantasy color integrated circuit chip capable of transmitting and receiving control signals

    CN121880253A

  • LED driving chip with address code serial-parallel hot standby

    CN121924648A