1. Technical Field
The present disclosure relates to a switch circuit.
2. Description of Related Art
For protecting information stored in handheld devices, dual systems are used. Users can store important information in one system, and store general information in the other system. Only if the users have to read the important information, the users can operate the system which stores the important information. Software is generally used to switch the handheld device between the two systems. However, there are security risks.
Many aspects of the present 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 embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
The disclosure, including the accompanying drawings, is illustrated by way of example and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
Referring to
The switch 10 is connected to the control circuit 12. The control circuit 12 is connected to a first storage 1 and a second storage 2. The control circuit 12 is further connected to the power supply 16. The control circuit 12 either outputs power from a power supply 16 to the first storage 1 or outputs power from the power supply 16 to the second storage 2 according to the switch 10. The control circuit 12 is further connected to the switch control chip 15. The switch control chip 15 is connected to the processing chip 18. The control circuit 12 further either allows transmitting of data between the processing chip 18 and the first storage 1 or between the processing chip 18 and the second storage 2 according to the switch 10. In one embodiment, the power supply 16 supplies 3.3 volts (V).
Referring to
The first accessory circuit 120 includes a transistor Q1 and a transistor Q3. The second accessory circuit 122 includes a transistor Q2 and a transistor Q4. In one embodiment, the transistors Q1 and Q2 are npn transistors, and the transistors Q3 and Q4 are P-channel metal oxide semiconductor field effect transistors (MOSFETs).
The first throw 1 of the switch 10 is grounded through a resistor R2. The first throw 1 is further connected to a base of the transistor Q1 through a resistor R3. The second throw 3 is grounded through a resistor R4. The second throw 3 is further connected to a base of the transistor Q2 through a resistor R5. An emitter of the transistor Q1 is grounded. A collector of the transistor Q1 is connected to a gate of the transistor Q3 through a resistor R6. The collector of the transistor Q1 is connected to the power supply 3.3V through two resistors R7 and R17 connected in series. A node between the resistors R7 and R17 is grounded through a capacitor C1. A source of the transistor Q3 is connected to the node between the resistors R7 and R17. A drain of the transistor Q3 is grounded through capacitors C2 and C3 connected in parallel. The drain of the transistor Q3 is connected to power terminals VCC0 and VCC1 of the first storage 100 (shown in
An emitter of the transistor Q2 is grounded. A collector of the transistor Q2 is connected to a gate of the transistor Q4 through a resistor R8. The collector of the transistor Q2 is connected to the power supply 3.3V through resistors R9 and R19 connected in series. A node between the resistors R9 and R19 is grounded through a capacitor C4. A source of the transistor Q4 is connected to the node between the resistors R9 and R19. A drain of the transistor Q4 is grounded through capacitors C5 and C6 connected in parallel. The drain of the transistor Q4 is connected to power terminals VCC0 and VCC1 of the second storage 200 (shown in
Referring to
Data terminals 1A, 2A, 3A, and 4A of the first control chip 150 are respectively connected to data terminals T1, T2, T3, and T4 of the processing chip 18. Data terminals 1A, 2A, 3A, and 4A of the second control chip 152 are respectively connected to data terminals T5, T6, T7, and T8 of the processing chip 18. Data terminals 1B1, 2B1, 3B1, and 4B1 of the first control chip 150 are respectively connected to data terminals DQ0, DQ1, DQ2, and DQ3 of the first storage 100. Data terminals 1B1, 2B1, 3B1, and 4B1 of the second control chip 152 are respectively connected to data terminals DQ4, DQ5, DQ6, and DQ7 of the first storage 100. Data terminals 1B2, 2B2, 3B2, and 4B2 of the first control chip 150 are respectively connected to data terminals DQ0, DQ1, DQ2, and DQ3 of the second storage 200. Data terminals 1B2, 2B2, 3B2, and 4B2 of the second control chip 152 are respectively connected to data terminals DQ4, DQ5, DQ6, and DQ7 of the second storage 200.
When the pole 2 contacts the first throw 1, the base of the transistor Q1 receives a high level signal, and the base of the transistor Q2 receives a low level signal. At this time, the transistors Q1 and Q3 are turned on. The drain of the transistor Q3 outputs a high level signal. The first storage 100 is powered on. The transistors Q2 and Q4 are turned off. The drain of the transistor Q4 outputs a low level signal. The second storage 200 is not powered on.
In addition, each of the control terminals S of the first control chip 150 and the second control chip 152 receives a low level signal. Moreover, each of the enable terminals OE# of the first control chip 150 and the second control chip 152 is grounded. At this time, the data terminals 1A, 2A, 3A, and 4A of the first control chip 150 are respectively connected to the data terminals 1B1, 2B1, 3B1, and 4B1 of the first control chip 150. The data terminals 1A, 2A, 3A, and 4A of the second control chip 152 are respectively connected to the data terminals 1B1, 2B1, 3B1, and 4B1 of the second control chip 152. As a result, the data terminals T1-T8 of the processing chip 18 are respectively connected to the data terminals DQ0-DQ7 of the first storage 100. In other words, data can be transmitted between the first storage 100 and the processing chip 18.
When the pole 2 contacts the second throw 3, the base of the transistor Q1 receives a low level signal, and the base of the transistor Q2 receives a high level signal. At this time, the transistors Q1 and Q3 are turned off. The drain of the transistor Q3 outputs a low level signal. The first storage 100 is not powered on. The transistors Q2 and Q4 are turned on. The drain of the transistor Q4 outputs a high level signal. The second storage 200 is powered on.
In addition, each of the control terminals S of the first control chip 150 and the second control chip 152 receives a high level signal. Moreover, each of the enable terminals OE# of the first control chip 150 and the second control chip 152 is grounded. At this time, the data terminals 1A, 2A, 3A, and 4A of the first control chip 150 are respectively connected to the data terminals 1B2, 2B2, 3B2, and 4B2 of the first control chip 150. The data terminals 1A, 2A, 3A, and 4A of the second control chip 152 are respectively connected to the data terminals 1B2, 2B2, 3B2, and 4B2 of the second control chip 152. As a result, the data terminals T1-T8 of the processing chip 18 are respectively connected to the data terminals DQ0-DQ7 of the second storage 200. In other words, data can be transmitted between the second storage 200 and the processing chip 18.
The foregoing description of the exemplary embodiments of the disclosure has been presented only for the purposes of illustration and description and is not intended to be exhaustive or to limit the disclosure to the precise forms disclosed. Many modifications and variations are possible in light of the above everything. The embodiments were chosen and described in order to explain the principles of the disclosure and their practical application so as to enable others of ordinary skill in the art to utilize the disclosure and various embodiments and with various modifications as are suited to the particular use contemplated. Alternative embodiments will become apparent to those of ordinary skills in the art to which the present disclosure pertains without departing from its spirit and scope. Accordingly, the scope of the present disclosure is defined by the appended claims rather than the foregoing description and the exemplary embodiments described therein.
Number | Date | Country | Kind |
---|---|---|---|
201110076817.3 | Mar 2011 | CN | national |