Bit synchronization extraction of digital communication system based on single chip microcomputer

Publisher:chenxiaohong68Latest update time:2011-11-09 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

In a digital communication system, the transmitter transmits each codeword in a digital pulse sequence one by one in a certain time sequence. The receiver must have an accurate sampling decision moment to correctly judge the transmitted codeword. Therefore, the receiver must provide a timing pulse sequence that determines the sampling decision moment. The repetition frequency of this timing pulse sequence must be consistent with the transmitted digital pulse sequence, and the received codeword is sampled and judged at the best decision moment (or the best phase moment). The generation of such a timing pulse sequence at the receiving end can be called codeword synchronization, or bit synchronization. The method to achieve bit synchronization is
similar to carrier synchronization. There are two methods: direct method (self-synchronization method) and pilot insertion method (external synchronization method). The direct method is divided into filtering method and phase-locked method. The method introduced in this article is implemented using the phase-locked loop in the direct method.
1 Principle of digital phase-locked synchronization extraction
The bit synchronization extraction at the receiving end of the digital communication system usually adopts the digital phase-locked loop DPLL (Digital Phase Locked Loop) as shown in Figure 1. DPLL consists of 3 components:


(1) The digital phase detector DPD compares the phase of the received code element with the phase of the bit synchronization clock output by the local DCO, and outputs a digital signal reflecting the phase difference.
(2) The digital loop filter DLF filters the phase error digital signal output by the DPD, removes the influence of random noise, and outputs a more accurate phase error digital signal.
(3) The digital controlled oscillator DCO is an oscillator composed of digital circuits. It outputs a bit synchronization clock pulse CLK at the same rate as the received code element. Its phase can be advanced or delayed by the phase error digital signal, and finally locked with the phase of the received code element.
DPD and DCO are essential components of the digital phase-locked loop, and DLF can be added as needed. The three components are composed of various forms of circuits to form different digital phase-locked loops. The most typical digital phase-locked loop is the lead-lag digital phase-locked loop, also known as the differential rectification digital phase-locked loop. When the code rate is not high, it can be implemented by the single-chip microcomputer system shown in Figure 2. In the figure, edge detection is also called zero-crossing detection. It amplifies and reshapes the input data signal DK1, and then transforms its transition edge (zero-crossing point before reshaping) into a narrow pulse ZCD, which is sent to the external interrupt input terminal INT1 of the microcontroller. The delay circuit in edge detection can be realized by using several levels of gates. The differential rectifier circuit has the same function as the edge detection circuit.

[page]

The digital phase-locked loop does not use DLF. The T0 timer in the MCU and its interrupt service routine realize the DCO function. When DK1 has no transition edge (no ZCD negative pulse), the MCU does not enter the INT1 interrupt service routine, and the T0 timing is the input code period Tb. When DK1 has a transition edge, it enters the INT1 interrupt service routine, first reads the current value of T0 and the expected value (Tb/2 time constant), and determines by comparison whether the DCO phase is ahead or behind the phase relationship of the DK1 data transition edge, and adjusts the DCO phase accordingly. If the DCO phase is ahead, set the T0 next cycle timing to Tb+δ to delay the DCO phase; if the DCO phase lags, set the T0 next cycle timing to Tb-δ to advance the DCO phase, and finally achieve DCO phase lock with the DK1 data phase. In short, the INT1 interrupt service routine realizes the DPD and DCO control functions, and the T0 timer and its interrupt service routine realize the DCO function. The T1 timer and its interrupt service program implement delay, i.e. phase shift, so that the phase difference between the last output bit synchronization clock CLK and DK1 (or DK2) is 0 or 180°: when the transmission system frequency band is not limited and MSK/FSK modulation and demodulation is adopted, DK1 is a square wave, and the receiving end adopts integration/sampling/judgment for detection, and the phase difference between the two should be 0, that is, CLK and DK1 data edges are aligned; when the transmission system frequency band is limited and GMSK/GFSK modulation and demodulation is adopted, DK2 (the signal of DK1 after LPF) is a bell-shaped pulse, and CLK should sample/judgment at the midpoint of DK2 code element, and the phase difference between the two is 180° or Tb/2, as shown in Figure 2(d). The T1 delay is controlled by the P1.4 input signal MSKC. The block diagram of the INT1, T0 and T1 interrupt service programs is shown in Figure 3. The main program steps after completing the initialization of the three interrupt sources and other initializations.

The bit synchronization extraction digital phase-locked loop is implemented by CPU2, and the control signal MSKC of its P1.4 input comes from CPU1 and is determined by the working mode: in FSK/MSK working mode, MSKC=1; in GMSK/GFSK working mode, MSKC=0.
[page]

For the received random digital signal, it can be approximately considered that the probability of 00, 01, 10, and 11 appearing in two adjacent code elements is equal, and half of them have data jumps. For the digital phase-locked loop without DLF, the phase can be adjusted once for each data jump, so the phase can be adjusted once every 2Tb s on average, so the synchronization establishment time is:

the digital phase-locked loop with DLF has a lower rate of adjusting the phase than the one without DLF, so the synchronization band is smaller than formula (5).
From formula (1), formula (2), and formula (5), it can be seen that the three performance indicators all depend on the DCO cycle adjustment step δ: the larger δ, the larger the synchronization band, the shorter the synchronization establishment time, but the phase error increases. Therefore, δ should be selected in a compromise. Under the premise of ensuring that the phase-locked loop can be locked (synchronized), δ should be as small as possible to reduce the phase error.
This design uses a single-chip microcomputer chip to implement digital circuit related devices, simplifies the complex logic circuit design of related devices, reduces the power consumption and cost of the system, and improves the reliability of the system. There are many ways to achieve bit synchronization. This article discusses the use of digital phase-locked loop technology to extract bit synchronization signals. In bit synchronization extraction, how to shorten the synchronization establishment time, reduce the bit error and increase the synchronization holding time is the direction of good bit synchronization design.
References
[1] Zhan Hongran. Single-product machine principle and practical training course [M]. Beijing: Beijing Normal University Press, 2008.
[2] Fan Changxin. Communication principle [M]. Beijing: National Defense Industry Press, 2001.
[3] Zhang Juesheng, Zheng Jiyu. Phase-locked loop technology [M]. Xi'an: Xi'an University of Electronic Science and Technology Press, 1994.
[4] Tian Zhisheng. Accurate automatic gain control circuit based on phase-locked loop [J]. Modern Electronic Technology, 2005, 28(3): 16-17.
[5] Bi Chengjun. Bit synchronization signal extraction based on FPGA [J]. Modern Electronic Technology, 2006, 20(4): 121-123.

Reference address:Bit synchronization extraction of digital communication system based on single chip microcomputer

Previous article:Photovoltaic sine wave inverter power supply based on single chip microcomputer
Next article:Frequency conversion speed regulation system based on single chip microcomputer

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号