Keyboard logic control circuit and leather sheath keyboard with same
By designing the keyboard logic control circuit and using the Type-C interface and Hall detection circuit to manage power supply, the problem of high standby power consumption of tablet computer PAD is solved, power saving and simple and beautiful equipment is achieved, and the connection of multiple USB interface devices is supported. .
Patent Information
- Application Number
- CN202411317192.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2024-12-13
AI Technical Summary
The high standby power consumption of tablet PAD on the market when not in use or sleeping leads to rapid battery consumption, especially the waste of power caused by the constant connection of Type-C port peripherals, while lacking a beautiful solution to connect the keyboard and other simultaneously equipment.
A keyboard logic control circuit is designed, including Type-C USB interface, USB expansion circuit, keyboard interface and power output logic control circuit. Through Hall detection circuit and controller circuit, power supply management of keyboard and USB expansion circuit is realized. , detect the open state of the equipment and automatically control the power supply, save electricity, and connect a variety of electronic devices through the Type-C interface.
It realizes power saving for tablet PAD, extends usage time, and does not require external docking station equipment. The overall equipment is simpler and more beautiful, and supports the connection and use of multiple USB interface devices.
Smart Images

Figure CN119126962A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of keyboard equipment, and in particular to a keyboard logic control circuit and a leather case keyboard having the same. Background Art
[0002] Mobile phones and tablets have gradually become the main electronic devices used in people's daily life and office work. Since the screens of mobile phones and tablets are relatively small, it is relatively inconvenient to input office information and operate software by touch. Therefore, when using them for office work, they are usually used together with a leather keyboard to make it more convenient to input information.
[0003] Common leather keyboard cases on the market use Bluetooth or POGO PIN interfaces for communication. If the tablet PAD on the market does not have a standard leather keyboard case, then if you want to connect a keyboard and other devices through the Type-c of the tablet PAD and communicate at the same time, the Type-c of the tablet PAD needs to be connected to an expansion docking device to support Type-c charging and multi-port communication. However, this will be unsightly.
[0004] In addition, when the tablet PAD is not in use or in sleep mode, its standby or sleep power consumption will be very high, which will cause the battery on the tablet PAD to be consumed quickly. This is because the Type-C port peripherals will continue to consume the battery on the tablet PAD. Summary of the invention
[0005] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, one object of the present invention is to provide a keyboard logic control circuit and a leather case keyboard having the same.
[0006] On the one hand, in order to achieve the above-mentioned object, according to a keyboard logic control circuit of an embodiment of the present invention, the keyboard logic control circuit comprises:
[0007] A first Type-C USB interface, wherein the first Type-C USB interface is used to connect to a first electronic device;
[0008] USB expansion circuit;
[0009] a keyboard interface, the keyboard interface being connected to the first Type-C USB interface through the USB expansion circuit, the keyboard interface being further used to be connected to a keyboard circuit, the keyboard circuit being used to input information or operate the first electronic device connected through the keyboard interface;
[0010] A power output logic control circuit, the power output logic control circuit is connected to the keyboard interface, and the power output logic control circuit is used to control the output of the keyboard power supply of the keyboard circuit;
[0011] The power output logic control circuit is also used to detect the in-place status of the keyboard circuit through the keyboard interface, and when it is detected that the keyboard circuit is not in place, output disconnection control of the keyboard power supply of the keyboard circuit.
[0012] Further, according to an embodiment of the present invention, the keyboard logic control circuit further includes:
[0013] A controller circuit is connected to the keyboard interface and the power output logic control circuit to control the power output logic control circuit according to an interrupt status signal of the keyboard interface.
[0014] Further, according to an embodiment of the present invention, the keyboard logic control circuit further includes:
[0015] A Hall detection circuit, the Hall detection circuit is connected to the power output logic control circuit, and the Hall detection circuit is used to detect whether the first electronic device connected is in an open cover state; when it is detected that the first electronic device connected is in an open cover state, the keyboard power supply is output by controlling the power output logic control circuit to power the connected keyboard; otherwise, the power output logic control circuit is controlled to disconnect the output of the keyboard power supply;
[0016] The Hall detection circuit is also used to control the power output logic control circuit to output power to power the USB expansion circuit when it is detected that the first electronic device connected is in an open cover state; otherwise, control the power output logic control circuit to disconnect the output of the power supply.
[0017] Further, according to an embodiment of the present invention, the power output logic control circuit includes:
[0018] a first MOS transistor (Q21), wherein a source electrode of the first MOS transistor (Q21) is connected to an output end of a voltage conversion circuit, and the source electrode of the first MOS transistor (Q21) is also connected to a gate electrode of the first MOS transistor (Q21) via a first resistor (R9);
[0019] A first triode (Q4), wherein the collector of the first triode (Q4) is connected to the gate of the first MOS tube (Q21), the emitter of the first triode (Q4) is connected to a reference ground, the base of the first triode (Q4) is connected to a detection signal output end of the Hall detection circuit through a second resistor (R13), the base of the first triode (Q4) is also connected to a control signal output end of the controller circuit through a third resistor (R19), the base of the first triode (Q4) is also connected to a control signal output end of the controller circuit through the third resistor (R19), and the drain of the first MOS tube (Q21) outputs the power supply of the source.
[0020] Further, according to an embodiment of the present invention, the power output logic control circuit further includes:
[0021] a second MOS tube (Q19), wherein the source of the second MOS tube (Q19) is connected to the drain of the first MOS tube (Q21), the source of the second MOS tube (Q19) is also connected to the gate of the second MOS tube (Q19) via a fourth resistor (R7), and the drain of the second MOS tube (Q19) outputs the power supply of the source;
[0022] a second triode (Q6), wherein the collector of the second triode (Q6) is connected to the gate of the second MOS tube (Q19), and the emitter of the second triode (Q6) is connected to a reference ground;
[0023] A third MOS transistor (Q20), a base of the second triode (Q6) is connected to the drain of the third MOS transistor (Q20) through a fifth resistor (R17), a source of the third MOS transistor (Q20) is connected to the drain of the first MOS transistor (Q21), the source of the third MOS transistor (Q20) is also connected to the gate of the third MOS transistor (Q20) through a sixth resistor (R14), and the gate of the third MOS transistor (Q20) is also connected to a keyboard state detection end of the keyboard interface through a seventh resistor (R22).
[0024] Further, according to an embodiment of the present invention, the power output logic control circuit further includes:
[0025] a third triode (Q7), wherein the collector of the third triode (Q7) is connected to the gate of the third MOS tube (Q20), the emitter of the third triode (Q7) is connected to a reference ground, and the base of the third triode (Q7) is connected to a control end of the controller circuit via an eighth resistor (R29);
[0026] A current limiting switch controller, wherein a power input terminal of the current limiting switch controller is connected to the drain of the second MOS tube (Q19), an output terminal of the current limiting switch controller is connected to a power supply terminal of the keyboard interface to output the keyboard power supply, and an enable terminal of the current limiting switch controller is connected to a control terminal of the controller circuit via a ninth resistor (R31).
[0027] Further, according to an embodiment of the present invention, the power output logic control circuit further includes:
[0028] a fourth MOS tube (Q18), wherein a source electrode of the fourth MOS tube (Q18) is connected to an output end of the voltage conversion circuit, and a source electrode of the fourth MOS tube (Q18) is also connected to a gate electrode of the fourth MOS tube (Q18) via a tenth resistor (R53);
[0029] A fourth triode (Q11), wherein the collector of the fourth triode (Q11) is connected to the gate of the fourth MOS tube (Q18), the emitter of the fourth triode (Q11) is connected to the reference ground, the base of the fourth triode (Q11) is connected to the detection signal output end of the Hall detection circuit through an eleventh resistor (R60), and the drain of the fourth MOS tube (Q18) outputs the power supply of the source.
[0030] Further, according to an embodiment of the present invention, the power output logic control circuit further includes:
[0031] a fifth MOS tube (Q17), wherein the source of the fifth MOS tube (Q17) is connected to the drain of the fourth MOS tube (Q18), and the source of the fifth MOS tube (Q17) is also connected to the gate of the fifth MOS tube (Q17) via a twelfth resistor (R49);
[0032] A fifth triode (Q36), wherein the collector of the fifth triode (Q36) is connected to the gate of the fifth MOS tube (Q17), the emitter of the fifth triode (Q36) is connected to the reference ground, and the base of the fifth triode (Q36) is also connected to a control end of the controller circuit through a thirteenth resistor (R5194); and the drain of the fifth MOS tube (Q17) is connected to the power supply end of the USB expansion circuit to output the power supply.
[0033] Further, according to an embodiment of the present invention, the power output logic control circuit further includes:
[0034] A sixth transistor (Q38), wherein the collector of the sixth transistor (Q38) is connected to the gate of the fourth MOS transistor (Q18), the emitter of the sixth transistor (Q38) is connected to the reference ground, the base of the sixth transistor (Q38) is connected to the one control end of the controller circuit through a fourteenth resistor (R5208); and the base of the fifth transistor (Q36) is connected to the interrupt status detection end of the keyboard interface through a fifteenth resistor (R5193).
[0035] On the other hand, an embodiment of the present invention further provides a leather case keyboard, comprising:
[0036] The keyboard logic control circuit described above;
[0037] A keyboard circuit includes a host control logic communication port and a controller, and the host control logic communication port is used to connect to the keyboard logic control circuit.
[0038] The keyboard logic control circuit provided in the embodiment of the present invention is used to connect a first electronic device through a first Type-C USB interface; the keyboard interface is connected to the first Type-C USB interface through the USB expansion circuit, and the keyboard interface is also used to connect to a keyboard circuit, and the keyboard circuit is used to input information or operate the first electronic device connected through the keyboard interface, so that the leather case keyboard containing this keyboard logic control circuit can be connected and communicated through the Type-C USB interface of the tablet computer PAD, and can also be connected and used with other electronic devices such as laptops and NUCs with USB2.0 or higher communication interfaces, rather than being limited to the single use of the standard tablet computer PAD. No external expansion dock device is required, making the overall device more concise and beautiful. In addition, the power supply is managed and controlled by the power output logic control circuit to save the power of the connected first electronic device (tablet computer PAD) and extend the use time. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A structural block diagram of a keyboard logic control circuit provided by an embodiment of the present invention;
[0040] Figure 2 A schematic diagram of the keyboard interface circuit structure provided by an embodiment of the present invention;
[0041] Figure 3 A schematic diagram of the structure of a first Type-C USB interface circuit provided by an embodiment of the present invention;
[0042] Figure 4 A schematic diagram of the structure of a second Type-C USB interface circuit provided by an embodiment of the present invention;
[0043] Figure 5 A schematic diagram of the USB expansion circuit structure provided by an embodiment of the present invention;
[0044] Figure 6 A block diagram of the Type-C crossbar analog switch circuit structure provided by an embodiment of the present invention;
[0045] Figure 7 A block diagram of a power supply output logic control circuit provided by an embodiment of the present invention;
[0046] Figure 8 A schematic diagram of the structure of a Hall detection circuit provided in an embodiment of the present invention;
[0047] Fig. 9 A schematic diagram of the controller circuit structure provided by an embodiment of the present invention;
[0048] Fig.10 A schematic diagram of the structure of a power supply switching control circuit provided in an embodiment of the present invention;
[0049] Fig.11A A schematic diagram of the structure of a power supply buck-boost circuit of a voltage conversion circuit provided in an embodiment of the present invention;
[0050] Fig. 11B A schematic diagram of the structure of a power supply step-down circuit of a voltage conversion circuit provided in an embodiment of the present invention;
[0051] Fig.12 A schematic diagram of a keyboard logic control circuit and a keyboard circuit structure provided in an embodiment of the present invention.
[0052] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0053] In order to make those skilled in the art better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0054] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0055] See also Figure 1 , Figure 2 , Figure 3 , Figure 5 and Fig.12 The embodiment of the present invention provides a keyboard logic control circuit, including: a first Type-C USB interface, a USB expansion circuit and a keyboard interface, wherein the first Type-C USB interface is used to connect a first electronic device; the keyboard interface is connected to the first Type-C USB interface through the USB expansion circuit, and the keyboard interface is also used to connect to a keyboard circuit, and the keyboard circuit is used to input information or operate the first electronic device connected through the keyboard interface. Figure 1 and Fig.12 As shown in , the keyboard logic control circuit is connected to the keyboard circuit through the keyboard interface. In this way, the keyboard circuit can communicate with the USB expansion circuit through the keyboard interface, and communicate with the electronic device connected to the first Type-C USB interface through the USB expansion circuit. Wherein, the electronic device can be a tablet computer. In one embodiment of the present practical information, the keyboard logic control circuit can be integrated inside the leather case keyboard. The protective shell of the tablet computer PAD has a Type-C USB male socket interface. When the tablet computer PAD is loaded into the protective shell, the Type-C USB male socket interface of the protective shell will be connected to the Type-C USB interface on the tablet computer PAD end. At the same time, the Type-C USB male socket interface of the protective shell is connected to the hidden and extended USB expansion circuit, and the USB expansion circuit communicates with the keyboard by extending a set of USB2.0. In this way, the keyboard circuit can input information or control the tablet computer PAD. As Figure 2 and Figure 5 As shown in, the keyboard interface (which may be a POGO PIN interface) includes signal terminals KP_DP1 and KP_DM1 connected to the USB expansion circuit, and is connected to the USB expansion circuit. Among them, the USB expansion circuit includes a USB expansion controller U7. The USB expansion controller U7 can realize the communication between the keyboard circuit and the first electronic device connected to the first Type-C USB interface. The advantage of the embodiment of the present invention is that the leather case keyboard containing this keyboard logic control circuit can be connected and communicated through the USB-C of the tablet computer PAD, and can also be connected and used with other electronic devices such as laptops and NUCs with USB2.0 or higher communication interfaces, and is not limited to the single use of the standard tablet computer PAD, and can be used for various communication interfaces with USB2.0 and above.
[0056] See also Figure 1 , Figure 2 and Figure 7The keyboard logic control circuit further includes: a power output logic control circuit, the power output logic control circuit is connected to the keyboard interface, and the power output logic control circuit is used to control the output of the keyboard power supply of the keyboard circuit. Figure 1 and Figure 2 As shown in, the keyboard interface includes the USB communication terminals KP_DP1 and KP_DM1. It also includes a KB5V power supply terminal. The power supply of the keyboard circuit is managed and controlled by the power output logic control circuit to save electric energy, thereby achieving the purpose of power saving. For example, in one embodiment of the present invention, the power output logic control circuit is also used to detect the in-place state of the keyboard circuit through the keyboard interface, and when it is detected that the keyboard to the circuit is not in place, the keyboard power supply of the keyboard circuit is disconnected from the output. When the keyboard (built-in keyboard circuit) is separated from the tablet computer PAD, the power output logic control circuit will detect that the keyboard is not in place. At this time, the power output logic control circuit will turn off the unnecessary power supplies respectively, and only retain the power supply of the logically necessary circuits.
[0057] See also Figure 1 , Figure 5 and Figure 7 , the power output logic control circuit is also used to control the output of the power supply output to the USB expansion circuit under the control of the keyboard circuit. In addition to the USB signal terminal, the USB expansion circuit also includes a power supply terminal of HUBP5V. The power supply of the USB expansion circuit is managed and controlled by the power output logic control circuit to save electric energy, thereby achieving the purpose of power saving. For example, when the keyboard circuit and the tablet computer PAD are in place, if the keyboard circuit and the tablet computer PAD are not used for a long time, the power supply to the keyboard circuit (the keyboard interface of the POGO PIN) can be maintained by controlling the power output logic control circuit, and the power supply HUBP5V output to the expansion circuit USB HUB is turned off. The power output logic control circuit can be awakened by pressing a keyboard button or other means, and the power output logic control circuit outputs the power supply HUBP5V to the expansion circuit USB HUB, thereby turning on the expansion circuit USB HUB and waking up the tablet computer PAD.
[0058] See also Figure 1 , Figure 7 and Figure 8, the keyboard logic control circuit also includes: a Hall detection circuit, the Hall detection circuit is connected to the power output logic control circuit, and the Hall detection circuit is used to detect whether the first electronic device is in an open cover state; when it is detected that the first electronic device is in an open cover state, the keyboard power supply is output by controlling the power output logic control circuit to power the connected keyboard; otherwise, the power output logic control circuit is controlled to disconnect the output of the keyboard power supply. The Hall detection circuit is also used to control the power output logic control circuit to output the power supply to power the USB expansion circuit when it is detected that the first electronic device is in an open cover state; otherwise, the power output logic control circuit is controlled to disconnect the output of the power supply.
[0059] like Figure 8 As shown in , the Hall detection circuit may include a Hall sensor U3, through which the leather case keyboard can be detected as being covered or opened, and the detection signal is sent to the power output logic control circuit through the HALL_CTRL signal terminal, so that the power supply HUBP5V output to the expansion circuit USBHUB and the power supply MCU3.3V output to the keyboard circuit are output controlled by the power output logic control circuit. For example, when the leather case keyboard and the tablet computer PAD are in a closed state, the Hall detection circuit outputs a control signal to the power output logic control circuit through HALL_CTRL, and the power supply of the expansion circuit USB HUB and the keyboard circuit are turned off respectively through the power output logic control circuit. That is, when the leather case keyboard and the tablet computer PAD are in a closed state, the leather case keyboard and the tablet computer PAD are both in an unused state. Therefore, the power supply of the expansion circuit USB HUB and the keyboard circuit can be completely turned off to achieve the purpose of saving energy. On the contrary, when the Hall sensor U3 detects that the leather case keyboard and the tablet computer PAD are in the open state, it can output a control signal to the power output logic control circuit, and turn on the power supply of the leather case keyboard and the expansion circuit USB HUB through the power output logic control circuit, so that the leather case keyboard can communicate normally with electronic devices such as the tablet computer PAD.
[0060] See also Figure 1 and Fig.10 , the keyboard logic control circuit further includes: a controller circuit, the controller circuit is connected to the keyboard interface and the power output logic control circuit, so as to control the power output logic control circuit according to the interrupt status signal of the keyboard interface; the controller circuit can also be connected to the first Type-C USB interface, so as to control the power output logic control circuit according to the interrupt status signal of the first Type-C USB interface. Specifically, Figure 1As shown in, in the previous embodiment, the Hall detection circuit can be used to detect whether the leather case keyboard (built-in keyboard circuit) and the tablet computer PAD are in the cover state, so as to control whether the power supply of the leather case keyboard and the expansion circuit USB HUB is turned on. In this embodiment, when the leather case keyboard (built-in keyboard circuit) and the tablet computer PAD are in the cover state, the controller circuit can also be used to further control the power output of the power output logic control circuit according to the state of the keyboard circuit or the tablet computer PAD. For example, when the keyboard circuit and the tablet computer PAD are in place, if the keyboard circuit and the tablet computer PAD are not used for a long time, the controller circuit can be used to control the power output logic control circuit to maintain the power supply to the keyboard circuit (the keyboard interface of the POGO PIN), and turn off the power supply HUBP5V output to the expansion circuit USB HUB. The power output logic control circuit can be awakened by pressing a keyboard button or other means, and the power output logic control circuit outputs the power supply HUBP5V to the expansion circuit USB HUB, thereby turning on the expansion circuit USB HUB and waking up the tablet computer PAD. Among them, the controller circuit may include a controller U8. That is, the power output logic control circuit can directly control the power supply HUBP5V of the expansion circuit USB HUB and other power-consuming electronic devices to be turned off or on through the interrupt status signal of the keyboard circuit, or it can control the power supply HUBP5V of the expansion circuit USB HUB and other power-consuming electronic devices to be turned off or on through the controller circuit.
[0061] See also Figure 1 , Fig. 9 and Fig.10 , the keyboard logic control circuit also includes: a second Type-C USB interface, a controller circuit and a power switching control circuit, the second Type-C USB interface is used to connect to a second electronic device or a charging device; the power switching control circuit is respectively connected to the controller circuit, the power output end of the first Type-C USB interface and the power output end of the second Type-C USB interface, so as to select the power output of the first Type-C USB interface or the power output of the second Type-C USB interface as the power supply for the keyboard circuit and the USB expansion circuit under the control of the controller circuit. Specifically, Fig.10As shown in , the power supply switching control circuit may include a dual-channel switching electronic switch Q16, a first output end of the dual-channel switching electronic switch Q16 is connected to the power output end of the first Type-C USB interface through VBUS_US, and a second output end of the dual-channel switching electronic switch Q16 is connected to the power output end of the second Type-C USB interface through VBUS_DS, and under the action of the switching control signal of the controller circuit, the power output VBUS_US of the first Type-C USB interface or the power output VBUS_DS of the second Type-C USB interface can be selected as the power supply VBUS_M. After the power supply VBUS_M is converted, it is output to the input end of the power output logic control circuit through the P5V power supply end, and the output is controlled by the power output logic control circuit, so as to power the keyboard circuit and the USB expansion circuit. Wherein, as Fig. 9 As shown in, the controller U8 can obtain whether there is a power output VBUS_US through the voltage division of the resistor R62 and the resistor R68, or the controller U8 can obtain whether there is a power output VBUS_DS through the voltage division of the resistor R64 and the resistor R69. In one embodiment, when it is detected that the power output VBUS_DS of the second Type-C USB interface is connected, it can be switched to the output of the power output VBUS_DS as the power supply VBUS_M, so that there is no need to use the power supply of the electronic device such as the tablet computer PAD connected to the first Type-C USB interface, thereby saving the power of the electronic device such as the tablet computer PAD and extending the use time of the electronic device such as the tablet computer PAD connected to the first Type-C USB interface.
[0062] See also Figure 1 11, the keyboard logic control circuit also includes: a voltage conversion circuit, the voltage conversion circuit is respectively connected to the power output end of the power supply switching control circuit and the power input end of the power output logic control circuit, so as to boost or buck the output power of the power supply switching control circuit and output it to the power output logic control circuit, and the keyboard power supply and power supply are outputted through the power output logic control circuit. Figure 1As shown in , the voltage conversion circuit can convert the power supply VBUS_M output by the power supply switching control circuit into a P5V power supply, so as to output to the power input end of the power output logic control circuit, and perform power supply control output through the power input end of the power output logic control circuit. In addition, the P5V power supply output by the power supply switching control circuit can also be converted into an MCU3.3V power supply, so as to power the controller U8. As shown in FIG11 , the voltage conversion circuit may include a power supply buck-boost circuit, through which the power supply VBUS_M can be boosted or bucked, and then the P5V power supply can be output. Among them, the power supply buck-boost circuit may include a power chip U2 and its peripheral circuits. The voltage conversion circuit may also include a power supply buck circuit, and the power supply buck circuit may include a buck chip U46 and a buck chip U11, through which the power supply VBUS_M can be bucked, and then the P5V power supply can be output. The buck chip U11 can buck the output P5V power supply, and then the MCU3.3V power supply can be output.
[0063] See also Figure 1 and Figure 6 , the keyboard logic control circuit further includes: a Type-C cross analog switch circuit, the first Type-C USB interface is connected to the second Type-C USB interface through the Type-C cross analog switch circuit, and the first electronic device is connected to the second electronic device through the Type-C cross analog switch circuit. Figure 1 and Figure 6 As shown in , the first Type-C USB interface and the second Type-C USB interface can be connected through the Type-C cross analog switch circuit, thereby realizing the communication between the first electronic device and the second electronic device connected to the first Type-C USB interface and the second Type-C USB interface, and realizing the data interaction of the electronic devices of the two interfaces. Among them, the Type-C cross analog switch circuit can be a high-speed channel switching switch, thereby realizing the switching of the video data interface DP and the USB interface data.
[0064] See also Figure 7The power output logic control circuit includes: a first MOS tube Q21 and a first triode Q4, the source of the first MOS tube Q21 is connected to the output end of the voltage conversion circuit, and the source of the first MOS tube Q21 is also connected to the gate of the first MOS tube Q21 through a first resistor R9; the collector of the first triode Q4 is connected to the gate of the first MOS tube Q21, the emitter of the first triode Q4 is connected to the reference ground, the base of the first triode Q4 is connected to the detection signal output end of the Hall detection circuit through a second resistor R13, the base of the first triode Q4 is also connected to a control signal output end of the controller circuit through a third resistor R19, the base of the first triode Q4 is also connected to a control signal output end of the controller circuit through the third resistor R19, and the drain of the first MOS tube Q21 outputs the power of the source.
[0065] Specifically, Figure 7 As shown in , the working process of the power output logic control circuit is that the detection signal output end of the Hall detection circuit can output a HALL_CTRL signal to control the first transistor Q4 to be turned on or off. When the HALL_CTRL signal is a high-level signal, the first transistor Q4 and the first MOS tube Q21 can be controlled to be turned on at the same time, so that the P5V power supply is controlled to be output. When the HALL_CTRL signal is a low-level signal, the first transistor Q4 and the first MOS tube Q21 can be controlled to be turned off at the same time, and the P5V power supply is disconnected from the output. At the same time, the output signal KB_POR of the controller U8 also has the same working process. In this way, the power output logic control circuit can control the output of the power supply of the keyboard circuit under the control of the Hall detection circuit or the controller circuit. Thereby realizing the Hall detection circuit and the controller circuit to control the power switch of the keyboard circuit.
[0066] See also Figure 7 In another embodiment of the present invention, the power output logic control circuit further includes: a second MOS tube Q19, a second triode Q6 and a third MOS tube Q20, the source of the second MOS tube Q19 is connected to the drain of the first MOS tube Q21, the source of the second MOS tube Q19 is also connected to the gate of the second MOS tube Q19 through a fourth resistor R7, and the drain of the second MOS tube Q19 outputs the power of the source;
[0067] The collector of the second triode Q6 is connected to the gate of the second MOS tube Q19, and the emitter of the second triode Q6 is connected to the reference ground; the base of the second triode Q6 is connected to the drain of the third MOS tube Q20 through the fifth resistor R17, the source of the third MOS tube Q20 is connected to the drain of the first MOS tube Q21, the source of the third MOS tube Q20 is also connected to the gate of the third MOS tube Q20 through the sixth resistor R14, and the gate of the third MOS tube Q20 is also connected to the keyboard state detection end of the keyboard interface through the seventh resistor R22.
[0068] Specifically, Figure 7 As shown in , in this embodiment, the power supply of the keyboard circuit can also be output controlled by the second MOS tube Q19. When the leather case keyboard (with keyboard circuit inside) and the tablet computer PAD are in an open state (non-covered state) and have not been used for a long time, the power output logic control circuit can be controlled by the output signal kb_por_id_det of the keyboard state detection end of the keyboard interface, that is, the keyboard in-position state can be detected by kb_por_id_det. When the keyboard (built-in keyboard circuit) is separated from the tablet computer PAD, kb_por_id_det is pulled up to a high level signal, and the power output logic control circuit will detect that the keyboard is not in position. At this time, the third MOS tube Q20 is in a cut-off state under the action of a high level, thereby also making the second triode Q6 and the second MOS tube Q19 in a cut-off state. At this time, the keyboard power supply KB5V is disconnected. On the contrary, when the keyboard (built-in keyboard circuit) is connected through the keyboard interface, the kb_por_id_det signal terminal can be pulled down to a low level signal, so that the second MOS tube Q19, the second transistor Q6 and the third MOS tube Q20 are all turned on, and the keyboard power supply KB5V is controlled to be output.
[0069] See also Figure 7 In another embodiment of the present invention, the power output logic control circuit further includes: a third transistor Q7 and a current limiting switch controller, the collector of the third transistor Q7 is connected to the gate of the third MOS tube Q20, the emitter of the third transistor Q7 is connected to the reference ground, the base of the third transistor Q7 is connected to a control end of the controller circuit through an eighth resistor R29; the power input end of the current limiting switch controller is connected to the drain of the second MOS tube Q19, the output end of the current limiting switch controller is connected to the power supply end of the keyboard interface to output the keyboard power supply, and the enable end of the current limiting switch controller is connected to a control end of the controller circuit through a ninth resistor R31. Specifically, Figure 7As shown in , in this embodiment, the output of the power supply of the keyboard circuit can also be controlled by the current limiting switch controller U1. When the leather case keyboard (with the keyboard circuit inside) and the tablet computer PAD are in an open state (not closed state) and have not been used for a long time, the controller circuit can output a low voltage level signal through the KB_POR signal terminal, and the low level can turn off the third transistor Q7, and at the same time, the current limiting switch controller can stop the power output. In this way, the output control of the keyboard power supply KB5V can also be achieved. When it is necessary to power the keyboard circuit again, the controller circuit can output a high voltage level signal through the KB_POR signal terminal, and the high level signal can turn on the third transistor Q7 and enable the current limiting switch controller to output the keyboard power supply KB5V.
[0070] See also Figure 7 The power output logic control circuit further includes: a fourth MOS tube Q18 and a fourth triode Q11, the source of the fourth MOS tube Q18 is connected to the output end of the voltage conversion circuit, and the source of the fourth MOS tube Q18 is also connected to the gate of the fourth MOS tube Q18 through a tenth resistor R53); the collector of the fourth triode Q11 is connected to the gate of the fourth MOS tube Q18, the emitter of the fourth triode Q11 is connected to the reference ground, the base of the fourth triode Q11 is connected to the detection signal output end of the Hall detection circuit through an eleventh resistor R60, and the drain of the fourth MOS tube Q18 outputs the power of the source.
[0071] Specifically, Figure 7 As shown in , the working process of the power output logic control circuit is that the detection signal output end of the Hall detection circuit can output a HALL_CTRL signal to control the on or off of the fourth transistor Q11. When the HALL_CTRL signal is a high-level signal, the fourth transistor Q11 and the fourth MOS tube Q18 can be controlled to be turned on at the same time, so that the P5V power supply is controlled to be output. When the HALL_CTRL signal is a low-level signal, the fourth transistor Q11 and the fourth MOS tube Q18 can be controlled to be turned off at the same time, and the P5V power supply is disconnected from the output. Thereby, the Hall detection circuit controls the power supply switch of the USB expansion circuit.
[0072] See also Figure 7The power output logic control circuit further includes: a fifth MOS tube Q17 and a fifth triode Q36, wherein the source of the fifth MOS tube Q17 is connected to the drain of the fourth MOS tube Q18, and the source of the fifth MOS tube Q17 is also connected to the gate of the fifth MOS tube Q17 through a twelfth resistor R49; the collector of the fifth triode Q36 is connected to the gate of the fifth MOS tube Q17, the emitter of the fifth triode Q36 is connected to the reference ground, and the base of the fifth triode Q36 is also connected to the one control end of the controller circuit through a thirteenth resistor R5194; the drain of the fifth MOS tube Q17 is connected to the power supply end of the USB expansion circuit to output the power supply. Specifically, the power supply of the USB expansion circuit is managed and controlled by the power output logic control circuit to save electric energy, thereby achieving the purpose of power saving. For example, when the keyboard circuit and the tablet computer PAD are in place, if the keyboard circuit and the tablet computer PAD are not used for a long time, the power supply to the keyboard circuit (the keyboard interface of the POGO PIN) can be maintained by controlling the power output logic control circuit, and the power supply HUBP5V output to the expansion circuit USB HUB can be turned off. The power output logic control circuit can be awakened by pressing a keyboard key or other means, and the power output logic control circuit outputs the power supply HUBP5V to the expansion circuit USB HUB, thereby turning on the expansion circuit USB HUB and waking up the tablet computer PAD. The working process of this circuit is that the controller circuit can output high and low level signals through pd_hubpor_en. When the high level signal is output, the fifth transistor Q36 and the fifth MOS tube Q17 can be turned on, thereby outputting the power supply HUBP5V of the expansion circuit USB HUB. When the power supply HUBP5V of the expansion circuit USB HUB needs to be disconnected, the controller circuit can output a low level signal through pd_hubpor_en, so that the fifth transistor Q36 and the fifth MOS tube Q17 are both turned off.
[0073] See also Figure 7In another embodiment of the present invention, the power output logic control circuit further includes: a sixth transistor Q38, the collector of the sixth transistor Q38 is connected to the gate of the fourth MOS transistor Q18, the emitter of the sixth transistor Q38 is connected to the reference ground, the base of the sixth transistor Q38 is connected to a control terminal of the controller circuit through a fourteenth resistor R5208; the base of the fifth transistor Q36 is connected to an interrupt signal state detection terminal of the keyboard interface through a fifteenth resistor R5193, so as to detect the interrupt signal low_high_det of the keyboard circuit. That is, the keyboard is detected in the interrupt state through the low_high_det signal. The working process of the circuit is that the controller circuit can also control the conduction of Q18 through pd_hubpor_en. When a high-level signal is output, the sixth transistor Q38, the fourth MOS transistor Q18, the fifth transistor Q36 and the fifth MOS transistor Q17 can all be turned on, thereby outputting the power supply HUBP5V of the expansion circuit USBHUB, thereby waking up the expansion circuit USB HUB device. In addition, the fifth transistor Q36 and the fifth MOS transistor Q17 can also be turned on through a state detection signal of the low_high_det keyboard interface. When the interrupt signal low_high_det of the keyboard circuit outputs a high-level signal, the fifth transistor Q36 and the fifth MOS transistor Q17 can be turned on, thereby outputting the power supply HUBP5V of the expansion circuit USB HUB. When pd_hubpor_en and low_high_det are both low levels, the power supply HUBP5V of the output expansion circuit USB HUB can be disconnected.
[0074] On the other hand, see Fig.12 An embodiment of the present invention further provides a leather case keyboard, comprising: the above-mentioned keyboard logic control circuit and keyboard circuit, wherein the keyboard circuit comprises a host control logic communication port and a controller, and the host control logic communication port is used to connect to the keyboard logic control circuit.
[0075] The advantage of the embodiment of the present invention is that the leather case keyboard containing this keyboard logic control circuit can be connected and communicated through the Type-c USB-C of the tablet computer PAD, and can also be connected and used with other electronic devices such as laptops, NUCs, etc. with USB2.0 or higher communication interfaces, and is not limited to the single use of the standard tablet computer PAD, and can be used for various communication interfaces with USB2.0 and above. In addition, the power supply of the keyboard circuit and the USB expansion circuit is managed and controlled by the power output logic control circuit in the keyboard logic control circuit to save electric energy, thereby achieving the purpose of power saving. Among them, the leather case keyboard provided by this embodiment of the invention can be integrated or split. Whether it is integrated or split, the logic control circuit can be used to save power for the tablet computer PAD; assuming it is a split leather case keyboard, then the tablet computer PAD side has a logic control circuit module and a POGO PIN terminal for connecting the keyboard, and the keyboard side also has a POGO PIN connection terminal. When combined, the keyboard is adsorbed on the tablet computer PAD side to connect the POGO PIN of the tablet computer PAD and the POGO PIN on the keyboard side, and the keyboard can work normally.
[0076] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0077] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A keyboard logic control circuit, characterized in that: include: A first Type-C USB interface, wherein the first Type-C USB interface is used to connect to a first electronic device; USB expansion circuit; a keyboard interface, the keyboard interface being connected to the first Type-C USB interface through the USB expansion circuit, the keyboard interface being further used to be connected to a keyboard circuit, the keyboard circuit being used to input information or operate the first electronic device connected through the keyboard interface; A power output logic control circuit, wherein the power output logic control circuit is connected to the keyboard interface; The power output logic control circuit is also used to detect the in-place status of the keyboard circuit through the keyboard interface, and when it is detected that the keyboard circuit is not in place, output disconnection control of the keyboard power supply of the keyboard circuit.
2. The keyboard logic control circuit according to claim 1, characterized in that: Also includes: A controller circuit is connected to the keyboard interface and the power output logic control circuit to control the power output logic control circuit according to an interrupt status signal of the keyboard interface.
3. The keyboard logic control circuit according to claim 1, characterized in that: Also includes: A Hall detection circuit, the Hall detection circuit is connected to the power output logic control circuit, and the Hall detection circuit is used to detect whether the first electronic device connected is in an open cover state; When it is detected that the first electronic device connected is in an open cover state, the keyboard power supply is output by controlling the power output logic control circuit to supply power to the connected keyboard; otherwise, the power output logic control circuit is controlled to disconnect the output of the keyboard power supply; The Hall detection circuit is also used to control the power output logic control circuit to output power to power the USB expansion circuit when it is detected that the first electronic device connected is in an open cover state; otherwise, control the power output logic control circuit to disconnect the output of the power supply.
4. The keyboard logic control circuit according to claim 3, characterized in that: The power output logic control circuit comprises: a first MOS transistor (Q21), wherein a source electrode of the first MOS transistor (Q21) is connected to an output end of a voltage conversion circuit, and the source electrode of the first MOS transistor (Q21) is also connected to a gate electrode of the first MOS transistor (Q21) via a first resistor (R9); A first triode (Q4), wherein the collector of the first triode (Q4) is connected to the gate of the first MOS tube (Q21), the emitter of the first triode (Q4) is connected to a reference ground, the base of the first triode (Q4) is connected to a detection signal output end of the Hall detection circuit through a second resistor (R13), the base of the first triode (Q4) is also connected to a control signal output end of the controller circuit through a third resistor (R19), the base of the first triode (Q4) is also connected to a control signal output end of the controller circuit through the third resistor (R19), and the drain of the first MOS tube (Q21) outputs the power supply of the source.
5. The keyboard logic control circuit according to claim 4, characterized in that: The power output logic control circuit also includes: a second MOS tube (Q19), wherein the source of the second MOS tube (Q19) is connected to the drain of the first MOS tube (Q21), the source of the second MOS tube (Q19) is also connected to the gate of the second MOS tube (Q19) via a fourth resistor (R7), and the drain of the second MOS tube (Q19) outputs the power supply of the source; a second triode (Q6), wherein the collector of the second triode (Q6) is connected to the gate of the second MOS tube (Q19), and the emitter of the second triode (Q6) is connected to a reference ground; A third MOS transistor (Q20), a base of the second triode (Q6) is connected to the drain of the third MOS transistor (Q20) through a fifth resistor (R17), a source of the third MOS transistor (Q20) is connected to the drain of the first MOS transistor (Q21), the source of the third MOS transistor (Q20) is also connected to the gate of the third MOS transistor (Q20) through a sixth resistor (R14), and the gate of the third MOS transistor (Q20) is also connected to a keyboard state detection end of the keyboard interface through a seventh resistor (R22).
6. The keyboard logic control circuit according to claim 5, characterized in that: The power output logic control circuit also includes: a third triode (Q7), wherein the collector of the third triode (Q7) is connected to the gate of the third MOS tube (Q20), the emitter of the third triode (Q7) is connected to a reference ground, and the base of the third triode (Q7) is connected to a control end of the controller circuit via an eighth resistor (R29); A current limiting switch controller, wherein a power input terminal of the current limiting switch controller is connected to the drain of the second MOS tube (Q19), an output terminal of the current limiting switch controller is connected to a power supply terminal of the keyboard interface to output the keyboard power supply, and an enable terminal of the current limiting switch controller is connected to a control terminal of the controller circuit via a ninth resistor (R31).
7. The keyboard logic control circuit according to claim 3, characterized in that: The power output logic control circuit also includes: a fourth MOS tube (Q18), wherein a source electrode of the fourth MOS tube (Q18) is connected to an output end of the voltage conversion circuit, and a source electrode of the fourth MOS tube (Q18) is also connected to a gate electrode of the fourth MOS tube (Q18) via a tenth resistor (R53); A fourth triode (Q11), wherein the collector of the fourth triode (Q11) is connected to the gate of the fourth MOS tube (Q18), the emitter of the fourth triode (Q11) is connected to the reference ground, the base of the fourth triode (Q11) is connected to the detection signal output end of the Hall detection circuit through an eleventh resistor (R60), and the drain of the fourth MOS tube (Q18) outputs the power supply of the source.
8. The keyboard logic control circuit according to claim 7, characterized in that: The power output logic control circuit also includes: a fifth MOS tube (Q17), wherein the source of the fifth MOS tube (Q17) is connected to the drain of the fourth MOS tube (Q18), and the source of the fifth MOS tube (Q17) is also connected to the gate of the fifth MOS tube (Q17) via a twelfth resistor (R49); A fifth triode (Q36), wherein the collector of the fifth triode (Q36) is connected to the gate of the fifth MOS tube (Q17), the emitter of the fifth triode (Q36) is connected to the reference ground, and the base of the fifth triode (Q36) is also connected to a control end of the controller circuit through a thirteenth resistor (R5194); and the drain of the fifth MOS tube (Q17) is connected to the power supply end of the USB expansion circuit to output the power supply.
9. The keyboard logic control circuit according to claim 8, characterized in that: The power output logic control circuit also includes: A sixth transistor (Q38), wherein the collector of the sixth transistor (Q38) is connected to the gate of the fourth MOS transistor (Q18), the emitter of the sixth transistor (Q38) is connected to the reference ground, the base of the sixth transistor (Q38) is connected to the one control end of the controller circuit through a fourteenth resistor (R5208); and the base of the fifth transistor (Q36) is connected to the interrupt status detection end of the keyboard interface through a fifteenth resistor (R5193).
10. A leather keyboard, characterized in that: include: The keyboard logic control circuit according to any one of claims 1 to 9; A keyboard circuit includes a host control logic communication port and a controller, and the host control logic communication port is used to connect to the keyboard logic control circuit.
