Integrated circuit chip having data line, and key and mechanical keyboard
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 problems of complexity and low stability of existing mechanical keyboard circuits are solved, and the effects of reducing components, reducing design difficulty and improving information transmission efficiency are achieved.
Patent Information
- Application Number
- PCT/CN2023/139910
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-21
- Filing Date
- 2023-12-19
- Publication Date
- 2025-03-06
AI Technical Summary
The keys of existing mechanical keyboards are independent of each other, resulting in complex PCB layout, complex circuit structure, reduced working stability, and the increase in LED lights doubled the number of wiring and components, making the space cramped.
It adopts an integrated circuit chip with data lines, integrates magnetic induction integrated circuit and RGB color driving circuit, and connects several integrated circuit chips through data lines, makes them cascaded, and is connected to the MCU to realize the time-sharing transmission of key information and RGB color information.
It reduces the number of components, reduces the difficulty of PCB design, simplifies the circuit structure, improves working stability, and realizes efficient transmission of keys and RGB information through data line connection.
Smart Images

Figure CN2023139910_06032025_PF_FP_ABST
Abstract
Description
Integrated circuit chip, key and mechanical keyboard with data line 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] Existing mechanical keyboards have several independent keys, each with its own input and output pins directly connected to the MCU. This wiring scheme for hundreds of keys across a keyboard creates a PCB layout challenge. Mechanical keyboards, in particular, often feature LED lights for each key for aesthetic reasons, doubling the wiring and component count. This creates tight PCB layout space and complicates the circuit structure, placing high demands on circuit design. Furthermore, the more complex the circuit, the lower its operational stability.
[0003] Summary of the Invention
[0004] The purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art and to provide an integrated circuit chip with data lines.
[0005] Another object of the present invention is to provide a key.
[0006] Another object of the present invention is to provide a mechanical keyboard.
[0007] The purpose of the present invention is achieved through the following technical solutions:
[0008] An integrated circuit chip with a data line, wherein the integrated circuit chip integrates a magnetic induction integrated circuit and an RGB magic color driving circuit;
[0009] The integrated circuit chip includes a power pin, a ground pin, a data input pin, and a data output pin. The power pin is used to power the integrated circuit chip, and the ground pin is used for signal and power grounding. The data output pin of the integrated circuit chip is connected to the data input pin of the next adjacent integrated circuit chip, and the data input pin of the integrated circuit chip is connected to the data output pin of the previous adjacent integrated circuit chip. The connection between the data input pins and data output pins of several integrated circuit chips forms a data line. Several integrated circuit chips are cascaded and connected to the MCU. Each integrated circuit chip cooperates with a key with a magnetic element to obtain key information. Depending on the communication protocol, the RGB color shimmering drive circuit and the magnetic induction integrated circuit share the data line, transmitting RGB color grayscale information and key information in a time-sharing manner. In this case, a single data line transmission channel is used.
[0010] An integrated circuit chip with a data line, wherein the integrated circuit chip integrates a magnetic induction integrated circuit and an RGB magic color driving circuit;
[0011] 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 next adjacent 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 previous adjacent integrated circuit chip. The connection relationship between the second data information input pin and the second data information output pin is similar to that of 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 key information. According to different communication protocols, the key information is transmitted via the first data line. The RGB magic color driving circuit transmits RGB color and grayscale information via the second data line. This is a dual data line transmission channel.
[0012] 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;
[0013] The magnetic induction integrated circuit chip includes 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 the MCU. One magnetic induction integrated circuit chip cooperates with a key with a magnetic element to obtain key information. According to different communication protocols, the key information is transmitted via the first data line.
[0014] The RGB magic color driving circuit chip shares the power pin and 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, and the connection relationship between the second data information input pin and the second data information output pin is similar to that of the first data information input pin and the first data information output pin.
[0015] The connection relationship between the second data information input pin and the second data information output pin is specifically as follows: 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 connection between the data information input pin and the data information output pin of several RGB magic color driving circuit chips forms a second data line; several of the RGB magic 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.
[0016] An integrated circuit chip with a data line, the integrated circuit chip being a magnetic induction integrated circuit chip, comprising 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. Several 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 several integrated circuit chips forms a data line. One magnetic induction integrated circuit chip cooperates with a key with a magnetic element to obtain a key information. According to different communication protocols, the key information of the several key information is transmitted via the data line.
[0017] Preferably, single key information is transmitted bit by bit, and 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.
[0018] Preferably, the MCU sends 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;
[0019] 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 a full period not greater than the first set value; each 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 occupies a full period not greater than the second set value and greater than the first set value; 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 a full period greater than the third set value, and the third set value is greater than the second set value.
[0020] Preferably, after the MCU sends the reset code, several key information are transmitted in an accumulated manner until they are transmitted to the MCU.
[0021] Preferably, 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 a digital voltage value (corresponding to nonlinear magnetic induction);
[0022] The n keys on the entire keyboard correspond to n bytes of information. The n bytes of information and the reset information constitute a cycle of key information.
[0023] Preferably, after the MCU issues the reset code, several keystroke information is transmitted in an accumulation manner until it is transmitted to the MCU. The advantage of accumulation is that the amount of data is small and the response speed is fast.
[0024] Preferably, the MCU sends 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;
[0025] Each button corresponds to a byte, and each bit in the byte corresponds to a unipolar return-to-zero code.
[0026] The number of power pins is 1 or 2.
[0027] The integrated circuit chip is provided with a backup data line transmission channel.
[0028] Another object of the present invention is achieved through the following technical solutions:
[0029] A key comprises a key body, the key body comprising an upper shell, a lower shell and a handle, the upper shell being fixedly connected to the lower shell, the handle being movably arranged on the upper shell up and down, an accommodating space being formed between the upper shell and the lower shell, an elastic element being arranged in the accommodating space, the elastic element being located below the handle, and further comprising a magnetic element and a magnetic induction element, the magnetic element being fixed on the handle and moving up and down with the handle, the magnetic induction element comprising the above-mentioned integrated circuit chip with a data line, the magnetic induction element being arranged on a printed circuit board, and the magnetic element being arranged corresponding to the magnetic induction element.
[0030] Another object of the present invention is achieved through the following technical solutions:
[0031] 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.
[0032] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0033] 1. The present invention uses data lines to connect the keys together. All keys are connected via one or two data lines, and then connected to the MCU. This connection method can save a lot of wiring space and reduce the difficulty of PCB design. While the present invention provides a variety of different code transmission methods and operating modes, the core of all is to cascade different keys using data lines, fundamentally changing the independent state of the keys in existing mechanical keyboards.
[0034] 2. The present invention integrates the magnetic induction integrated circuit and the RGB magic color driving circuit integrated circuit on one chip, or physically packages the magnetic induction integrated circuit chip and the RGB magic color driving circuit chip together, reducing the number of components by at least half.
[0035] Correspondingly, the number of MCU pins for driving RGB and detecting buttons has been reduced from dozens to 1 or 2 (depending on the number of data lines). BRIEF DESCRIPTION OF THE DRAWINGS
[0036] FIG1 is a schematic diagram of a circuit after three integrated circuit chips with data lines are cascaded.
[0037] FIG2 is a schematic diagram showing three integrated circuit chips with data lines using a single-key bit accumulation method to send codes.
[0038] Figure 3 is a schematic diagram of coding.
[0039] FIG4 is a schematic diagram of three integrated circuit chips with data lines using full-key bit overall code transmission.
[0040] FIG5 is a schematic diagram showing three integrated circuit chips with data lines using a single-key byte accumulation method to send codes.
[0041] Figure 6 is a schematic diagram of the composition of a byte.
[0042] FIG7 is a schematic diagram of three integrated circuit chips with data lines using full-key byte overall code transmission.
[0043] FIG8 is a circuit diagram of three integrated circuit chips integrated with magnetic induction integrated circuits and RGB magic color driving circuits corresponding to Example 5 after cascading.
[0044] FIG9 is a schematic diagram of time-sharing transmission of data information of the RGB magic color driving circuit and data information of the magnetic induction circuit corresponding to Example 5.
[0045] FIG10 is a circuit diagram of three integrated circuit chips integrated with magnetic induction integrated circuits and RGB magic color driving circuits corresponding to Example 6 after cascading.
[0046] FIG11 is a schematic diagram of simultaneous transmission of data information of the RGB magic color driving circuit and data information of the magnetic induction circuit corresponding to Example 6. FIG.
[0047] FIG12 is a circuit diagram of three physically packaged integrated circuit chips corresponding to Example 7, which are cascaded and include a magnetic induction integrated circuit chip with a data line and an RGB magic color driving circuit chip with a data line.
[0048] FIG13 is a circuit diagram of embodiment 5, in which three integrated circuit chips with integrated magnetic induction integrated circuits, RGB magic color driving circuits and two power pins are cascaded.
[0049] FIG14 is a circuit diagram of three integrated circuit chips with data lines cascaded according to Example 8. FIG. DETAILED DESCRIPTION
[0050] The present invention will be described in further detail below with reference to the embodiments and drawings, but the embodiments of the present invention are not limited thereto.
[0051] Example 1
[0052] An integrated circuit chip with a data line, the integrated circuit chip being a magnetic induction integrated circuit chip, comprising 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. Several 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 several integrated circuit chips forms a data line. One magnetic induction integrated circuit chip cooperates with a key with a magnetic element to obtain a key information.
[0053] 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.
[0054] The information of a single key is transmitted bit by bit. The n keys of the entire keyboard correspond to n bits of information. The n bits of information and the 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 the MCU reading all key information.
[0055] Take 3 buttons as an example to explain, the same applies to multiple buttons:
[0056] DIN(1), DIN(2), and DIN(3) are the data input pins of the first, second, and third magnetic sensing chips with data lines, respectively; DOUT(1), DOUT(2), and DOUT(3) are the data output pins of the first, second, and third magnetic sensing chips with data lines, respectively.
[0057] As shown in Figure 1, three magnetic induction integrated circuit chips with data lines are cascaded; as shown in Figure 2, the magnetic induction chip with data lines adopts the bit-by-bit accumulation method to transmit key information; the magnetic induction integrated circuit chip cooperates with a key with a magnetic element to obtain a key information; the magnetic induction chip with data lines adopts the return-to-zero code method; the working principle of the magnetic induction chip with data lines 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 lines 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 set bit0 =0 code is transmitted to the DIN(2) pin of the second magnetic induction chip with data line through the DOUT(1) pin. 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=0bit2=1 code to the MCU through the DOUT(3) pin. Thus, 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. The MCU then restarts the reset signal and reads the three buttons. If the interval between the MCU restart reset signal and the last reset signal is 200 microseconds, each magnetic induction chip with a data line will work for tens of microseconds and then sleep for 200 microseconds. Similarly, if the interval between the MCU restart reset signal and the last reset signal is 10ms, each magnetic induction chip with a data line will work for tens of microseconds and then sleep for 10ms. In this way, the MCU can freely and conveniently control the power consumption of the magnetic induction chip with a data line by changing the code transmission cycle. The longer the sleep time, the lower the power consumption of the magnetic induction chip with a data line. To save transmission time, each magnetic induction chip with a data line can rewrite data while transmitting information.
[0058] As shown in Figure 3, 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 about 25% of the entire cycle, that is, TOH1 is close to 1 / 5 of the 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 of the 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 of the cycle.
[0059] Example 2
[0060] An integrated circuit chip with a data line includes only one magnetic induction integrated circuit chip. The difference from Example 1 is that, as shown in FIG4 , the magnetic induction integrated circuit chip of Example 2 adopts a full-key bit overall code transmission mode for code transmission.
[0061] Take 3 buttons as an example to explain, the same applies to multiple buttons:
[0062] The pin definitions and cascade method 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.
[0063] The magnetic induction chip with data line adopts the bit-by-bit method to transmit key information. The code transmission method of the magnetic induction chip with data line adopts 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 the 0 placeholder code), and then bit0 = 0#, bit1 = 0#, bit2 = 0 are transmitted to the DIN (3) of the third magnetic induction chip with data line through the 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, and then bit0 = 0#, bit1 = 0#, bit2 = 1 are transmitted to the MCU through the 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 the key information sorting; the code 1 indicates that the key is pressed and the corresponding key sequence information is occupied. The MCU then restarts the reset signal to read the information from the three buttons. If the interval between the MCU restart reset signal and the last reset signal is 200 microseconds, each magnetic induction chip with a data line will work for tens of microseconds and then sleep for 200 microseconds. Similarly, if the interval between the MCU restart reset signal and the last reset signal is 10 milliseconds, each magnetic induction chip with a data line will work for tens of microseconds and then sleep for 10 milliseconds. In this way, the MCU can freely and conveniently control the power consumption of the magnetic induction chip with a data line by changing the code transmission cycle. The longer the sleep time, the lower the power consumption of the magnetic induction chip with a data line.
[0064] Example 3
[0065] An integrated circuit chip with a data line has only one magnetic induction integrated circuit chip. The difference from Example 1 is that, as shown in FIG5 , the code transmission mode of the magnetic induction integrated circuit chip of Example 3 adopts a single-key byte accumulation transmission mode.
[0066] Take 3 buttons as an example to explain, the same applies to multiple buttons:
[0067] The pin definitions and cascade connection method of the three magnetic induction chips with data lines are the same as those in Example 1.
[0068] The magnetic induction chip with data lines transmits keystroke information by byte accumulation. The code transmission method of the magnetic induction chip with data lines is return-to-zero code. As shown in Figure 6, one byte represents all the information of a keystroke. A byte is generally an integer multiple of 8 bits. Here, for example, 1 byte = 8 bits. Bit 0 defines the operating frequency of the magnetic induction chip with data lines. Bit 0 = 0 specifies the low-frequency mode, while Bit 0 = 1 specifies the high-frequency mode. The high- and low-frequency operating modes determine the power consumption of the magnetic induction. Bits 1, 2, 3, 4, 5, 6, and 7 represent key information. If the magnetic induction chip with a data line uses linear induction, bits 1, 2, 3, 4, 5, 6, and 7 represent the key voltage digital code information: the maximum key voltage is bit 1 = 1, bit 2 = 1, bit 3 = 1, bit 4 = 1, bit 5 = 1, bit 6 = 1, and bit 7 = 1. The minimum key voltage is bit 1 = 0, bit 2 = 0, bit 3 = 0, bit 4 = 0, bit 5 = 0, bit 6 = 0, and bit 7 = 0. If the magnetic induction chip with a data line uses nonlinear induction, then bits 1 = 0, bit 2 = 0, bit 3 = 0, bit 4 = 0, bit 5 = 0, and bit 6 = 0. Bit 7 represents key information. Bit 7 = 0 indicates the key is not pressed, and bit 7 = 1 indicates the key is pressed.
[0069] The working principle of the magnetic induction chip with data line is as follows:
[0070] 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). The first magnetic induction integrated circuit chip then 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). In this way, 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). In this way, 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.
[0071] Example 4
[0072] An integrated circuit chip with a data line has only one magnetic induction integrated circuit chip. The difference from Example 1 is that, as shown in FIG7 , the magnetic induction integrated circuit chip of Example 4 adopts a full-key byte overall coding method.
[0073] Take 3 buttons as an example to explain, the same applies to multiple buttons:
[0074] The pin definitions and cascade connection method of the three magnetic induction chips with data lines are the same as those in Example 1.
[0075] The magnetic induction chip with data lines transmits keystroke information in byte-by-byte encoding. This encoding method uses return-to-zero encoding. A byte represents all keystroke information. A byte is typically an integer multiple of 8 bits, so here, 1 byte = 8 bits. Bit 0 is defined as a placeholder bit in the byte of the magnetic induction chip with data lines. When the first byte is transmitted to the first magnetic induction chip with a data line, bit 0 of the first byte is set to 1, that is, bit 0 = 1, indicating that the first byte of the first magnetic induction chip with a 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 a data line, bit 0 of the second byte is set to 1, that is, bit 0 = 1, indicating that the second byte of the second magnetic induction chip with a 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 a data line, bit 0 of the third byte is set to 1, that is, bit 0 = 1, indicating that the third byte of the third magnetic induction chip with a data line is occupied, thus, the third byte represents the third key information, and so on. Bit 1 is defined as the operating frequency and working mode of the magnetic induction chip with a 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 and bit7 are the digital code information of the key voltage: the maximum key voltage is bit2=1, bit3=1, bit4=1, bit5=1, bit6=1, bit7=1, and 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 the key information, bit7=0 means the key is not pressed, bit7=1 means the key is pressed.
[0076] The working principle of the magnetic induction chip with data line is as follows:
[0077] A low-level reset code (length of 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. Byte(2) and byte(3) are not processed and transmitted according to the MCU setting.
[0078] When byte(1), byte(2), and byte(3) are transmitted to the second magnetic sensing integrated circuit chip, the first byte(1) is sampled and held. The second magnetic sensing integrated circuit chip signs all the key information into the corresponding bits of byte(2). 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. Byte(3) is not processed and is transmitted according to the MCU setting.
[0079] 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 bit0 = 1 and bit1 set to either 0 or 1 according to the MCU. Bits 2, 3, 4, 5, 6, and 7 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 via DOUT(3).
[0080] In order to save transmission time, each magnetic induction chip with a data line can transmit information while rewriting data.
[0081] Example 5
[0082] An integrated circuit chip with a data line, integrating a magnetic induction integrated circuit and an RGB magic color driving circuit;
[0083] 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 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. One 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 RGB color grayscale information and key information in a time-sharing manner.
[0084] Take 3 buttons as an example to explain, the same applies to multiple buttons:
[0085] Three integrated circuit chips with data lines are cascaded. 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. The power pin is used to power the integrated circuit chip, and the ground pin is used for signal grounding and power grounding. The RGB magic color driving circuit and the magnetic induction circuit share the data information input pin and data information output pin.
[0086] As shown in Figure 8, the data information input pin of the first integrated circuit chip is DIA(1) and the data information output pin is DOA(1), the data information input pin of the second integrated circuit chip is DIA(2) and the data information output pin is DOA(2), and the data information input pin of the third integrated circuit chip is DIA(3) and the data information output pin is DOA(3).
[0087] As shown in Figure 9, this embodiment employs the following communication protocol: The RGB color-shifting driver circuit's LED data and key data are transmitted in a time-sharing manner, depending on the read and write commands. The RGB color-shifting driver circuit writes to the data line, while the magnetic induction circuit reads from the data line. The magnetic induction circuit, in conjunction with a switch containing a magnetic element, acquires key information and generates key data. The greatest advantage of time-sharing transmission is that it increases the frequency of key information acquisition and improves key response speed.
[0088] Example 6
[0089] An integrated circuit chip with a data line, integrating a magnetic induction integrated circuit and an RGB magic color driving circuit;
[0090] 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 that of 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.
[0091] Take 3 buttons as an example to explain, the same applies to multiple buttons:
[0092] As shown in Figure 10, three integrated circuits with data lines are cascaded. These integrated circuits integrate a magnetic induction integrated circuit and an RGB color-shifting driver circuit. These integrated circuits include a power pin, a ground pin, data input and output pins for the RGB color-shifting driver circuit, and data input and output pins for the magnetic induction circuit. The power pin is used to power the integrated circuit, while the ground pin is used for signal and power grounding. Because the RGB color-shifting driver circuit and the magnetic induction circuit have their own data channels, they can operate simultaneously without affecting each other, further improving operational efficiency.
[0093] As shown in Figure 11, the magnetic induction circuit data information input pin of the first integrated circuit chip is DIA(1) and the magnetic induction circuit data information output pin is DOA(1), the magnetic induction circuit data information input pin of the second integrated circuit chip is DIA(2) and the magnetic induction circuit data information output pin is DOA(2), and the magnetic induction circuit data information input pin of the third integrated circuit chip is DOA(3) and the magnetic induction circuit data information output pin is DOA(3).
[0094] The data information input pin of the RGB magic color driving circuit of the first integrated circuit chip is DIB(1) and the data information output pin of the RGB magic color driving circuit is DOB(1); the data information input pin of the RGB magic color driving circuit of the second integrated circuit chip is DIB(2) and the data information output pin of the RGB magic color driving circuit is DOB(2); the data information input pin of the RGB magic color driving circuit of the third integrated circuit chip is DOB(3) and the data information output pin of the RGB magic color driving circuit is DOB(3).
[0095] Example 7
[0096] An integrated circuit chip with a data line includes a magnetic induction chip with a data line and an RGB magic color driver chip with a data line. The magnetic induction integrated circuit chip includes 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 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 key information. According to different communication protocols, the key information is transmitted via the first data line.
[0097] The RGB magic color driving circuit chip shares the power pin and ground pin of the magnetic induction integrated circuit chip; the RGB magic 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 that of the first data information input pin and the first data information output pin.
[0098] 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 adjacent next 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 adjacent previous RGB magic color driving circuit chip; the connection between the data information input pins and data information output pins of several RGB magic color driving circuit chips forms a second data line; several of the RGB magic 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.
[0099] Take 3 buttons as an example to explain, the same applies to multiple buttons:
[0100] As shown in Figure 12, three integrated circuits with data lines are cascaded. An integrated circuit chip with data lines includes a magnetic induction integrated circuit chip with data lines and an RGB color-shifting driver circuit chip with data lines. Using LED packaging technology, the magnetic induction integrated circuit chip 1 and the RGB color-shifting driver circuit chip 2 are physically stacked, sharing power pin VCC and ground pin GND. Magnetic induction integrated circuit chip 1 transmits data using its own data lines DI1 and DO1; RGB color-shifting driver circuit chip 2 transmits data using its own data lines DI2 and DO2. These are essentially two separate chips, but in form, they utilize LED packaging technology to share power pin VCC and ground pin GND, thereby reducing the number of pins in the finished chip, shrinking the package size, and lowering costs.
[0101] In Examples 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 or Hall integrated circuit can be a linear Hall or a 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.
[0102] A key comprises a key body, wherein the key body comprises an upper shell, a lower shell and a handle, wherein the upper shell is fixedly connected to the lower shell, and the handle is movably arranged on the upper shell up and down, and an accommodating space is formed between the upper shell and the lower shell, wherein an elastic element is provided in the accommodating space, and the elastic element is located below the handle. The key body also comprises a magnetic element and a magnetic induction element, wherein the magnetic element is fixed on the handle and moves up and down with the handle, and the magnetic induction element comprises the integrated circuit chip with a data line in the above-mentioned embodiments 1 to 7, and the magnetic induction element is arranged on a printed circuit board, and the magnetic element is arranged corresponding to the magnetic induction element.
[0103] 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.
[0104] In embodiments 5 and 6, the number of power pins is 1 or 2.
[0105] When there is only one power pin, the magnetic induction integrated circuit and the RGB magic color driving circuit share one power pin for power supply.
[0106] As shown in FIG13 , when there are two power pins, the magnetic induction integrated circuit and the RGB magic color driving circuit are each powered by one power pin.
[0107] In Figures 2, 4, 5, and 7, D1, D2, and D3 are three integrated chips with data lines.
[0108] In Examples 1 to 7, all chips containing RGB color-enhancing driving circuits need to adopt LED packaging technology.
[0109] In embodiments 1 to 7, the integrated circuit chip may be provided with a backup data line transmission channel.
[0110] Example 8
[0111] This embodiment is based on the first embodiment and is provided with a backup data line transmission channel.
[0112] As shown in Figure 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 the 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 defaulted as 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 serves as a backup data line transmission channel, which greatly improves the reliability of the system operation.
[0113] 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 considered as equivalent replacement methods and are included in the scope of protection 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 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.
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 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 next adjacent 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 previous adjacent 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 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, and according to different communication protocols, several key information are transmitted through the first data line; the RGB fantasy color driving circuit transmits RGB color and grayscale information through the second data line.
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 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; 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.
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 the 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 according to different communication protocols, a plurality of key information is transmitted through the data line.
5. The integrated circuit chip with data lines according to any one of claims 1 to 4, characterized in that: 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.
6. The integrated circuit chip with data lines according to claim 5, characterized in that: 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; 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.
7. The integrated circuit chip with data lines according to any one of claims 1 to 4, characterized in that: Single key information is transmitted as one byte, and 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 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.
8. The integrated circuit chip with data lines according to claim 7, characterized in that: After the MCU sends a reset code, several keystrokes 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.
9. 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.
10. 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.
11. 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 10, and the magnetic induction element is arranged on a printed circuit board, and the magnetic element is arranged corresponding to the magnetic induction element.
12. 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 11.
Citation Information
Patent Citations
Coding chip integrating keys and power supplying and remote control device
CN109615839A
Hall integrated circuit, key and mechanical keyboard
CN110850995A
Single-pixel LED driving chip and LED display screen
CN113223444A
Integrated circuit device and test method
JP2013157436A