Background technology
In the communication process of contactless RFID, if the 100%ASK modulation system is adopted in communicating by letter of RFID reader and label chip, pause (following we are referred to as groove) will can appear in modulated process.In 128 clock period; The diverse location that groove occurs is represented the different coding signal; These coded signals adopt the modified miller coding to transmit, and the RFID label chip need be decoded to these coded signals just can make the circuit operate as normal of back.Yet the existence of groove makes coded signal in decode procedure, become very difficult, also makes the groove identification circuit complicated more.In the RFID communication process, reader sends a large amount of coded datas to label chip, promptly has a large amount of grooves, if groove can not accurately be discerned or discrimination is not high, then can cause the decoding failure, has a strong impact on the proper communication of RFID.
In 128 clock period, the position difference that groove occurs will be represented different modified miller coding signals, yet when a groove occurring, be not have clock, just have after the only fluted disappearance of the existence of clock.Under the normal condition, groove begins before back and the end, and clock is non-existent; But in side circuit; Groove begins the back and finishes all residual clock can be arranged before, and the existence of these clocks can cause wrong decoding, therefore must fall by the clock filtering that these are residual; And in general synchronizing circuit, can not address these problems.
Existing groove identification solution mainly is the numerical portion employing asynchronous circuit at label chip, and the negative edge that utilizes the coded signal of being with groove identifies groove as trigger condition.If but using asynchronous circuit, the numerical portion of chip can not use the sequential of general static timing analysis tool analysis chip, also make the comprehensive and placement-and-routing of numerical portion become difficult more simultaneously.
Also having a kind of method of discerning groove is to adopt counter; The clock period that groove is continued is fixed as constant; Every through a groove, just begin counting, count value is preserved when next groove arrives and is judged the binary data that this coded signal is represented according to count value.But the clock period that groove continues is uncertain, and the width of groove is to be determined by reader; Do not knowing under the data conditions that reader sends over; Can not calculate the duration of groove, therefore, want correct realization decoding; Must handle groove, make decoding circuit can both correctly decoding in the groove continuance time scope.
Summary of the invention
To above deficiency; The invention provides a kind of technology of using synchronizing circuit and asynchronous circuit to combine and come the device of the groove of identification RFID label chip; It comprises the zone that is used for groove is shaped into from unclocked zone clock; Filter out the groove shaping unit of the clock in the groove simultaneously, and the serial data that reader sent is changed into parallel data, and exactly coded message is separated the modified Miller decoding unit that reads out.
The duration of the groove after the said shaping is three fixing clock period.
Said groove shaping unit comprises the d type flip flop of 4 series connection, 1 phase inverter and 1 rejection gate; The input termination logical one of said first d type flip flop and the coded signal of groove; The input termination reset signal of said phase inverter; Said second, third with the input of the clock termination external clock of four d flip-flop, the clear terminal of second, third and four d flip-flop is received in the output of said phase inverter, reset signal and four d flip-flop obtain 1 output through behind the rejection gate; The clear terminal of first d type flip flop is received in output, and the output terminal of 3d flip-flop connects shaping circuit output simultaneously.
Said modified Miller decoding unit comprises a 8-digit device, is used to calculate the clock number that occurs during two grooves; Comprise a decoder state machine, be used for controlling the signal condition conversion of decode procedure; Comprise that a B state pulse produces, can unnotched coded signal be represented with a pulse, the convenient detection; Comprise that data detect, and detect the coded signal of 8 digit counters or B state pulse representative; Comprise that data deposit, be used to preserve current demand signal and the last detection signal that Data Detection is come out; Comprise an error handling processing, be used for the mistake that deal with data detects and counting process occurs; Comprise a string and conversion, can the data-switching that decoding is come out be become the output of nine bits; Comprise an output control, can export and receive end signal, output permission signal and output bit number.
Beneficial effect of the present invention: be separated through synchronizing circuit and asynchronous circuit; Effectively reduce the difficulty of chip design; Improved the degree of stability of chip operation; Reduced threshold requirement, the coded signal decoding that can identify the existence of groove fast and accurately and efficiently groove represented to eda tool; In addition, the modified Miller decoding unit that adopts among the present invention allows groove continuance time in the amplitude of agreement regulation, to change, and has very strong robustness, and quicker or slow identification and the decoding to groove of clock do not have any impact.
Embodiment
Below in conjunction with accompanying drawing the present invention is further set forth.
The method that the present invention mainly adopts synchronizing circuit and asynchronous circuit to combine identifies the groove of signal; And signal changed into discernible binary data; The existence that the groove recognition device of RFID label chip of the present invention can effective recognition goes out groove; Effectively remove the remaining clock that occurs in the groove continuance time, and can obtain efficient, stable, decoded data accurately.
As shown in Figure 1, the groove recognition device of RFID label chip of the present invention comprises groove shaping unit 1 and modified Miller decoding unit 2.Groove shaping unit 1 is used for groove is shaped into from unclocked zone the zone of clock; And the clock period that groove is continued is shaped into 3 definite clock period by the uncertain cycle; Simultaneously clock is handled, the clock filtering in the groove is fallen, this part is equivalent to asynchronous circuit; But this asynchronous circuit is to accomplish in analog part; Analog part does not need comprehensively need not use static timing analysis yet, and the signal that the groove shaping circuit comes out can be realized through synchronizing circuit at numerical portion fully; The input signal of modified Miller decoding unit 2 is output signals (shaping circuit output) of the clock signal, reset signal and the groove shaping unit that are recovered out by AFE(analog front end), and the whole functional module is accomplished at numerical portion, also is the digital analog interface part simultaneously; Realize by synchronizing circuit fully, be easy to comprehensive and the analysis static timing, the perfect in shape and function of numerical portion decoder module; Have error detecing capability,, can in time provide error message in case make a mistake; And point out corresponding post-processing operation, and possess string and translation function, can the serial data that reader sends over be converted into parallel data; And give subsequent module for processing; Simultaneously decoder module has very strong adaptability, in case groove length changes, and this changes within the framework of the agreement; Modified Miller decoding unit 2 just can accurately be separated coded message and read out, and needn't worry that decoding can receive the influence of reader.
Embodiments of the invention: suppose that the modified miller coding signal of process shaping does not have groove, groove length is in the scope of 2.0us and 3.5us, and groove has three kinds of sequences: sequence A, and after the time, a groove should occur at 64/fc; Sequence B at whole bit duration (128/fc), does not have groove to occur; Sequence C, when bit duration began, a groove should occur.Yet when groove occurred, corresponding clock trigger signal disappeared, and has no clock, also just cannot carry out any operation to circuit.
As shown in Figure 2; The design proposal of groove shaping unit 1 is: the input termination logical one of d type flip flop 11; The input termination reset signal of the clock termination shaping circuit of d type flip flop 11 input (this input is the coded signal that has groove after the 100%ASK demodulation), phase inverter 15, d type flip flop 12,13 and 14 clock termination external clock input (this clock is the clock that chip analog front uses clock recovery circuitry to produce), the output of shaping circuit is exactly the output of groove shaping unit.D type flip flop 11,12,13 and 14 is connected in series, and the output terminal of phase inverter 15 is received the clear terminal of d type flip flop 12,13 and 14, and reset signal and d type flip flop 16 obtain an output through behind the rejection gate, this output are received the clear terminal of d type flip flop 11.Circuit can become the length of groove 3 clock period through the time-delay of d type flip flop, simultaneously groove is shaped into first clock period after groove finishes, and representes with the positive pulse in 3 cycles.
The design concept of modified Miller decoding unit 2 is as shown in Figure 2; Modified Miller decoding unit comprises clock input, decoding input and three input signals of reset signal, and the output that makes mistakes, 9 decoding output, receive end signal, output allows and five of output bit numbers are exported signals.There are 8 functional modules modified Miller decoding unit 2 inside, are respectively: 8 digit counters 21, decoder state machine 22, B state pulse produce 23, Data Detection 24, data deposit 25, error handling processing 26, go here and there and change 27 and output control 28.
8 digit counters 21: in the beginning of communication; The data that send from reader are through obtaining the clock input after the demodulation, clock disappears when groove exists, only fluted when not existing clock can control each module of decoding; The decoding input is the decoder module data input signal (shaping circuit output) after handling through the groove shaping unit; When decoding is input as low level the time, 8 digit counters are started working, to the rising edge counting of each clock; When decoding is input as high level, the counter currency is saved in register, it is also noted that here clock possibly disappear when decoding was input as low level, promptly clock does not have the existence of rising edge and remains low level, and at this moment, counter is not counted.
Decoder state machine 22: the definition one of four states, represent A, B, C, D respectively, wherein A/B/C is three kinds of sequences that defined, and D is the error handling processing state.Can know that by the definition of groove the groove time range is 2.0us~3.5us, then groove probably changes in 27 to 46 clock ranges.Therefore, in judgement, must keep certain blur level to counter, such as, the time between two C states should be at 82 to 101 clocks.Decoder state machine is according to latching the transformation that count value determines next state.If count wrongly, then transfer state to D, carry out error handling processing.
The B state pulse produces the 23:B state at whole bit duration (128/fc), and modulation does not occur.Do not have the existence of groove this moment, i.e. decoding input remains 0 at the B state, therefore, must the generation of B state be correspondingly processed.When current state is A, will be 106 o'clock generation B states in count value; When current state is the C state, will be 180 o'clock generation B states in count value; When current state is the B state, will be 232 o'clock generation B states in count value.
Data Detection 24: can produce the existence that detects groove according to 8 digit counters and B state pulse,, just detect a B state in case 23 output pulse is a high level.When pulse is low level, judge decoded state, when decoded state detects A condition during for A, when decoded state detects the C state during for C.
Data deposit 25: export signals for 3 according to Data Detection 24: signal a, signal b, signal c, these three signals are kept in the register, and export current detection signal and last detection signal simultaneously.
Error handling processing 26: according to the requirement of agreement; Groove is that certain length restriction is arranged; Surpassed the scope of regulation, the error handling processing module will detect mistake and point out the subsequent treatment module, and the error handling processing module can also detect tangible frame format mistake; The application of error handling processing module has strengthened the validity of decoding and the robustness of circuit.
Serial to parallel conversion 27: the serial decode signal is become the decoding output of 9 bit parallels.
Output control 28:, and send control signals such as accepting end signal, output permission and output bit number according to last detection signal and current detection signal.
According to above explanation; Engagement groove shaping unit and modified Miller decoding unit; Can accomplish the identification of groove and the decoding that groove carries signal, the groove shaping unit adopts Realization of Analog Circuit, altogether 4 d type flip flops, 2 an output rejection gate and phase inverters; Its hardware realizes that cost is little, easy design; Modified Miller decoding unit adopts synchronizing circuit to realize; Problems such as the numerical portion of having avoided the use asynchronous circuit to cause is comprehensive, time series analysis; Improved the stability of numerical portion; The Burr Problem of having avoided asynchronous circuit to cause easily, the realization of synchronizing circuit makes that also eda tool is more convenient in design, safety in addition.