CLOCK SYNCHRONIZER TO SYNCHRONIZE A DEVICE CLOCK WITH A CLOCK OF A REMOTE DEVICE
20190044774 ยท 2019-02-07
Inventors
- Jan Crols (Oud-Heverlee, BE)
- Tomaz Felicijan (Graz, AT)
- Jakob JONGSMA (Graz, AT)
- Michael Pieber (Kumberg, AT)
- Hamzeh NASSAR (Graz, AT)
Cpc classification
H04L7/0331
ELECTRICITY
H03L7/06
ELECTRICITY
H03L7/087
ELECTRICITY
H04L27/266
ELECTRICITY
H03L7/16
ELECTRICITY
International classification
H03L7/099
ELECTRICITY
H04L7/00
ELECTRICITY
Abstract
A device (1)) with an antenna that receives a target carrier signal (3) from a remote target (2) and transmits a device carrier signal (6) modulated with data to communicate data between the device (1) and the target (2), which device (1) comprises: clock extraction means (4) to extract a target clock (5) from the target carrier signal (3); driver means (9) to generate the device carrier signal (6) from a device clock (8); synchronization means (7) to synchronize the frequency and phase of the device clock (8) with the target clock (5), wherein that the synchronization means (7) comprise: time measurement means (10) to measure the phase difference between the target clock (5) and the device clock (8) or an internal device clock (33) related to the device clock (8) and to provide a phase information (1,2,3); measurement control means (20) to initiate a first time measurement that results in a first phase information () and to initiate a second time measurement a fixed time period (T) after the first time measurement that results in a second phase information (2); frequency correction means (11) to correct the frequency of the device clock (8) and/or the internal device clock (33) to the frequency of the target clock (5) based on an evaluation of the first phase information () and second phase information (2) by evaluation means (21); which measurement control means (20) are built to initiate a third time measurement after the frequency correction of the device clock (8) and/or the internal device clock (33) that results in a third phase information (3) evaluated by the evaluation means (21) and corrected by phase correction means (22) which correct the phase of the device clock (8) to the phase of the target clock (5).
Claims
1. Device with an antenna that receives a target carrier signal from a remote target and transmits a device carrier signal modulated with data to communicate data between the device and the target, which device comprises: clock extraction means to extract a target clock from the target carrier signal; driver means to generate the device carrier signal from a device clock; synchronization means to synchronize the frequency and phase of the device clock with the target clock, wherein the synchronization means comprise: time measurement means to measure the phase difference between the target clock and the device clock or an internal device clock related to the device clock and to provide a phase information (.sub.1,.sub.2, .sub.3); measurement control means to initiate a first time measurement that results in a first phase information (.sub.1) and to initiate a second time measurement a fixed time period (T) after the first time measurement that results in a second phase information (.sub.2); frequency correction means to correct the frequency of the device clock and/or the internal device clock to the frequency of the target clock based on an evaluation of the first phase information (.sub.1) and second phase information (.sub.2) by evaluation means; which measurement control means are built to initiate a third time measurement after the frequency correction of the device clock and/or the internal device clock that results in a third phase information (.sub.3) evaluated by the evaluation means and corrected by phase correction means which correct the phase of the device clock to the phase of the target clock.
2. Device according to claim 1, which comprises clock generation means to generate a an internal clock with a higher frequency than the frequency of the target clock and wherein the time measurement means comprise coarse measurement means that start a counter that counts with the internal clock at an edge of the target clock or of the internal device clock and that stop the counter at the an edge of the internal device clock or the target clock to provide a coarse phase information.
3. Device according to claim 2, wherein the time measurement means comprise fine measurement means that measure the time from an edge of the target clock to the next edge of the internal clock to provide a fine phase information.
4. Device according to claim 3, wherein the time measurement means are built to evaluate the coarse phase information and the fine phase information to provide the phase information (.sub.1, .sub.2, .sub.3).
5. Device according to claim 4, wherein the time measurement means comprise a phase wrap detector that counts the number of edges of the target clock and the number of edges of the internal device clock during the fixed time period (T) and provides a phase wrap information.
6. Device according to claim 5, wherein the time measurement means are built to evaluate the phase wrap information to provide the phase information (.sub.1, .sub.2, .sub.3).
7. Device according to claim 1, wherein the evaluation means are built to calculate a frequency error between the target clock and the device clock or the internal device clock using the formula: f=(.sub.2.sub.1)/T with .sub.1 as first phase information and .sub.2 as second phase information and T as fixed time period and which frequency correction means are furthermore built to correct the frequency of the device clock and/or the internal device clock to the frequency of the target clock based on the calculated frequency error.
8. Device according to claim 1, wherein the device simulates a smart card or tag with active data transmission.
9. Method to synchronize the frequency and phase of a device clock within a device with a target clock of a remote target which target clock within the device is derived from a target carrier signal received from the target with an antenna of the device, which method comprises the following steps: measure the phase difference between the target clock and the device clock or an internal device clock related to the device clock and provide a first phase information (.sub.1); count a fixed number of clocks of an internal clock to wait a fixed time; measure the phase difference between the target clock and the device clock or the internal device clock again and provide a second phase information (.sub.2); correct the frequency of the device clock and/or the internal device clock to the frequency of the target clock by evaluation of the first phase information and second phase information (.sub.2); measure the phase difference between the target clock and the device clock internal device clock again and provide a third phase information (.sub.3); correct the phase of the device clock to the phase of the target clock by evaluation of the third phase information (.sub.3).
10. Method according to claim 9, wherein the measurement of the phase difference between the target clock and the internal device clock is done with the following steps: start a counter that counts with the internal clock at an edge of the target clock or of the internal device clock and stop the counter at an edge of the internal device clock or target clock to provide a coarse phase information; measure the time period from an edge of the target clock to the next edge of the internal device clock to provide a fine phase information; count the number of edges of the target clock and the number of edges of the internal device clock during the fixed time period (T) and provide a phase wrap information; evaluate the coarse phase information and the fine phase information and the phase wrap information to provide the phase information (.sub.1, .sub.2, .sub.3).
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0013]
[0014]
[0015]
[0016]
DETAILED DESCRIPTION OF EMBODIMENTS
[0017]
[0018] Device 1 comprises an antenna that receives the target carrier signal 3 from the remote target 2 and clock extraction means 4 to extract a target clock 5 from the target carrier signal 3. To comply with the NFC Standard, device 1 needs to transmit back a device carrier signal 6 with the same 13,56 MHz frequency and phase as the target carrier signal 3, which device carrier signal 6 may be modulated with data to be transmitted from device 1 to target 2. Synchronization of the device carrier signal 6 to the target carrier signal 3 is needed to ensure error-free demodulation and decoding of data transmitted.
[0019] Device 1 comprises synchronization means 7 to synchronize the frequency and phase of a device clock 8 with the target clock 5. In the embodiment disclosed the frequency of the device clock 8 after synchronization is not the same or identical as the frequency of the target clock 5, but it is a defined multiple of the 13,56 MHz and in that way synchronized. Elements of the synchronization means 7 and their functionality will be explained in detail based on the
[0020] Synchronization means 7 comprise time measurement means 10 to measure the phase difference or time difference between the target clock 5 and the internal device clock 33 and to provide a phase information . In this embodiment of the invention time measurement means 10 measure the time difference between the target clock 5 and the internal device clock 33. As shown in
[0021] Synchronization means 7 comprise frequency correction means 11 that receive a reference clock 12 from another part of device 1, not shown in
[0022] Synchronization means 7 furthermore comprise measurement control means 20 to initiate a first time measurement at time instance t.sub.1, shown in
[0023] Measurement control means 20 are furthermore built to initiate a third time measurement at time instance t.sub.3, shown in
[0024]
[0025] Time measurement means 10 furthermore comprise a phase wrap detector 29 that counts the number of edges of the target clock 5 and the number of edges of the internal device clock 33 during the fixed time period T and provides a phase wrap information that comprises a number information 30 of the counted edges of the target clock 5 and a number information 31 of the counted edges of the internal device clock 33. Calculation means 32 of time measurement means 10 compare this number information 30 and 31 and detect a phase wrap. A phase wrap happens if the frequencies of the target clock 5 and the internal device clock 33 are far off and a full period or even several full periods of the clocks have to be taken into account for the evaluation of the measured phase difference. This provides the advantage that time measurement means 10 detect phase wraps and even in such cases evaluate the correct phase information to be used to synchronize the device clock 8 with target clock 5.
[0026] It has to be stated that in the embodiment provided time measure means 10 do not use the final synchronized device clock 8 as input to measure the phase difference to the target clock 5 as they use the internal device clock 33 before phase correction processed by phase correction means 22. This is possible as there is no difference for the frequency correction and the phase correction. Using the uncorrected internal device clock 33 for third time measurement will result in the measurement of that uncorrected phase error which will be corrected by phase correction means 22. In another embodiment of the invention device clock 8 could be used for the third time measurement as well.
[0027] Device 1 furthermore uses a method to synchronize the frequency and phase of the device clock 8 within the device 1 with the target clock 5 of the remote target 2, which target clock 5 within the device 1 is derived from the target carrier signal 3 received from the target 2 with an antenna of the device 1. This method comprises the following steps:
measure the phase difference between the target clock 5 and the device clock or the internal device clock 33 and provide a first phase information .sub.l;
count a fixed number of clocks of an internal clock to wait a fixed time;
measure the phase difference between the target clock 5 and the device clock or the internal device clock 33 again and provide a second phase information .sub.2;
correct the frequency of the device clock 8 and/or the internal device clock 33 to the frequency of the target clock 5 by evaluation of the first phase information .sub.1 and second phase information .sub.2 ;
measure the phase difference between the target clock 5 and the device clock 8 or internal device clock 33 again and provide a third phase information .sub.3;
correct the phase of the device clock 8 to the phase of the target clock 5 by evaluation of the third phase information .sub.3. This method provides the advantages described above in relation with the device 1.
[0028] A device with inventive synchronization means has been described based on an embodiment that complies to the NFC Standard and with a device 1 that simulates a smart card or tag and actively sends data modulated onto a device carrier signal. The inventive concept of synchronization means as describe may be used within any other device that needs to synchronize its clock to the clock of a remote further device. Such concept could also be adopted for other fields including systems that detect movement, location and proximity. Where no second device exists, and the incoming signal is a reflection of the systems own signal, like in radar or motion sensors.
[0029] In another embodiment of the invention time measurement means 10 only require fine measurement means 26 to provide phase information cp. This enables a simple solution for time measurement means.
[0030] In another embodiment of the invention both the internal device clock and the device clock could be identical and run on a frequency of 13,56 MHz, what means that internal device clock is not needed anymore as separate clock. Synchronization means would in that case synchronize and generate a device clock with exact the same frequency and phase as the target clock and feed this device clock into driver means that directly would use this device clock to generate the device carrier signal.