Disclosure of Invention
The invention aims to provide a smart card and a power supply switching circuit of the smart card, and aims to solve the problem that the smart card system works unstably because the power supply requirements of loads with higher power supply voltage requirements cannot be met in the traditional technical scheme.
A power switching circuit of a smart card connected to a load of the smart card, the power switching circuit of the smart card comprising:
7816 contacts configured to electrically connect with a contact reader for communication;
An NFC antenna configured to wirelessly communicate with an NFC reader;
A first voltage conversion unit connected to the 7816 contact and configured to convert a contact voltage output from the 7816 contact into a first voltage;
A second voltage conversion unit connected with the NFC antenna and configured to convert an antenna voltage output by the NFC antenna into a second voltage;
and the switching unit is connected with the first voltage conversion unit and the second voltage conversion unit respectively and is configured to select the first voltage or the second voltage to supply power to the load.
In one embodiment, the comparing unit is connected between the 7816 contact and the NFC antenna, and is configured to compare the contact voltage with the antenna voltage, and output a power to the switching unit according to a comparison result.
In one embodiment, the comparing unit includes a first diode, a positive electrode of the first diode is connected to the 7816 contact, a negative electrode of the first diode is connected to the NFC antenna, and the NFC antenna is connected to a power end of the switching unit.
In one embodiment, the first voltage conversion unit includes a first voltage conversion chip, an input end of the first voltage conversion chip is connected to the 7816 contact, and an output end of the first voltage conversion chip is connected to the switching unit.
In one embodiment, the second voltage conversion unit includes a second voltage conversion chip, an input end of the second voltage conversion chip is connected to the NFC antenna, and an output end of the second voltage conversion chip is connected to the switching unit.
In one embodiment, the switching unit includes a switching chip, a first input end of the switching chip is connected to the first voltage conversion unit, a second input end of the switching chip is connected to the second voltage conversion unit, a control end of the switching chip is connected to an output end of the first voltage conversion unit, and an output end of the switching chip is connected to the load.
In one embodiment, the power supply switching circuit of the smart card further includes a second diode, an anode of the second diode is connected to the output end of the first voltage conversion unit, a cathode of the second diode is connected to the NFC antenna, and a cathode of the second diode is further connected to the power supply end of the switching unit.
In addition, a smart card is provided, and the smart card comprises a load and a power supply switching circuit of the smart card connected with the load.
According to the power supply switching circuit of the smart card, the contact voltage output by the 7816 contact is converted into the first voltage through the first voltage conversion unit, the antenna voltage output by the NFC antenna is converted into the second voltage through the second voltage conversion unit, and the switching unit selects the first voltage or the second voltage to supply power to the load. The switching unit with lower power consumption is used for switching the power supply of the load, so that the power supply requirement of the load is ensured, and the stability of the system of the intelligent card is ensured.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Fig. 1 is a schematic diagram of a power switching circuit of a smart card according to a preferred embodiment of the present invention, and for convenience of explanation, only the portions related to the present embodiment are shown, which are described in detail below:
As shown in fig. 1, the power switching circuit 1 of the smart card is connected to the load 2 of the smart card, and the power switching circuit 1 of the smart card includes a 7816 contact 10, an NFC antenna 20, a first voltage converting unit 30, a second voltage converting unit 40, and a switching unit 50. The switching unit 50 is used for judging the access power supply and gating the corresponding power supply to the rear-end load 2, so that the power supply type accessed according to the use scene of the smart card is realized, the corresponding power supply is selected, the switching of the load power supply is performed through the switching unit with lower power consumption, the circuit loss is reduced, the power supply requirement of the load is ensured, and the stability of the system of the smart card is ensured.
Wherein the 7816 contacts 10 are configured to electrically connect to communicate with the contact reader to provide the smart card with the required power while enabling communication of the smart card with the contact reader, the 7816 contacts 10 communicating with the contact reader satisfying the 7816 protocol. The NFC antenna 20 is configured to wirelessly communicate with an NFC reader through which the smart card communicates with the NFC reader, and to obtain data and power through the induction coil.
As shown in fig. 2, the first voltage conversion unit 30 is connected to the 7816 contact 10 and is configured to convert the contact voltage 7816_vcc output by the 7816 contact 10 into a first voltage card_vcc, where the first voltage conversion unit 30 includes a first voltage conversion chip U1, an input terminal of the first voltage conversion chip U1 is connected to the 7816 contact 10, and an output terminal of the first voltage conversion chip U1 is connected to the switching unit 50. Further, the first voltage conversion unit 30 further includes a first capacitor C1 and a second capacitor C2, the first capacitor C1 is connected between the input terminal of the first voltage conversion chip U1 and ground, and the second capacitor C2 is connected between the output terminal of the first voltage conversion chip U1 and ground.
As shown in fig. 3, the second voltage conversion unit 40 is connected to the NFC antenna 20 and is configured to convert the antenna voltage ant_vcc output by the NFC antenna 20 into a second voltage nfc_vcc, where the second voltage conversion unit 40 includes a second voltage conversion chip U2, an input end of the second voltage conversion chip U2 is connected to the NFC antenna 20, and an output end of the second voltage conversion chip U2 is connected to the switching unit 50. Further, the second voltage converting unit 40 further includes a third capacitor C3 and a fourth capacitor C4, the third capacitor C3 is connected between the input terminal of the second voltage converting chip U2 and ground, and the fourth capacitor C4 is connected between the output terminal of the second voltage converting chip U2 and ground.
As shown in fig. 4, the switching unit 50 is connected to the first voltage converting unit 30 and the second voltage converting unit 40, respectively, and is configured to select the first voltage card_vcc or the second voltage nfc_vcc to supply power to the load 2. The switching unit 50 includes a switching chip U3, a first input terminal of the switching chip U3 is connected to the first voltage converting unit 30, a second input terminal of the switching chip U3 is connected to the second voltage converting unit 40, a control terminal of the switching chip U3 is connected to an output terminal of the first voltage converting unit 30, and an output terminal of the switching chip U3 is connected to the load 2. The first voltage converting unit 30 and the second voltage converting unit 40 are connected to the switching unit 50 for gating, the first voltage card_vcc converted from the contact voltage 7816_vcc output by the 7816 contact 10 is the control logic of the switching chip U3, when the 7816 contact 10 is powered on, the switching unit 50 connects the first voltage card_vcc to the load 2,7816, and when the contact 10 is not powered on, the switching unit 50 connects the second voltage nfc_vcc to the load 2.
Further, a comparing unit 60 is further included, and the comparing unit 60 is between the 7816 contact 10 and the NFC antenna 20, and is configured to compare the contact voltage 7816_vcc with the antenna voltage ant_vcc, and output a power to the switching unit 50 according to a comparison result of the comparing unit 60. The comparing unit 60 includes a first diode D1, the positive electrode of the first diode D1 is connected to the 7816 contact 10, the negative electrode of the first diode D1 is connected to the NFC antenna 20, and the NFC antenna 20 is connected to the power end of the switching unit 50.
When the smart card is inserted into the contact card reader, 7816 contact 10 is connected to electricity, contact voltage 7816_vcc has voltage, antenna voltage ant_vcc has no voltage, first diode D1 is turned on, and switching unit 50 is powered by contact voltage 7816_vcc via first diode D1. At this time, the logic selection pin of the switching chip U3 is high, and the first voltage card_vcc output by the first voltage conversion unit 30 is connected to the load 2 to supply power to the load 2.
When the CARD is close to the NFC reader, the 7816 contact 10 has no voltage, the NFC antenna 20 senses and outputs an antenna voltage ant_vcc, the contact voltage 7816_vcc is 0, the first diode D1 is turned off, the antenna voltage ant_vcc is converted into a second voltage nfc_vcc by the second voltage conversion unit 40, meanwhile, the antenna voltage ant_vcc is supplied to the switching unit 50, the first voltage card_vcc is 0, the logic selection pin of the switching chip U3 is low, the second voltage nfc_vcc is connected to the load 2 to supply power to the load 2, and at this time, the first voltage conversion unit 30 does not work.
In one embodiment, the power switching circuit 1 of the smart card further includes a second diode D2, an anode of the second diode D2 is connected to the output end of the first voltage conversion unit 30, a cathode of the second diode D2 is connected to the NFC antenna 20, and a cathode of the second diode D2 is further connected to the power end of the switching unit 50. When the smart CARD is inserted into the contact CARD reader, the 7816 contact 10 is connected to the power supply, the contact voltage 7816_vcc has a voltage, the antenna voltage ant_vcc has no voltage, the power supply terminal of the switching unit 50 is powered by the first voltage card_vcc through the second diode D2, at this time, the logic selection pin of the switching chip U3 is high, and the first voltage card_vcc output by the first voltage conversion unit 30 is connected to the load 2 to supply power to the load 2.
When the CARD is close to the NFC reader, the 7816 contact 10 has no voltage, the NFC antenna 20 senses and outputs an antenna voltage ant_vcc, the contact voltage 7816_vcc is 0, the second diode D2 is turned off, the antenna voltage ant_vcc is converted into a second voltage nfc_vcc by the second voltage conversion unit 40, meanwhile, the antenna voltage ant_vcc is supplied to the switching unit 50, the first voltage card_vcc is 0, the logic selection pin of the switching chip U3 is low, the second voltage nfc_vcc is connected to the load 2 to supply power to the load 2, and at this time, the first voltage conversion unit 30 does not work.
In one embodiment, the first diode D1 and the second diode D2 are both present, when the smart card is inserted into the contact card reader, the 7816 contact 10 is connected, the contact voltage 7816_vcc has a voltage, the antenna voltage ant_vcc has no voltage, the first diode D1 is turned on, the second diode D2 is turned off, and the switching unit 50 is powered by the contact voltage 7816_vcc through the first diode D1. At this time, the logic selection pin of the switching chip U3 is high, and the first voltage card_vcc output by the first voltage conversion unit 30 is connected to the load 2 to supply power to the load 2.
When the CARD is close to the NFC reader, the 7816 contact 10 has no voltage, the NFC antenna 20 senses and outputs an antenna voltage ant_vcc, the contact voltage 7816_vcc is 0, the first diode D1 is turned off, the second diode D2 is turned off, the antenna voltage ant_vcc is converted into a second voltage nfc_vcc by the second voltage conversion unit 40, meanwhile, the antenna voltage ant_vcc is used for supplying power to the switching unit 50, the first voltage card_vcc is 0, the logic selection pin of the switching chip U3 is low, the second voltage nfc_vcc is connected to the load 2 to supply power to the load 2, and at this time, the first voltage conversion unit 30 does not work.
On the basis of the power supply switching circuit 1 of the smart card, the embodiment of the invention also provides the smart card, which comprises a load and the power supply switching circuit of the smart card connected with the load.
In summary, the embodiment of the present invention provides a smart card and a power switching circuit 1 of the smart card, wherein the power switching circuit 1 of the smart card includes a 7816 contact 10, an NFC antenna 20, a first voltage converting unit 30, a second voltage converting unit 40, and a switching unit 50. The switching unit 50 is used for judging the access power supply and gating the corresponding power supply to the rear-end load 2, so that the power supply type accessed according to the use scene of the smart card is realized, the corresponding power supply is selected, the switching of the load power supply is performed through the switching unit with lower power consumption, the circuit loss is reduced, the power supply requirement of the load is ensured, and the stability of the system of the smart card is ensured.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.