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]
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.
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
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- FPGA Design Process
- Power supply obstacles + power supply SBC selection and pitfalls
- Sharing of key points on the use of ADI passive components
- Four design considerations for telematics hardware in connected cars
- Wide voltage input USB-C, 5V/3A output adapter reference design
- 【Smart Sports Watch】3. Build Development Environment 2
- Ginkgo USB-SPI host mode four data transmission mode timing diagram
- History of the Development of Microwave Circuits
- 6657Statically configure serial port general interrupt in sys/bios
- Understanding Nginx Architecture in One Article