Download ZWIR4501

Transcript
ZWIR4501
4.12 Timing Correction
4.12.1 Network Timing Correction
In a beacon-enabled network, the coordinator and the beacon tracking device share the same superframe time
base. The frequency deviation of the crystals leads to a timing error between the coordinator’s and the device’s
time base. This timing error will be close to zero immediate following the beacon frame and will then increase
over the beacon interval. The tolerable limit of the timing deviation for a coordinator defined by IEEE_standard is
40 ppm. The ZWIR4501 uses the 32.768 kHz crystal based RTC for the beacon tracking time base. The worst
case frequency deviation for a low cost 32.768 kHz crystal can be assumed to be 80 ppm. Hence, the total
beacon interval timing deviation between coordinator and a device can be up to 40 ppm + 80 ppm =120 ppm.
Table 4.1 shows the timing deviation at the end of the beacon interval for 120 ppm and different beacon order.
Beacon Order
Beacon Interval
Timing Deviation (120ppm)
in symbols
in symbols
in ms (channel 0)
6
61440
7
0,18
8
245760
29
0,74
12
3932160
472
11,80
14
15728640
1.887
47,19
Table 4.1: Timing Deviation for 120ppm
In beacon tracking mode, the ZWIR4501 can track and correct the beacon interval timing error relative to its
coordinator. This minimizes the time the receiver must be turned on before the arrival of the next beacon and
therefore helps reduce the power consumption. Additionally, the superframe time is periodically corrected in
order to keep the slot boundaries aligned with the coordinators’ slot boundaries, which reduces collisions in the
slotted traffic. Moreover, a beacon tracking device can go to sleep within the superframe and recover the
superframe time on wake up, allowing a device, for example, to sleep until a GTS transmission.
The features mentioned above will be explained in subsequent Sections.
4.12.2 Beacon Interval Timing Correction
The integrated beacon interval timing correction measures the time difference between the expected and the
actual arrival of the beacon frame. The difference is used to adjust the beacon interval and to improve the
estimate of the next beacon arrival. Figure 4.25: Beacon Tracking Timing Correction illustrates this process. The
T_BeaconScanStart register is used to control the time the receiver is turned on before the expected arrival of
the next beacon frame.
At the end of the initial beacon interval, the uncertainty window of the beacon arrival is two times the worst case
timing deviation, to which the T_BeaconScanStart register must be adjusted.
Given a total coordinator-device timing deviation (DEV) of 120ppm and a beacon order (BO), the initial
T_BeaconScanStart time is:
T_BeaconScanStart = 960*2BO*DEV
T_BeaconScanStart = 960*2BO*120e-6
During the initial beacon interval, the macBcTrStatus shows the status Track and Sync, where Sync means that
the HW-MAC has successfully synchronized to a beacon but the beacon interval is not corrected yet. After the
2nd tracked beacon, the beacon interval timing correction is active, as indicated by the additional Align status bit
in the macBcTrStatus register. At this time, the beacon arrival uncertainty window should be reduced by setting
T_BeaconScanStart to 5. This will reduce the beacon tracking power consumption.
Copyright © 2009, ZMD AG, ZWIR4501 Data Sheet and User Manual v.1.3 - August 19, 2009
Page 56 of 124