RFID card reader circuits and electronics

By designing a combined RFID card reading circuit, using the audio encoding and decoder and processor in electronic devices to process baseband signals, the problem of large area occupied by the RFID circuit is solved, and more efficient RFID recognition is achieved and circuit cost is reduced.

CN113962235BActive Publication Date: 2024-11-26VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111253635.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-27
Publication Date
2024-11-26
Estimated Expiration
2041-10-27

AI Technical Summary

Technical Problem

The existing RFID circuits occupy a large area, which leads to the need to use discrete components to build RFID circuits in electronic devices, increasing the circuit layout area.

Method used

An RFID card reading circuit was designed, and the signal processing is achieved by combining RFID coils, coil driving circuits, coil resonant capacitors and envelope detection circuits, and the audio encoding and decoder in electronic devices is used to perform signal processing to realize the filtering of baseband signals and Transmission reduces the number of components in the circuit and reduces the circuit area.

Benefits of technology

Without additional use of discrete components, multiplexing audio encoding and decoders and processors in electronic devices reduces the number of components in the circuit, reduces the circuit area, and improves the efficiency and performance of RF identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113962235B_ABST
    Figure CN113962235B_ABST
Patent Text Reader

Abstract

The present application discloses an RFID card reader circuit and an electronic device. The RFID card reader circuit includes: an RFID coil, a coil driving circuit, a coil resonant capacitor and an envelope detection circuit. The first end of the RFID coil is connected to the output end of the coil driving circuit, the input end of the coil driving circuit is connected to the first control end of the processor in the electronic device, the coil driving circuit is used to receive a driving signal provided by the processor through the first control end, and output a first voltage signal to the first end of the RFID coil under the action of the driving signal. The RFID coil is used to form an induced magnetic field for inducing an external card under the action of the first voltage signal; one end of the coil resonant capacitor is connected to the second end of the RFID coil, and the other end of the coil resonant capacitor is electrically connected to the DC voltage end; the input end of the envelope detection circuit is connected to the second end of the RFID coil, and the output end of the envelope detection circuit is connected to the receiving end of the processor through the audio codec in the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of radio frequency identification technology, and specifically relates to an RFID card reading circuit and electronic equipment. Background Art

[0002] Radio Frequency Identification (RFID) technology is a near-field communication identification technology with a carrier frequency of 125K-135K. Due to its low cost and fast identification, it is widely used in access control, transportation and other scenarios. Wireless charging technology in electronic devices (for example, mobile devices such as mobile phones) is a wireless energy transmission technology based on a carrier frequency of 110K-190KHz. In order to achieve correct energy transmission, it is also accompanied by communication technology.

[0003] At present, in order to realize radio frequency identification, electronic devices need to use additional discrete components to build radio frequency identification circuits, which easily leads to a large circuit layout area, that is, the built circuit occupies a large area. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide an RFID card reader circuit and an electronic device, which can solve the problem that the existing radio frequency identification circuit occupies a large area.

[0005] In a first aspect, the embodiment of the present application provides that the RFID card reader circuit includes: an RFID coil, a coil drive circuit, a coil resonant capacitor and an envelope detection circuit, wherein:

[0006] The first end of the RFID coil is connected to the output end of the coil driving circuit, the input end of the coil driving circuit is connected to the first control end of the processor in the electronic device, the coil driving circuit is used to receive the driving signal provided by the processor through the first control end, and output a first voltage signal to the first end of the RFID coil under the action of the driving signal, and the RFID coil is used to form an induction magnetic field for inducing an external card under the action of the first voltage signal;

[0007] One end of the coil resonant capacitor is connected to the second end of the RFID coil, and the other end of the coil resonant capacitor is electrically connected to the low voltage end;

[0008] The input end of the envelope detection circuit is connected to the second end of the RFID coil, and the output end of the envelope detection circuit is connected to the receiving end of the processor through the audio codec in the electronic device. The envelope detection circuit is used to filter the carrier signal in the signal output by the second end of the RFID coil to obtain a baseband signal, and output the baseband signal to the audio codec.

[0009] Optionally, the audio codec includes a plurality of microphone interfaces;

[0010] The output end of the envelope detection circuit is connected to a target microphone interface, the output end of the audio codec is connected to a receiving end of the processor, and the target microphone interface is any one of the multiple microphone interfaces;

[0011] The envelope detection circuit is used to transmit the baseband signal to the audio codec through the target microphone interface.

[0012] Optionally, the RFID card reading circuit further includes a first switch;

[0013] The output end of the envelope detection circuit is connected to the first selection end of the first switch, the fixed end of the first switch is connected to the target microphone interface of the audio codec, the second selection end of the first switch is connected to a microphone, the target microphone interface is any one of the multiple microphone interfaces of the audio codec, and the second control end of the processor is connected to the control end of the first switch;

[0014] The first switch is used to receive a control signal provided by the processor through its second control terminal, and control the connection state of the first switch according to the control signal. When the first selection terminal is connected to the fixed terminal, the envelope detection circuit is connected to the audio codec through the first switch, and the baseband signal is transmitted to the audio codec through the first switch. When the second selection terminal is connected to the fixed terminal, the microphone is connected to the audio codec through the first switch, and the output signal of the microphone is transmitted to the audio codec through the first switch.

[0015] Optionally, the audio codec further includes a codec, a first analog-to-digital converter, a first operational amplifier, and a multi-way selection switch;

[0016] The target microphone interface is connected to the input end of the first op amp through the multi-way selection switch, the output end of the first op amp is connected to the input end of the first analog-to-digital converter, the output end of the first analog-to-digital converter is connected to the first input end of the codec, and the output end of the codec is connected to the receiving end of the processor;

[0017] When the target microphone interface is connected to the input end of the first op amp through the multi-way selection switch, the target microphone interface transmits the baseband signal outputted from the output end of the envelope detection circuit to the input end of the first op amp, the first op amp is used to amplify the baseband signal and transmit it to the first analog-to-digital converter, the first analog-to-digital converter is used to perform analog-to-digital conversion on the amplified baseband signal to obtain a first target digital signal, and transmit the first target digital signal to the codec, the codec is used to decode the first target digital signal and transmit it to the processor.

[0018] Optionally, the audio codec further includes N second analog-to-digital converters and N second operational amplifiers, and the codec includes N second input terminals, where N is a positive integer;

[0019] Any microphone interface among the remaining microphone interfaces is connected to an input end of a second op amp through the multi-way switch, an output end of the second op amp is connected to a second input end of the codec through a second analog-to-digital converter, and the second analog-to-digital converters connected to the output ends of the N second op amps are different, and the second input ends connected to the N second analog-to-digital converters are different, and the remaining microphone interfaces are interfaces among the multiple microphone interfaces except the target microphone interface;

[0020] When any one of the remaining microphone interfaces is connected to the input end of the second op amp via the multi-way selection switch, the second op amp is used to amplify the signal transmitted by any one of the remaining microphone interfaces, the second analog-to-digital converter is used to perform analog-to-digital conversion on the amplified signal output by the second op amp to obtain a second target digital signal, and transmit the second target digital signal to the codec, and the codec is used to decode the second target digital signal and transmit it to the processor.

[0021] Optionally, the coil driving circuit includes an N-type metal oxide semiconductor (NMOS) transistor and a P-type metal oxide semiconductor (PMOS) transistor;

[0022] The gate of the NMOS transistor is connected to the first control terminal of the processor, the first electrode of the NMOS transistor is grounded, the second electrode of the NMOS transistor is connected to the first electrode of the PMOS transistor, the gate of the PMOS transistor is connected to the first control terminal of the processor, and the second electrode of the PMOS transistor is connected to a power supply, wherein the first end of the RFID coil is connected to the second electrode of the NMOS transistor and the first electrode of the PMOS transistor in the coil driving circuit.

[0023] Optionally, the coil driving circuit includes an NPN transistor and a PNP transistor;

[0024] The base of the PNP transistor is connected to the first control terminal of the processor, the first pole of the PNP transistor is grounded, the second pole of the PNP transistor is connected to the second pole of the NPN transistor, the base of the NPN transistor is connected to the first control terminal of the processor, and the first pole of the NPN transistor is connected to a power supply, wherein the first end of the RFID coil is connected to the second pole of the PNP transistor and the second pole of the NPN transistor.

[0025] Optionally, the envelope detection circuit includes a first diode, a second diode, a third diode, a first resistor, a second resistor, a first capacitor, a second capacitor and a third capacitor;

[0026] The anode of the first diode is connected to the second end of the RFID coil, the cathode of the first diode is respectively connected to one end of the first resistor, one end of the first capacitor and one end of the second capacitor, the other end of the first resistor is grounded, the other end of the first capacitor is grounded, the other end of the second capacitor is respectively connected to one end of the second resistor, one end of the third capacitor, the cathode of the second diode and the anode of the third diode, the other end of the second resistor, the other end of the third capacitor, the anode of the second diode and the cathode of the third diode are all grounded, and the cathode of the second diode is connected to the receiving end of the processor through the audio codec.

[0027] Optionally, the RFID card reading circuit further includes a third resistor, and the second end of the RFID coil is connected to the anode of the first diode through the third resistor.

[0028] In a second aspect, an embodiment of the present application further provides an electronic device, including an audio codec, a processor, and the above-mentioned RFID card reading circuit.

[0029] In the RFID card reader circuit of this embodiment, the coil driving circuit is used to receive the driving signal, and output the first voltage signal to the first end of the RFID coil under the action of the driving signal, the RFID coil is used to form an induced magnetic field for sensing the external card under the action of the first voltage signal, and the envelope detection circuit is used to filter the carrier signal in the signal output from the second end of the RFID coil to obtain the baseband signal, and output the baseband signal to the audio codec. In the RFID card reader circuit of this embodiment, the input end of the envelope detection circuit is connected to the second end of the RFID coil, and the output end of the envelope detection circuit is connected to the receiving end of the processor through the audio codec in the electronic device, so as to transmit the filtered baseband signal to the processor through the audio codec, that is, the scheme of this embodiment does not need to use additional discrete components, the envelope detection circuit reuses the audio codec in the electronic device to be connected to the receiving end of the processor, and reuses the function in the audio codec to process the output signal of the envelope detection circuit and transmit it to the processor, which can reduce the number of components in the circuit, thereby reducing the circuit occupied area. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is one of the structural diagrams of the RFID circuit provided in the embodiment of the present application;

[0031] Figure 2 This is the second structural diagram of the RFID circuit provided in the embodiment of the present application;

[0032] Figure 3 This is the third structural diagram of the RFID circuit provided in the embodiment of the present application;

[0033] Figure 4 It is one of the structural diagrams of the coil driving circuit in the RFID circuit provided in the embodiment of the present application;

[0034] Figure 5 This is the second structural diagram of the coil driving circuit in the RFID circuit provided in the embodiment of the present application;

[0035] Figure 6 is a structural diagram of an envelope detection circuit in an RFID circuit provided in an embodiment of the present application;

[0036] Figure 7 It is a graph of speech signals recorded by a microphone;

[0037] Figure 8 is a baseband signal diagram outputted by the second end of the envelope detection circuit in the RFID circuit provided in the embodiment of the present application;

[0038] Fig. 9 It is a structural diagram of the audio codec provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0040] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally a class, and the number of objects is not limited. For example, the target object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0041] The following is a detailed description of the identification method provided in the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0042] like Figure 1 As shown, the present application provides a radio frequency identification RFID card reader circuit according to an embodiment, the RFID card reader circuit includes: an RFID coil 110, a coil driving circuit 120, a coil resonant capacitor 130 and an envelope detection circuit, wherein:

[0043] The first end of the RFID coil 110 is connected to the output end of the coil driving circuit 120, and the input end of the coil driving circuit 120 is connected to the first control end of the processor 220 in the electronic device. The coil driving circuit 120 is used to receive a driving signal provided by the processor 220 through the first control end, and output a first voltage signal to the first end of the RFID coil 110 under the action of the driving signal. The RFID coil 110 is used to form an induced magnetic field for sensing an external card under the action of the first voltage signal;

[0044] One end of the coil resonant capacitor 130 is connected to the second end of the RFID coil 110, and the other end of the coil resonant capacitor 130 is electrically connected to the low voltage end;

[0045] The input end of the envelope detection circuit 140 is connected to the second end of the RFID coil 110, and the output end of the envelope detection circuit 140 is connected to the receiving end of the processor 220 through the audio codec 210 in the electronic device. The envelope detection circuit 140 is used to filter the carrier signal in the signal output from the second end of the RFID coil 110 to obtain a baseband signal, and output the baseband signal to the audio codec 210.

[0046] It should be noted that the low voltage end may be a DC low voltage end. As an example, the low voltage end may be a ground end, that is, the other end of the coil resonant capacitor 130 may be grounded. The envelope detection circuit 140 may demodulate the low frequency signal (baseband signal) from the signal output from the second end of the RFID coil 110. It can be understood that the envelope detection circuit 140 has a low pass filtering function.

[0047] If there is no external card close to the RFID coil 110, the coil resonant capacitor 130 will resonate with the low-frequency RFID coil 110, and a sine wave with a stable amplitude will be displayed on the coil resonant capacitor 130. For example, the oscillation frequency can be 125khz or 135khz. Since the envelope detection circuit 140 has a low-pass filtering function, the carrier signal (for example, 125khz) will be filtered out. At this time, the envelope detection circuit 140 outputs a straight line to the audio codec 210, and it can be understood that the baseband signal is empty. If there is a card close to the induced magnetic field of the RFID coil 110, the resonant oscillation voltage formed by the coil resonant capacitor 130 and the RFID coil 110 will change regularly, that is, the signal output from the second end of the RFID coil 110 will change regularly. After the signal is filtered by the envelope detection circuit 140, the envelope detection circuit 140 outputs the filtered baseband signal to the audio codec 210. The audio codec 210 (CODEC) is usually composed of an op amp, an ADC (analog-to-digital converter), a DAC (digital-to-analog converter), etc. It is mainly used for MIC (microphone 230) recording and speaker driving. It can amplify the signal, perform analog-to-digital conversion and digital-to-analog conversion, etc. Because electronic devices need to use microphone 230 to pick up sound, audio CODEC 210 is an important configuration in existing electronic devices.

[0048] In the RFID card reader circuit of this embodiment, the coil driving circuit 120 is used to receive a driving signal and output a first voltage signal to the first end of the RFID coil 110 under the action of the driving signal. The RFID coil 110 is used to form an induced magnetic field for sensing an external card under the action of the first voltage signal. The envelope detection circuit 140 is used to filter the carrier signal in the signal output from the second end of the RFID coil 110 to obtain a baseband signal, and output the baseband signal to the audio codec 210. In the RFID card reader circuit of this embodiment, the input end of the envelope detection circuit 140 is connected to the second end of the RFID coil 110, and the output end of the envelope detection circuit 140 is connected to the receiving end of the processor 220 through the audio codec 210 in the electronic device, so as to transmit the filtered baseband signal to the processor 220 through the audio codec 210. That is, this embodiment does not need to use additional discrete components. The envelope detection circuit 140 reuses the audio codec 210 in the electronic device to be connected to the receiving end of the processor 220, and the function in the multiplexed audio codec 210 is used to process the output signal of the envelope detection circuit 140 and transmit it to the processor 220, which can reduce the number of components in the circuit, thereby reducing the circuit occupation area.

[0049] like Figure 2 As shown, in one embodiment, the audio codec includes a plurality of microphone interfaces;

[0050] The output end of the envelope detection circuit 140 is connected to the target microphone interface J1, the output end of the audio codec 210 is connected to the receiving end of the processor 220, and the target microphone interface J1 is any one of the multiple microphone interfaces;

[0051] The envelope detection circuit 140 is used to transmit the baseband signal to the audio codec 210 through the target microphone interface J1.

[0052] The output end of the envelope detection circuit 140 multiplexes the target microphone interface J1 of the audio codec 210 of the electronic device to transmit the output signal thereof to the audio codec 210. The audio codec 210 processes the signal output from the output end of the envelope detection circuit 140 received through the target microphone J1 and transmits it to the processor 220. For example, the audio codec 210 amplifies and performs analog-to-digital conversion on the signal and transmits it to the processor 220. There is no need to set up an additional interface to transmit the signal from the output end of the envelope detection circuit 140, saving circuit cost. That is, considering that the audio CODEC 210 needs to switch the MIC audio path and the RFID card reader number path in a timely manner, if the audio CODEC 210 has a spare microphone interface, the RFID card reader number path and the MIC path are allowed to be set independently. In this case, there is no need to set up an additional selection switch. In addition, it should be noted that among the remaining microphone interfaces except the target microphone interface J1 among the multiple microphone interfaces, each microphone interface can be connected to a corresponding microphone 230.

[0053] like Figure 3 As shown, in one embodiment, the RFID card reading circuit further includes a first switch 150;

[0054] The output end of the envelope detection circuit 140 is connected to the first selection end of the first switch 150, the fixed end of the first switch 150 is connected to the target microphone interface J1 of the audio codec 210, the second selection end of the first switch 150 is connected to the microphone 230, the target microphone interface J1 is any one of the multiple microphone interfaces of the audio codec 210, and the second control end of the processor 220 is connected to the control end of the first switch 150;

[0055] The first switch 150 is used to receive a control signal provided by the processor 220 through its second control terminal, and control the connection state of the first switch 150 according to the control signal. When the first selection terminal is connected to the fixed terminal, the envelope detection circuit 140 is connected to the audio codec 210 through the first switch 150, and the baseband signal is transmitted to the audio codec 210 through the first switch 150. When the second selection terminal is connected to the fixed terminal, the microphone 230 is connected to the audio codec 210 through the first switch 150, and the output signal of the microphone 230 is transmitted to the audio codec 210 through the first switch 150. The output terminal of the audio codec 210 is connected to the receiving terminal of the processor 220, and the audio codec 210 can process the signal at the output terminal of the envelope detection circuit 140 or the output signal of the microphone 230 and transmit it to the receiving terminal of the processor 220.

[0056] In this embodiment, considering that the CODEC may not have enough microphone interfaces, the RFID card reading and audio MIC recording functions need to be used in a time-sharing manner. For example, when the card needs to be read, the processor 220 (which can be the application processor 220) controls the first switch 150 to switch the audio CODEC 210 path to the envelope detection circuit 140 of the RFID circuit to achieve amplification and analog-to-digital conversion of the RFID card reading baseband signal; when voice functions such as recording need to be implemented, the processor 220 switches the first switch 150 to the audio main microphone 230 path to achieve normal voice functions.

[0057] It should be noted that audio signals are usually within the frequency range of 20Hz to 20KHz, and the operational amplifier and analog-to-digital converter of the audio codec 210 are designed based on this range, which can amplify the signal within this frequency range, and send it to the processor 220 for processing after the analog-to-digital conversion is completed; and the card reading function of the low-frequency RFID is that after the coil emits a 125KHz or 134.2KHz carrier, the external card forms a load modulation at a rate of about 1.953KHz on the coil induction. When reading the card, the signal will pass through the envelope detection circuit 140, which will filter out most of the original carrier, leaving a baseband signal of 1.953KHz. This signal is just within the aforementioned audio signal range of 20Hz to 20KHz, and is feasible for use with operational amplifiers and analog-to-digital converters. Figure 4 As shown in FIG. 1 , it is a voice signal diagram recorded by a normal microphone 230, such as Figure 5 The figure shows the baseband signal diagram.

[0058] like Figure 6 As shown, in one embodiment, the audio codec 210 further includes a codec 211, a first analog-to-digital converter 212, a first operational amplifier 213, and a multiplexer switch 214;

[0059] The target microphone interface J1 is connected to the input end of the first op amp 213 through the multi-way selection switch 214, the output end of the first op amp 213 is connected to the input end of the first analog-to-digital converter 212, the output end of the first analog-to-digital converter 212 is connected to the first input end of the codec 211, and the output end of the codec 211 is connected to the receiving end of the processor 220;

[0060] When the target microphone interface J1 is connected to the input end of the first op amp 213 through the multi-way selection switch 214, the target microphone interface J1 transmits the baseband signal output from the output end of the envelope detection circuit 140 to the input end of the first op amp 213. The first op amp 213 is used to amplify the baseband signal and transmit it to the first analog-to-digital converter 212. The first analog-to-digital converter 212 is used to perform analog-to-digital conversion on the amplified baseband signal to obtain a first target digital signal, and transmit the first target digital signal to the codec 211. The codec 211 is used to decode the first target digital signal and transmit it to the processor 220.

[0061] That is, in the present embodiment, the first op amp 213, the first analog-to-digital converter 212 and the codec 211 in the multiplexed audio codec 210 can be used to amplify the baseband signal through the first op amp 213 and then transmit it to the first analog-to-digital converter 212. The first analog-to-digital converter 212 can perform analog-to-digital conversion on the amplified baseband signal to obtain a first target digital signal, and transmit the first target digital signal to the codec 211. The codec 211 can decode the first target digital signal and then transmit it to the processor 220, which can reduce the layout of additional devices, reduce the area occupied by the RFID circuit, etc.

[0062] like Figure 6 As shown, in one embodiment, the audio codec 210 further includes N second analog-to-digital converters 215 and N second operational amplifiers 216, and the codec 211 includes N second input terminals, where N is a positive integer;

[0063] Any microphone interface J2 among the remaining microphone interfaces is connected to an input end of a second op amp 216 through a multi-way switch 214, an output end of a second op amp 216 is connected to a second input end of a codec 211 through a second analog-to-digital converter 215, and the output ends of the N second op amps 216 are connected to different second analog-to-digital converters 215, and the second input ends of the N second analog-to-digital converters 215 are connected to different ones, and the remaining microphone interfaces are interfaces other than the target microphone interface J1 among the multiple microphone interfaces;

[0064] When any microphone interface J2 among the remaining microphone interfaces is connected to the input end of the second op amp 216 through the multi-way selection switch 214, the second op amp 216 is used to amplify the signal transmitted by any microphone interface J2 among the remaining microphone interfaces, and the second analog-to-digital converter 215 is used to perform analog-to-digital conversion on the amplified signal output by the second op amp 216 to obtain a second target digital signal, and transmit the second target digital signal to the codec 211, and the codec 211 is used to decode the second target digital signal and transmit it to the processor 220.

[0065] That is, in the present embodiment, the audio codec 210 can be connected to the envelope detection circuit 140 via the target microphone interface J1, and can be connected to the microphone 230 via the remaining microphone interfaces. The signal collected by the microphone 230 can be transmitted to the second op amp 216 for amplification via the corresponding microphone interface (when connected to the second op amp 216 via the multi-way switch 214). The second analog-to-digital converter 215 is used to perform analog-to-digital conversion on the amplified signal output by the second op amp 216 to obtain a second target digital signal, and transmit the second target digital signal to the codec 211. The codec 211 is used to decode the second target digital signal and transmit it to the processor 220 to realize normal voice function.

[0066] like Figure 7 As shown, in one embodiment, the coil driving circuit 120 includes an N-type metal oxide semiconductor (NMOS) transistor and a P-type metal oxide semiconductor (PMOS) transistor;

[0067] The gate G1 of the NMOS transistor is connected to the first control terminal of the processor 220, the first electrode S1 of the NMOS transistor is grounded, the second electrode D1 of the NMOS transistor is connected to the first electrode S2 of the PMOS transistor, the gate G2 of the PMOS transistor is connected to the first control terminal of the processor 220, and the second electrode D2 of the PMOS transistor is connected to the power supply VCC, wherein the first end of the RFID coil 110 is connected to the second electrode D1 of the NMOS transistor and the first electrode S2 of the PMOS transistor in the coil driving circuit 120.

[0068] The transistors used in all embodiments of the present application can be triodes, thin film transistors or field effect transistors or other devices with the same characteristics. In the embodiments of the present application, in order to distinguish the two electrodes of the transistor except the control electrode, one of the electrodes is called the first electrode and the other is called the second electrode.

[0069] In actual operation, when the transistor is a thin film transistor or a field effect transistor, the control electrode may be a gate electrode. The first electrode may be a drain electrode, and the second electrode may be a source electrode; or the first electrode may be a source electrode, and the second electrode may be a drain electrode. For example, in this embodiment, the first electrode may be a source electrode, and the second electrode may be a drain electrode.

[0070] That is, in this embodiment, the coil driving circuit 120 is constructed by NMOS transistors and PMOS transistors. The coil driving circuit 120 outputs a first voltage signal to the first end of the RFID coil 110 through the second electrode of the NMOS transistor or the first electrode of the PMOS transistor, so that the RFID coil 110 forms a magnetic field under the action of the first voltage signal for sensing an external card, thereby ensuring the sensing performance of the RFID coil 110.

[0071] like Figure 8 In one embodiment shown, the coil driving circuit 120 includes an NPN transistor and a PNP transistor;

[0072] The base B1 of the PNP transistor is connected to the first control terminal of the processor 220, the first pole C1 of the PNP transistor is grounded, the second pole E1 of the PNP transistor is connected to the second pole E2 of the NPN transistor, the base B2 of the NPN transistor is connected to the first control terminal of the processor 220, and the first pole C2 of the NPN transistor is connected to the power supply VCC, wherein the first end of the RFID coil 110 is connected to the second pole E1 of the PNP transistor and the second pole E2 of the NPN transistor.

[0073] When the transistor is a triode, the control electrode may be a base electrode; the first electrode may be a collector electrode, and the second electrode may be an emitter electrode; or the first electrode may be an emitter electrode, and the second electrode may be a collector electrode. For example, in this embodiment, the first electrode may be an emitter electrode, and the second electrode may be a collector electrode.

[0074] That is, in this embodiment, the coil driving circuit 120 is constructed by NMOS transistors and PMOS transistors. The coil driving circuit 120 outputs a first voltage signal to the first end of the RFID coil 110 through the second pole of the PNP transistor or the second pole of the NPN transistor, so that the RFID coil 110 forms a magnetic field under the action of the first voltage signal for sensing an external card, thereby ensuring the sensing performance of the RFID coil 110.

[0075] like Fig. 9 In one embodiment shown, the envelope detection circuit 140 includes a first diode 141, a second diode 147, a third diode 148, a first resistor 142, a second resistor 145, a first capacitor 143, a second capacitor 144 and a third capacitor 146;

[0076] The anode of the first diode 141 is connected to the second end of the RFID coil 110, the cathode of the first diode 141 is respectively connected to one end of the first resistor 142, one end of the first capacitor 143 and one end of the second capacitor 144, the other end of the first resistor 142 is grounded, the other end of the first capacitor 143 is grounded, the other end of the second capacitor 144 is respectively connected to one end of the second resistor 145, one end of the third capacitor 146, the cathode of the second diode 147 and the anode of the third diode 148, the other end of the second resistor 145, the other end of the third capacitor 146, the anode of the second diode 147 and the cathode of the third diode 148 are all grounded, and the cathode of the second diode 147 is connected to the receiving end of the processor 220 through the audio codec 210 in the electronic device.

[0077] It can be understood that the cathode of the second diode 147 is the output end of the envelope detection circuit 140. The envelope detection circuit 140 of the above structure filters the signal output from the second end of the RFID coil 110 to obtain a baseband signal for transmission to the audio codec 210, which can improve the filtering effect and thus improve the overall RFID card reading effect.

[0078] In one embodiment, the RFID card reader circuit further includes a third resistor, and the second end of the RFID coil 110 is connected to the anode of the first diode 141 through the third resistor.

[0079] That is, the signal output from the second end of the RFID coil 110 may first be stepped down by the third resistor and then transmitted to the envelope detection circuit 140 to improve circuit safety.

[0080] The RFID circuit in the embodiment of the present application is based on the audio CODEC210 integrated in the shared electronic device, and uses the operational amplifier, analog-to-digital converter, codec 211, etc. therein to process the output of the envelope detection circuit 140, realize the analysis of the card reading signal, save two stages of operational amplifiers, and have obvious advantages in layout area requirements and costs compared with the traditional two-stage operational amplifier circuit with external independent design; compared with the traditional two-stage operational amplifier circuit with external independent design, the microphone 230 channel of the audio CODEC210 has the characteristics of high sampling rate, high precision, high out-of-band suppression ratio, etc., and the card reading performance is significantly better than the traditional circuit. In the RFID circuit of this embodiment, the audio CODEC210 MIC channel is used to amplify the MIC small amplitude signal, and its noise suppression ratio is extremely high, and the filtering effect of the 125KHz RF carrier is good, which is better than the performance of the traditional operational amplifier; the RFID card reading function can be realized in the electronic device, solving the pain point that the current electronic device cannot integrate this function.

[0081] The present application also provides an electronic device according to an embodiment, comprising the above-mentioned audio codec 210, the above-mentioned processor 220 and the RFID card reading circuit in the above-mentioned embodiments.

[0082] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0084] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A radio frequency identification (RFID) card reader circuit, the RFID card reader circuit comprising: RFID coil, coil driving circuit, coil resonant capacitor and envelope detection circuit, wherein: The first end of the RFID coil is connected to the output end of the coil driving circuit, the input end of the coil driving circuit is connected to the first control end of the processor in the electronic device, the coil driving circuit is used to receive the driving signal provided by the processor through the first control end, and output a first voltage signal to the first end of the RFID coil under the action of the driving signal, and the RFID coil is used to form an induction magnetic field for inducing an external card under the action of the first voltage signal; One end of the coil resonant capacitor is connected to the second end of the RFID coil, and the other end of the coil resonant capacitor is electrically connected to the low voltage end; The input end of the envelope detection circuit is connected to the second end of the RFID coil, and the output end of the envelope detection circuit is connected to the receiving end of the processor through the audio codec in the electronic device. The envelope detection circuit is used to filter the carrier signal in the signal output from the second end of the RFID coil to obtain a baseband signal, and output the baseband signal to the audio codec, multiplex the function in the audio codec to process the output signal of the envelope detection circuit and transmit it to the processor.

2. The circuit according to claim 1, characterized in that The audio codec includes a plurality of microphone interfaces; The output end of the envelope detection circuit is connected to a target microphone interface, the output end of the audio codec is connected to a receiving end of the processor, and the target microphone interface is any one of the multiple microphone interfaces; The envelope detection circuit is used to transmit the baseband signal to the audio codec through the target microphone interface.

3. The circuit according to claim 1, characterized in that The RFID card reading circuit also includes a first switch; The output end of the envelope detection circuit is connected to the first selection end of the first switch, the fixed end of the first switch is connected to the target microphone interface of the audio codec, the second selection end of the first switch is connected to a microphone, the target microphone interface is any one of the multiple microphone interfaces of the audio codec, and the second control end of the processor is connected to the control end of the first switch; The first switch is used to receive a control signal provided by the processor through its second control terminal, and control the connection state of the first switch according to the control signal. When the first selection terminal is connected to the fixed terminal, the envelope detection circuit is connected to the audio codec through the first switch, and the baseband signal is transmitted to the audio codec through the first switch. When the second selection terminal is connected to the fixed terminal, the microphone is connected to the audio codec through the first switch, and the output signal of the microphone is transmitted to the audio codec through the first switch.

4. The circuit according to claim 2 or 3, characterized in that The audio codec also includes a codec, a first analog-to-digital converter, a first operational amplifier, and a multi-way selection switch; The target microphone interface is connected to the input end of the first op amp through the multi-way selection switch, the output end of the first op amp is connected to the input end of the first analog-to-digital converter, the output end of the first analog-to-digital converter is connected to the first input end of the codec, and the output end of the codec is connected to the receiving end of the processor; When the target microphone interface is connected to the input end of the first op amp through the multi-way selection switch, the target microphone interface transmits the baseband signal outputted from the output end of the envelope detection circuit to the input end of the first op amp, the first op amp is used to amplify the baseband signal and transmit it to the first analog-to-digital converter, the first analog-to-digital converter is used to perform analog-to-digital conversion on the amplified baseband signal to obtain a first target digital signal, and transmit the first target digital signal to the codec, the codec is used to decode the first target digital signal and transmit it to the processor.

5. The circuit according to claim 4, characterized in that The audio codec further comprises N second analog-to-digital converters and N second operational amplifiers, and the codec comprises N second input terminals, where N is a positive integer; Any microphone interface among the remaining microphone interfaces is connected to an input end of a second op amp through a multi-way switch, an output end of a second op amp is connected to a second input end of the codec through a second analog-to-digital converter, and the second analog-to-digital converters connected to the output ends of the N second op amps are different, and the second input ends connected to the N second analog-to-digital converters are different, and the remaining microphone interfaces are interfaces among the multiple microphone interfaces except the target microphone interface; When any one of the remaining microphone interfaces is connected to the input end of the second op amp via the multi-way selection switch, the second op amp is used to amplify the signal transmitted by any one of the remaining microphone interfaces, the second analog-to-digital converter is used to perform analog-to-digital conversion on the amplified signal output by the second op amp to obtain a second target digital signal, and transmit the second target digital signal to the codec, and the codec is used to decode the second target digital signal and transmit it to the processor.

6. The circuit according to claim 1, characterized in that The coil driving circuit includes an N-type metal oxide semiconductor (NMOS) transistor and a P-type metal oxide semiconductor (PMOS) transistor; The gate of the NMOS transistor is connected to the first control terminal of the processor, the first electrode of the NMOS transistor is grounded, the second electrode of the NMOS transistor is connected to the first electrode of the PMOS transistor, the gate of the PMOS transistor is connected to the first control terminal of the processor, and the second electrode of the PMOS transistor is connected to a power supply, wherein the first end of the RFID coil is connected to the second electrode of the NMOS transistor and the first electrode of the PMOS transistor in the coil driving circuit.

7. The circuit according to claim 1, characterized in that The coil driving circuit includes an NPN transistor and a PNP transistor; The base of the PNP transistor is connected to the first control terminal of the processor, the first pole of the PNP transistor is grounded, the second pole of the PNP transistor is connected to the second pole of the NPN transistor, the base of the NPN transistor is connected to the first control terminal of the processor, and the first pole of the NPN transistor is connected to a power supply, wherein the first end of the RFID coil is connected to the second pole of the PNP transistor and the second pole of the NPN transistor.

8. The circuit according to claim 1, characterized in that The envelope detection circuit includes a first diode, a second diode, a third diode, a first resistor, a second resistor, a first capacitor, a second capacitor and a third capacitor; The anode of the first diode is connected to the second end of the RFID coil, the cathode of the first diode is respectively connected to one end of the first resistor, one end of the first capacitor and one end of the second capacitor, the other end of the first resistor is grounded, the other end of the first capacitor is grounded, the other end of the second capacitor is respectively connected to one end of the second resistor, one end of the third capacitor, the cathode of the second diode and the anode of the third diode, the other end of the second resistor, the other end of the third capacitor, the anode of the second diode and the cathode of the third diode are all grounded, and the cathode of the second diode is connected to the receiving end of the processor through the audio codec.

9. The circuit according to claim 8, characterized in that The RFID card reading circuit further includes a third resistor, and the second end of the RFID coil is connected to the anode of the first diode through the third resistor.

10. An electronic device, characterized in that: The invention comprises an audio codec, a processor and the RFID card reading circuit according to any one of claims 1 to 9.