A kind of calibrating frequency system and wireless calibrating frequency device, smart card
Technical field
The utility model relates to wireless calibrating frequency device, particularly, relates to a kind of calibrating frequency system and wireless calibrating frequency device, smart card.
Background technology
The crystal oscillator frequency calibration of the prior art mode of wired connection that uses is carried out more, and for there is no the device of calibrating frequency interface, the device that this wired calibrating frequency is arranged cannot carry out regular frequency calibration after packaging to be safeguarded, if generation error, cannot correct in time, a series of problem will be brought for other communications and circuit run.
In order to overcome Problems existing in wired testing product crystal oscillator calibration frequency error technology, for some cannot provide the device of line interface, be badly in need of providing a kind of frequency calibration equipment by antenna transmission of signal.
Utility model content
For defect of the prior art, the purpose of this utility model is to provide a kind of calibrating frequency system by antenna transmission of signal and wireless calibrating frequency device, smart card.
According to the wireless calibrating frequency device of a kind of calibrating frequency system that the utility model provides, for the control according to host computer, calibrating frequency is carried out to smart card, comprise signal sending circuit, coupling smart card antenna circuit, microprocessor, voltage comparator, high accuracy temperature compensating crystal oscillator;
The output of described coupling smart card antenna circuit is connected with the first input end of described voltage comparator, the input end of analog signal of microprocessor respectively,
The analog signal output of described microprocessor is connected with the second input of described voltage comparator, and the input/output terminal of described microprocessor is connected with the input/output terminal of described host computer;
The output of described voltage comparator is connected with the input/output terminal of described host computer, the calibrating frequency port of microprocessor respectively;
The input of described signal sending circuit is connected with the input/output terminal of described host computer, and output is connected with the input of described coupling smart card antenna circuit;
Described high accuracy temperature compensating crystal oscillator is connected with described microprocessor.
As a kind of prioritization scheme, described signal sending circuit comprises start-oscillation circuit and 74 logical AND gate circuit;
The first input end of described 74 logical AND gate circuit is connected with described start-oscillation circuit, and the second input is connected with the input/output terminal of described host computer, and output is connected with the input of described coupling smart card antenna circuit.
As a kind of prioritization scheme, described microprocessor comprises calibrating frequency circuit, signal processing circuit, analog to digital conversion circuit, D/A converting circuit;
Described signal processing circuit is connected with the output of analog-digital conversion circuit as described, the input of D/A converting circuit and calibrating frequency circuit respectively;
Described calibrating frequency circuit is connected with the output of described voltage comparator by described calibrating frequency port, and described calibrating frequency circuit is also connected with described high accuracy temperature compensating crystal oscillator; Analog-digital conversion circuit as described is connected by the output of described input end of analog signal with described coupling smart card antenna circuit; Described D/A converting circuit is connected with the second input of described voltage comparator by described analog signal output, and described signal processing circuit is connected with the input/output terminal of described host computer respectively by the input/output terminal of described signal processing circuit.
As a kind of prioritization scheme, described start-oscillation circuit comprises not gate, feedback resistance, starting of oscillation crystal oscillator, two matching capacitance;
One end of the output of described not gate, one end of feedback resistance, starting of oscillation crystal oscillator is connected to one end of a described matching capacitance altogether, and by this matching capacitance ground connection, the other end of the input of described not gate, the other end of feedback resistance, starting of oscillation crystal oscillator is connected to one end of matching capacitance described in another altogether, and by this matching capacitance ground connection; The input of described not gate is connected with the first input end of described 74 logical AND gate circuit.
As a kind of prioritization scheme, described coupling smart card antenna circuit comprises antenna and distinguishes coupled sendaisle and receive path; Described sendaisle comprises LC oscillating circuit; Described receive path comprises the first current rectifying and wave filtering circuit and bleeder circuit;
One end of described LC oscillating circuit is connected with the output of described signal sending circuit, and the other end is connected with described antenna;
The input of described first current rectifying and wave filtering circuit is connected with described antenna, and output is connected to the input of described bleeder circuit;
The output of described bleeder circuit is connected with the first input end of described voltage comparator, the input end of analog signal of microprocessor respectively as the output of described coupling smart card antenna.
As a kind of prioritization scheme, described LC oscillating circuit comprises the first electric capacity and the second electric capacity, described first electric capacity is connected with the output of described 74 logical AND gate circuit all respectively with one end of the second electric capacity, and described first electric capacity is connected with described antenna all respectively with the other end of the second electric capacity.
As a kind of prioritization scheme, described first current rectifying and wave filtering circuit comprises the first diode, the second diode, the first resistance and the 3rd electric capacity;
The positive pole of described first diode is connected with described antenna, negative pole is connected with one end of the positive pole of described second diode, one end of the first resistance and the 3rd electric capacity respectively, the other end of the first resistance and the equal ground connection of the other end of the 3rd electric capacity, the negative pole of described second diode is connected with the input of described bleeder circuit.
As a kind of prioritization scheme, described bleeder circuit comprises the second resistance, the 3rd resistance, the 4th resistance, the 4th electric capacity, the 5th electric capacity, the 6th electric capacity;
One end of described second resistance is connected with the output of described first current rectifying and wave filtering circuit, the other end is connected with one end of described 3rd resistance, the 4th resistance, the 4th electric capacity, the 5th electric capacity, the 6th electric capacity respectively, the other end ground connection of described 3rd resistance, the 4th resistance, the 4th electric capacity, the 5th electric capacity, the 6th electric capacity;
One end that described second resistance is connected with described 6th electric capacity is also connected with the first input end of described voltage comparator, the input end of analog signal of microprocessor.
Based on same design, the utility model also provides a kind of smart card, comprises smart card antenna, smart card antenna signal processing circuit and smart card microprocessor; Described smart card antenna signal processing circuit comprises the second current rectifying and wave filtering circuit, and described second current rectifying and wave filtering circuit comprises the 3rd diode, the 4th diode, the 7th electric capacity and the 5th resistance;
The positive pole of described 3rd diode is connected with the output of described smart card antenna, and negative pole is connected with one end of smart card microprocessor and described 7th electric capacity, the 5th resistance respectively,
The other end of described 7th electric capacity, the 5th resistance and the positive pole of described 4th diode connect and ground connection altogether,
The negative pole of described 4th diode is connected with the input of smart card antenna.
Based on same design, the utility model also provides a kind of calibrating frequency system, comprises host computer, described smart card and described wireless calibrating frequency device.
Compared with prior art, the utility model has following beneficial effect:
Calibrating frequency in the utility model be with high accuracy temperature compensating crystal oscillator for standard basis counter, avoid using GPS to rush second as reference counter bring loaded down with trivial details, the calibrating frequency system that the utility model is provided is more efficient.
The utility model be without wired connection interface equipment or cannot the remote equipment of wired direct connection, as smart card, provide a kind of calibrating frequency system of wirelessly communicating and wireless calibrating frequency device, smart card.
Accompanying drawing explanation
By reading the detailed description done non-limiting example with reference to the following drawings, other features, objects and advantages of the present utility model will become more obvious:
Fig. 1 is the one wireless calibrating frequency principle of device block diagram in embodiment;
Fig. 2 is a kind of calibrating frequency system in embodiment;
Fig. 3 is the flow logic figure of a kind of calibrating frequency system in embodiment;
Fig. 4 is the one coupling smart card antenna circuit structure diagram in embodiment;
Fig. 5 is the 13.56Mhz start-oscillation circuit structure chart in embodiment;
Fig. 6 be in the signal sending circuit in embodiment with computing oscillogram;
Fig. 7 is a kind of smart card theory diagram in embodiment;
Fig. 8 is a kind of smart card antenna signal processing circuit structure figure in embodiment.
Embodiment
Below in conjunction with specific embodiment, the utility model is described in detail.Following examples will contribute to those skilled in the art and understand the utility model further, but not limit the utility model in any form.It should be pointed out that to those skilled in the art, without departing from the concept of the premise utility, some distortion and improvement can also be made.These all belong to protection range of the present utility model.
According to the embodiment of the wireless calibrating frequency device of a kind of calibrating frequency system as shown in Figure 1, this device is used for carrying out calibrating frequency according to the control of host computer (i.e. PC in figure) to smart card.This device comprises signal sending circuit, coupling smart card antenna circuit, microprocessor (MCU), voltage comparator, high accuracy temperature compensating crystal oscillator;
The output of described coupling smart card antenna circuit is connected with the first input end of described voltage comparator, the input end of analog signal of microprocessor respectively,
The analog signal output of described microprocessor is connected with the second input of described voltage comparator, and the input/output terminal of described microprocessor is connected with the input/output terminal of described host computer;
The output of described voltage comparator is connected with the input/output terminal of described host computer, the calibrating frequency port of microprocessor respectively;
The input of described signal sending circuit is connected with the input/output terminal of described host computer, and output is connected with the input of described coupling smart card antenna circuit;
Described high accuracy temperature compensating crystal oscillator is connected with described microprocessor.
As shown in the logic flow of Fig. 3, coupling smart card antenna circuit mates with smart card, and for receiving the wireless signal that smart card sends, this wireless signal comprises all kinds of control signal and treats calibrating frequency signal.The wireless signal received is transferred to voltage comparator as the first comparison signal simultaneously, and enters microprocessor and carry out signal transacting and obtain fundamental signal as the second comparison signal of voltage comparator.Through over-voltage comparator relatively after export a square wave with default amplitude.If the wireless signal of this reception is the feedback signal of smart card, then voltage comparator exports rear host computer identification acquisition, and microprocessor then automatic fitration falls.Only when the wireless signal of this reception is until calibrating frequency signal, by calibrating frequency port accepts, this treats calibrating frequency signal and carries out calibrating frequency microprocessor.
As a kind of embodiment, the action principle of this is wireless calibrating frequency device is: host computer sends calibrating frequency request by signal sending circuit, coupling smart card antenna circuit to smart card.Calibrating frequency request shown in smart card response starts transmission and treats calibrating frequency signal after this coupling smart card antenna electronic feedback confirmation signal.For the described confirmation signal that coupling smart card antenna circuit receives, through described voltage comparator relatively after export described host computer to.Described host computer sends calibrating frequency commencing signal to described microprocessor after obtaining this confirmation signal immediately.Described microprocessor receives after this calibrating frequency commencing signal and prepares immediately to start calibrating frequency, and that waits for that described smart card sends subsequently treats calibrating frequency signal.Treat calibrating frequency signal described in coupling smart card antenna circuit is received, equally through described voltage comparator relatively after transfer to described microprocessor by the input end of analog signal of microprocessor, described microprocessor starts calibrating frequency.
As a kind of embodiment, described signal sending circuit comprises start-oscillation circuit and 74 logical AND gate circuit;
The first input end of described 74 logical AND gate circuit is connected with described start-oscillation circuit, and the second input is connected with the input/output terminal of described host computer, and output is connected with the input of described coupling smart card antenna circuit.
Described start-oscillation circuit sends the pulse of 13.56MHz aerial signal.The control signal sent to smart card or calibrating signal are transferred to the second input of 74 logical AND gates by host computer, with the 13.56MHz aerial signal pulse of first input end carry out as shown in Figure 6 with after computing through issuing smart card by mating smart card antenna.
As a kind of embodiment, as shown in Figure 1, described microprocessor comprises calibrating frequency circuit, signal processing circuit, analog to digital conversion circuit (ADC), D/A converting circuit (DAC);
Described signal processing circuit is connected with the output of analog-digital conversion circuit as described, the input of D/A converting circuit and calibrating frequency circuit respectively;
Described calibrating frequency circuit is connected with the output of described voltage comparator by described calibrating frequency port, and described calibrating frequency circuit is also connected with described high accuracy temperature compensating crystal oscillator; Analog-digital conversion circuit as described is connected by the output of described input end of analog signal with described coupling smart card antenna circuit; Described D/A converting circuit is connected with the second input of described voltage comparator by described analog signal output, and described signal processing circuit is connected with the input/output terminal of described host computer respectively by the input/output terminal of described signal processing circuit.
Because microprocessor can only carry out Digital Signal Processing, therefore need the analog signal of input to be converted to digital signal when communicating with coupling smart card antenna.And be analog signal due to voltage comparator process, therefore microprocessor is when outputing signal to voltage comparator, exports after need carrying out digital-to-analogue conversion.
Signal transmissions between microprocessor and host computer is directly the transmission of digital signal, without the need to through analog-to-digital conversion or digital-to-analogue conversion.
Second comparison signal of voltage comparator is fundamental signal.Microprocessor obtain from input end of analog signal with the analog signal of the first comparison signal, described analog to digital converter (ADC) is transferred to signal processor after this analog signal is converted to digital signal and carries out sample mean.The described sample mean of signal processor gets the interior analog signal obtained of section sometime, asks average voltage, the digital signal waveform that acquisition one is mild thus to these analog signals.This digital waveform is converted to analog signal by described digital to analog converter (DAC) again and namely obtains a mild fundamental signal, this fundamental signal is exported to the second input of told voltage comparator as described second comparison signal.First comparison signal is exactly the primary signal that smart card sends relative to the comparison signal of the second comparison signal.
As a kind of embodiment, as shown in Figure 5, described start-oscillation circuit comprises not gate, feedback resistance Rf, starting of oscillation crystal oscillator, two matching capacitance cp;
One end of the output of described not gate, one end of feedback resistance Rf, starting of oscillation crystal oscillator is connected to one end of a described matching capacitance cp altogether, and by this matching capacitance cp ground connection, the other end of the input of described not gate, the other end of feedback resistance Rf, starting of oscillation crystal oscillator is connected to the one end of matching capacitance cp described in another altogether, and by this matching capacitance ground connection; The input of described not gate is connected with the first input end of described 74 logical AND gate circuit.
As a kind of embodiment, as shown in Figure 4, described coupling smart card antenna circuit comprises antenna and distinguishes coupled sendaisle and receive path; Described sendaisle comprises LC oscillating circuit; Described receive path comprises the first current rectifying and wave filtering circuit and bleeder circuit;
One end of described LC oscillating circuit is connected with the output of described signal sending circuit, and the other end is connected with described antenna;
The input of described first current rectifying and wave filtering circuit is connected with described antenna, and output is connected to the input of described bleeder circuit;
The output of described bleeder circuit is connected with the first input end of described voltage comparator, the input end of analog signal of microprocessor respectively as the output of described coupling smart card antenna.
As a kind of embodiment, described LC oscillating circuit comprises the first electric capacity C1 and the second electric capacity C2, described first electric capacity C1 is connected with the output of described 74 logical AND gate circuit respectively with one end of the second electric capacity C2, and described first electric capacity C1 is connected with described antenna respectively with the other end of the second electric capacity C2.
As a kind of embodiment, described first current rectifying and wave filtering circuit comprises the first diode D1, the second diode D2, the first resistance R1 and the 3rd electric capacity C3;
The positive pole of described first diode D1 is connected with described antenna, negative pole is connected with one end of the positive pole of described second diode D2, one end of the first resistance R1 and the 3rd electric capacity C3 respectively, the other end of the first resistance R1 and the equal ground connection of the other end of the 3rd electric capacity C3, the negative pole of described second diode D2 is connected with the input of described bleeder circuit.
As a kind of embodiment, described bleeder circuit comprises the second resistance R2, the 3rd resistance R3, the 4th resistance R4, the 4th electric capacity C4, the 5th electric capacity C5, the 6th electric capacity C6;
One end of described second resistance R2 is connected with the output of described first current rectifying and wave filtering circuit, the other end is connected with one end of described 3rd resistance R3, the 4th resistance R4, the 4th electric capacity C4, the 5th electric capacity C5, the 6th electric capacity C6 respectively, the other end ground connection of described 3rd resistance R3, the 4th resistance R4, the 4th electric capacity C4, the 5th electric capacity C5, the 6th electric capacity C6;
One end that described second resistance R2 is connected with described 6th electric capacity C6 is also connected with the first input end of described voltage comparator, the input end of analog signal of microprocessor.
Based on same design, the utility model additionally provides a kind of smart card as shown in Figure 7, comprises smart card antenna, smart card antenna signal processing circuit and smart card microprocessor; Described smart card antenna signal processing circuit as shown in Figure 8, comprises the second current rectifying and wave filtering circuit, and described second current rectifying and wave filtering circuit comprises the 3rd diode D3, the 4th diode D4, the 7th electric capacity C7 and the 5th resistance R5;
The positive pole of described 3rd diode D3 is connected with the output of described smart card antenna, and negative pole is connected with one end of smart card microprocessor and described 7th electric capacity C7, the 5th resistance R5 respectively,
The other end of described 7th electric capacity C7, the 5th resistance R5 and the positive pole of described 4th diode D4 connect and ground connection altogether,
The negative pole of described 4th diode D4 is connected with the input of smart card antenna.
Based on same design, the utility model additionally provides a kind of calibrating frequency system as shown in Figure 2, comprises host computer, described smart card and described wireless calibrating frequency device.
Above specific embodiment of the utility model is described.It is to be appreciated that the utility model is not limited to above-mentioned particular implementation, those skilled in the art can make various distortion or amendment within the scope of the claims, and this does not affect flesh and blood of the present utility model.