TWI385924B - Asynchronous first in first out interface method for operating an interface and integrated receiver - Google Patents

Asynchronous first in first out interface method for operating an interface and integrated receiver Download PDF

Info

Publication number
TWI385924B
TWI385924B TW098132282A TW98132282A TWI385924B TW I385924 B TWI385924 B TW I385924B TW 098132282 A TW098132282 A TW 098132282A TW 98132282 A TW98132282 A TW 98132282A TW I385924 B TWI385924 B TW I385924B
Authority
TW
Taiwan
Prior art keywords
clock
frequency
signal
buffer
read clock
Prior art date
Application number
TW098132282A
Other languages
Chinese (zh)
Other versions
TW201112634A (en
Inventor
Tse Peng Chen
Original Assignee
Richwave Technology Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Richwave Technology Corp filed Critical Richwave Technology Corp
Priority to TW098132282A priority Critical patent/TWI385924B/en
Priority to US12/763,281 priority patent/US8346201B2/en
Publication of TW201112634A publication Critical patent/TW201112634A/en
Application granted granted Critical
Publication of TWI385924B publication Critical patent/TWI385924B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F5/06Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/099Details of the phase-locked loop concerning mainly the controlled oscillator of the loop
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/16Indirect frequency synthesis, i.e. generating a desired one of a number of predetermined frequencies using a frequency- or phase-locked loop
    • H03L7/18Indirect frequency synthesis, i.e. generating a desired one of a number of predetermined frequencies using a frequency- or phase-locked loop using a frequency divider or counter in the loop
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/16Indirect frequency synthesis, i.e. generating a desired one of a number of predetermined frequencies using a frequency- or phase-locked loop
    • H03L7/18Indirect frequency synthesis, i.e. generating a desired one of a number of predetermined frequencies using a frequency- or phase-locked loop using a frequency divider or counter in the loop
    • H03L7/183Indirect frequency synthesis, i.e. generating a desired one of a number of predetermined frequencies using a frequency- or phase-locked loop using a frequency divider or counter in the loop a time difference being used for locking the loop, the counter counting between fixed numbers or the frequency divider dividing by a fixed number
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0016Arrangements for synchronising receiver with transmitter correction of synchronization errors
    • H04L7/005Correction by an elastic buffer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2205/00Indexing scheme relating to group G06F5/00; Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F2205/06Indexing scheme relating to groups G06F5/06 - G06F5/16
    • G06F2205/061Adapt frequency, i.e. clock frequency at one side is adapted to clock frequency, or average clock frequency, at the other side; Not pulse stuffing only
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L2207/00Indexing scheme relating to automatic control of frequency or phase and to synchronisation
    • H03L2207/06Phase locked loops with a controlled oscillator having at least two frequency control terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0685Clock or time synchronisation in a node; Intranode synchronisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Communication Control (AREA)

Description

非同步先進先出介面、介面操作方法和整合式接收器Non-synchronous FIFO interface, interface operation method and integrated receiver

本發明係關於非同步先進先出(first in first out,FIFO)介面,特別係有關於射頻(radio frequency,RF)裝置中之非同步FIFO介面。The present invention relates to a non-synchronous first in first out (FIFO) interface, and more particularly to a non-synchronous FIFO interface in a radio frequency (RF) device.

隨著無線通訊(手機、無線網路)的普及,市場對通訊系統更低價、更低耗能及有更小外型尺寸(form-factor)之射頻(radio frequency,RF)收發器的需求日益殷切。最近,類比收發器、數位處理器及時脈產生器已整合至單一晶片上以滿足上述需求。在RF收發器中,類比電路和數位電路對時脈的需求是不同的。舉例而言,類比數位轉換器(analog-to-digital converter,ADC)和數位類比轉換器(digital-to-analog converter,DAC)在類比電路中需要低顫動(jitter)時脈以增加資料轉換的精確度。然而,在數位電路中,數位處理器卻不一定需要低顫動的時脈。With the popularity of wireless communication (mobile phones, wireless networks), the market demand for lower cost, lower power consumption and smaller form-factor radio frequency (RF) transceivers. Increasingly eager. Recently, analog transceivers, digital processor and pulse generators have been integrated onto a single chip to meet these needs. In RF transceivers, the analog and digital circuits have different clock requirements. For example, analog-to-digital converters (ADCs) and digital-to-analog converters (DACs) require a low jitter clock to increase data conversion in analog circuits. Accuracy. However, in digital circuits, digital processors do not necessarily require low jitter clocks.

有鑑於這個問題,第1圖的習知電路將ADC和數位處理器之間的時脈獨立。第1圖顯示了使用非同步先進先出介面120之一接收器100之方塊圖。接收器100包括一射頻前端接收器110、一類比數位轉換器(ADC)112、一第一信號源114、一FIFO緩衝器121、一時脈控制器122、一可變整數除法器124、一基帶處理器130、一第二信號源132和一參考源140。In view of this problem, the conventional circuit of Figure 1 separates the clock between the ADC and the digital processor. Figure 1 shows a block diagram of a receiver 100 using one of the asynchronous first in first out interfaces 120. The receiver 100 includes a radio frequency front end receiver 110, an analog digital converter (ADC) 112, a first signal source 114, a FIFO buffer 121, a clock controller 122, a variable integer divider 124, and a baseband. The processor 130, a second signal source 132, and a reference source 140.

射頻前端接收器110接收由發射器(未顯示於圖面)所發送之一射頻(RF)信號,並且依照第一信號源114所產 生之局部信號將該RF信號降頻轉換成一中頻(Intermediate Frequency,IF)信號。該局部信號乃由低顫動之第一信號源114所產生以增加信噪比(signal to noise ratio,SNR)且降低當降頻轉換時之相鄰通道阻塞效應。ADC 112將中頻訊號轉換成資料,並根據局部訊號所產生的可變頻率時脈輸出資料,用以避免額外低顫動信號源之使用,和滿足該低顫動時脈之需求。基帶處理器130於該資料上,依照由第二信號源132所產生之第二訊號操作訊號處理功能,例如:傳輸模式偵測、時域資料處理、頻域資料處理和通道編碼等。第二信號源132為一固定頻率信號源,例如一環式振盪器,以降低硬體成本。第二訊號運作成基帶處理器130的一時脈。第一信號源114和第二信號源132可共享單一參考源140以進一步降低硬體成本。The RF front end receiver 110 receives a radio frequency (RF) signal transmitted by a transmitter (not shown) and is produced in accordance with the first signal source 114. The local signal is down-converted into an intermediate frequency (IF) signal. The local signal is generated by the low jitter first signal source 114 to increase the signal to noise ratio (SNR) and to reduce adjacent channel blocking effects when down converting. The ADC 112 converts the intermediate frequency signal into data and outputs the data according to the variable frequency clock generated by the local signal to avoid the use of an additional low jitter source and to satisfy the low jitter clock. The baseband processor 130 operates the signal processing functions according to the second signal generated by the second signal source 132 on the data, for example, transmission mode detection, time domain data processing, frequency domain data processing, and channel coding. The second signal source 132 is a fixed frequency signal source, such as a ring oscillator, to reduce hardware cost. The second signal operates as a clock of the baseband processor 130. The first signal source 114 and the second signal source 132 can share a single reference source 140 to further reduce hardware cost.

由第二信號源132提供到基帶處理器130的時脈可與各個信號源所提供到ADC 112的時脈非同步。因此在第1圖的習知電路中採用了一非同步FIFO介面120來處理ADC 112與基帶處理器130間該非同步資料之傳遞。非同步FIFO介面120包括FIFO緩衝器121、時脈控制器122和可變整數除法器124。FIFO緩衝器121耦接於基帶處理器130和ADC 112間,緩衝兩者間的資料傳遞。FIFO緩衝器121依照一寫入時脈(Write clock)從ADC 112接收資料和依照一讀出時脈(Read clock)輸出資料至基帶處理器130。寫入時脈是ADC 112的時脈而讀出時脈是基帶處理器130的時脈。當ADC 112的寫入時脈快於基帶處理器130的讀出時脈,會造成FIFO緩衝器121資料的溢出, 因此時脈控制器122將可變整數除法器124的除數值增加,以降低寫入時脈的頻率。相反地,ADC 112的寫入時脈慢於基帶處理器130的讀出時脈,會造成FIFO緩衝器121資料的清空,因此時脈控制器122將可變整數除法器124的除數值減少,以提高寫入時脈的頻率。The clock provided by the second source 132 to the baseband processor 130 may be asynchronous with the clock provided by the respective source to the ADC 112. Therefore, a non-synchronous FIFO interface 120 is employed in the conventional circuit of FIG. 1 to handle the transfer of the asynchronous data between the ADC 112 and the baseband processor 130. The asynchronous FIFO interface 120 includes a FIFO buffer 121, a clock controller 122, and a variable integer divider 124. The FIFO buffer 121 is coupled between the baseband processor 130 and the ADC 112 to buffer data transfer between the two. The FIFO buffer 121 receives data from the ADC 112 in accordance with a write clock and outputs data to the baseband processor 130 in accordance with a read clock. The write clock is the clock of the ADC 112 and the read clock is the clock of the baseband processor 130. When the write clock of the ADC 112 is faster than the read clock of the baseband processor 130, the data overflow of the FIFO buffer 121 is caused. The clock controller 122 therefore increments the divisor value of the variable integer divider 124 to reduce the frequency of the write clock. Conversely, the write clock of the ADC 112 is slower than the read clock of the baseband processor 130, which causes the FIFO buffer 121 to clear the data, so the clock controller 122 reduces the divisor value of the variable integer divider 124. To increase the frequency of the write clock.

在第1圖的習知電路中,係透過時脈控制器122調整可變整數除法器124的除數值來控制ADC 112的寫入時脈,進而達到控制FIFO緩衝器121的資料狀態。然而,FIFO緩衝器121資料狀態的控制並不一定非得透過可變整數除法器124來調整。In the conventional circuit of FIG. 1, the divide-by-value of the variable integer divider 124 is adjusted by the clock controller 122 to control the write clock of the ADC 112, thereby controlling the data state of the FIFO buffer 121. However, the control of the data state of the FIFO buffer 121 does not necessarily have to be adjusted by the variable integer divider 124.

有鑑於此,本發明之一實施例揭露一種非同步先進先出介面,具有非同步的一讀出時脈和一寫入時脈,包括一FIFO緩衝器、一時脈控制器、一參考源和一信號源。FIFO緩衝器根據寫入時脈從一類比數位轉換器接收一數位訊號,以及根據讀出時脈輸出一數位訊號至一處理器。時脈控制器根據儲存於FIFO緩衝器中之資料量輸出一時脈控制訊號。參考源提供一震盪頻率。信號源將震盪頻率除以一第一整數除數以產生一參考頻率、將讀出時脈除以一第二整數除數以產生一輸入頻率,以及藉著比較參考頻率和輸入頻率來輸出一控制訊號,用以調整所輸出的讀出時脈,其中第二整數除數係為時脈控制訊號所控制。In view of this, an embodiment of the present invention discloses a non-synchronous FIFO interface having a non-synchronized read clock and a write clock, including a FIFO buffer, a clock controller, a reference source, and A signal source. The FIFO buffer receives a digital signal from an analog-to-digital converter according to the write clock, and outputs a digital signal to a processor according to the read clock. The clock controller outputs a clock control signal based on the amount of data stored in the FIFO buffer. The reference source provides an oscillating frequency. The signal source divides the oscillation frequency by a first integer divisor to generate a reference frequency, divides the read clock by a second integer divisor to generate an input frequency, and outputs a comparison frequency by comparing the reference frequency and the input frequency. The control signal is used to adjust the output read clock, wherein the second integer divisor is controlled by the clock control signal.

此外,本發明之另一實施例揭露一種介面操作方法,用於操作具有一寫入時脈和一讀出時脈之一非同步介面,上述非同步介面包括一FIFO緩衝器。上述方法包括根據寫入時脈從一類比數位轉換器接收一數位訊號至FIFO緩衝 器、根據讀出時脈從FIFO緩衝器輸出一數位訊號至一處理器、根據儲存於FIFO緩衝器中之資料量輸出一時脈控制訊號、提供一震盪頻率、將震盪頻率除以一第一整數除數以產生一參考頻率、將讀出時脈除以一第二整數除數以產生一輸入頻率,以及藉著比較參考頻率和輸入頻率來調整讀出時脈,其中第二整數除數係為時脈控制訊號所控制。In addition, another embodiment of the present invention discloses an interface operation method for operating a non-synchronous interface having a write clock and a read clock, the non-synchronous interface including a FIFO buffer. The method includes receiving a digital signal from a class analog converter to a FIFO buffer according to a write clock. And outputting a digital signal from the FIFO buffer to a processor according to the read clock, outputting a clock control signal according to the amount of data stored in the FIFO buffer, providing an oscillation frequency, dividing the oscillation frequency by a first integer Divisor to generate a reference frequency, divide the read clock by a second integer divisor to produce an input frequency, and adjust the read clock by comparing the reference frequency and the input frequency, wherein the second integer divisor Controlled by the clock control signal.

此外,本發明之另一實施例揭露一種非同步先進先出介面,具有非同步的一讀出時脈和一寫入時脈,包括一FIFO緩衝器、一時脈控制器、一參考源和一信號源。FIFO緩衝器根據寫入時脈從一類比數位轉換器接收一數位訊號,以及根據讀出時脈輸出一數位訊號至一處理器。時脈控制器根據儲存於FIFO緩衝器中之資料量輸出一第一組控制位元。參考源提供一震盪頻率。信號源將震盪頻率除以一第一整數除數以產生一參考頻率、將讀出時脈除以一第二整數除數以產生一輸入頻率、藉著比較參考頻率和輸入頻率來輸出一第二組控制位元、將第一組控制位元與第二組控制位元相加以得到一總控制位元,以及根據總控制位元調整所輸出的讀出時脈。In addition, another embodiment of the present invention discloses a non-synchronous first-in first-out interface, having a non-synchronized read clock and a write clock, including a FIFO buffer, a clock controller, a reference source, and a signal source. The FIFO buffer receives a digital signal from an analog-to-digital converter according to the write clock, and outputs a digital signal to a processor according to the read clock. The clock controller outputs a first set of control bits based on the amount of data stored in the FIFO buffer. The reference source provides an oscillating frequency. The signal source divides the oscillation frequency by a first integer divisor to generate a reference frequency, divides the read clock by a second integer divisor to generate an input frequency, and outputs a first by comparing the reference frequency and the input frequency. The two sets of control bits add the first set of control bits and the second set of control bits to obtain a total control bit, and adjust the output read clock according to the total control bit.

此外,本發明之另一實施例揭露一種介面操作方法,用於操作具有一寫入時脈和一讀出時脈之一非同步介面,上述非同步介面包括一FIFO緩衝器。上述方法包括根據寫入時脈從一類比數位轉換器接收一數位訊號至FIFO緩衝器、根據讀出時脈從FIFO緩衝器輸出一數位訊號至一處理器、根據儲存於FIFO緩衝器中之資料量輸出一第一組控制位元、提供一震盪頻率、將震盪頻率除以一第一整數除數以產生一參考頻率、將讀出時脈除以一第二整數除數以產 生一輸入頻率、藉著比較參考頻率和輸入頻率來輸出一第二組控制位元、將第一組控制位元與第二組控制位元相加以得到一總控制位元,以及根據總控制位元調整所輸出的讀出時脈。In addition, another embodiment of the present invention discloses an interface operation method for operating a non-synchronous interface having a write clock and a read clock, the non-synchronous interface including a FIFO buffer. The method includes receiving a digital signal from a class analog converter according to a write clock to a FIFO buffer, and outputting a digital signal from the FIFO buffer to a processor according to the read clock, according to the data stored in the FIFO buffer. The quantity outputs a first set of control bits, provides an oscillation frequency, divides the oscillation frequency by a first integer divisor to generate a reference frequency, and divides the read clock by a second integer divisor. Generating an input frequency, outputting a second set of control bits by comparing the reference frequency and the input frequency, adding the first set of control bits to the second set of control bits to obtain a total control bit, and according to the overall control The bit adjusts the read clock output.

此外,本發明之另一實施例揭露一種整合式接收器,包括一頻率合成器、一時脈系統、一類比接收路徑電路、一低中頻轉換電路、一處理器和一非同步先進先出介面。頻率合成器產生一輸出信號。時脈系統根據輸出信號產生一混合信號以及一寫入時脈。類比接收路徑電路根據混合信號產生一低中頻訊號。低中頻轉換電路根據寫入時脈將低中頻訊號轉換成一第一數位訊號。處理器根據一讀出時脈處理一第二數位訊號。非同步先進先出介面耦接於低中頻轉換電路和處理器之間,並具有非同步的讀出時脈和寫入時脈,包括一緩衝器、一時脈控制器、一參考源和一信號源。緩衝器根據寫入時脈從數位轉換電路接收第一數位訊號,以及根據讀出時脈輸出第二數位訊號至處理器。時脈控制器根據儲存於緩衝器中之資料量輸出一時脈控制訊號。參考源提供一震盪頻率。信號源將震盪頻率除以一第一整數除數以產生一參考頻率,將讀出時脈除以一第二整數除數以產生一輸入頻率,以及藉著比較參考頻率和輸入頻率來輸出一控制訊號,用以調整所輸出的讀出時脈,其中第二整數除數係為時脈控制訊號所控制。In addition, another embodiment of the present invention discloses an integrated receiver including a frequency synthesizer, a clock system, an analog receive path circuit, a low intermediate frequency conversion circuit, a processor, and an asynchronous first in first out interface. . The frequency synthesizer produces an output signal. The clock system generates a mixed signal and a write clock based on the output signal. The analog receive path circuit generates a low intermediate frequency signal based on the mixed signal. The low intermediate frequency conversion circuit converts the low intermediate frequency signal into a first digital signal according to the write clock. The processor processes a second digital signal according to a read clock. The asynchronous first-in first-out interface is coupled between the low intermediate frequency conversion circuit and the processor, and has an asynchronous read clock and a write clock, including a buffer, a clock controller, a reference source, and a signal source. The buffer receives the first digital signal from the digital conversion circuit according to the write clock, and outputs the second digital signal to the processor according to the read clock. The clock controller outputs a clock control signal based on the amount of data stored in the buffer. The reference source provides an oscillating frequency. The signal source divides the oscillation frequency by a first integer divisor to generate a reference frequency, divides the read clock by a second integer divisor to generate an input frequency, and outputs a comparison frequency by comparing the reference frequency and the input frequency. The control signal is used to adjust the output read clock, wherein the second integer divisor is controlled by the clock control signal.

此外,本發明之另一實施例揭露一種整合式接收器,包括一頻率合成器、一時脈系統、一類比接收路徑電路、一低中頻轉換電路、一處理器和一非同步先進先出介面。頻率合成器產生一輸出信號。時脈系統根據輸出信號產生 一混合信號以及一寫入時脈。類比接收路徑電路根據混合信號產生一低中頻訊號。低中頻轉換電路根據寫入時脈將低中頻訊號轉換成一第一數位訊號。處理器根據一讀出時脈處理一第二數位訊號。非同步先進先出介面耦接於低中頻轉換電路和處理器之間,並具有非同步的讀出時脈和寫入時脈,包括一緩衝器、一時脈控制器、一參考源和一信號源。緩衝器根據寫入時脈從數位轉換電路接收第一數位訊號,以及根據讀出時脈輸出第二數位訊號至處理器。時脈控制器根據儲存於緩衝器中之資料量輸出一第一組控制位元。參考源提供一震盪頻率。信號源將震盪頻率除以一第一整數除數以產生一參考頻率,將讀出時脈除以一第二整數除數以產生一輸入頻率,藉著比較參考頻率和輸入頻率來輸出一第二組控制位元,將第一組控制位元與第二組控制位元相加以得到一總控制位元,以及根據總控制位元調整所輸出的讀出時脈。In addition, another embodiment of the present invention discloses an integrated receiver including a frequency synthesizer, a clock system, an analog receive path circuit, a low intermediate frequency conversion circuit, a processor, and an asynchronous first in first out interface. . The frequency synthesizer produces an output signal. The clock system generates based on the output signal A mixed signal and a write clock. The analog receive path circuit generates a low intermediate frequency signal based on the mixed signal. The low intermediate frequency conversion circuit converts the low intermediate frequency signal into a first digital signal according to the write clock. The processor processes a second digital signal according to a read clock. The asynchronous first-in first-out interface is coupled between the low intermediate frequency conversion circuit and the processor, and has an asynchronous read clock and a write clock, including a buffer, a clock controller, a reference source, and a signal source. The buffer receives the first digital signal from the digital conversion circuit according to the write clock, and outputs the second digital signal to the processor according to the read clock. The clock controller outputs a first set of control bits based on the amount of data stored in the buffer. The reference source provides an oscillating frequency. The signal source divides the oscillation frequency by a first integer divisor to generate a reference frequency, divides the read clock by a second integer divisor to generate an input frequency, and outputs a first by comparing the reference frequency and the input frequency. The two sets of control bits add the first set of control bits to the second set of control bits to obtain a total control bit, and adjust the output read clock according to the total control bit.

為使本發明之上述目的、特徵和優點能更明顯易懂,下文特舉較佳實施例,並配合所附圖式,作詳細說明如下:第2圖顯示根據本發明一實施例所述之使用非同步先進先出介面之一接收器200的方塊圖。接收器200包括一射頻前端接收器110、一類比數位轉換器112、一第一信號源114、一FIFO緩衝器121、一時脈控制器122、一可變整數除法器124、一基帶處理器130、一第二信號源132和一參考源140。與第1圖習知架構相同的是,本實施例中亦採用了一非同步FIFO介面220來處理ADC 112與基帶處理器130間的非同步資料傳送。與第1圖之習知架構 不同的是,非同步FIFO介面220包括FIFO緩衝器121、時脈控制器122、第二信號源132和參考源140。FIFO緩衝器121耦接於基帶處理器130和ADC 112間,緩衝兩者間的資料傳遞。FIFO緩衝器121依照一寫入時脈從ADC 112接收資料和依照一讀出時脈輸出資料至基帶處理器130。寫入時脈是ADC 112的時脈而讀出時脈是基帶處理器130的時脈。當基帶處理器130的讀出時脈慢於ADC 112的寫入時脈,會造成FIFO緩衝器121資料的溢出,因此時脈控制器122將第二信號源132輸出的讀出時脈的頻率增加,以便增加基帶處理器130的讀出時脈。相反地,當基帶處理器130的讀出時脈快於ADC 112的寫入時脈,會造成FIFO緩衝器121資料的清空,因此時脈控制器122將第二信號源132輸出的讀出時脈的頻率降低,以便降低基帶處理器130的讀出時脈。藉著控制第二信號源132之輸出讀出時脈的方式,可保持與ADC 112之寫入時脈的平衡而不會使得FIFO緩衝器121的資料溢出或清空。以上為本發明概略的敘述,其詳細的實施細節描述如下。The above described objects, features, and advantages of the present invention will become more apparent from the aspects of the preferred embodiments illustrated herein A block diagram of one of the receivers 200 of the non-synchronous first-in first-out interface is used. The receiver 200 includes a radio frequency front end receiver 110, an analog digital converter 112, a first signal source 114, a FIFO buffer 121, a clock controller 122, a variable integer divider 124, and a baseband processor 130. a second signal source 132 and a reference source 140. Similar to the conventional architecture of FIG. 1, an asynchronous FIFO interface 220 is also used in this embodiment to process asynchronous data transfer between the ADC 112 and the baseband processor 130. a conventional architecture with Figure 1 The difference is that the non-synchronous FIFO interface 220 includes a FIFO buffer 121, a clock controller 122, a second signal source 132, and a reference source 140. The FIFO buffer 121 is coupled between the baseband processor 130 and the ADC 112 to buffer data transfer between the two. The FIFO buffer 121 receives data from the ADC 112 in accordance with a write clock and outputs data to the baseband processor 130 in accordance with a read clock. The write clock is the clock of the ADC 112 and the read clock is the clock of the baseband processor 130. When the read clock of the baseband processor 130 is slower than the write clock of the ADC 112, the data of the FIFO buffer 121 is overflowed, so the clock controller 122 outputs the frequency of the read clock of the second signal source 132. Increased to increase the read clock of the baseband processor 130. Conversely, when the read clock of the baseband processor 130 is faster than the write clock of the ADC 112, the data of the FIFO buffer 121 is cleared. Therefore, the clock controller 122 outputs the output of the second signal source 132. The frequency of the pulses is reduced to reduce the read clock of the baseband processor 130. By controlling the output of the second source 132 to read the clock, the balance of the write clock with the ADC 112 can be maintained without overflowing or emptying the data of the FIFO buffer 121. The above is a brief description of the invention, and detailed implementation details thereof are described below.

第3A圖顯示根據本發明一實施例所述之第二信號源的方塊圖。第二信號源132A可以是一合成器(Synthesizer),包括一可變整數除法器1321、一相位頻率偵測器/電荷幫浦(Phase Frequency Detector/Charge Pump,PFD/CP)1322、一迴路濾波器(loop filter)1323、一電壓控制震盪器(Voltage-Controlled Oscillator,VCO)1324和一除法器1325。在第3A圖中,時脈頻率CLK_BB1係提供至基帶處理器130的時脈,而FIFO緩衝器121係依照該時脈頻率CLK_BB1輸出資料至基帶處理器 130。因此,當FIFO緩衝器121中的資料狀態不平衡(資料過滿或清空)時,可調整時脈頻率CLK_BB1的大小。在第3A圖中,可變整數除法器1321具有將基帶處理器130之時脈頻率CLK_BB1除以一整數M的功能,其中M的值係由時脈控制器122決定。可變整數除法器1321將基帶處理器130之時脈頻率CLK_BB1除以整數M之後,所輸出的頻率(CLK_BB1/M)傳送至PFD/CP 1322當成其輸入頻率fin1 。另一方面,除法器1325接收參考源140的震盪頻率fxta1 ,並將其除以一整數值N以輸出參考頻率fref1 。參考源140的震盪頻率fxta1 可以是由一晶體震盪器(Crystal)產生。PFD/CP 1322接收輸入頻率fin1 和參考頻率fref1 ,偵測/比較兩者之間的差異量並送出結果給迴路濾波器1323,迴路濾波器1323再送出控制訊號給VCO 1324,使得VCO 1324調整其所輸出的時脈頻率CLK_BB1。當時脈頻率CLK_BB1的頻率穩定時,其值為參考源140震盪頻率fxta1 的(M/N)倍。時脈控制器122可根據FIFO緩衝器121的資料狀態調整可變整數除法器1321的除數值(M)大小,進而調整VCO 1324輸出至基帶處理器130的時脈頻率CLK_BB1。舉例來說,當儲存於FIFO緩衝器121中之資料量高於一上限值時,代表FIFO緩衝器121中的資料量可能到達過滿的狀態,因此時脈控制器122可調整可變整數除法器1321的除數值(M)大小來增加時脈頻率CLK_BB1。如此一來,FIFO緩衝器121便依照增加的時脈頻率CLK_BB1輸出資料至基帶處理器130,提升基帶處理器130從FIFO緩衝器121讀取資料的速度。其中,增加後的時脈頻率CLK_BB1可大於ADC 112寫入FIFO緩衝器 121的速度,以解決FIFO緩衝器121中資料過滿的情況。同樣地,當儲存於FIFO緩衝器121中之資料量低於一下限值時,代表FIFO緩衝器121中的資料量可能到達過清空狀態,因此時脈控制器122可調整可變整數除法器1321的除數值(M)大小來降低時脈頻率CLK_BB1。如此一來,FIFO緩衝器121便依照降低的時脈頻率CLK_BB1輸出資料至基帶處理器130,減少基帶處理器130從FIFO緩衝器121讀取資料的速度。其中,降低後的時脈頻率CLK_BB1可小於ADC 112寫入FIFO緩衝器121的速度,以解決FIFO緩衝器121中資料清空的情況。值得注意的是,雖然以上的實施例提到時脈控制器122根據FIFO緩衝器121的資料狀態調整可變整數除法器1321的除數值(M)大小,進而調整VCO 1324輸出至基帶處理器130的時脈頻率CLK_BB1,然而,在本發明另一實施例中,可變整數除法器1321的除數值(M)大小亦可由基帶處理器130根據目前的資料處理狀況來決定。亦即,基帶處理器130亦可透過時脈控制器122自行調整其時脈頻率。FIG. 3A is a block diagram showing a second signal source according to an embodiment of the invention. The second signal source 132A can be a synthesizer, including a variable integer divider 1321, a phase frequency detector/Phase Frequency Detector/Charge Pump (PFD/CP) 1322, and a loop filter. A loop filter 1323, a Voltage-Controlled Oscillator (VCO) 1324, and a divider 1325. In FIG. 3A, the clock frequency CLK_BB1 is supplied to the clock of the baseband processor 130, and the FIFO buffer 121 outputs data to the baseband processor 130 in accordance with the clock frequency CLK_BB1. Therefore, when the data state in the FIFO buffer 121 is unbalanced (the data is too full or empty), the magnitude of the clock frequency CLK_BB1 can be adjusted. In FIG. 3A, the variable integer divider 1321 has a function of dividing the clock frequency CLK_BB1 of the baseband processor 130 by an integer M, wherein the value of M is determined by the clock controller 122. After the variable integer divider 1321 divides the clock frequency CLK_BB1 of the baseband processor 130 by the integer M, the output frequency (CLK_BB1/M) is transmitted to the PFD/CP 1322 as its input frequency f in1 . On the other hand, the divider 1325 receives the oscillation frequency f xta1 of the reference source 140 and divides it by an integer value N to output the reference frequency f ref1 . The oscillating frequency f xta1 of the reference source 140 can be generated by a crystal oscillator (Crystal). The PFD/CP 1322 receives the input frequency f in1 and the reference frequency f ref1 , detects/compares the difference between the two and sends the result to the loop filter 1323. The loop filter 1323 sends a control signal to the VCO 1324, so that the VCO 1324 Adjust the clock frequency CLK_BB1 that it outputs. When the frequency of the pulse frequency CLK_BB1 is stable, the value is (M/N) times the reference source 140 oscillation frequency f xta1 . The clock controller 122 can adjust the divisor value (M) of the variable integer divider 1321 according to the data state of the FIFO buffer 121, thereby adjusting the clock frequency CLK_BB1 of the VCO 1324 output to the baseband processor 130. For example, when the amount of data stored in the FIFO buffer 121 is higher than an upper limit value, it means that the amount of data in the FIFO buffer 121 may reach an overfull state, so the clock controller 122 can adjust the variable integer. The divide value (M) of the divider 1321 is increased in magnitude to increase the clock frequency CLK_BB1. In this way, the FIFO buffer 121 outputs the data to the baseband processor 130 according to the increased clock frequency CLK_BB1, and the speed at which the baseband processor 130 reads the data from the FIFO buffer 121 is raised. The increased clock frequency CLK_BB1 may be greater than the speed at which the ADC 112 writes to the FIFO buffer 121 to solve the problem that the data in the FIFO buffer 121 is too full. Similarly, when the amount of data stored in the FIFO buffer 121 is lower than the lower limit value, the amount of data in the FIFO buffer 121 may reach the over-empty state, so the clock controller 122 can adjust the variable integer divider 1321. Divide the value (M) to reduce the clock frequency CLK_BB1. In this way, the FIFO buffer 121 outputs the data to the baseband processor 130 according to the reduced clock frequency CLK_BB1, reducing the speed at which the baseband processor 130 reads data from the FIFO buffer 121. The reduced clock frequency CLK_BB1 may be smaller than the speed at which the ADC 112 writes to the FIFO buffer 121 to solve the situation in which the data in the FIFO buffer 121 is cleared. It should be noted that although the above embodiment refers to the clock controller 122 adjusting the divisor value (M) of the variable integer divider 131 according to the data state of the FIFO buffer 121, the VCO 1324 output is adjusted to the baseband processor 130. The clock frequency CLK_BB1, however, in another embodiment of the present invention, the divisor value (M) size of the variable integer divider 1321 may also be determined by the baseband processor 130 based on current data processing conditions. That is, the baseband processor 130 can also adjust its clock frequency by the clock controller 122.

第3B圖顯示根據本發明另一實施例所述之第二信號源的方塊圖。第二信號源132B可以是一合成器(Synthesizer),包括一除法器1421、一相位頻率偵測器(Phase Frequency Detector,PFD)1422、一數位迴路濾波器1423、一加法器1424、一數位電壓控制震盪器(Digital Voltage-Controlled Oscillator,DCO)1425和一除法器1426。與第3A圖的實施例相同,時脈頻率CLK_BB2係基帶處理器130的時脈,而FIFO緩衝器121係依照該時脈頻率CLK_BB2輸出資料至基帶處理器130。 因此,當FIFO緩衝器121中的資料狀態不平衡(資料過滿或清空)時,可調整時脈頻率CLK_BB2的大小。然而,與第3A圖之實施例不同的是,第3B圖第二信號源的實施架構係屬於數位的方式,如下所述。在第3B圖中,除法器1421具有將基帶處理器130之時脈頻率CLK_BB2除頻的功能,將所輸出的頻率送至PFD 1422作為其輸入頻率fin2 。此外,除法器1426接收參考源140的震盪頻率fxta1 ,並將其除頻以輸出參考頻率fref2 。參考源140的震盪頻率fxta1 可以是由一晶體震盪器產生。PFD 1422接收輸入頻率fin2 和參考頻率fref2 ,偵測/比較兩者之間的差異量並送出結果給數位迴路濾波器1423,數位迴路濾波器1423再送出一組控制位元(control bits)給加法器1424。加法器1424亦接收時脈控制器122所輸出的另一組控制位元,並將兩組控制位元相加輸出一總控制位元給DCO 1425,使得DCO 1425調整其輸出至基帶處理器130的時脈頻率CLK_BB2。舉例來說,當儲存於FIFO緩衝器121中之資料量高於一上限值時,代表FIFO緩衝器121中的資料量可能到達過滿的狀態,因此時脈控制器122可調整其輸出之控制位元的值(例如給予較大的控制位元的值)來增加時脈頻率CLK_BB2。如此一來,FIFO緩衝器121便依照增加的時脈頻率CLK_BB2輸出資料至基帶處理器130,提升基帶處理器130從FIFO緩衝器121讀取資料的速度。其中,增加後的時脈頻率CLK_BB2可大於ADC 112寫入FIFO緩衝器121的速度,以解決FIFO緩衝器121中資料過滿的情況。同樣地,當儲存於FIFO緩衝器121中之資料量低於一下限值時,代表FIFO緩衝器121中的資料量可能到 達過清空狀態,因此時脈控制器122可調整其輸出之控制位元的值(例如給予較小的控制位元的值)來降低時脈頻率CLK_BB2。如此一來,FIFO緩衝器121便依照降低的時脈頻率CLK_BB2輸出資料至基帶處理器130,減少基帶處理器130從FIFO緩衝器121讀取資料的速度。其中,降低後的時脈頻率CLK_BB2可小於ADC 112寫入FIFO緩衝器121的速度,以解決FIFO緩衝器121中資料清空的情況。與第3A圖之實施例相同,時脈控制器122所輸出之控制位元的值亦可由基帶處理器130根據目前的資料處理狀況來決定。亦即,基帶處理器130亦可透過時脈控制器122自行調整其時脈頻率。必須注意的是,在此實施例中,只有在電路初始狀態時才需要使用到數位迴路濾波器1423的輸出值,而在之後的操作中將數位迴路濾波器1423的值閂鎖住不再變動。取而代之的是,時脈控制器122根據FIFO緩衝器121的資料狀態調整其所輸出之控制位元的值,進而調整總控制位元的值。如此一來,DCO 1425可根據總控制位元動態地調整其輸出至基帶處理器130的時脈頻率CLK_BB2。更具體地說,當FIFO緩衝器121的資料狀態為接近資料溢出時(資料超過上限值),時脈控制器122可輸出正的第二控制位元的值,使得加法器1424輸出較大的總控制位元給DCO 1425,進而使DCO 1425提高其輸出的時脈頻率CLK_BB2。相反地,當FIFO緩衝器121的資料狀態為接近資料清空時(資料低於下限值),時脈控制器122可輸出負的第二控制位元的值,使得加法器1424輸出較小的總控制位元給DCO 1425,進而使DCO 1425降低其輸出的時脈頻率CLK_BB2。在以上兩 個實施例中,提到了FIFO緩衝器121中資料過滿或清空的情況,以下將概略敘述FIFO緩衝器121中資料遞增或遞減的狀態。Figure 3B is a block diagram showing a second signal source in accordance with another embodiment of the present invention. The second signal source 132B can be a synthesizer, including a divider 1421, a Phase Frequency Detector (PFD) 1422, a digital loop filter 1423, an adder 1424, and a digital voltage. A Digital Voltage-Controlled Oscillator (DCO) 1425 and a divider 1426 are provided. As in the embodiment of FIG. 3A, the clock frequency CLK_BB2 is the clock of the baseband processor 130, and the FIFO buffer 121 outputs the data to the baseband processor 130 in accordance with the clock frequency CLK_BB2. Therefore, when the data status in the FIFO buffer 121 is unbalanced (data is too full or empty), the size of the clock frequency CLK_BB2 can be adjusted. However, unlike the embodiment of FIG. 3A, the implementation architecture of the second signal source of FIG. 3B is a digital bit, as described below. In FIG. 3B, the divider 1421 has a function of dividing the clock frequency CLK_BB2 of the baseband processor 130, and sends the output frequency to the PFD 1422 as its input frequency f in2 . Further, the divider 1426 receives the oscillation frequency f xta1 of the reference source 140 and divides it to output the reference frequency f ref2 . The oscillating frequency f xta1 of the reference source 140 can be generated by a crystal oscillator. The PFD 1422 receives the input frequency f in2 and the reference frequency f ref2 , detects/compares the difference between the two and sends the result to the digital loop filter 1423, and the digital loop filter 1423 sends a set of control bits. The adder 1424 is provided. The adder 1424 also receives another set of control bits output by the clock controller 122, and adds the two sets of control bits to a total control bit to the DCO 1425, such that the DCO 1425 adjusts its output to the baseband processor 130. The clock frequency is CLK_BB2. For example, when the amount of data stored in the FIFO buffer 121 is higher than an upper limit value, it means that the amount of data in the FIFO buffer 121 may reach an overfull state, so the clock controller 122 can adjust its output. The value of the control bit (eg, the value given to the larger control bit) is added to increase the clock frequency CLK_BB2. In this way, the FIFO buffer 121 outputs the data to the baseband processor 130 according to the increased clock frequency CLK_BB2, and the speed at which the baseband processor 130 reads the data from the FIFO buffer 121 is raised. The increased clock frequency CLK_BB2 may be greater than the speed at which the ADC 112 writes to the FIFO buffer 121 to solve the problem that the data in the FIFO buffer 121 is too full. Similarly, when the amount of data stored in the FIFO buffer 121 is lower than the lower limit value, the amount of data representing the FIFO buffer 121 may have reached an empty state, so the clock controller 122 can adjust the control bit of its output. The value (eg, the value given to the smaller control bit) is used to reduce the clock frequency CLK_BB2. In this way, the FIFO buffer 121 outputs the data to the baseband processor 130 according to the reduced clock frequency CLK_BB2, reducing the speed at which the baseband processor 130 reads data from the FIFO buffer 121. The reduced clock frequency CLK_BB2 may be smaller than the speed at which the ADC 112 writes to the FIFO buffer 121 to solve the situation in which the data in the FIFO buffer 121 is cleared. As with the embodiment of FIG. 3A, the value of the control bit output by the clock controller 122 can also be determined by the baseband processor 130 based on the current data processing conditions. That is, the baseband processor 130 can also adjust its clock frequency by the clock controller 122. It must be noted that in this embodiment, the output value to the digital loop filter 1423 is required only in the initial state of the circuit, and the value of the digital loop filter 1423 is latched in the subsequent operation and no longer changes. . Instead, the clock controller 122 adjusts the value of the control bit that it outputs based on the data state of the FIFO buffer 121, thereby adjusting the value of the total control bit. As such, the DCO 1425 can dynamically adjust its output to the clock frequency CLK_BB2 of the baseband processor 130 based on the total control bits. More specifically, when the data status of the FIFO buffer 121 is close to the data overflow (the data exceeds the upper limit value), the clock controller 122 can output the value of the positive second control bit, so that the output of the adder 1424 is larger. The total control bit is given to the DCO 1425, which in turn causes the DCO 1425 to increase the clock frequency CLK_BB2 of its output. Conversely, when the data status of the FIFO buffer 121 is close to data clear (data below the lower limit), the clock controller 122 may output a value of the negative second control bit such that the adder 1424 outputs a smaller value. The total control bit is applied to the DCO 1425, which in turn causes the DCO 1425 to decrease the clock frequency CLK_BB2 of its output. In the above two embodiments, the case where the data in the FIFO buffer 121 is overfilled or emptied is mentioned. The state in which the data in the FIFO buffer 121 is incremented or decremented will be briefly described below.

第4A圖表示該FIFO緩衝器121中的資料量遞減。舉例而言,寫入時脈的頻率為4/T而讀出時脈的頻率為5/T。該FIFO緩衝器的讀出速度較該FIFO緩衝器121的寫入時脈快,因此該資料量在每個T期間內皆會遞減。參考第4A圖,FIFO_R表示該FIFO緩衝器121於此區域讀出資料,FIFO_W表示該FIFO緩衝器121於此區域寫入資料,而黑點表示該資料儲存於緩衝器。410表示於to 時的該FIFO緩衝器121,412表示於to +T時的該FIFO緩衝器121,而414表示於to +2T時的FIFO緩衝器121。當該資料量降至下限之下時,則FIFO緩衝器的空訊號會被拉高而於下個期間發送「發生錯誤」(error happened)訊息。Fig. 4A shows the amount of data decrementing in the FIFO buffer 121. For example, the frequency of the write clock is 4/T and the frequency of the read clock is 5/T. The read speed of the FIFO buffer is faster than the write clock of the FIFO buffer 121, so the amount of data is decremented during each T period. Referring to FIG. 4A, FIFO_R indicates that the FIFO buffer 121 reads data in this area, FIFO_W indicates that the FIFO buffer 121 writes data in this area, and black dots indicate that the data is stored in the buffer. 410 represents the time t o to the FIFO buffer shown in 121,412 t o + T when the FIFO buffer 121, and 414 at t o + represents a FIFO buffer 121 at the time of 2T. When the amount of data falls below the lower limit, the empty signal of the FIFO buffer will be pulled high and the "error happened" message will be sent in the next period.

第4B圖表示該FIFO緩衝器121內之資料量遞增。舉例而言,寫入時脈的頻率為6/T讀出時脈的頻率為5/T。該資料量在每個T期間內皆會遞增。參照第4B圖,420表示於t1 時的該FIFO緩衝器121,422表示於t1 +T時的該FIFO緩衝器121,而424表示於t1 +4T時的FIFO緩衝器121。當該資料量超出上限之上時,則FIFO緩衝器的滿訊號會被拉高而於下個期間發送「發生錯誤」訊息。Fig. 4B shows the amount of data in the FIFO buffer 121 incremented. For example, the frequency of the write clock is 6/T and the frequency of the read clock is 5/T. The amount of data will increase during each T period. Referring to Figure 4B, shown in the FIFO buffer 420 to 1 121,422 t of t. 1 shown in the FIFO buffer 121 at the time of T + t. 1 and 424 shown in FIFO buffer 121 when the 4T +. When the amount of data exceeds the upper limit, the full signal of the FIFO buffer will be pulled high and an "error occurred" message will be sent in the next period.

如上所述,當該讀出時脈和該寫入時脈非同步,該FIFO緩衝器會遭遇到過滿或過空的問題而導致資料傳遞錯誤。然而,其可用控制該讀出時脈的頻率之方式避免。第5圖顯示本發明一實施例所述之介面操作方法,用於操作第2圖所示之具有一寫入時脈和一讀出時脈的非同步 FIFO介面220,並配合使用第3A圖所述之第二信號源132A。首先,在步驟S50中,根據寫入時脈從ADC 112接收一數位訊號至FIFO緩衝器121。在步驟S51中,根據讀出時脈從FIFO緩衝器121輸出一數位訊號至基帶處理器130。在步驟S52中,由參考源140提供一震盪頻率fxta1 。在步驟S53中,第3A圖中的除法器1325將震盪頻率除以第一整數除數N以產生一參考頻率fref1 。在步驟S54中,第3A圖中的可變整數除法器1321將讀出時脈除以一第二整數除數M以產生一輸入頻率fin1 。在步驟S55中,相位頻率偵測器/電荷幫浦1322比較參考頻率fref1 和輸入頻率fin1 ,而迴路濾波器1323根據比較結果輸出一控制訊號。在步驟S56中,第3A圖中的電壓控制震盪器1324根據控制訊號調整所輸出的讀出時脈。在第5圖的流程圖中,第二整數除數M係為時脈控制訊號所控制,亦即,當讀出時脈過低造成非同步FIFO介面220資料過滿時,即調整第二整數除數M的值,以便增加讀出時脈的頻率,反之亦然。As described above, when the read clock and the write clock are not synchronized, the FIFO buffer may encounter a problem of over- or over-empty resulting in a data transfer error. However, it can be avoided by controlling the frequency of the read clock. FIG. 5 is a diagram showing an interface operation method according to an embodiment of the present invention for operating a non-synchronous FIFO interface 220 having a write clock and a read clock as shown in FIG. 2, and using FIG. 3A together. The second signal source 132A. First, in step S50, a digital signal is received from the ADC 112 to the FIFO buffer 121 in accordance with the write clock. In step S51, a digital signal is output from the FIFO buffer 121 to the baseband processor 130 based on the read clock. In step S52, an oscillation frequency f xta1 is provided by the reference source 140. In step S53, the divider 1325 in Fig. 3A divides the oscillation frequency by the first integer divisor N to generate a reference frequency f ref1 . In step S54, the variable integer divider 1321 in Fig. 3A divides the read clock by a second integer divisor M to generate an input frequency f in1 . In step S55, the phase frequency detector/charge pump 1322 compares the reference frequency f ref1 with the input frequency f in1 , and the loop filter 1323 outputs a control signal according to the comparison result. In step S56, the voltage controlled oscillator 1324 in Fig. 3A adjusts the output read clock according to the control signal. In the flowchart of FIG. 5, the second integer divisor M is controlled by the clock control signal, that is, when the read clock is too low, causing the asynchronous FIFO interface 220 to be oversized, the second integer is adjusted. Divide the value of M to increase the frequency of the read clock and vice versa.

第6圖顯示本發明另一實施例所述之介面操作方法,用於操作第2圖所示之具有一寫入時脈和一讀出時脈的非同步FIFO介面220,並配合使用第3B圖所述之第二信號源132B。首先,在步驟S60中,根據寫入時脈從ADC 112接收一數位訊號至FIFO緩衝器121。在步驟S61中,根據讀出時脈從FIFO緩衝器121輸出一數位訊號至一基帶處理器130。在步驟S62中,根據儲存於FIFO緩衝器121中之資料量輸出第一組控制位元。在步驟S63中,由參考源提供一震盪頻率fxta1 。在步驟S64中,第3B圖的除法 器1426將震盪頻率fxta1 除以一第一整數除數以產生一參考頻率fref2 。在步驟S65中,第3B圖的除法器1421將讀出時脈除以一第二整數除數以產生一輸入頻率fin2 。在步驟S66中,比較參考頻率fref2 和輸入頻率fin2 。在步驟S67中,根據比較結果輸出一第二組控制位元。在步驟S68中,第3B圖的加法器1424將第一組控制位元與第二組控制位元相加以得到一總控制位元。在步驟S69中,第3B圖的數位電壓控制震盪器1425將根據總控制位元調整所輸出的讀出時脈。更精確地說,當FIFO緩衝器121接近資料清空的狀態時,步驟S62中所輸出的第一組控制位元可為負,使得相加後的總控制位元變小而降低所輸出的讀出時脈。相反地,當FIFO緩衝器121接近資料溢出的狀態時,步驟S62中所輸出的第一組控制位元可為正,使得相加後的總控制位元變大而增加所輸出的讀出時脈。FIG. 6 is a diagram showing an interface operation method according to another embodiment of the present invention, for operating the non-synchronous FIFO interface 220 having a write clock and a read clock as shown in FIG. 2, and using the third BB. The second signal source 132B is illustrated. First, in step S60, a digital signal is received from the ADC 112 to the FIFO buffer 121 in accordance with the write clock. In step S61, a digital signal is output from the FIFO buffer 121 to a baseband processor 130 based on the read clock. In step S62, the first group of control bits is output based on the amount of data stored in the FIFO buffer 121. In step S63, an oscillation frequency f xta1 is supplied from the reference source. In step S64, the divider 1426 of Fig. 3B divides the oscillation frequency f xta1 by a first integer divisor to generate a reference frequency f ref2 . In step S65, the divider 1421 of Fig. 3B divides the read clock by a second integer divisor to produce an input frequency f in2 . In step S66, the reference frequency f ref2 and the input frequency f in2 are compared. In step S67, a second set of control bits is output based on the comparison result. In step S68, the adder 1424 of FIG. 3B adds the first set of control bits to the second set of control bits to obtain a total control bit. In step S69, the digital voltage controlled oscillator 1425 of Fig. 3B will adjust the output read clock according to the total control bit. More precisely, when the FIFO buffer 121 is close to the state in which the data is cleared, the first group of control bits outputted in step S62 can be negative, so that the added total control bits become smaller and the output read is lowered. Out of the clock. Conversely, when the FIFO buffer 121 is close to the state in which the data overflows, the first group of control bits outputted in step S62 can be positive, so that the added total control bits become larger and the output readout is increased. pulse.

此外,雖然本發明的實施例中揭露的是根據FIFO緩衝器121中之資料量狀態,使得時脈控制器122作相對應的調整動作,然而,在本發明另一實施例中,時脈控制器122的動作係可以由基帶處理器130而定。亦即,基帶處理器130可根據目前的資料處理情況,告知時脈控制器122需增加或減少目前的時脈頻率。In addition, although disclosed in the embodiment of the present invention, the clock controller 122 performs the corresponding adjustment action according to the data amount state in the FIFO buffer 121. However, in another embodiment of the present invention, the clock control The action of the device 122 can be determined by the baseband processor 130. That is, the baseband processor 130 can inform the clock controller 122 to increase or decrease the current clock frequency according to the current data processing situation.

第7圖顯示根據本發明一實施例所述之接收器200於實際應用的電路圖。在第7圖中,除了ADC 112前端的設頻前端接收器110之外,更包括了輸出端數位類比轉換器(digital-to-analog converter,DAC)212後端的喇叭(speaker)150。其中,非同步FIFO介面220更包括了輸出端的FIFO緩衝器221。與上述的原理相同,FIFO緩衝 器221根據基帶處理器130的時脈從基帶處理器130接收資料,以及根據由固定除法器224所除出來的讀出時脈輸出資料至DAC 212,DAC 212並將相關的音訊資料傳送至喇叭150。FIG. 7 is a circuit diagram showing the actual application of the receiver 200 according to an embodiment of the invention. In Fig. 7, in addition to the set front end receiver 110 of the front end of the ADC 112, a speaker 150 at the rear end of the digital-to-analog converter (DAC) 212 is further included. The non-synchronous FIFO interface 220 further includes a FIFO buffer 221 at the output. Same principle as above, FIFO buffer The 221 receives data from the baseband processor 130 according to the clock of the baseband processor 130, and outputs the data to the DAC 212 according to the readout clock output by the fixed divider 224, and transmits the related audio data to the horn. 150.

此外,本發明亦可應用於整合式接收器。第8A圖顯示根據本發明實施例所述之整合式接收器800A的代表圖,其中低雜訊放大器(low noise amplifier,LNA)102係屬於類比接收路徑電路的一部分。LNA 102根據所接收的射頻訊號113輸出訊號給混合器(mixer)104。混合器104根據一混合信號118產生低中頻(low-IF)訊號116給低中頻轉換電路(low-IF conversion circuitry)106。低中頻轉換電路106根據一數位取樣時脈信號205將所接收的低中頻訊號116數位化,並輸出數位訊號120給數位訊號處理器(Digital Signal Processor,DSP)108。DSP 108根據一數位時脈信號(在此圖中亦為信號205,但在稍後敘述之第800B圖的應用中則不為信號205)來處理數位訊號120。在第800A圖的電路中,混合信號118、數位取樣時脈信號205(屬於低中頻轉換電路106)、數位時脈信號205(屬於DSP 108)係由一時脈系統300產生,其中該時脈系統300包括除法器132、202和204。時脈系統300接收由頻率合成器209所產生的頻率fOSC ,並利用上述除法器132、204和202來產生混合信號118、數位取樣時脈信號205、數位時脈信號205。本發明之非同步先進先出介面220可應用於低中頻轉換電路106和DSP 108之間,如第800B圖所示。Furthermore, the invention is also applicable to integrated receivers. Figure 8A shows a representative diagram of an integrated receiver 800A in accordance with an embodiment of the invention, wherein a low noise amplifier (LNA) 102 is part of an analog receive path circuit. The LNA 102 outputs a signal to the mixer 104 based on the received RF signal 113. The mixer 104 generates a low intermediate frequency (low-IF) signal 116 to the low-IF conversion circuitry 106 based on a mixed signal 118. The low intermediate frequency conversion circuit 106 digitizes the received low intermediate frequency signal 116 according to a digital sampling clock signal 205, and outputs the digital signal 120 to a digital signal processor (DSP) 108. The DSP 108 processes the digital signal 120 based on a digital clock signal (which is also signal 205 in this figure, but not in the application of the 800B picture described later). In the circuit of FIG. 800A, the mixed signal 118, the digital sampling clock signal 205 (belonging to the low intermediate frequency converting circuit 106), and the digital clock signal 205 (belonging to the DSP 108) are generated by a clock system 300, wherein the clock is generated. System 300 includes dividers 132, 202, and 204. The clock system 300 receives the frequency f OSC generated by the frequency synthesizer 209 and uses the dividers 132, 204, and 202 to generate the mixed signal 118, the digital sample clock signal 205, and the digital clock signal 205. The asynchronous first in first out interface 220 of the present invention can be applied between the low intermediate frequency conversion circuit 106 and the DSP 108 as shown in FIG. 800B.

在第800B圖應用本發明之非同步先進先出介面220的範例中,非同步先進先出介面220中的FIFO緩衝器121 依照寫入時脈從低中頻轉換電路106接收數位訊號120A和依照讀出時脈輸出數位訊號120B至DSP 108,並根據FIFO緩衝器121的資料狀態緩衝低中頻轉換電路106和DSP 108兩者之間的資料讀寫,其中的操作原理與上述內容皆完全相同,因此在此不再重複敘述。In the example of applying the asynchronous first in first out interface 220 of the present invention in FIG. 800B, the FIFO buffer 121 in the asynchronous first in first out interface 220 Receiving the digital signal 120A from the low intermediate frequency conversion circuit 106 according to the write clock and outputting the digital signal 120B to the DSP 108 according to the read clock, and buffering the low intermediate frequency conversion circuit 106 and the DSP 108 according to the data state of the FIFO buffer 121. The reading and writing of data between the two, the operating principle is exactly the same as the above, so the description will not be repeated here.

本發明雖以較佳實施例揭露如上,然其並非用以限定本發明的範圍,任何熟習此項技藝者,在不脫離本發明之精神和範圍內,當可做些許的更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。The present invention has been described above with reference to the preferred embodiments thereof, and is not intended to limit the scope of the present invention, and the invention may be modified and modified without departing from the spirit and scope of the invention. The scope of the invention is defined by the scope of the appended claims.

100、200‧‧‧接收器100, 200‧‧‧ Receiver

102‧‧‧低雜訊放大器102‧‧‧Low noise amplifier

104‧‧‧混合器104‧‧‧Mixer

106‧‧‧低中頻轉換電路106‧‧‧Low intermediate frequency conversion circuit

108‧‧‧數位訊號處理器108‧‧‧Digital Signal Processor

110‧‧‧射頻前端接收器110‧‧‧RF front-end receiver

112‧‧‧類比數位轉換器112‧‧‧ Analog Digital Converter

113‧‧‧射頻訊號113‧‧‧RF signal

114、132、132A、132B‧‧‧信號源114, 132, 132A, 132B‧‧‧ signal source

116‧‧‧低中頻訊號116‧‧‧Low IF signal

121、221‧‧‧FIFO緩衝器121, 221‧‧‧ FIFO buffer

120、220‧‧‧非同步FIFO介面120, 220‧‧‧ Non-synchronous FIFO interface

120A、120B‧‧‧數位訊號120A, 120B‧‧‧ digital signal

122‧‧‧時脈控制器122‧‧‧clock controller

124‧‧‧可變整數除法器124‧‧‧Variable integer divider

130‧‧‧基帶處理器130‧‧‧baseband processor

132、204、1325‧‧‧除法器132, 204, 1325‧‧‧ divider

140‧‧‧參考源140‧‧‧Reference source

150‧‧‧喇叭150‧‧‧ Horn

209‧‧‧頻率合成器209‧‧‧ frequency synthesizer

212‧‧‧數位類比轉換器212‧‧‧Digital Analog Converter

224‧‧‧固定除法器224‧‧‧Fixed divider

300‧‧‧時脈系統300‧‧‧ clock system

410、412、414、420、422、424‧‧‧緩衝器410, 412, 414, 420, 422, 424‧‧ ‧ buffers

800A、800B‧‧‧整合式接收器800A, 800B‧‧‧ integrated receiver

1321‧‧‧可變整數除法器1321‧‧‧Variable integer divider

1322‧‧‧相位頻率偵測器/電荷幫浦1322‧‧‧ phase frequency detector / charge pump

1323‧‧‧迴路濾波器1323‧‧‧ Loop Filter

1324‧‧‧電壓控制震盪器1324‧‧‧Voltage Control Oscillator

CLK_BB1、CLK_BB2‧‧‧時脈頻率CLK_BB1, CLK_BB2‧‧‧ clock frequency

fOSC ‧‧‧頻率合成器的輸出頻率f OSC ‧‧‧frequency synthesizer output frequency

fxta1 ‧‧‧震盪頻率f xta1 ‧‧‧ oscillation frequency

Fin1 、Fin2 ‧‧‧輸入頻率F in1 , F in2 ‧‧‧ input frequency

Fref1 、Fref2 ‧‧‧參考頻率F ref1 , F ref2 ‧‧‧reference frequency

FIFO_R‧‧‧讀取資料FIFO_R‧‧‧ reading data

FIFO_W‧‧‧寫入資料FIFO_W‧‧‧Write data

第1圖顯示使用非同步先進先出介面之一接收器的方塊圖;第2圖顯示根據本發明一實施例所述之使用非同步先進先出介面之一接收器的方塊圖;第3A圖顯示根據本發明一實施例所述之一第二信號源的方塊圖;第3B圖顯示根據本發明另一實施例所述之第二信號源的方塊圖;第4A圖顯示根據本發明一實施例所述之FIFO緩衝器中資料量遞減的示意圖;第4B圖顯示根據本發明一實施例所述之FIFO緩衝器中資料量遞增的示意圖;第5圖顯示本發明一實施例所述之介面操作方法;第6圖顯示本發明另一實施例所述之介面操作方法;第7圖顯示根據本發明一實施例所述之接收器於實際應用的電路圖;第8A圖顯示一整合式接收器的電路圖;以及第8B圖顯示本發明之非同步先進先出介面應用於第8A圖之整合式接收器的範例。1 is a block diagram showing a receiver using a non-synchronous first-in first-out interface; and FIG. 2 is a block diagram showing a receiver using an asynchronous first-in first-out interface according to an embodiment of the invention; A block diagram of a second signal source according to an embodiment of the invention is shown; FIG. 3B is a block diagram showing a second signal source according to another embodiment of the present invention; and FIG. 4A is a diagram showing an embodiment of the present invention. FIG. 4B is a schematic diagram showing an increase in data amount in a FIFO buffer according to an embodiment of the present invention; FIG. 5 is a view showing an interface according to an embodiment of the present invention; 6 shows a circuit operation method according to another embodiment of the present invention; FIG. 7 shows a circuit diagram of a receiver according to an embodiment of the present invention; and FIG. 8A shows an integrated receiver The circuit diagram; and FIG. 8B shows an example in which the non-synchronous first-in first-out interface of the present invention is applied to the integrated receiver of FIG. 8A.

200‧‧‧接收器200‧‧‧ Receiver

110‧‧‧射頻前端接收器110‧‧‧RF front-end receiver

112‧‧‧類比數位轉換器112‧‧‧ Analog Digital Converter

114、132‧‧‧信號源114, 132‧‧‧ Signal source

121‧‧‧FIFO緩衝器121‧‧‧FIFO buffer

122‧‧‧時脈控制器122‧‧‧clock controller

124‧‧‧可變整數除法器124‧‧‧Variable integer divider

130‧‧‧基帶處理器130‧‧‧baseband processor

140‧‧‧參考源140‧‧‧Reference source

220‧‧‧非同步FIFO介面220‧‧‧ Non-synchronous FIFO interface

Claims (36)

一種非同步先進先出介面,具有非同步的一讀出時脈和一寫入時脈,包括:一緩衝器,根據上述寫入時脈從一類比數位轉換器接收一數位訊號,以及根據上述讀出時脈輸出一數位訊號至一處理器;一時脈控制器,根據儲存於上述緩衝器中之資料量輸出一時脈控制訊號;一參考源,提供一震盪頻率;以及一信號源,將上述震盪頻率除以一第一整數除數以產生一參考頻率,將上述讀出時脈除以一第二整數除數以產生一輸入頻率,以及藉著比較上述參考頻率和上述輸入頻率來輸出一控制訊號,用以調整所輸出的上述讀出時脈,其中上述第二整數除數係為上述時脈控制訊號所控制,上述信號源包括:一除法器,將上述震盪頻率除以上述第一整數除數以產生上述參考頻率;一可變整數除法器,由上述時脈控制訊號所控制,用以將上述讀出時脈除以上述第二整數除數以產生上述輸入頻率;一相位頻率偵測器/電荷幫浦,比較上述參考頻率和上述輸入頻率;一迴路濾波器,根據上述參考頻率和上述輸入頻率的比較結果產生上述控制訊號,以及一電壓控制震盪器,輸出上述讀出時脈,並根據上述控制訊號調整上述讀出時脈。 An asynchronous first in first out interface having a non-synchronized read clock and a write clock, comprising: a buffer for receiving a digital signal from an analog converter according to the write clock, and according to the above The read clock outputs a digital signal to a processor; a clock controller outputs a clock control signal according to the amount of data stored in the buffer; a reference source provides an oscillation frequency; and a signal source, The oscillating frequency is divided by a first integer divisor to generate a reference frequency, the read clock is divided by a second integer divisor to generate an input frequency, and the output is output by comparing the reference frequency with the input frequency a control signal for adjusting the output read clock, wherein the second integer divisor is controlled by the clock control signal, wherein the signal source comprises: a divider, dividing the oscillation frequency by the first An integer divisor to generate the reference frequency; a variable integer divider controlled by the clock control signal to divide the readout clock by the second integer Divising to generate the above input frequency; a phase frequency detector/charge pump comparing the reference frequency and the input frequency; and a loop filter generating the control signal according to a comparison result between the reference frequency and the input frequency, and A voltage controlled oscillator outputs the read clock and adjusts the read clock according to the control signal. 如申請專利範圍第1項所述之非同步先進先出介 面,其中上述處理器係一基帶(base band)處理器。 As described in the scope of patent application, the non-synchronous advanced first-out media The above processor is a base band processor. 如申請專利範圍第1項所述之非同步先進先出介面,其中上述震盪頻率係由一晶體震盪器所提供。 The non-synchronous first-in first-out interface as described in claim 1 wherein the oscillating frequency is provided by a crystal oscillator. 如申請專利範圍第1項所述之非同步先進先出介面,其中當儲存於上述緩衝器中之資料量高於一上限值或低於一下限值,上述時脈控制器改變上述第二整數除數以調整儲存於上述緩衝器中之資料量。 The non-synchronous first-in first-out interface as described in claim 1, wherein the clock controller changes the second when the amount of data stored in the buffer is higher than an upper limit or lower than a lower limit The integer divisor is used to adjust the amount of data stored in the buffer. 如申請專利範圍第4項所述之非同步先進先出介面,其中上述上限值代表資料溢出訊號,上述下限值代表資料清空訊號。 For example, the non-synchronous first-in first-out interface described in claim 4, wherein the upper limit value represents a data overflow signal, and the lower limit value represents a data clear signal. 如申請專利範圍第1項所述之非同步先進先出介面,其中當儲存於上述緩衝器中之資料量高於一上限值,上述時脈控制器改變上述第二整數除數,使得上述寫入時脈低於上述讀出時脈。 The non-synchronous first-in first-out interface as described in claim 1, wherein when the amount of data stored in the buffer is higher than an upper limit, the clock controller changes the second integer divisor such that The write clock is lower than the above read clock. 如申請專利範圍第1項所述之非同步先進先出介面,其中當儲存於上述緩衝器中之資料量低於一下限值,上述時脈控制器改變上述第二整數除數,使得上述寫入時脈高於上述讀出時脈。 The non-synchronous first-in first-out interface as described in claim 1, wherein when the amount of data stored in the buffer is lower than a lower limit, the clock controller changes the second integer divisor to cause the writing The incoming clock is higher than the above read clock. 一種介面操作方法,用於操作具有一寫入時脈和一讀出時脈之一非同步介面,上述非同步介面包括一緩衝器,上述方法包括:根據上述寫入時脈從一類比數位轉換器接收一數位訊號至上述緩衝器;根據上述讀出時脈從上述緩衝器輸出一數位訊號至一處理器;根據儲存於上述緩衝器中之資料量輸出一時脈控制 訊號;提供一震盪頻率;藉由一除法器,將上述震盪頻率除以一第一整數除數以產生一參考頻率;藉由上述時脈控制訊號所控制之一可變整數除法器,將上述讀出時脈除以一第二整數除數以產生一輸入頻率,以及藉著比較上述參考頻率和上述輸入頻率來調整上述讀出時脈,其中藉著比較上述參考頻率和上述輸入頻率來調整上述讀出時脈的步驟包括:藉由一相位頻率偵測器/電荷幫浦,比較上述參考頻率和上述輸入頻率;藉由一迴路濾波器,根據上述參考頻率和上述輸入頻率的比較結果產生上述控制訊號,以及藉由一電壓控制震盪器,輸出上述讀出時脈,並根據上述控制訊號調整上述讀出時脈。 An interface operation method for operating a non-synchronous interface having a write clock and a read clock, the non-synchronous interface including a buffer, the method comprising: converting from an analog to digital according to the write clock Receiving a digital signal to the buffer; outputting a digital signal from the buffer to a processor according to the read clock; outputting a clock control according to the amount of data stored in the buffer a frequency; providing a oscillating frequency; dividing the oscillating frequency by a first integer divisor by a divider to generate a reference frequency; and using a variable integer divider controlled by the clock control signal The read clock is divided by a second integer divisor to generate an input frequency, and the read clock is adjusted by comparing the reference frequency with the input frequency, wherein the read frequency is adjusted by comparing the reference frequency with the input frequency The step of reading the clock includes: comparing the reference frequency and the input frequency by a phase frequency detector/charge pump; generating a comparison result between the reference frequency and the input frequency by using a loop filter The control signal is outputted by the voltage control oscillator, and the read clock is output, and the read clock is adjusted according to the control signal. 如申請專利範圍第8項所述之介面操作方法,其中上述處理器係一基帶處理器。 The interface operation method of claim 8, wherein the processor is a baseband processor. 如申請專利範圍第8項所述之介面操作方法,其中上述震盪頻率係由一晶體震盪器所提供。 The interface operation method of claim 8, wherein the oscillation frequency is provided by a crystal oscillator. 如申請專利範圍第8項所述之介面操作方法,其中當儲存於上述緩衝器中之資料量高於一上限值或低於一下限值,上述方法更包括:改變上述第二整數除數以調整儲存於上述緩衝器中之資料量。 The interface operation method of claim 8, wherein the method further comprises: changing the second integer divisor when the amount of data stored in the buffer is higher than an upper limit or lower than a lower limit To adjust the amount of data stored in the buffer. 如申請專利範圍第11項所述之介面操作方法,其 中上述上限值代表資料溢出訊號,上述下限值代表資料清空訊號。 An interface operation method as described in claim 11 of the patent application, The above upper limit value represents a data overflow signal, and the above lower limit value represents a data clear signal. 如申請專利範圍第8項所述之介面操作方法,其中當儲存於上述緩衝器中之資料量高於一上限值,上述方法更包括改變上述第二整數除數,使得上述寫入時脈低於上述讀出時脈。 The interface operation method of claim 8, wherein when the amount of data stored in the buffer is higher than an upper limit, the method further comprises changing the second integer divisor such that the write clock is Below the readout clock. 如申請專利範圍第8項所述之介面操作方法,其中當儲存於上述緩衝器中之資料量低於一下限值,上述方法更包括改變上述第二整數除數,使得上述寫入時脈高於上述讀出時脈。 The interface operation method of claim 8, wherein when the amount of data stored in the buffer is lower than a lower limit, the method further comprises changing the second integer divisor such that the write clock is high. Read the clock at the above. 一種非同步先進先出介面,具有非同步的一讀出時脈和一寫入時脈,包括:一緩衝器,根據上述寫入時脈從一類比數位轉換器接收一數位訊號,以及根據上述讀出時脈輸出一數位訊號至一處理器;一時脈控制器,根據儲存於上述緩衝器中之資料量輸出一第一組控制位元;一參考源,提供一震盪頻率;一信號源,將上述震盪頻率除以一第一整數除數以產生一參考頻率,將上述讀出時脈除以一第二整數除數以產生一輸入頻率,藉著比較上述參考頻率和上述輸入頻率來輸出一第二組控制位元,將上述第一組控制位元與上述第二組控制位元相加以得到一總控制位元,以及根據上述總控制位元調整所輸出的上述讀出時脈,其中上述信號源包括:一第一除法器,將上述震盪頻率除以上述第一整數除 數以產生上述參考頻率;一第二除法器,將上述讀出時脈除以上述第二整數除數以產生上述輸入頻率;一相位頻率偵測器,比較上述參考頻率和上述輸入頻率;一數位迴路濾波器,根據上述參考頻率和上述輸入頻率的比較結果產生上述第二組控制位元;一加法器,將上述第一組控制位元與上述第二組控制位元相加以得到上述總控制位元;以及一電壓控制震盪器,輸出上述讀出時脈,並根據上述總控制位元調整上述讀出時脈。 An asynchronous first in first out interface having a non-synchronized read clock and a write clock, comprising: a buffer for receiving a digital signal from an analog converter according to the write clock, and according to the above The read clock outputs a digital signal to a processor; a clock controller outputs a first set of control bits according to the amount of data stored in the buffer; a reference source provides an oscillation frequency; a signal source, Dividing the oscillation frequency by a first integer divisor to generate a reference frequency, dividing the readout clock by a second integer divisor to generate an input frequency, and outputting by comparing the reference frequency and the input frequency a second group of control bits, the first group of control bits are added to the second group of control bits to obtain a total control bit, and the output read clock is adjusted according to the total control bit. Wherein the signal source comprises: a first divider, dividing the oscillation frequency by the first integer division And generating a reference frequency; a second divider dividing the read clock by the second integer divisor to generate the input frequency; and a phase frequency detector comparing the reference frequency and the input frequency; a digital loop filter, generating the second group of control bits according to the comparison result of the reference frequency and the input frequency; and an adder, adding the first group of control bits to the second group of control bits to obtain the total a control bit; and a voltage controlled oscillator that outputs the read clock and adjusts the read clock according to the total control bit. 如申請專利範圍第15項所述之非同步先進先出介面,其中上述處理器係一基帶處理器。 The non-synchronous first-in first-out interface as described in claim 15 wherein the processor is a baseband processor. 如申請專利範圍第15項所述之非同步先進先出介面,其中上述震盪頻率係由一晶體震盪器所提供。 The non-synchronous first-in first-out interface as described in claim 15 wherein the oscillation frequency is provided by a crystal oscillator. 如申請專利範圍第15項所述之非同步先進先出介面,其中當儲存於上述緩衝器中之資料量高於一上限值或低於一下限值,上述時脈控制器改變上述第一組控制位元的值以調整儲存於上述緩衝器中之資料量。 The non-synchronous first-in first-out interface according to claim 15 , wherein the clock controller changes the first when the amount of data stored in the buffer is higher than an upper limit or lower than a lower limit The group controls the value of the bit to adjust the amount of data stored in the buffer. 如申請專利範圍第18項所述之非同步先進先出介面,其中上述上限值代表資料溢出訊號,上述下限值代表資料清空訊號。 For example, the non-synchronous first-in first-out interface described in claim 18, wherein the upper limit value represents a data overflow signal, and the lower limit value represents a data clear signal. 如申請專利範圍第15項所述之非同步先進先出介面,其中當儲存於上述緩衝器中之資料量高於一上限值,上述時脈控制器改變上述第一組控制位元的值,使得上述寫入時脈低於上述讀出時脈。 The non-synchronous first-in first-out interface as described in claim 15 wherein the clock controller changes the value of the first group of control bits when the amount of data stored in the buffer is higher than an upper limit value. So that the above write clock is lower than the above read clock. 如申請專利範圍第15項所述之非同步先進先出介面,其中當儲存於上述緩衝器中之資料量低於一下限值,上述時脈控制器改變上述第一組控制位元的值,使得上述寫入時脈高於上述讀出時脈。 The non-synchronous first-in first-out interface according to claim 15 , wherein when the amount of data stored in the buffer is lower than a lower limit, the clock controller changes the value of the first group of control bits, The write clock is made higher than the read clock. 一種介面操作方法,用於操作具有一寫入時脈和一讀出時脈之一非同步介面,上述非同步介面包括一緩衝器,上述方法包括:根據上述寫入時脈從一類比數位轉換器接收一數位訊號至上述緩衝器;根據上述讀出時脈從上述緩衝器輸出一數位訊號至一處理器;根據儲存於上述緩衝器中之資料量輸出一第一組控制位元;提供一震盪頻率;藉由一第一除法器,將上述震盪頻率除以一第一整數除數以產生一參考頻率;藉由一第二除法器,將上述讀出時脈除以一第二整數除數以產生一輸入頻率;藉由一相位頻率偵測器與一數位迴路濾波器,比較上述參考頻率和上述輸入頻率來輸出一第二組控制位元;藉由一加法器,將上述第一組控制位元與上述第二組控制位元相加以得到一總控制位元;以及藉由一電壓控制震盪器,根據上述總控制位元調整所輸出的上述讀出時脈。 An interface operation method for operating a non-synchronous interface having a write clock and a read clock, the non-synchronous interface including a buffer, the method comprising: converting from an analog to digital according to the write clock Receiving a digital signal to the buffer; outputting a digital signal from the buffer to a processor according to the read clock; outputting a first group of control bits according to the amount of data stored in the buffer; providing a An oscillating frequency; dividing the oscillating frequency by a first integer divisor by a first divider to generate a reference frequency; dividing the read clock by a second integer by a second divider Generating an input frequency; comparing a reference frequency and the input frequency to output a second set of control bits by a phase frequency detector and a digital loop filter; and using the adder, the first The group control bit is added to the second group of control bits to obtain a total control bit; and the output is read by the voltage control oscillator according to the total control bit Pulse. 如申請專利範圍第22項所述之介面操作方法,其中上述處理器係一基帶處理器。 The interface operation method of claim 22, wherein the processor is a baseband processor. 如申請專利範圍第22項所述之介面操作方法,其中上述震盪頻率係由一晶體震盪器所提供。 The interface operation method of claim 22, wherein the oscillation frequency is provided by a crystal oscillator. 如申請專利範圍第22項所述之介面操作方法,其中當儲存於上述緩衝器中之資料量高於一上限值或低於一下限值,上述方法更包括改變上述第一組控制位元的值以調整儲存於上述緩衝器中之資料量。 The interface operation method of claim 22, wherein the method further comprises changing the first group of control bits when the amount of data stored in the buffer is higher than an upper limit or lower than a lower limit. The value of the data is adjusted to be stored in the buffer. 如申請專利範圍第25項所述之介面操作方法,其中上述上限值代表資料溢出訊號,上述下限值代表資料清空訊號。 The interface operation method as described in claim 25, wherein the upper limit value represents a data overflow signal, and the lower limit value represents a data clear signal. 如申請專利範圍第22項所述之介面操作方法,其中當儲存於上述緩衝器中之資料量高於一上限值,上述方法更包括改變上述第一組控制位元的值,使得上述寫入時脈低於上述讀出時脈。 The interface operation method of claim 22, wherein when the amount of data stored in the buffer is higher than an upper limit, the method further comprises changing a value of the first group of control bits to cause the writing The incoming clock is lower than the above read clock. 如申請專利範圍第22項所述之介面操作方法,其中當儲存於上述緩衝器中之資料量低於一下限值,上述方法更包括改變上述第一組控制位元的值,使得上述寫入時脈高於上述讀出時脈。 The interface operation method of claim 22, wherein when the amount of data stored in the buffer is lower than a lower limit, the method further comprises changing a value of the first group of control bits to cause the writing The clock is higher than the above read clock. 一種整合式接收器,包括:一頻率合成器,產生一輸出信號;一時脈系統,根據上述輸出信號產生一混合信號以及一寫入時脈;一類比接收路徑電路,根據上述混合信號產生一低中頻訊號;一低中頻轉換電路,根據上述寫入時脈將上述低中頻訊號轉換成一第一數位訊號;一處理器,根據一讀出時脈處理一第二數位訊號;以 及一非同步先進先出介面,耦接於上述低中頻轉換電路和上述處理器之間,並具有非同步的上述讀出時脈和上述寫入時脈,包括:一緩衝器,根據上述寫入時脈從上述低中頻轉換電路接收上述第一數位訊號,以及根據上述讀出時脈輸出上述第二數位訊號至上述處理器;一時脈控制器,根據儲存於上述緩衝器中之資料量輸出一時脈控制訊號;一參考源,提供一震盪頻率;以及一信號源,將上述震盪頻率除以一第一整數除數以產生一參考頻率,將上述讀出時脈除以一第二整數除數以產生一輸入頻率,以及藉著比較上述參考頻率和上述輸入頻率來輸出一控制訊號,用以調整所輸出的上述讀出時脈,其中上述第二整數除數係為上述時脈控制訊號所控制,其中上述信號源包括:一除法器,將上述震盪頻率除以上述第一整數除數以產生上述參考頻率;一可變整數除法器,由上述時脈控制訊號所控制,用以將上述讀出時脈除以上述第二整數除數以產生上述輸入頻率;一相位頻率偵測器/電荷幫浦,比較上述參考頻率和上述輸入頻率;一迴路濾波器,根據上述參考頻率和上述輸入頻率的比較結果產生上述控制訊號,以及一電壓控制震盪器,輸出上述讀出時脈,並根據上述 控制訊號調整上述讀出時脈。 An integrated receiver comprising: a frequency synthesizer for generating an output signal; a clock system for generating a mixed signal and a write clock according to the output signal; and an analog receiving path circuit for generating a low according to the mixed signal An intermediate frequency signal; a low intermediate frequency conversion circuit that converts the low intermediate frequency signal into a first digital signal according to the writing clock; and a processor that processes a second digital signal according to a read clock; And an asynchronous first-in first-out interface coupled between the low-IF conversion circuit and the processor, and having the asynchronous read clock and the write clock, including: a buffer, according to the foregoing The write clock receives the first digital signal from the low intermediate frequency conversion circuit, and outputs the second digital signal to the processor according to the read clock; a clock controller, according to the data stored in the buffer Outputting a clock control signal; a reference source providing an oscillation frequency; and a signal source dividing the oscillation frequency by a first integer divisor to generate a reference frequency, dividing the readout clock by a second An integer divisor to generate an input frequency, and outputting a control signal for comparing the output read clock by comparing the reference frequency with the input frequency, wherein the second integer divisor is the clock Controlled by the control signal, wherein the signal source comprises: a divider, dividing the oscillation frequency by the first integer divisor to generate the reference frequency; a divider controlled by the clock control signal for dividing the readout clock by the second integer divisor to generate the input frequency; a phase frequency detector/charge pump for comparing the reference frequency and The input frequency; the first loop filter generates the control signal according to the comparison result between the reference frequency and the input frequency, and a voltage controlled oscillator, outputs the read clock, and according to the above The control signal adjusts the above read clock. 如申請專利範圍第29項所述之整合式接收器,其中上述處理器係一數位訊號處理器。 The integrated receiver of claim 29, wherein the processor is a digital signal processor. 如申請專利範圍第29項所述之整合式接收器,其中上述震盪頻率係由一晶體震盪器所提供。 The integrated receiver of claim 29, wherein the oscillating frequency is provided by a crystal oscillator. 如申請專利範圍第29項所述之整合式接收器,其中當儲存於上述緩衝器中之資料量高於一上限值或低於一下限值,上述時脈控制器改變上述第二整數除數以調整儲存於上述緩衝器中之資料量。 The integrated receiver of claim 29, wherein the clock controller changes the second integer division when the amount of data stored in the buffer is higher than an upper limit value or lower than a lower limit value The number is used to adjust the amount of data stored in the buffer. 如申請專利範圍第32項所述之整合式接收器,其中上述上限值代表資料溢出訊號,上述下限值代表資料清空訊號。 The integrated receiver according to claim 32, wherein the upper limit value represents a data overflow signal, and the lower limit value represents a data clear signal. 如申請專利範圍第29項所述之整合式接收器,其中當儲存於上述緩衝器中之資料量高於一上限值,上述時脈控制器改變上述第二整數除數,使得上述寫入時脈低於上述讀出時脈。 The integrated receiver of claim 29, wherein when the amount of data stored in the buffer is higher than an upper limit, the clock controller changes the second integer divisor to cause the writing The clock is lower than the above read clock. 如申請專利範圍第29項所述之整合式接收器,其中當儲存於上述緩衝器中之資料量低於一下限值,上述時脈控制器改變上述第二整數除數,使得上述寫入時脈高於上述讀出時脈。 The integrated receiver of claim 29, wherein when the amount of data stored in the buffer is lower than a lower limit, the clock controller changes the second integer divisor such that the writing is performed The pulse is higher than the above read clock. 一種整合式接收器,包括:一頻率合成器,產生一輸出信號;一時脈系統,根據上述輸出信號產生一混合信號以及一寫入時脈;一類比接收路徑電路,根據上述混合信號產生一低中頻訊號; 一低中頻轉換電路,根據上述寫入時脈將上述低中頻訊號轉換成一第一數位訊號;一處理器,根據一讀出時脈處理一第二數位訊號;以及一非同步先進先出介面,耦接於上述低中頻轉換電路和上述處理器之間,並具有非同步的上述讀出時脈和上述寫入時脈,包括:一緩衝器,根據上述寫入時脈從上述低中頻轉換電路接收一數位訊號,以及根據上述讀出時脈輸出一數位訊號至上述處理器;一時脈控制器,根據儲存於上述緩衝器中之資料量輸出一第一組控制位元;一參考源,提供一震盪頻率;以及一信號源,將上述震盪頻率除以一第一整數除數以產生一參考頻率,將上述讀出時脈除以一第二整數除數以產生一輸入頻率,藉著比較上述參考頻率和上述輸入頻率來輸出一第二組控制位元,將上述第一組控制位元與上述第二組控制位元相加以得到一總控制位元,以及根據上述總控制位元調整所輸出的上述讀出時脈,其中上述信號源包括:一第一除法器,將上述震盪頻率除以上述第一整數除數以產生上述參考頻率;一第二除法器,將上述讀出時脈除以上述第二整數除數以產生上述輸入頻率;一相位頻率偵測器,比較上述參考頻率和上述輸入頻率; 一數位迴路濾波器,根據上述參考頻率和上述輸入頻率的比較結果產生上述第二組控制位元;一加法器,將上述第一組控制位元與上述第二組控制位元相加以得到上述總控制位元;以及一電壓控制震盪器,輸出上述讀出時脈,並根據上述總控制位元調整上述讀出時脈。 An integrated receiver comprising: a frequency synthesizer for generating an output signal; a clock system for generating a mixed signal and a write clock according to the output signal; and an analog receiving path circuit for generating a low according to the mixed signal IF signal; a low intermediate frequency conversion circuit for converting the low intermediate frequency signal into a first digital signal according to the writing clock; a processor for processing a second digital signal according to a read clock; and an asynchronous first in first out The interface is coupled between the low intermediate frequency conversion circuit and the processor, and has a non-synchronized read clock and the write clock, and includes: a buffer, according to the write clock from the low The intermediate frequency conversion circuit receives a digital signal, and outputs a digital signal to the processor according to the read clock; the clock controller outputs a first set of control bits according to the amount of data stored in the buffer; a reference source providing an oscillating frequency; and a signal source dividing the oscillating frequency by a first integer divisor to generate a reference frequency, dividing the read clock by a second integer divisor to generate an input frequency And outputting a second group of control bits by comparing the reference frequency and the input frequency, and adding the first group of control bits to the second group of control bits to obtain a total control bit And adjusting the output read clock according to the total control bit, wherein the signal source comprises: a first divider, dividing the oscillation frequency by the first integer divisor to generate the reference frequency; a second divider dividing the read clock by the second integer divisor to generate the input frequency; a phase frequency detector comparing the reference frequency and the input frequency; a digital loop filter, generating the second group of control bits according to the comparison result of the reference frequency and the input frequency; and an adder, adding the first group of control bits to the second group of control bits to obtain the above a total control bit; and a voltage controlled oscillator that outputs the read clock and adjusts the read clock according to the total control bit.
TW098132282A 2009-09-24 2009-09-24 Asynchronous first in first out interface method for operating an interface and integrated receiver TWI385924B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW098132282A TWI385924B (en) 2009-09-24 2009-09-24 Asynchronous first in first out interface method for operating an interface and integrated receiver
US12/763,281 US8346201B2 (en) 2009-09-24 2010-04-20 Asynchronous first in first out interface, method thereof and integrated receiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW098132282A TWI385924B (en) 2009-09-24 2009-09-24 Asynchronous first in first out interface method for operating an interface and integrated receiver

Publications (2)

Publication Number Publication Date
TW201112634A TW201112634A (en) 2011-04-01
TWI385924B true TWI385924B (en) 2013-02-11

Family

ID=43757044

Family Applications (1)

Application Number Title Priority Date Filing Date
TW098132282A TWI385924B (en) 2009-09-24 2009-09-24 Asynchronous first in first out interface method for operating an interface and integrated receiver

Country Status (2)

Country Link
US (1) US8346201B2 (en)
TW (1) TWI385924B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8745158B2 (en) * 2011-09-30 2014-06-03 Avid Technology, Inc. Application-guided bandwidth-managed caching
US9411722B2 (en) 2013-03-04 2016-08-09 Sandisk Technologies Llc Asynchronous FIFO buffer for memory access
US20160077565A1 (en) * 2014-09-17 2016-03-17 Advanced Micro Devices, Inc. Frequency configuration of asynchronous timing domains under power constraints
US10411716B2 (en) 2016-06-06 2019-09-10 Richwave Technology Corp. Subsampling motion detector for detecting motion of object under measurement
US9867135B1 (en) * 2017-02-06 2018-01-09 Mediatek Inc. Frequency-generating circuit and communications apparatus
CN115883493A (en) * 2022-10-31 2023-03-31 中国船舶集团有限公司第七二三研究所 Asynchronous data time sequence recovery method based on dynamic adjustment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200533072A (en) * 2004-03-22 2005-10-01 Realtek Semiconductor Corp All-digital phase-locked loop
TW200620840A (en) * 2004-07-22 2006-06-16 Rohm Co Ltd Clock generation circuit, and communication device
US7398414B2 (en) * 2001-03-21 2008-07-08 Gallitzin Allegheny Llc Clocking system including a clock controller that uses buffer feedback to vary a clock frequency
TW200841598A (en) * 2007-01-05 2008-10-16 Qualcomm Inc PLL loop bandwidth calibration
TW200910786A (en) * 2007-08-21 2009-03-01 Richwave Technology Corp Asynchronous first in first out interface and operation method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5497405A (en) * 1993-07-01 1996-03-05 Dsc Communications Corporation Open loop desynchronizer
US6687255B1 (en) * 2000-03-21 2004-02-03 Lsi Logic Corporation Data communication circuit having FIFO buffer with frame-in-FIFO generator
EP2800277B1 (en) * 2003-04-01 2024-02-21 Nec Corporation Data processing terminal system and transmitting and receiving method using the same
DE102004006510A1 (en) * 2004-02-10 2005-09-08 Infineon Technologies Ag Method and circuit for differential clock compensation between two clock systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7398414B2 (en) * 2001-03-21 2008-07-08 Gallitzin Allegheny Llc Clocking system including a clock controller that uses buffer feedback to vary a clock frequency
TW200533072A (en) * 2004-03-22 2005-10-01 Realtek Semiconductor Corp All-digital phase-locked loop
TW200620840A (en) * 2004-07-22 2006-06-16 Rohm Co Ltd Clock generation circuit, and communication device
TW200841598A (en) * 2007-01-05 2008-10-16 Qualcomm Inc PLL loop bandwidth calibration
TW200910786A (en) * 2007-08-21 2009-03-01 Richwave Technology Corp Asynchronous first in first out interface and operation method thereof

Also Published As

Publication number Publication date
US8346201B2 (en) 2013-01-01
TW201112634A (en) 2011-04-01
US20110070854A1 (en) 2011-03-24

Similar Documents

Publication Publication Date Title
TWI793297B (en) Clock signal generator, phase locked loop circuit and wireless communication device
TWI385924B (en) Asynchronous first in first out interface method for operating an interface and integrated receiver
EP2269312B1 (en) High resolution time-to-digital converter
US7583152B2 (en) Phase-locked loop with self-correcting phase-to-digital transfer function
TW200910786A (en) Asynchronous first in first out interface and operation method thereof
US7786913B2 (en) Digital phase locked loop with dithering
US7733151B1 (en) Operating clock generation system and method for audio applications
WO2016095679A1 (en) Digital fractional frequency phase-locked loop control method and phase-locked loop
JP2008535387A (en) Data cleaning using asynchronous reference clock
JP2011205328A (en) Local oscillator
US8369472B2 (en) Semiconductor integrated circuit device and method for clock data recovery
EP2153523B1 (en) Frequency synchronization
JP2004153712A (en) Receiver
JP2004248123A (en) Pll circuit
CN102063283B (en) Asynchronous first-in first-out interface circuit, operating method for interface circuit and integrated receiver
US6377647B1 (en) PLL circuit
JP5492951B2 (en) Semiconductor integrated circuit device and clock data restoration method
JP4956989B2 (en) Clock synchronization method and clock synchronization circuit
US11675386B2 (en) System and method for recovering a clock signal
KR100791637B1 (en) Apparatus for recovering data based on semi-digital and multi-phase data sampling, interface uint and transmitter-receiver using this
CN117318709A (en) Dynamic phase adjustment for high-speed clock signals
JP2016213737A (en) Digital filter circuit, receiving circuit, and semiconductor integrated circuit