1. Technical Field
The present disclosure relates to a keyboard, and particularly, to a keyboard circuit.
2. Description of Related Art
Keyboards are important input devices for computers, and as the utilities of portable devices become more and more powerful, people need to input a large amount of characters into the portable device with keyboards. However, typing with the built in keyboards of the portable devices could seriously reduce the input speed and comfort for the user, and the keyboards of the computers are not compatible with portable devices. Moreover, a traditional keyboard needs an independent power supply circuit which result in high power-consumption.
Therefore, what is needed is a power-saving keyboard and a keyboard circuit which are compatible with both the computer and the portable device.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of keyboards and keyboard circuits. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
Referring to
The keyboard circuit 100 includes a first communication circuit 20 and a second communication circuit 30 connected between the microprocessor 10 and the interface 8. The microprocessor 10 initiates the first communication circuit 20 when the interface 8 is connected with the computer 15, and initiates the second communication circuit 30 when connected with the portable device 14. The interface 8 can be a USB interface in the present embodiment.
Referring to
The interface 8 further includes a VBUS pin for supplying power to a VDD pin of the microprocessor 10 through a diode D2 and a resistor R2, wherein the anode of the diode D2 is connected with the VBUS pin, and the cathode is connected with the resistor R2, and the VBUS pin is grounded through a capacitor C3. The VDD pin is grounded through a resistor R3 and the capacitor C2, wherein a RST pin is connected to a connection node between the resistor R3 and the capacitor C2.
The CID pin of the interface 8 supplies power to the VDD pin of the microprocessor 10 through a diode D1, wherein the anode of the diode D1 is connected to the CID pin, and the cathode is connected to the VDD pin. The cathode of the diode D1 is grounded through a capacitor C1.
The microprocessor 10 is capable of generating key codes corresponding to the keystrokes on the keyboard, wherein the key codes are transmitted to the computer 15 through the first communication circuit 20 or to the portable device 14 through the second communication circuit 30. When the key codes are transmitted to the portable device 14 through the second communication circuit 30, the capacitor C1 rather than the CID pin supplies power to the VDD pin of the microprocessor 10, wherein the capacitor C1 is charged by the CID pin when the second communication circuit 30 is not in use.
The detection circuit 9 includes a resistor R4 and a resistor R5 connected in series, wherein the resistor R4 and resistor R5 are connected between the VBUS pin and ground. A high logic level signal is generated between the resistor R4 and the resistor R5 when the computer 15 is connected to the interface 8. A voltage detection pin 11 of the microprocessor 10 is connected to the detection circuit 9 to detect the logic level signal. The microprocessor 10 analyzes the logic level signal transmitted from the voltage detection pin 11 to determine whether the logic level signal is a high logic level signal or a low logic level signal, wherein the high logic level indicates the connection of the computer 15 and the low logic level signal indicates the connection of the portable device 14.
Referring to
In step 22, the microprocessor 10 determines whether the logic level signal is a high logic level signal or a low logic level signal.
In step 23, if the logic level signal is a high logic level signal, the microprocessor 10 initiates the first communication circuit 20 to communicate with the computer 15.
In step 24, if the logic level signal is a low level signal, the microprocessor 10 initiates the second communication circuit 30 to communicate with the portable device 14.
In step 25, the microprocessor 10 detects the keystrokes on the keyboard
In step 26, the microprocessor 10 determines whether the keystrokes are received.
In step 27, if the keystrokes are received, the keyboard enters the working mode.
In step 28, if no keystroke is received, the keyboard enters the sleep mode.
In step 29, the microprocessor 10 generates the key codes corresponding to the keystrokes on the keyboard and transmits the key codes to the computer 15 or the portable device 14.
Therefore, the keyboard and the keyboard circuit 100 can be used with the computer 15 or the portable device 14 by using the first communication circuit 20 or the second communication circuit 30, and the keyboard is capable of entering the sleep mode for saving power.
Number | Date | Country | Kind |
---|---|---|---|
2010 1 0605383 | Dec 2010 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
5865546 | Ganthier et al. | Feb 1999 | A |
6256682 | Gudan et al. | Jul 2001 | B1 |
6393509 | Yamada et al. | May 2002 | B2 |
6727952 | Hirata et al. | Apr 2004 | B1 |
20030052164 | Higginson | Mar 2003 | A1 |
20030065858 | Lin et al. | Apr 2003 | A1 |
20030146902 | Sandbach et al. | Aug 2003 | A1 |
20030200359 | Fernald | Oct 2003 | A1 |
20060047982 | Lo et al. | Mar 2006 | A1 |
20080167828 | Terlizzi et al. | Jul 2008 | A1 |
20100174926 | Huang et al. | Jul 2010 | A1 |
20100281187 | Kim et al. | Nov 2010 | A1 |
20110276734 | Helfrich | Nov 2011 | A1 |
Number | Date | Country |
---|---|---|
1425968 | Jun 2003 | CN |
Number | Date | Country | |
---|---|---|---|
20120162079 A1 | Jun 2012 | US |