Key control circuit of magnetic axis keyboard and magnetic axis keyboard
By using multiple keying chips in the magnetic axis keyboard to process the transmission of key status detection data and light control data respectively, and using different communication links for data separation and transmission, the data transmission delay and efficiency in the single daisy chain SPI communication method are solved. reduce the problem of low performance and achieve more efficient and faster control.
Patent Information
- Application Number
- CN202420275243.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-04
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2034-02-04
AI Technical Summary
In the single daisy chain SPI communication mode of the existing magnetic axis keyboard, there are problems such as large data transmission delay, untimely data processing and energy waste. This is mainly because the key status detection data and lighting control data share the same communication link, resulting in low transmission efficiency. .
Multiple keying chips are used, each chip contains a key status detection data transmission module and a lighting control data transmission module, and the key status detection data and lighting control data are respectively processed through the first daisy chain serial bus and the second daisy chain serial bus. transmission to achieve data separation and transmission.
It improves the transmission efficiency and response speed of key status detection data and lighting control data, reduces unnecessary data transmission length and energy waste, and improves overall control efficiency.
Smart Images

Figure CN221746565U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of keyboards, in particular to a key control circuit of a magnetic axis keyboard and a magnetic axis keyboard. Background Art
[0002] SPI is a high-speed full-duplex serial communication interface, mainly used for data transmission between master and slave devices. In the SPI communication mode of the single daisy chain model, multiple slave devices are connected in series to form a chain structure. This configuration allows data to flow from the master device to the first slave device, and then flow through each slave device in the chain in turn.
[0003] In the magnetic axis keyboard, there are two main controls: RGB light control and key ADC detection.
[0004] At present, most keyboards on the market use the SPI communication method of a single daisy chain model to control RGB lights and key status detection. The SPI communication method of the single daisy chain model has the following disadvantages:
[0005] 1) Increased transmission delay when the data transmission length is too long: In a daisy chain, data must pass through each slave device to reach the next device in the chain, which causes some slave devices to receive signals and then transmit them to the next device even if they are not working, thereby increasing the unnecessary data transmission length.
[0006] 2) Different types of data share the same daisy chain, resulting in untimely data processing and response: Button status detection data and lighting control data share the same daisy chain for data transmission, resulting in an increase in data volume. An increase in data volume means a longer transmission time, which affects the data reception timeliness of the device at the end of the chain, resulting in untimely data processing and response.
[0007] 3) Processing different types of data at the same rate will cause energy waste and inefficiency: key status detection data requires a higher transmission rate, while lighting control data does not require a very high rate. Using the same rate for transmission may result in energy waste. Utility Model Content
[0008] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a key control circuit of a magnetic axis keyboard and a magnetic axis keyboard, which are used to at least solve one of the technical problems.
[0009] According to a first aspect of the utility model, a key control circuit of a magnetic axis keyboard is provided, comprising:
[0010] A plurality of key control chips, each of which comprises a key state detection data transmission module and a light control data transmission module;
[0011] The main control chip and the plurality of the button status detection data transmission modules are communicatively connected via a first daisy chain serial bus to realize button status detection data transmission, and the main control chip and the plurality of the light control data transmission modules are communicatively connected via a second daisy chain serial bus to realize light control data transmission.
[0012] The key control circuit of the magnetic axis keyboard of the utility model connects the main control chip with multiple key status detection data transmission modules through a first daisy chain serial bus, and connects the main control chip with multiple light control data transmission modules through a second daisy chain serial bus, so that the key status detection data and the light control data can be transmitted using different communication links, so that the key status detection data and the light control data can be controlled more efficiently and with a faster response speed.
[0013] In some implementations, the first daisy chain serial bus and / or the second daisy chain serial bus is a SPI daisy chain serial bus.
[0014] In some implementations, the data transmission speed of the lighting control data transmission module is slower than the data transmission speed of the key status detection data transmission module.
[0015] In some embodiments, each of the key control chips also includes an ADC module, each of the ADC modules is correspondingly connected to each of the button status detection data transmission modules, each of the ADC modules is connected to at least one button, and each of the ADC modules is used to convert the analog signal generated when the corresponding button is triggered into a digital signal and transmit it to the corresponding button status detection data transmission module.
[0016] In some embodiments, each of the button status detection data transmission modules includes a first signal input terminal and a first signal output terminal connected to the first daisy chain serial bus, and each of the button status detection data transmission modules short-circuits its own first signal input terminal and first signal output terminal when the digital signal is not received.
[0017] In some implementations, a plurality of key sampling modules are further included, each of the key sampling modules is correspondingly connected between each of the ADC modules and at least one of the keys, and each of the key sampling modules is used to sample the corresponding key.
[0018] In some implementations, the button sampling module includes a multiplexed IO, each of the multiplexed IO is connected to a plurality of the buttons, and each of the multiplexed IO samples the corresponding plurality of buttons in sequence.
[0019] In some implementations, the plurality of buttons are respectively configured to have different trigger output voltages.
[0020] In some embodiments, each of the lighting control data transmission modules includes a second signal input terminal and a second signal output terminal connected to the second daisy chain serial bus, each of the second signal output terminals is connected to a lighting control chip, and the plurality of lighting control data transmission modules are used to transmit the lighting control signal generated by the main control chip to the corresponding lighting control chip.
[0021] According to a second aspect of the utility model, a magnetic axis keyboard is provided, and the magnetic axis keyboard comprises the key control circuit of the magnetic axis keyboard mentioned above.
[0022] Compared with the prior art, the key control circuit of the magnetic axis keyboard and the magnetic axis keyboard of the utility model connect the main control chip with multiple key status detection data transmission modules through a first daisy chain serial bus, and connect the main control chip with multiple lighting control data transmission modules through a second daisy chain serial bus, so that the key status detection data and the lighting control data can be transmitted using different communication links, so that the key status detection data and the lighting control data can be controlled more efficiently and with a faster response speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 This is a schematic diagram of the module composition of the key control circuit of the magnetic axis keyboard according to one embodiment of the utility model;
[0024] Figure 2 This is a first circuit principle diagram of a key control circuit of a magnetic axis keyboard according to an embodiment of the utility model;
[0025] Figure 3 A second circuit schematic diagram of a key control circuit of a magnetic axis keyboard according to an embodiment of the utility model;
[0026] Figure 4 A third circuit principle diagram of a key control circuit of a magnetic axis keyboard according to an embodiment of the utility model;
[0027] Figure 5 This is a circuit schematic diagram of a key sampling module of a key control circuit of a magnetic axis keyboard according to an embodiment of the utility model;
[0028] Figure 6 This is a fourth circuit principle diagram of a key control circuit of a magnetic axis keyboard according to an embodiment of the utility model;
[0029] Figure 7 The circuit schematic diagram of the instruction sampling module of the key control circuit of the magnetic axis keyboard according to one embodiment of the utility model.
[0030] Description of the accompanying drawings: main control chip 10, key control chip 20, key state detection data transmission module 21, light control data transmission module 22, ADC module 23, key 30, light control chip 40, key sampling module 50, instruction sampling module 60. DETAILED DESCRIPTION
[0031] The utility model is further described in detail below in conjunction with the accompanying drawings.
[0032] According to the first aspect of the utility model, Figure 1-2 The key control circuit of the magnetic axis keyboard according to one embodiment of the utility model is schematically shown. Figure 1-2 As shown, the key control circuit of the magnetic axis keyboard includes a main control chip 10 and multiple key control chips 20 (key control chips 1-N in sequence), each key control chip 20 includes a key state detection data transmission module 21 and a light control data transmission module 22, wherein each key control chip 20 is externally connected to at least one key 30 and a light control chip 40 (which can be an LED light control chip).
[0033] The main control chip 10 and multiple key state detection data transmission modules 21 are communicatively connected through the first daisy chain serial bus to realize key state detection data transmission, that is, when a certain key 30 is triggered, a corresponding trigger signal will be generated, and the key control chip 20 corresponding to the key 30 will generate a key state detection signal (that is, key state detection data) according to the trigger signal. When the key state detection data transmission module 21 inside the key control chip 20 receives the key state detection data, it can transmit the key state detection data to the next key state detection data transmission module 21 through the first daisy chain serial bus. The next key state detection data transmission module 21 transmits the key state detection data to the next key state detection data transmission module 21 until it is transmitted to the last key state detection data transmission module 21, and the last key state detection data transmission module 21 transmits the key state detection data to the main control chip 10 to complete the transmission of the key state detection data.
[0034] The main control chip 10 and multiple lighting control data transmission modules 22 are communicatively connected through the second daisy chain serial bus to realize lighting control data transmission, that is, the main control chip 10 generates a lighting control signal, and the main control chip 10 transmits the lighting control data corresponding to the lighting control signal to the second daisy chain serial bus. The first lighting control data transmission module 22 receives the transmitted lighting control data from the second daisy chain serial bus, and determines whether it needs to be transmitted to the lighting control chip 40 connected to the first lighting control data transmission module 22, so that the lighting control chip 40 controls the change of the light according to the lighting control data. When the first lighting control data transmission module 22 determines that it is not necessary to transmit the lighting control data to the lighting control chip 40 connected to the first lighting control data transmission module 22, the lighting control data is transmitted to the next lighting control data transmission module 22, and the above process is repeated until the lighting control data is transmitted to the corresponding lighting control chip 40.
[0035] In this embodiment, the main control chip 10 is connected to multiple button status detection data transmission modules 21 through a first daisy chain serial bus, and the main control chip 10 is connected to multiple lighting control data transmission modules 22 through a second daisy chain serial bus, so that the button status detection data and the lighting control data can be transmitted using different communication links, so as to separate the button status detection data from the lighting control data, so that the two signals do not affect each other, so that the button status detection data and the lighting control data can be controlled more efficiently and with a faster response speed.
[0036] Furthermore, the first daisy chain serial bus and the second daisy chain serial bus may be SPI daisy chain serial buses, which may provide a higher data transmission rate. For better explanation, this embodiment is described by taking the first daisy chain serial bus and the second daisy chain serial bus as SPI daisy chain serial buses as an example. Figure 2As shown, the main control chip 10 includes a first output terminal D01, a first clock output terminal CLK1 and a first input terminal DI1 connected to the first daisy chain serial bus; each key state detection data transmission module 21 includes a first signal input terminal DI1-1, a first signal output terminal D01-1 and a first clock input terminal CLK1-1 connected to the first daisy chain serial bus; the first output terminal D01 is connected to the first signal input terminal DI1-1 of the first key state detection data transmission module 21, and the first signal output terminal D01-1 of the first key state detection data transmission module 21 is connected to the first signal input terminal DI1-1 of the second key state detection data transmission module 21, and the above connection method is repeated until the first signal output terminal D01-1 of the last key state detection data transmission module 21 is connected to the first input terminal DI1, and the first clock output terminal CLK1 is respectively connected to the first clock input terminals CLK1-1 of multiple key state detection data transmission modules 21.
[0037] Each key control chip 20 also includes an ADC module 23, each ADC module 23 is connected to each key state detection data transmission module 21, and each ADC module 23 is connected to at least one key 30. Correspondingly, when the ADC module 23 is connected to multiple keys 30, the ADC module 23 can be connected to different keys 30 through different input ports. Specifically, the key 30 contains a magnetic sheet and a Hall sensor at the bottom. When the key 30 is pressed, the Hall sensor outputs an analog voltage and transmits it to the corresponding ADC module 23. The corresponding ADC module 23 is used to convert the analog signal (i.e., analog voltage) generated when the corresponding key 30 is triggered into a digital signal (i.e., key state detection data) and transmit it to the corresponding key state detection data transmission module 21. The processing process of the key state detection data transmission module 21 after receiving the digital signal can refer to the above-described process of the main control chip 10 and multiple key state detection data transmission modules 21 being communicated and connected through the first daisy chain serial bus to realize key state detection data transmission.
[0038] When each key state detection data transmission module 21 does not receive a digital signal, the first signal input terminal D01-1 and the first signal output terminal D01-1 of the key state detection data transmission module 21 are short-circuited. That is, when the key state detection data transmission module 21 does not receive a digital signal, it indicates that the key 30 corresponding to the key state detection data transmission module 21 is not triggered. At this time, it indicates that the key state detection data transmission module 21 does not need to work. The first signal input terminal D01-1 and the first signal output terminal D01-1 of the key state detection data transmission module 21 can be short-circuited. This method is equivalent to the key state detection data transmission module 21 not being connected to the circuit, thereby effectively reducing the length of the daisy chain, improving the response speed, and saving a certain amount of power consumption.
[0039] Furthermore, the main control chip 10 also includes a second output terminal D02, a second clock terminal CLK2, and a second input terminal DI2 connected to the second daisy chain serial bus; each light control data transmission module 22 includes a second signal input terminal DI2-1, a second signal output terminal D02-1, and a second clock input terminal CLK2-1 connected to the second daisy chain serial bus; the second output terminal D02 is connected to the second signal input terminal DI2-1 of the first light control data transmission module 22, and the second signal output terminal D02-1 of the first light control data transmission module 22 is connected to the second signal input terminal DI2-1 of the second light control data transmission module 22, and the above connection method is repeated until the last one The second signal output terminal D02-1 of the lighting control data transmission module 22 is connected to the second input terminal DI2, and each second signal output terminal D02-1 is connected to the lighting control chip 40, so that multiple lighting control data transmission modules 22 can transmit the lighting control signal generated by the main control chip 10 to the corresponding lighting control chip 40 to control the change of the light. For the transmission process of the lighting control signal, reference can be made to the above-described process of communicating and connecting the main control chip 10 and multiple lighting control data transmission modules 22 through the second daisy chain serial bus to realize the lighting control data transmission; the second clock output terminal CLK2 is respectively connected to the second clock input terminal CLK2-1 of multiple lighting control data transmission modules 22.
[0040] The data transmission speed of the lighting control data transmission module 22 is slower than that of the key state detection data transmission module 21; since the key state changes need to be captured accurately in real time, the key state detection data has high requirements for the transmission rate, and due to the visual residual effect of humans, the slow lighting control signal is sufficient to meet the smooth change effect of the light, so the lighting control data does not have high requirements for the rate. Therefore, when the two types of data are transmitted separately using two communication links, different transmission rates can be achieved, that is, the key state detection data transmission module 21 maintains high-speed transmission, and the lighting control data transmission module 22 adopts low-speed transmission. This method can solve the energy waste that may be caused by using the same transmission rate.
[0041] In an optional embodiment, if Figure 3As shown, it also includes a plurality of key sampling modules 50, each key sampling module 50 is correspondingly connected between each ADC module 23 and at least one key 30, each key sampling module 50 is used to sample the corresponding key 30, specifically, the key sampling module 50 includes a multiplexed IO, each multiplexed IO is connected to a plurality of keys 30, each multiplexed IO samples the corresponding plurality of keys 30 in sequence, wherein the multiplexed IO is located in the key control chip 20 (that is, the key control chip 20 has the multiplexed IO), the multiplexed IO is usually used as an input wake-up, and when a key is pressed The Hall sensor will have an analog voltage output and transmit it to the key control chip 20 through the multiplexed IO. At this time, the analog voltage can be used as a wake-up signal to wake up the key control chip 20. After the key control chip 20 is awakened, ADC sampling is performed on multiple keys 30 in sequence through the ADC module 23 and the multiplexed IO. For example, assuming that a key control chip 20 corresponds to 4 keys 30, the data after one sampling is stored as 4×16 ADC data, and the actual data will have 4×16+16=80 bits (the identification code and check code of the Hall chip), thereby realizing the control of 4 keys 30.
[0042] In this embodiment, one key control chip 20 can sample multiple keys 30 through one IO, which greatly saves chip resources and reduces costs.
[0043] In an optional embodiment, if Figure 4 and 5As shown, the key sampling module 50 includes a plurality of multipliers U and a plurality of resistors R, the first input terminals of the plurality of multipliers U are respectively connected to the corresponding keys 30, and the output terminals of the plurality of multipliers 30 are connected to the same input terminal of the ADC module 23 after being connected; each resistor R is connected to the second input terminals of two adjacent multipliers U; in addition, the second input terminal of the first multiplier U is connected to the VDD terminal, and the second input terminal of the last multiplier U is grounded through the resistor R; the plurality of keys 30 are respectively configured to have different trigger output voltages, that is, when the corresponding key 30 is triggered, the key 30 outputs a specific level value to the ADC module 23. For example, assuming that a key control chip 20 corresponds to 4 keys 30, correspondingly, the voltage value of the second input terminal of the first multiplier U is VDD, and the voltage value of the second input terminal of the second multiplier U is 3 / 4VDD, ... and so on. When the first key 30 is triggered, the first input terminal of the first multiplier U is "1", and the first multiplier U multiplies the signals of the two input terminals and outputs VDD. When the first key 30 is not triggered, the first input terminal of the first multiplier U is "1". The input terminal is "0", and the output of the first multiplier U is 0. Then, the specific level value output when the first key 30 is triggered can be set according to the voltage value of the second input terminal of the first multiplier U. The specific level value output when the first key 30 is triggered can be VDD. The specific level value output when the second key 30 is triggered can be set according to the voltage value of the second input terminal of the second multiplier U. The specific level value output when the second key 30 is triggered can be 3 / 4VDD, ... and so on. When the first key 30 is triggered, the first multiplier U outputs the level value VDD obtained after multiplication, which indicates that the first key 30 is triggered. When the second key 30 is triggered, since the output of other keys 30 is 0 when they are not triggered, the second multiplier U will output the obtained level value 3 / 4VDD, which indicates that the second key 30 is triggered, ... and so on. The specific level value of the key 30 is set by the multiplier U, and the size of the level value output by the multiplier U can be used to understand which key 30 is triggered, thereby realizing sampling of multiple keys 30.
[0044] It should be noted that the key sampling module 50 can be integrated inside the key control chip 20 or external to the key control chip 20. In addition, the second input terminal of the first multiplier U can also be connected to a resistor or a voltage of other voltage value. At this time, the voltage value of the second input terminal of each multiplier U can be known according to the voltage division principle of the resistor, and the trigger output voltage of the corresponding key 30 can be set according to the voltage value of the second input terminal of the corresponding multiplier U.
[0045] In this embodiment, one key control chip 20 can sample multiple keys 30 through multiple multipliers U and multiple resistors R, thereby saving chip resources and reducing costs.
[0046] In an optional embodiment, if Figure 6 and 7 As shown, it also includes an instruction sampling module 60, which is used to receive instructions and perform sampling. Correspondingly, the instruction sampling module 60 includes multiple comparators U and multiple resistors R. The first input ends of the multiple comparators U are connected, and the first input ends of the multiple comparators U are connected to receive instructions, and the output ends of the multiple comparators U are connected to different input ends of the main control chip 10; each resistor R is connected to the second input ends of two adjacent comparators U; in addition, the second input end of the first comparator U is connected to the VDD end, and the second input end of the last comparator U is grounded through the resistor R; the instructions are configured to have different voltage values according to different operations (such as wake-up, sleep, etc.), then the main control chip 10 can determine which operation needs to be performed through the corresponding voltage value of the instruction received by the instruction sampling module 60. For example, assuming that an instruction sampling module 60 samples instructions of four different voltage values (i.e. corresponding to four different operations), correspondingly, the voltage value of the second input end of the first comparator U is VDD, the voltage value of the second input end of the second comparator U is 3 / 4VDD, ... and so on, then the first operation The voltage value of the instruction corresponding to the first operation can be set according to the voltage value of the second input terminal of the first comparator U. The voltage value of the instruction corresponding to the first operation can be VDD, and the voltage value of the instruction corresponding to the second operation can be set according to the voltage value of the second input terminal of the second comparator U. The voltage value of the instruction corresponding to the second operation can be 3 / 4VDD, ... and so on. When the voltage value received by the first input terminal of the comparator U is VDD, the first comparator U outputs a comparison signal, which indicates that the main control chip 10 needs to perform the first operation. When the voltage value received by the first input terminal of the comparator U is 3 / 4VDD, since the voltage value of the first input terminal of the first comparator U is 3 / 4VDD, which is less than the voltage value VDD of the second input terminal of the first comparator U, the first comparator U will not output a comparison signal, and the second comparator U will output a comparison signal. At this time, it indicates that the main control chip 10 needs to perform the second operation, ... and so on. The main control chip 10 compares the specific level value through the comparator U, and can understand what operation needs to be performed, and perform the corresponding operation, thereby realizing sampling of multiple instructions.
[0047] It should be noted that the instruction sampling module 60 can be integrated inside the main control chip 10 or external to the main control chip 10. In addition, the second input terminal of the first comparator U can also be connected to a resistor or a voltage of other voltage value. At this time, the voltage value of the second input terminal of each comparator U can be known according to the voltage division principle of the resistor, and the voltage value of the instruction corresponding to each operation can be set according to the voltage value of the second input terminal of the corresponding comparator U.
[0048] In this embodiment, one main control chip 10 can sample multiple instructions through multiple comparators U and multiple resistors R, thereby saving chip resources and reducing costs.
[0049] According to a second aspect of the utility model, a magnetic axis keyboard is provided, and the magnetic axis keyboard comprises the key control circuit of the magnetic axis keyboard mentioned above.
[0050] The above are only some embodiments of the present invention. For those skilled in the art, several modifications and improvements can be made without departing from the inventive concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A key control circuit for a magnetic axis keyboard, It is characterized in that include: A plurality of key control chips, each of which comprises a key state detection data transmission module and a light control data transmission module; The main control chip and the plurality of the button status detection data transmission modules are communicatively connected via a first daisy chain serial bus to realize button status detection data transmission, and the main control chip and the plurality of the light control data transmission modules are communicatively connected via a second daisy chain serial bus to realize light control data transmission.
2. The key control circuit of the magnetic axis keyboard according to claim 1, It is characterized in that The first daisy chain serial bus and / or the second daisy chain serial bus is a SPI daisy chain serial bus.
3. The key control circuit of the magnetic axis keyboard according to claim 1, It is characterized in that The data transmission speed of the lighting control data transmission module is slower than the data transmission speed of the key state detection data transmission module.
4. The key control circuit of the magnetic axis keyboard according to any one of claims 1 to 3, It is characterized in that Each of the key control chips also includes an ADC module, each of the ADC modules is correspondingly connected to each of the key status detection data transmission modules, each of the ADC modules is connected to at least one key, and each of the ADC modules is used to convert the analog signal generated when the corresponding key is triggered into a digital signal and transmit it to the corresponding key status detection data transmission module.
5. The key control circuit of the magnetic axis keyboard according to claim 4, It is characterized in that Each of the key state detection data transmission modules includes a first signal input terminal and a first signal output terminal connected to the first daisy chain serial bus. When each of the key state detection data transmission modules does not receive the digital signal, it short-circuits its own first signal input terminal and first signal output terminal.
6. The key control circuit of the magnetic axis keyboard according to claim 4, It is characterized in that It also includes a plurality of key sampling modules, each of which is correspondingly connected between each of the ADC modules and at least one of the keys, and each of the key sampling modules is used to sample the corresponding key.
7. The key control circuit of the magnetic axis keyboard according to claim 6, It is characterized in that The key sampling module includes a multiplexed IO, each of the multiplexed IO is connected to a plurality of the keys, and each of the multiplexed IO samples the corresponding plurality of the keys in sequence.
8. The key control circuit of the magnetic axis keyboard according to claim 6, It is characterized in that The plurality of buttons are respectively configured to have different trigger output voltages.
9. The key control circuit of the magnetic axis keyboard according to any one of claims 1 to 3 and 5 to 8, It is characterized in that Each of the lighting control data transmission modules includes a second signal input end and a second signal output end connected to the second daisy chain serial bus, and each of the second signal output ends is connected to a lighting control chip. The multiple lighting control data transmission modules are used to transmit the lighting control signal generated by the main control chip to the corresponding lighting control chip.
10. A magnetic axis keyboard, It is characterized in that A key control circuit of a magnetic axis keyboard comprising the key control circuit of any one of claims 1 to 9.
