Clock phase synchronization control method and device

By receiving the clock signal of the DSP host and generating MCLK, BCLK and LRCK clock signals on the clock production chip, adjusting their phase difference, the problem of difficult clock signal synchronization in the I2S transmission system is solved, and the accuracy of audio data transmission and system are improved performance.

CN119254369AActive Publication Date: 2025-01-03GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411405927.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-01-03
Estimated Expiration
2044-10-10

AI Technical Summary

Technical Problem

The existing I2S transmission system is difficult to synchronize the clock signal in complex environments, resulting in data transmission errors and noise. Especially when the system load is too heavy or the signal delay increases, the clock phase offset is severe and difficult to solve through hardware self-calibration.

Method used

By receiving the clock signal from the DSP host, it is sent to the clock production chip to generate MCLK, BCLK and LRCK clock signals, and the phase difference of these signals is adjusted by controlling the clock production chip until it reaches the preset error range, ensuring that the clock signals of all channels are synchronized.

Benefits of technology

It significantly improves the accuracy and reliability of audio data transmission, optimizes the overall performance of the audio processing system, reduces audio distortion and noise caused by clock deviation, and improves the stability and user experience of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254369A_ABST
    Figure CN119254369A_ABST
Patent Text Reader

Abstract

The invention discloses a clock phase synchronization control method and device. According to the invention, a 12.288 MHz first clock signal provided by a DSP host is received and sent to a clock production chip to generate MCLK, BCLK and LRCK clock signals. According to the invention, by controlling the clock production chip and adjusting the phase difference of the clock signals until the phase difference reaches the preset error range, signal synchronization is ensured, so that the problem that clock phases are difficult to synchronize in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of clock phase synchronization control, and in particular to a clock phase synchronization control method and device. Background Art

[0002] In modern audio processing systems, such as audio processors or conference hosts, the I2S (Inter-IC Sound) bus is widely used to transmit multi-channel audio data. I2S provides a simple and effective way to transmit audio signals, especially between digital audio devices. However, the existing I2S transmission system has some inherent limitations, especially in processing timing calibration.

[0003] First of all, the I2S bus was not designed with a complex timing calibration scheme in mind. This means that when using I2S for audio transmission, the system relies primarily on the hardware's own clock signal to synchronize the data stream. Although this pure hardware processing method is simple, its limitations begin to emerge when faced with complex usage environments. The I2S standard bus itself does not support calibration of the phase offset of the clock signal. Ideally, the data signal and the clock signal should be perfectly synchronized to ensure that data can be transmitted and received accurately. However, in actual applications, the phase of the clock signal may be offset due to a variety of factors, such as performance differences in electronic components, temperature changes, power supply fluctuations, etc.

[0004] In addition, when the system is overloaded or the audio data needs to be transmitted through a longer trace, the problem is further exacerbated. This is because as the trace length increases, the delay in signal transmission also increases, which may cause the synchronization between data and clock to deteriorate further. In extreme cases, this asynchrony may cause data errors or even generate noise in the audio output. That is, the clock phase in the prior art is difficult to synchronize. Summary of the invention

[0005] The present invention provides a control method and device for clock phase synchronization to solve the problem that clock phase is difficult to synchronize in the prior art.

[0006] In a first aspect, the present application provides a method for controlling clock phase synchronization, comprising:

[0007] Receive a first clock signal from a DSP host;

[0008] Sending the first clock signal to a clock production chip so that the clock production chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal;

[0009] The clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range, and the adjustment is stopped to obtain the first phase, the second phase and the third phase.

[0010] The present application ensures the initial synchronization of the clock signal by receiving the first clock signal provided by the DSP host and sending the signal to the clock production chip. Subsequently, the MCLK clock signal, BCLK clock signal and LRCK clock signal generated by the clock production chip correspond to different audio transmission channels respectively. The phase difference of these signals is adjusted until it reaches a preset error range. This process is achieved by controlling the phase relationship of each clock signal. This adjustment ensures that the clock signals of all channels can keep pace with the original first clock signal, thereby reducing audio distortion and noise caused by phase deviation. When the adjustment stops and the first phase, the second phase and the third phase are obtained, the present application has achieved a highly synchronized clock signal. The method of the present application significantly improves the accuracy and reliability of audio data transmission, optimizes the overall performance of the audio processing system, and solves the problem of difficult synchronization of clock phases in the prior art.

[0011] As a preferred embodiment of the first aspect, the clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range, specifically:

[0012] According to the time domain waveform diagram, the clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range.

[0013] According to the time domain waveform diagram, the clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal, specifically:

[0014] The time domain waveform is displayed on an oscilloscope;

[0015] The clock production chip is connected to an oscilloscope;

[0016] The first input interface of the oscilloscope is connected to the pin of the MCLK clock signal, the second input interface of the oscilloscope is connected to the pin of the BCLK clock signal, and the third input interface of the oscilloscope is connected to the pin of the LRCK clock signal.

[0017] In this preferred embodiment, the present application connects the clock production chip to an oscilloscope, and respectively connects the input interface of the oscilloscope to the MCLK clock signal, the BCLK clock signal, and the LRCK clock signal, and uses the oscilloscope to accurately measure and display the time domain waveforms of these clock signals. The present application can observe and manually or automatically adjust these signals in real time by visually comparing the phase difference of these clock signals on the oscilloscope until their phase difference reaches a preset error range. This phase adjustment process ensures that the clock signals of different channels can be synchronized, thereby reducing audio data transmission errors and distortions caused by clock asynchrony. Ultimately, this not only improves the transmission quality of the audio signal, but also enhances the stability and reliability of the system, providing users with clearer and more accurate audio output.

[0018] As a preferred embodiment of the first aspect, sending the first clock signal to a clock production chip so that the clock production chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal is specifically:

[0019] The MCLK clock signal is a first clock signal with a double frequency, the BCLK clock signal is a first clock signal with a single frequency, and the LRCK clock signal is a first clock signal with a 256-divided frequency.

[0020] In this preferred embodiment, the present application sends a first clock signal to a clock production chip, and specifically generates an MCLK clock signal, a BCLK clock signal, and an LRCK clock signal, wherein the MCLK clock signal is twice the frequency of the first clock signal, the BCLK clock signal is once the frequency of the first clock signal, and the LRCK clock signal is 256 times the frequency of the first clock signal. This method can provide clock signals of different frequencies for the audio processing system to meet the needs of different components and transmission channels. The generation of this multi-frequency clock signal ensures the flexibility and adaptability of the system when processing different sampling rates and data streams. Since the frequency of the clock signal is directly related to the processing and transmission of audio data, this precise frequency control helps to improve the accuracy of data synchronization and reduce clock deviations and data transmission errors caused by frequency mismatch. Ultimately, this will improve the transmission quality of audio signals, reduce distortion and noise, and enhance the overall performance of the system and the user's auditory experience.

[0021] As a preferred embodiment of the first aspect, sending the first clock signal to a clock production chip so that the clock production chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal further includes:

[0022] The MCLK clock signal, the BCLK clock signal and the LRCK clock signal are connected to the first slave, the second slave, the third slave and the fourth slave respectively;

[0023] The MCLK clock signal, the BCLK clock signal and the LRCK clock signal directly drive the first slave, the second slave, the third slave and the fourth slave respectively.

[0024] In this preferred embodiment, the present application provides a first clock signal to a clock production chip, and generates an MCLK clock signal, a BCLK clock signal, and an LRCK clock signal, which are respectively connected to the first slave, the second slave, the third slave, and the fourth slave, and directly drives these slaves. The present application realizes accurate clock synchronization of multiple slave devices in the audio transmission system. This direct connection and driving method ensures that the slave device can receive a stable and synchronous clock signal, thereby maintaining the consistency and synchronization of data during multi-channel audio transmission. Since the clock signal is the key to ensuring data integrity and accuracy in digital audio transmission, the present application reduces audio distortion and noise caused by clock asynchrony by reducing clock deviation during transmission. In addition, directly driving the slave device also improves the response speed and processing efficiency of the system, thereby optimizing the overall performance of the audio processing system and providing users with clearer and more synchronized audio output.

[0025] In a second aspect, the present application provides a control device for clock phase synchronization. The control device for clock phase synchronization includes a receiving module, a sending module and an adjusting module;

[0026] The receiving module is used to receive the first clock signal of the DSP host;

[0027] The sending module is used to send the first clock signal to the clock production chip, so that the clock production chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal;

[0028] The adjustment module controls the clock production chip so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range, stops adjusting, and obtains the first phase, the second phase and the third phase.

[0029] The device uses three modules to divide the work and coordinate the work to better achieve the synchronization of the clock phase. The application ensures the initial synchronization of the clock signal by receiving the first clock signal provided by the DSP host and sending the signal to the clock production chip. Subsequently, the MCLK clock signal, BCLK clock signal and LRCK clock signal generated by the clock production chip correspond to different audio transmission channels. The phase difference of these signals is adjusted until it reaches the preset error range. This process is achieved by controlling the phase relationship of each clock signal. This adjustment ensures that the clock signals of all channels can keep in sync with the original first clock signal, thereby reducing audio distortion and noise caused by phase deviation. When the adjustment stops and the first phase, the second phase and the third phase are obtained, the application has achieved a highly synchronized clock signal. The method of the application significantly improves the accuracy and reliability of audio data transmission, optimizes the overall performance of the audio processing system, and solves the problem of difficult synchronization of clock phases in the prior art.

[0030] As a preferred embodiment of the second aspect, the clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range, specifically:

[0031] According to the time domain waveform diagram, the clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range.

[0032] According to the time domain waveform diagram, the clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal, specifically:

[0033] The time domain waveform is displayed on an oscilloscope;

[0034] The clock production chip is connected to an oscilloscope;

[0035] The first input interface of the oscilloscope is connected to the pin of the MCLK clock signal, the second input interface of the oscilloscope is connected to the pin of the BCLK clock signal, and the third input interface of the oscilloscope is connected to the pin of the LRCK clock signal.

[0036] In this preferred embodiment, the present application connects the clock production chip to an oscilloscope, and respectively connects the input interface of the oscilloscope to the MCLK clock signal, the BCLK clock signal, and the LRCK clock signal, and uses the oscilloscope to accurately measure and display the time domain waveforms of these clock signals. The present application can observe and manually or automatically adjust these signals in real time by visually comparing the phase difference of these clock signals on the oscilloscope until their phase difference reaches a preset error range. This phase adjustment process ensures that the clock signals of different channels can be synchronized, thereby reducing audio data transmission errors and distortions caused by clock asynchrony. Ultimately, this not only improves the transmission quality of the audio signal, but also enhances the stability and reliability of the system, providing users with clearer and more accurate audio output.

[0037] As a preferred embodiment of the second aspect, sending the first clock signal to a clock production chip so that the clock production chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal is specifically:

[0038] The MCLK clock signal is a first clock signal with a double frequency, the BCLK clock signal is a first clock signal with a single frequency, and the LRCK clock signal is a first clock signal with a 256-divided frequency.

[0039] In this preferred embodiment, the present application sends a first clock signal to a clock production chip, and specifically generates an MCLK clock signal, a BCLK clock signal, and an LRCK clock signal, wherein the MCLK clock signal is twice the frequency of the first clock signal, the BCLK clock signal is once the frequency of the first clock signal, and the LRCK clock signal is 256 times the frequency of the first clock signal. This method can provide clock signals of different frequencies for the audio processing system to meet the needs of different components and transmission channels. The generation of this multi-frequency clock signal ensures the flexibility and adaptability of the system when processing different sampling rates and data streams. Since the frequency of the clock signal is directly related to the processing and transmission of audio data, this precise frequency control helps to improve the accuracy of data synchronization and reduce clock deviations and data transmission errors caused by frequency mismatch. Ultimately, this will improve the transmission quality of audio signals, reduce distortion and noise, and enhance the overall performance of the system and the user's auditory experience.

[0040] As a preferred embodiment of the second aspect, sending the first clock signal to a clock production chip so that the clock production chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal further includes:

[0041] The MCLK clock signal, the BCLK clock signal and the LRCK clock signal are connected to the first slave, the second slave, the third slave and the fourth slave respectively;

[0042] The MCLK clock signal, the BCLK clock signal and the LRCK clock signal directly drive the first slave, the second slave, the third slave and the fourth slave respectively.

[0043] In this preferred embodiment, the present application provides a first clock signal to a clock production chip, and generates an MCLK clock signal, a BCLK clock signal, and an LRCK clock signal, which are respectively connected to the first slave, the second slave, the third slave, and the fourth slave, and directly drives these slaves. The present application realizes accurate clock synchronization of multiple slave devices in the audio transmission system. This direct connection and driving method ensures that the slave device can receive a stable and synchronous clock signal, thereby maintaining the consistency and synchronization of data during multi-channel audio transmission. Since the clock signal is the key to ensuring data integrity and accuracy in digital audio transmission, the present application reduces audio distortion and noise caused by clock asynchrony by reducing clock deviation during transmission. In addition, directly driving the slave device also improves the response speed and processing efficiency of the system, thereby optimizing the overall performance of the audio processing system and providing users with clearer and more synchronized audio output. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 : A flow chart of an embodiment of a clock phase synchronization control method provided by the present application;

[0045] Figure 2 : A structural diagram of an embodiment of a hardware structural connection for clock phase synchronization provided by the present application;

[0046] Figure 3 : A structural diagram of an embodiment of a clock phase synchronization control device provided in the present application. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] Embodiment 1

[0049] Please refer to Figure 1 , which is a clock phase synchronization control method provided by an embodiment of the present invention.

[0050] In this embodiment, the process of the clock phase synchronization control method in the present application is described in detail through steps S01-S03.

[0051] like Figure 2 As shown, Figure 2 This is a schematic diagram of the connection structure of the hardware used in this application. The hardware used in this application includes a DSP (I 2S host), an oscillator crystal source, a clock generation chip, a main control chip, an I 2S slave 1 (ADC1), an I 2S slave 2 (ADC2), an I 2S slave 3 (DAC1), an I 2S slave 4 (DAC2), an analog audio input interface 1, an analog audio input interface 2, an analog audio output interface 1 and an analog audio output interface 2.

[0052] The signal direction of the hardware connection structure diagram is: analog audio input interface 1, analog audio input interface 2--->ADC1, ADC2-->DSP-->DAC1, DAC2-->analog output interface 1, analog output interface 2.

[0053] S01: Receive the first clock signal from the DSP host.

[0054] As a preferred embodiment of the first embodiment, the first clock signal of the receiving DSP host is specifically:

[0055] The main control chip receives the first clock signal from the DSP host, which is a key step to ensure the synchronization of the entire audio system. The first clock signal has a frequency of 12.288MHz. This specific frequency is selected to meet the specific requirements of the audio processing system for the clock frequency. Specifically, the clock signal of this frequency is generated by dividing the 24MHz clock provided by the external active crystal oscillator through the internal allocation register of the DSP (as the I2S host). This frequency division process not only ensures the stability and accuracy of the clock signal, but also allows the system to flexibly adjust the clock frequency according to different audio processing requirements.

[0056] The DSP host provides the divided 12.288MHz clock signal to the main control chip, which then controls the clock production chip to further distribute and manage the clock signal. In this way, the main control chip can effectively control the clock synchronization of the entire audio system to ensure the accuracy and reliability of audio data during transmission. In addition, the main control chip's control ability over the clock production chip enables the system to flexibly adapt to different working conditions and load changes, further improving the stability of the system and the quality of audio transmission.

[0057] Through this precise clock signal management and distribution mechanism, the audio processing system can achieve efficient data synchronization and reduce audio distortion and noise caused by clock deviation, thus providing users with high-quality audio output. The application of this mechanism significantly improves the overall performance of the audio processing system and ensures that the clarity and accuracy of the audio signal can be maintained in various complex environments.

[0058] S02: Sending the first clock signal to a clock generation chip, so that the clock generation chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal.

[0059] As a preferred embodiment of the first embodiment, the sending of the first clock signal to a clock production chip so that the clock production chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal is specifically as follows:

[0060] The clock production chip is responsible for generating three key clock signals: MCLK (master clock), BCLK (bit clock) and LRCK (frame clock), which are essential for audio data synchronization in the I2S communication protocol. The three newly generated clock signals directly drive ADC1 and ADC2 (as I2S slaves 1 and 2) for analog-to-digital conversion, and DAC1 and DAC2 (as I2S slaves 3 and 4) for digital-to-analog conversion. This direct drive method ensures the timing accuracy and synchronization of the audio signal during the conversion process, thereby improving the quality and reliability of audio data transmission.

[0061] The clock generation chip has the ability to finely adjust the phase difference of the three clock signals it generates, which enables the system to adapt to various complex audio transmission environments and conditions. Specifically, the clock generation chip can adjust 128 different steps, and the accuracy of each step reaches 333 picoseconds (ps), which provides the system with extremely high clock synchronization adjustment flexibility. In practical applications, this fine adjustment capability allows the system to be optimized for specific transmission requirements and environmental changes, thereby ensuring stable transmission of audio signals.

[0062] When the system detects output noise or distortion, the main control chip can intervene and adjust the phase difference of the three clock signals MCLK, BCLK and LRCK generated by the clock generation chip. By accurately adjusting the phase of these clock signals, the main control chip can eliminate audio distortion and noise caused by phase deviation and restore the clarity and accuracy of the audio signal. This adjustment process can be automatic or manual, depending on the system design and user needs.

[0063] Through this clock phase adjustment mechanism, the present application can not only provide high-quality audio output, but also maintain stable performance in the face of various challenges and interferences. The application of this mechanism significantly improves the overall performance of the audio processing system and the user's listening experience, ensuring that the clarity and accuracy of the audio signal can be maintained in various complex environments.

[0064] S03: Controlling the clock production chip so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range, stops adjusting, and obtains a first phase, a second phase and a third phase.

[0065] As a preferred embodiment of the first embodiment, the clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range, and the adjustment is stopped to obtain the first phase, the second phase and the third phase, specifically:

[0066] In audio processing systems, ensuring accurate synchronization of clock signals is essential to maintaining high-quality audio transmission. To achieve this, the system uses an oscilloscope to monitor and analyze the time domain waveforms of the three key clock signals MCLK, BCLK, and LRCK generated by the clock generation chip.

[0067] The analog input interface 1 of the oscilloscope is connected to the MCLK pin of the clock generation chip to detect and display the time domain waveform of the MCLK clock signal. As the main clock signal, MCLK is usually used for synchronous audio sampling, and its stability has a decisive influence on the synchronization of the entire system.

[0068] Analog input interface 2 is connected to the BCLK pin and is used to detect and display the time domain waveform of the BCLK clock signal. As a bit clock, BCLK controls the bit rate of data transmission, and its accuracy directly affects the accuracy of data transmission.

[0069] Analog input interface 3 is connected to the LRCK pin to detect and display the time domain waveform of the LRCK clock signal. LRCK is used as a frame clock to distinguish the sampling of the left and right channels, which is essential for maintaining the consistency of stereo audio.

[0070] Through the monitoring of the oscilloscope, the phases of the three clock signals can be intuitively compared in the time domain. If the phase difference is found to exceed the preset error range, the main control chip will intervene and adjust the clock generation chip to fine-tune the phase difference of MCLK, BCLK and LRCK. This adjustment can be achieved through an automatic control algorithm or through manual adjustment, depending on the design of the system and the convenience of operation.

[0071] By precisely adjusting the phase difference of the three clock signals until they are within the error range, the system can ensure the synchronization of audio data during transmission, thereby reducing or eliminating noise and distortion caused by clock asynchrony. This precise clock phase control mechanism significantly improves the overall performance of the audio processing system, ensures high-quality audio output, and provides users with a clear and pure listening experience.

[0072] The present application ensures the initial synchronization of the clock signal by receiving the first clock signal provided by the DSP host and sending the signal to the clock production chip. Subsequently, the MCLK clock signal, BCLK clock signal and LRCK clock signal generated by the clock production chip correspond to different audio transmission channels respectively. The phase difference of these signals is adjusted until it reaches a preset error range. This process is achieved by controlling the phase relationship of each clock signal. This adjustment ensures that the clock signals of all channels can keep pace with the original first clock signal, thereby reducing audio distortion and noise caused by phase deviation. When the adjustment stops and the first phase, the second phase and the third phase are obtained, the present application has achieved a highly synchronized clock signal. The method of the present application significantly improves the accuracy and reliability of audio data transmission, optimizes the overall performance of the audio processing system, and solves the problem of difficult synchronization of clock phases in the prior art.

[0073] Embodiment 2

[0074] Please refer to Figure 3 , which is a clock phase synchronization control device provided in an embodiment of the present application.

[0075] In this embodiment, the control device for clock phase synchronization includes a receiving module 10 , a sending module 20 and an adjusting module 30 .

[0076] like Figure 2 As shown, Figure 2 This is a schematic diagram of the connection structure of the hardware used in this application. The hardware used in this application includes a DSP (I 2S host), an oscillator crystal source, a clock generation chip, a main control chip, an I 2S slave 1 (ADC1), an I 2S slave 2 (ADC2), an I 2S slave 3 (DAC1), an I 2S slave 4 (DAC2), an analog audio input interface 1, an analog audio input interface 2, an analog audio output interface 1 and an analog audio output interface 2.

[0077] The signal direction of the hardware connection structure diagram is: analog audio input interface 1, analog audio input interface 2--->ADC1, ADC2-->DSP-->DAC1, DAC2-->analog output interface 1, analog output interface 2.

[0078] The receiving module 10 is used to receive a first clock signal from a DSP host.

[0079] As a preferred embodiment of the first embodiment, the first clock signal of the receiving DSP host is specifically:

[0080] The main control chip receives the first clock signal from the DSP host, which is a key step to ensure the synchronization of the entire audio system. The first clock signal has a frequency of 12.288MHz. This specific frequency is selected to meet the specific requirements of the audio processing system for the clock frequency. Specifically, the clock signal of this frequency is generated by dividing the 24MHz clock provided by the external active crystal oscillator through the internal allocation register of the DSP (as the I2S host). This frequency division process not only ensures the stability and accuracy of the clock signal, but also allows the system to flexibly adjust the clock frequency according to different audio processing requirements.

[0081] The DSP host provides the divided 12.288MHz clock signal to the main control chip, which then controls the clock production chip to further distribute and manage the clock signal. In this way, the main control chip can effectively control the clock synchronization of the entire audio system to ensure the accuracy and reliability of audio data during transmission. In addition, the main control chip's control ability over the clock production chip enables the system to flexibly adapt to different working conditions and load changes, further improving the stability of the system and the quality of audio transmission.

[0082] Through this precise clock signal management and distribution mechanism, the audio processing system can achieve efficient data synchronization and reduce audio distortion and noise caused by clock deviation, thus providing users with high-quality audio output. The application of this mechanism significantly improves the overall performance of the audio processing system and ensures that the clarity and accuracy of the audio signal can be maintained in various complex environments.

[0083] The sending module 20 is used for sending the first clock signal to the clock generation chip, so that the clock generation chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal.

[0084] As a preferred embodiment of the first embodiment, the sending of the first clock signal to a clock production chip so that the clock production chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal is specifically as follows:

[0085] The clock production chip is responsible for generating three key clock signals: MCLK (master clock), BCLK (bit clock) and LRCK (frame clock), which are essential for audio data synchronization in the I2S communication protocol. The three newly generated clock signals directly drive ADC1 and ADC2 (as I2S slaves 1 and 2) for analog-to-digital conversion, and DAC1 and DAC2 (as I2S slaves 3 and 4) for digital-to-analog conversion. This direct drive method ensures the timing accuracy and synchronization of the audio signal during the conversion process, thereby improving the quality and reliability of audio data transmission.

[0086] The clock generation chip has the ability to finely adjust the phase difference of the three clock signals it generates, which enables the system to adapt to various complex audio transmission environments and conditions. Specifically, the clock generation chip can adjust 128 different steps, and the accuracy of each step reaches 333 picoseconds (ps), which provides the system with extremely high clock synchronization adjustment flexibility. In practical applications, this fine adjustment capability allows the system to be optimized for specific transmission requirements and environmental changes, thereby ensuring stable transmission of audio signals.

[0087] When the system detects output noise or distortion, the main control chip can intervene and adjust the phase difference of the three clock signals MCLK, BCLK and LRCK generated by the clock generation chip. By accurately adjusting the phase of these clock signals, the main control chip can eliminate audio distortion and noise caused by phase deviation and restore the clarity and accuracy of the audio signal. This adjustment process can be automatic or manual, depending on the system design and user needs.

[0088] Through this clock phase adjustment mechanism, the present application can not only provide high-quality audio output, but also maintain stable performance in the face of various challenges and interferences. The application of this mechanism significantly improves the overall performance of the audio processing system and the user's listening experience, ensuring that the clarity and accuracy of the audio signal can be maintained in various complex environments.

[0089] The adjustment module 30 is used to control the clock production chip so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range, stops adjusting, and obtains the first phase, the second phase and the third phase.

[0090] As a preferred embodiment of the first embodiment, the clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range, and the adjustment is stopped to obtain the first phase, the second phase and the third phase, specifically:

[0091] In audio processing systems, ensuring accurate synchronization of clock signals is essential to maintaining high-quality audio transmission. To achieve this, the system uses an oscilloscope to monitor and analyze the time domain waveforms of the three key clock signals MCLK, BCLK, and LRCK generated by the clock generation chip.

[0092] The analog input interface 1 of the oscilloscope is connected to the MCLK pin of the clock generation chip to detect and display the time domain waveform of the MCLK clock signal. As the main clock signal, MCLK is usually used for synchronous audio sampling, and its stability has a decisive influence on the synchronization of the entire system.

[0093] Analog input interface 2 is connected to the BCLK pin and is used to detect and display the time domain waveform of the BCLK clock signal. As a bit clock, BCLK controls the bit rate of data transmission, and its accuracy directly affects the accuracy of data transmission.

[0094] Analog input interface 3 is connected to the LRCK pin to detect and display the time domain waveform of the LRCK clock signal. LRCK is used as a frame clock to distinguish the sampling of the left and right channels, which is essential for maintaining the consistency of stereo audio.

[0095] Through the monitoring of the oscilloscope, the phases of the three clock signals can be intuitively compared in the time domain. If the phase difference is found to exceed the preset error range, the main control chip will intervene and adjust the clock generation chip to fine-tune the phase difference of MCLK, BCLK and LRCK. This adjustment can be achieved through an automatic control algorithm or through manual adjustment, depending on the design of the system and the convenience of operation.

[0096] By precisely adjusting the phase difference of the three clock signals until they are within the error range, the system can ensure the synchronization of audio data during transmission, thereby reducing or eliminating noise and distortion caused by clock asynchrony. This precise clock phase control mechanism significantly improves the overall performance of the audio processing system, ensures high-quality audio output, and provides users with a clear and pure listening experience.

[0097] The device uses three modules to divide the work and coordinate the work to better achieve the synchronization of the clock phase. The application ensures the initial synchronization of the clock signal by receiving the first clock signal provided by the DSP host and sending the signal to the clock production chip. Subsequently, the MCLK clock signal, BCLK clock signal and LRCK clock signal generated by the clock production chip correspond to different audio transmission channels. The phase difference of these signals is adjusted until it reaches the preset error range. This process is achieved by controlling the phase relationship of each clock signal. This adjustment ensures that the clock signals of all channels can keep in sync with the original first clock signal, thereby reducing audio distortion and noise caused by phase deviation. When the adjustment stops and the first phase, the second phase and the third phase are obtained, the application has achieved a highly synchronized clock signal. The method of the application significantly improves the accuracy and reliability of audio data transmission, optimizes the overall performance of the audio processing system, and solves the problem of difficult synchronization of clock phases in the prior art.

[0098] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for controlling clock phase synchronization, characterized in that: include: Receive a first clock signal from a DSP host; Sending the first clock signal to a clock production chip so that the clock production chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal; The clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range, and the adjustment is stopped to obtain the first phase, the second phase and the third phase.

2. The clock phase synchronization control method according to claim 1, characterized in that: The clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range, specifically: According to the time domain waveform diagram, the clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range.

3. The clock phase synchronization control method according to claim 2, characterized in that: According to the time domain waveform diagram, the clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal, specifically: The time domain waveform is displayed on an oscilloscope; The clock production chip is connected to an oscilloscope; The first input interface of the oscilloscope is connected to the pin of the MCLK clock signal, the second input interface of the oscilloscope is connected to the pin of the BCLK clock signal, and the third input interface of the oscilloscope is connected to the pin of the LRCK clock signal.

4. The clock phase synchronization control method according to claim 1, characterized in that: The sending of the first clock signal to a clock production chip so that the clock production chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal is specifically: The MCLK clock signal is a first clock signal with a double frequency, the BCLK clock signal is a first clock signal with a single frequency, and the LRCK clock signal is a first clock signal with a 256-divided frequency.

5. The clock phase synchronization control method according to claim 1, characterized in that: The sending of the first clock signal to a clock production chip so that the clock production chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal also includes: The MCLK clock signal, the BCLK clock signal and the LRCK clock signal are connected to the first slave, the second slave, the third slave and the fourth slave respectively; The MCLK clock signal, the BCLK clock signal and the LRCK clock signal directly drive the first slave, the second slave, the third slave and the fourth slave respectively.

6. A clock phase synchronization control device, characterized in that: It includes a receiving module, a sending module and an adjusting module; The receiving module is used to receive the first clock signal of the DSP host; The sending module is used to send the first clock signal to the clock production chip, so that the clock production chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal; The adjustment module controls the clock production chip so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range, stops adjusting, and obtains the first phase, the second phase and the third phase.

7. The clock phase synchronization control device according to claim 6, characterized in that: The clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range, specifically: According to the time domain waveform diagram, the clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal until the phase difference is within a preset error range.

8. The clock phase synchronization control device according to claim 7, characterized in that: According to the time domain waveform diagram, the clock production chip is controlled so that the clock production chip adjusts the phase difference of the MCLK clock signal, the BCLK clock signal and the LRCK clock signal, specifically: The time domain waveform is displayed on an oscilloscope; The clock production chip is connected to an oscilloscope; The first input interface of the oscilloscope is connected to the pin of the MCLK clock signal, the second input interface of the oscilloscope is connected to the pin of the BCLK clock signal, and the third input interface of the oscilloscope is connected to the pin of the LRCK clock signal.

9. The clock phase synchronization control device according to claim 6, characterized in that: The sending of the first clock signal to a clock production chip so that the clock production chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal is specifically: The MCLK clock signal is a first clock signal with a double frequency, the BCLK clock signal is a first clock signal with a single frequency, and the LRCK clock signal is a first clock signal with a 256-divided frequency.

10. The clock phase synchronization control device according to claim 6, characterized in that: The sending of the first clock signal to a clock production chip so that the clock production chip generates an MCLK clock signal, a BCLK clock signal and an LRCK clock signal also includes: The MCLK clock signal, the BCLK clock signal and the LRCK clock signal are connected to the first slave, the second slave, the third slave and the fourth slave respectively; The MCLK clock signal, the BCLK clock signal and the LRCK clock signal directly drive the first slave, the second slave, the third slave and the fourth slave respectively.

Citation Information

Patent Citations

  • Timing sequence regenerating and shaping method for digital audio signal and device thereof

    CN109817230A

  • Method and device for acquiring audio data, processor and storage medium

    CN115134031A

  • I2S master-slave mode control circuit

    CN218181513U

  • Digital player design circuit working in slave mode

    CN220106038U

  • Signal Processing Apparatus, Display Apparatus, Display System, Method for Processing Signal, and Method for Processing Audio Signal

    EP2620937A2