1. Technical Field
The present disclosure relates to a control device and a control system using the same.
2. Description of Related Art
With the development of miniaturization, and the trend towards the portability of electronic devices, a number of functions that are added, such as music, video, e-book reading, to the electronic devices, to make electronic devices user-friendly. In the meantime, adding more functions to the accessories of electronic devices also becomes an increasingly popular trend. However, to achieve complex functions, the accessories often have complex circuits, which will increase the production costs of the accessories.
Many aspects of the embodiments can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
Referring to
Referring to
The control device 10 further includes a number of resistors R1˜Rn and a number of switches SW1˜SWn, and the resistors R1˜Rn and the switches SW1˜SWn cooperatively form a number of current circuits. In the embodiment, the number of the switches SW1˜SWn are corresponding to the number of the buttons 11 respectively.
In the embodiment, the resistors R1˜Rn are connected in series to the first pin 131 of the plug 13, and each two adjacent resistors form a connection node T. The switches SW1˜SWn are respectively connected to one of the connection nodes T and the second pin 132 of the plug 13, or between a last resistor Rn in the series and the second pin 132 of the plug 13. When the control device 10 is connected to the electronic device 20, if one of the buttons 11 is pressed, the switch corresponding to the pressed button is switched on to generate a corresponding conductive current circuit. In the embodiment, when different switch is switched on, the resistors connected to the conductive current circuit is different, namely the resistance of the conductive current circuit is different, which causes the voltage at the voltage detection point C to be different, as a result, different input signals are generated at the voltage detection point C.
In an alternative embodiment, as shown in
The electronic device 20 executes a corresponding function according to the input signal generated at the voltage detection point C. In the embodiment, the electronic device 20 further includes a processing unit 22 and a number of function circuits F1˜Fn. The function circuit F1˜Fn are corresponding to the buttons 11 respectively. When one of the buttons 11 is pressed to generate a corresponding conductive current circuit, the processing unit 22 receives the input signal and activates the corresponding function circuit.
In the embodiment, the processing unit 22 includes an ADCIN pin connected to the voltage detection point C, to detect the voltage of the voltage detection point C, and activates the corresponding function circuit accordingly.
In the embodiment, the voltage of the power source VCC is U0, when the socket 21 remains floating, the voltage detection point C obtains a voltage U0 via the pull-up resistor R0. When the plug 13 connects to the socket 21, if all the switches SW1˜SWn are switched off, the voltage of the voltage detection point C remains U0. If the button corresponding to the switch SWi (i=1, 2, . . . , n) is pressed to generate a conductive current circuit, and the other switches are switched off, the voltage of the voltage detection point C is changed to Ui (or U′i) (i=1, 2, . . . , n) different from U0.
In the embodiment, the electronic device 20 further includes a storage unit 23. The storage unit 23 stores a relation table (not shown), which records the relationships about the voltage Ui (or U′i) (i=1, 2, . . . , n) of the voltage detection point C and the corresponding function circuit Fi (i=1, 2, . . . , n), namely the voltage Ui (or U′i) (i=1, 2, . . . , n) can activate the function circuit Fi (i=1, 2, . . . , n). For example, if the voltage of the voltage detection point C is U3 (or U′3), the processing unit 22 reads the relation table and activates the function circuit F3, then the function circuit F3 executes a corresponding function.
Moreover, it is to be understood that the disclosure may be embodied in other forms without departing from the spirit thereof. Thus, the present examples and embodiments are to be considered in all respects as illustrative and not restrictive, and the disclosure is not to be limited to the details given herein.
Number | Date | Country | Kind |
---|---|---|---|
201010573492.5 | Dec 2010 | CN | national |