GD32F20x User Manual
805
Synchronization accuracy
The accuracy of time synchronization depends on the following factors:
1) PTP reference clock input period
2) Characteristics of the oscillator (drift)
3) Frequency of the synchronization procedure.
System time correction method
The 64-bit PTP system time update by the PTP input reference clock. The PTP system time
is used as the s
ource to record transmission/reception frame’s timestamp. The system time
initialization and calibration support two methods: coarse method and fine method. The
purpose of calibration is to correct the frequency offset.
If the coarse correction method is selected, application can configure PTP timestamp update
register (ENET_PTP_TSUH and ENET_PTP_TSUL) for system time initialization or
correction. If TMSSTI bit is set, PTP timestamp update register is used for initialization and if
TMSSTU bit is set, PTP timestamp update register is used for adjust system time by adding
or subtracting.
If fine correction method is selected, operation is different. The fine correction method corrects
system time not in a single clock cycle. The fine correction frequency can be configured by
application to make slave clock frequency smoothly adapt master clock without
unpredictability large jitter.
This method is referred to the value of ENET_PTP_TSADDEND added to the accumulator in
each HCLK cycle. PTP module will produce a pulse to increase the value of ENET_PTP_TSL
register when the accumulator overflowed. The increased value when this pulse occurs is in
ENET_PTP_SSINC register.
The following illustration shows the fine correction algorithm process:
Figure 27-7. System time update using the fine correction method
The following concrete example is used to descript the fine correction method how to
update the system time:
Addend
Register
+
+
Constant
Value
Accumulator
Register
Subsecond
Register
Second
Register
Addend
update
Increment
Subsecond
Register
Increment
Second
Register
Содержание GD32F20 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F20x ARM Cortex M3 32 bit MCU User Manual Revision 2 2 Oct 2019 ...
Страница 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Страница 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Страница 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Страница 385: ...GD32F20x User Manual 385 ...
Страница 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...