CN106470346A - Transmission stream processor with time sequence calibration function and time sequence calibration device and method - Google Patents

Transmission stream processor with time sequence calibration function and time sequence calibration device and method Download PDF

Info

Publication number
CN106470346A
CN106470346A CN201510506974.1A CN201510506974A CN106470346A CN 106470346 A CN106470346 A CN 106470346A CN 201510506974 A CN201510506974 A CN 201510506974A CN 106470346 A CN106470346 A CN 106470346A
Authority
CN
China
Prior art keywords
signal
data signals
sampling
clock signal
edge
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201510506974.1A
Other languages
Chinese (zh)
Inventor
陈耀东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MStar Semiconductor Inc Taiwan
Original Assignee
MStar Semiconductor Inc Taiwan
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 MStar Semiconductor Inc Taiwan filed Critical MStar Semiconductor Inc Taiwan
Priority to CN201510506974.1A priority Critical patent/CN106470346A/en
Publication of CN106470346A publication Critical patent/CN106470346A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/242Synchronization processes, e.g. processing of PCR [Program Clock References]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a timing calibration device for calibrating the timing relationship between a clock signal and a first signal of a transmission stream, one embodiment of the invention comprises: an input end for receiving the clock signal via a clock transmission path and receiving the first signal via a first path; and a calibrator. The calibrator includes: a first sampling circuit for sampling the first signal according to the clock signal to generate a first sampling result; a control circuit for determining that the first sampling result is valid when the first sampling result includes a transition edge of the first signal; and a first edge adjusting circuit for adjusting one of the transition edge of the clock signal and the transition edge of the first signal to satisfy a predetermined timing relationship when the first sampling result is valid.

Description

具有时序校准功能的传输流处理器以及时序校准装置与方法Transport stream processor with timing calibration function, timing calibration device and method

技术领域technical field

本发明是关于传输流处理器以及时序校准装置与方法,尤其是关于能校准传输流的时序的传输流处理器以及时序校准装置与方法。The invention relates to a transport stream processor and a timing calibration device and method, in particular to a transport stream processor capable of calibrating the timing of a transport stream, a timing calibration device and a method.

背景技术Background technique

一般而言,一信号处理器于接收信号时,需依据适当的时脉来取样信号,藉此还原信号的内容。举例来说,在处理数位视讯广播(Digital Video Broadcasting,DVB)的传输流(Transport Stream,TS)时,一传输流处理器会依据该传输流中的时脉信号来取样该传输流中的多笔数据信号,以还原该传输流的内容,然而,由于该时脉信号的传输路径与每笔该数据信号的传输路径不同,因此传输流处理器所接收到的时脉信号与数据信号可能不同步,使得传输流处理器无法正确地取样数据信号,造成所还原的内容有误。Generally speaking, when a signal processor receives a signal, it needs to sample the signal according to an appropriate clock, so as to restore the content of the signal. For example, when processing a Transport Stream (TS) of Digital Video Broadcasting (DVB), a Transport Stream Processor will sample multiple signals in the Transport Stream according to the clock signal in the Transport Stream. However, since the transmission path of the clock signal is different from the transmission path of each data signal, the clock signal and the data signal received by the transport stream processor may not be the same Synchronization, so that the transport stream processor cannot correctly sample the data signal, resulting in incorrect restored content.

发明内容Contents of the invention

鉴于先前技术的不足,本发明的一个目的在于提供传输流处理器以及时序校准装置与方法,以改善先前技术。In view of the shortcomings of the prior art, an object of the present invention is to provide a transport stream processor and a timing calibration device and method to improve the prior art.

本发明揭示一种具有时序校准功能的传输流处理器,用以处理一传输流,该传输流包括一时脉信号与多数据信号,该传输流处理器包含:一输入端;一校准器;以及一处理单元。所述输入端分别经由多路径接收该时脉信号与这些数据信号。所述校准器包含:多取样电路,用来依据该时脉信号分别取样这些数据信号,以产生多取样结果;一控制电路,用以分别依据这些取样结果是否包含其对应的数据信号的转换边缘,判定这些取样结果的有效性;以及多边缘调整电路,用以于这些取样结果有效时,分别调整这些数据信号的转换边缘,使调整后的这些数据信号的转换边缘与该时脉信号的转换边缘满足一预设时序关系。所述处理单元用以自调整后的这些数据信号中辨识一封包数据的一标头,并依据该标头的信息决定将该封包数据经由一音讯输出路径、一影像输出路径以及一数据输出路径其中之一输出。The present invention discloses a transport stream processor with a timing calibration function for processing a transport stream, the transport stream includes a clock signal and multiple data signals, the transport stream processor includes: an input terminal; a calibrator; and a processing unit. The input terminal respectively receives the clock signal and the data signals via multiple paths. The calibrator includes: a multi-sampling circuit, which is used to respectively sample these data signals according to the clock signal, so as to generate multi-sampling results; a control circuit, which is used to respectively determine whether the sampling results contain the transition edges of the corresponding data signals , to determine the validity of these sampling results; and a multi-edge adjustment circuit, used to adjust the conversion edges of these data signals respectively when these sampling results are valid, so that the adjusted conversion edges of these data signals and the conversion of the clock signal The edges satisfy a predetermined timing relationship. The processing unit is used to identify a header of a packet data from the adjusted data signals, and decide to pass the packet data through an audio output path, an image output path and a data output path according to the information of the header. One of them is output.

本发明另揭示一种时序校准装置,能够应用于前述传输流处理器,用来校准一传输流的一时脉信号与一第一信号的时序关系。该时序校准装置的一实施例包含:一输入端,用来经由一时脉传输路径接收该时脉信号,并经由一第一路径接收该第一信号;以及一校准器。所述校准器包含:一第一取样电路,用来依据该时脉信号取样该第一信号,藉此产生一第一取样结果;一控制电路,用来于该第一取样结果包含该第一信号的转换边缘时判定该第一取样结果有效;以及一第一边缘调整电路,用来于该第一取样结果有效时据以调整该时脉信号的转换边缘与该第一信号的转换边缘的其中之一以满足一预设时序关系。The present invention further discloses a timing calibration device, which can be applied to the aforementioned transport stream processor, and is used for calibrating the timing relationship between a clock signal and a first signal of a transport stream. An embodiment of the timing calibration device includes: an input terminal for receiving the clock signal via a clock transmission path and receiving the first signal via a first path; and a calibrator. The calibrator includes: a first sampling circuit, used to sample the first signal according to the clock signal, thereby generating a first sampling result; a control circuit, used to include the first sampling result in the first sampling result When the transition edge of the signal determines that the first sampling result is valid; and a first edge adjustment circuit is used to adjust the transition edge of the clock signal and the transition edge of the first signal when the first sampling result is valid. One of them satisfies a predetermined timing relationship.

本发明相对应地揭示一种时序校准方法,用来校准一传输流的一时脉信号与一第一信号的时序关系,其一实施例包含下列步骤:经由一时脉传输路径接收该时脉信号,并经由一第一路径接收该第一信号多个路径接收一传输流,该传输流包含一时脉信号以及多笔数据信号,该多笔数据信号包含一第一信号,该时脉信号是经由一时脉路径所接收,该第一信号是经由一第一路径所接收;以及一校准步骤,用来校准该时脉信号与该第一信号的关系。所述校准步骤包含:依据该时脉信号取样该第一信号,藉此产生一第一取样结果;于该第一取样结果包含该第一信号的转换边缘时判定该第一取样结果有效;以及于该第一取样结果有效时据以调整该时脉信号之转换边缘与该第一信号的转换边缘的至少其中之一以满足一预设关系预设时序关系。。The present invention correspondingly discloses a timing calibration method for calibrating the timing relationship between a clock signal and a first signal of a transport stream. An embodiment thereof includes the following steps: receiving the clock signal via a clock transmission path, and receive the first signal through a first path and receive a transport stream through a plurality of paths, the transport stream includes a clock signal and multiple data signals, the multiple data signals include a first signal, and the clock signal is passed through a clock signal The first signal is received by a pulse path, and the first signal is received through a first path; and a calibration step is used to calibrate the relationship between the clock signal and the first signal. The calibration step includes: sampling the first signal according to the clock signal, thereby generating a first sampling result; determining that the first sampling result is valid when the first sampling result includes a transition edge of the first signal; and When the first sampling result is valid, at least one of the transition edge of the clock signal and the transition edge of the first signal is adjusted to satisfy a preset timing relationship. .

有关本发明的特征、实作与功效,兹配合附图作较佳实施例详细说明如下。Regarding the characteristics, implementation and effects of the present invention, preferred embodiments are described in detail below in conjunction with the accompanying drawings.

附图说明Description of drawings

图1为本发明的时序校准装置的一实施例的示意图;FIG. 1 is a schematic diagram of an embodiment of a timing calibration device of the present invention;

图2为图1的第一取样电路的一实施例的示意图;FIG. 2 is a schematic diagram of an embodiment of the first sampling circuit of FIG. 1;

图3为图1的第一边缘调整电路的一实施例的示意图;FIG. 3 is a schematic diagram of an embodiment of the first edge adjustment circuit in FIG. 1;

图4为图1的校准器的另一实施例的示意图;Fig. 4 is the schematic diagram of another embodiment of the calibrator of Fig. 1;

图5为图1的第一边缘调整电路调整时脉信号与第一信号的边缘关系的一实施例的示意图;FIG. 5 is a schematic diagram of an embodiment in which the first edge adjustment circuit in FIG. 1 adjusts the edge relationship between the clock signal and the first signal;

图6为图1的校准器的又一实施例的示意图;Fig. 6 is the schematic diagram of another embodiment of the calibrator of Fig. 1;

图7为图6的第一相位调整电路的一实施例的示意图;FIG. 7 is a schematic diagram of an embodiment of the first phase adjustment circuit in FIG. 6;

图8为包含图1的时序校准装置的传输流处理器的一实施例的示意图;以及FIG. 8 is a schematic diagram of an embodiment of a transport stream processor including the timing alignment device of FIG. 1; and

图9为本发明的时序校准方法的一实施例的示意图。FIG. 9 is a schematic diagram of an embodiment of the timing calibration method of the present invention.

符号说明Symbol Description

100:时序校准装置100: timing calibration device

110:输入端110: input terminal

120:校准器120: calibrator

122:第一取样电路122: The first sampling circuit

124:控制电路124: Control circuit

126:第一边缘调整电路126: First edge adjustment circuit

CLK:时脉信号CLK: clock signal

D1:第一信号D1: first signal

D1_Out:校准后的第一信号D1_Out: the first signal after calibration

D2:第二信号D2: second signal

S1:第一取样结果S1: first sampling result

210:闩锁器210: Latch

D1(0D):无延迟的第一信号D1(0D): first signal without delay

D1(1D):被延迟一个单位的第一信号D1(1D): the first signal delayed by one unit

D1((N-1)D):被延迟(N-1)个单位的第一信号D1((N-1)D): the first signal delayed by (N-1) units

310:延迟单元310: delay unit

320、SEL:选择控制单元320, SEL: select control unit

330:多工器330: Multiplexer

Ctrl_CLK:触发信号Ctrl_CLK: trigger signal

Shift_Ctrl_Reg:边缘调整信号Shift_Ctrl_Reg: edge adjustment signal

410:第二取样电路410: Second sampling circuit

420:第二边缘调整电路420: second edge adjustment circuit

S2:第二取样结果S2: second sampling result

610:第一相位调整电路610: first phase adjustment circuit

710:延迟单元710: delay unit

720、SEL:选择控制单元720, SEL: select control unit

730:多工器730: Multiplexer

Phase_Ctrl_Reg:相位调整信号Phase_Ctrl_Reg: phase adjustment signal

800:传输流处理器800: transport stream processor

810:输入端810: input terminal

820:时序校准装置820: Timing Calibration Device

830:处理单元830: processing unit

832:标头检测模块832: Header detection module

834:PID判断模块834: PID judgment module

842:音讯输出路径842: Audio output path

844:影像输出路径844: Image output path

846:数据输出路径846: Data output path

S910~S920:步骤S910~S920: steps

具体实施方式detailed description

本发明揭示了时序校准装置、传输流处理器以及时序校准方法,能够校准由不同路径所传输的时脉信号与数据信号之间的关系。The invention discloses a timing calibration device, a transmission stream processor and a timing calibration method, capable of calibrating the relationship between clock signals and data signals transmitted by different paths.

请参阅图1,其是本发明的时序校准装置的一实施例的示意图,如图1所示,时序校准装置100包含:一输入端110;与一校准器120。所述输入端110例如是多个接脚(Pin),用来经由多个路径接收一传输流(Transport Stream,TS),该传输流例如是数位视讯广播(Digital Video Broadcasting,DVB)的传输流或其它符合MPEG-2规范的传输流,包含一时脉信号CLK以及多笔数据信号,这些数据信号包含一第一信号D1与一第二信号D2,该输入端110经由一时脉传输路径接收时脉信号CLK、经由一第一路径接收第一信号D1、以及经由一第二路径接收第二信号D2。所述校准器120用来校准时脉信号CLK与第一信号D1的关系,并输出校准后的信号(例如校准后的第一信号D1_Out)以供实际取样或后续调整(例如相位调整),并可选择性地用来校准时脉信号CLK与其它数据信号(例如第二信号D2)的关系,校准器120包含:一第一取样电路122;一控制电路124;以及一第一边缘调整电路126。Please refer to FIG. 1 , which is a schematic diagram of an embodiment of a timing calibration device of the present invention. As shown in FIG. 1 , the timing calibration device 100 includes: an input terminal 110 ; and a calibrator 120 . The input terminal 110 is, for example, a plurality of pins (Pins), and is used to receive a transport stream (Transport Stream, TS) through multiple paths, and the transport stream is, for example, a digital video broadcasting (Digital Video Broadcasting, DVB) transport stream Or other transport streams conforming to the MPEG-2 specification, including a clock signal CLK and multiple data signals, these data signals include a first signal D1 and a second signal D2, the input terminal 110 receives the clock through a clock transmission path The signal CLK receives the first signal D1 through a first path, and receives the second signal D2 through a second path. The calibrator 120 is used to calibrate the relationship between the clock signal CLK and the first signal D1, and output the calibrated signal (such as the calibrated first signal D1_Out) for actual sampling or subsequent adjustment (such as phase adjustment), and Can be selectively used to calibrate the relationship between the clock signal CLK and other data signals (such as the second signal D2), the calibrator 120 includes: a first sampling circuit 122; a control circuit 124; and a first edge adjustment circuit 126 .

承上所述,第一取样电路122用来依据时脉信号CLK取样第一信号D1,藉此产生一第一取样结果S1以供控制电路124分析,第一取样电路122的一实施例如图2所示,包含N个闩锁器210,该N个闩锁器210按信号传输顺序分别用来依据时脉信号CLK取样无延迟的第一信号D1(0D)、被延迟一个单位的第一信号D1(1D)、…、被延迟(N-1)个单位的第一信号D1((N-1)D),藉此产生第一取样结果S1包含N笔平行输出的取样数据,其中N为大于1的整数,数值可由实施者依需求决定,延迟信号D1(0D)至D1((N-1)D)可由已知或自行设计的延迟电路来产生。所述控制电路124例如为处理器或可执行本实施例所需的逻辑判断的电路,用来于第一取样结果S1包含第一信号D1的转换边缘(Transition Edge)(亦即0至1或1至0的准位变化边缘)时判定第一取样结果S1有效(有效第一取样结果S1例如为十个位元的取样值0000111111或1111000000),若第一取样结果S1无效(无效第一取样结果S1例如为所有取样值均为1或均为0之结果),则控制电路124令第一取样电路122再次取样第一信号D1以产生新的第一取样结果S1,直到第一取样结果S1有效为止。所述第一边缘调整电路126用来于第一取样结果S1有效时调整时脉信号CLK的转换边缘与第一信号D1的转换边缘的其中之一以满足一预设时序关系。As mentioned above, the first sampling circuit 122 is used to sample the first signal D1 according to the clock signal CLK, thereby generating a first sampling result S1 for analysis by the control circuit 124. An embodiment of the first sampling circuit 122 is shown in FIG. 2 As shown, N latches 210 are included, and the N latches 210 are respectively used to sample the first signal D1 (0D) without delay and the first signal delayed by one unit according to the clock signal CLK according to the signal transmission sequence. D1(1D), ..., the first signal D1((N-1)D) delayed by (N-1) units, thereby generating the first sampling result S1 includes N parallel output sampling data, where N is An integer greater than 1, the value can be determined by the implementer according to requirements, and the delay signals D1(0D) to D1((N-1)D) can be generated by a known or self-designed delay circuit. The control circuit 124 is, for example, a processor or a circuit that can execute the logic judgment required by this embodiment, and is used to include the transition edge (Transition Edge) of the first signal D1 in the first sampling result S1 (that is, 0 to 1 or 1 to 0 level change edge), it is determined that the first sampling result S1 is valid (the valid first sampling result S1 is, for example, ten-bit sampling value 0000111111 or 1111000000), if the first sampling result S1 is invalid (invalid first sampling The result S1 is, for example, the result that all sampled values are 1 or 0), then the control circuit 124 makes the first sampling circuit 122 re-sample the first signal D1 to generate a new first sampling result S1 until the first sampling result S1 until valid. The first edge adjustment circuit 126 is used for adjusting one of the transition edge of the clock signal CLK and the transition edge of the first signal D1 to satisfy a preset timing relationship when the first sampling result S1 is valid.

第一边缘调整电路126的一实施例如图3所示,包含M个延迟单元310、M个选择控制单元320(图式标号为SEL)与M个多工器330,每个延迟单元310可延迟一个延迟单位,用来依据输入信号输出延迟一或多个单位的第一信号D1,所述M个选择控制单元320用来依据控制电路120的一触发信号Ctrl_CLK(其频率等同于时脉信号CLK的频率)与M个边缘调整信号Shift_Ctrl_Reg令M个多工器330的每一个输出未延迟或延迟一或多个单位的第一信号D1,其中M为大于1的整数(例如M值等于前述的N值),举例来说,当M为3,3个边缘调整信号Shift_Ctrl_Reg为011,则收到0的第一个多工器330输出未延迟的第一信号D1、收到1的第二个多工器330输出延迟一个单位的第一信号D1、以及收到1的第三个多工器330输出延迟二个单位的第一信号D1做为最终输出的第一信号D1_Out以供实际取样或其它调整(例如相位调整)。在一实施例中,这些延迟单元310亦可用以产生第一取样电路122所需的延迟信号D1(0D)至D1((N-1)D)。An embodiment of the first edge adjustment circuit 126, as shown in FIG. One delay unit is used to output the first signal D1 delayed by one or more units according to the input signal, and the M selection control units 320 are used for a trigger signal Ctrl_CLK (whose frequency is equal to the clock signal CLK) of the control circuit 120 Frequency) and M edge adjustment signals Shift_Ctrl_Reg make each output of M multiplexers 330 undelayed or delayed by one or more units of the first signal D1, wherein M is an integer greater than 1 (for example, the M value is equal to the aforementioned N value), for example, when M is 3, and the three edge adjustment signals Shift_Ctrl_Reg are 011, then the first multiplexer 330 that receives 0 outputs the undelayed first signal D1, and the second multiplexer 330 that receives 1 The multiplexer 330 outputs the first signal D1 delayed by one unit, and the third multiplexer 330 that receives 1 outputs the first signal D1 delayed by two units as the final output first signal D1_Out for actual sampling or Other adjustments (such as phase adjustments). In an embodiment, the delay units 310 can also be used to generate the delayed signals D1 (0D) to D1 ((N−1)D) required by the first sampling circuit 122 .

承上所述,倘校准器120亦用来校准时脉信号CLK与第二信号D2的关系,则校准器120如图4所示进一步包含:一第二取样电路410用来依据时脉信号CLK取样第二信号D2以产生一第二取样结果S2;控制电路124用来于第二取样结果S2包含第二信号D2的转换边缘时判定第二取样结果S2有效;以及一第二边缘调整电路420用来于第二取样结果S2有效时调整时脉信号CLK的转换边缘与第二信号D2的转换边缘的其中之一以满足该预设时序关系,并输出校准后的信号(例如校准后的第二信号D2_Out)以供实际取样或后续调整(例如相位调整)。由于第二取样电路410与第二边缘调整电路420分别相同或等效于第一取样电路122与第一边缘调整电路126,冗余及重复的说明在此予以节略。时脉信号CLK与其它数据信号的关系的调整可以此类推。As mentioned above, if the calibrator 120 is also used to calibrate the relationship between the clock signal CLK and the second signal D2, the calibrator 120 further includes as shown in FIG. Sampling the second signal D2 to generate a second sampling result S2; the control circuit 124 is used to determine that the second sampling result S2 is valid when the second sampling result S2 includes a transition edge of the second signal D2; and a second edge adjustment circuit 420 It is used to adjust one of the transition edge of the clock signal CLK and the transition edge of the second signal D2 to meet the preset timing relationship when the second sampling result S2 is valid, and output a calibrated signal (for example, the calibrated first The second signal D2_Out) is used for actual sampling or subsequent adjustment (such as phase adjustment). Since the second sampling circuit 410 and the second edge adjustment circuit 420 are the same or equivalent to the first sampling circuit 122 and the first edge adjustment circuit 126 respectively, redundant and repeated descriptions are omitted here. The adjustment of the relationship between the clock signal CLK and other data signals can be deduced by analogy.

请参阅图5,其是第一边缘调整电路126调整时脉信号CLK与第一信号D1的边缘关系的一实施例的示意图,如图5所示,于一范围内(如图5的虚线所示),调整前的时脉信号CLK与第一信号D1的边缘不对齐,调整后的时脉信号CLK与第一信号D1的边缘靠近或对齐,此时前述预设时序关系是指二信号的边缘靠近或对齐,然此并非实施限制,实施者可视需求令二信号的边缘符合一特定关系即可。本实施例中,考虑到时脉信号CLK尚需用来取样其它数据信号,因此第一边缘调整电路126优先调整该第一信号的转换边缘,然实施者可视需求决定要调整何者,且能依本发明的揭示内容了解如何相对应地调整本发明的实施例。另外,若时脉信号CLK的上升缘做为取样数据的依据,则第一边缘调整电路126将第一信号D1的转换边缘调整至靠近或对齐时脉信号CLK的下降缘以满足该预设时序关系(如图5的虚线箭头所示),藉此时脉信号CLK的上升缘可靠近或对齐第一信号D1的二准位变化区间的中间,以提高对取样偏移的容忍度;而若时脉信号CLK的下降缘做为取样数据的依据,则第一边缘调整电路126将调整第一信号D1的转换边缘调整至靠近或对齐时脉信号CLK的上升缘,但只要实施为可能,实施者可视需求决定调整规则。Please refer to FIG. 5, which is a schematic diagram of an embodiment in which the first edge adjustment circuit 126 adjusts the edge relationship between the clock signal CLK and the first signal D1. As shown in FIG. shown), the clock signal CLK before adjustment is not aligned with the edge of the first signal D1, and the adjusted clock signal CLK is close to or aligned with the edge of the first signal D1. At this time, the aforementioned preset timing relationship refers to the The edges are close to or aligned, but this is not an implementation limitation, and the implementer can make the edges of the two signals conform to a specific relationship according to requirements. In this embodiment, considering that the clock signal CLK still needs to be used to sample other data signals, the first edge adjustment circuit 126 first adjusts the conversion edge of the first signal, but the implementer can decide which one to adjust according to the needs, and can Based on the disclosure of the present invention, it is understood how to adjust the embodiments of the present invention accordingly. In addition, if the rising edge of the clock signal CLK is used as the basis for sampling data, the first edge adjustment circuit 126 adjusts the transition edge of the first signal D1 to be close to or aligned with the falling edge of the clock signal CLK to meet the preset timing. relationship (as shown by the dotted arrow in FIG. 5 ), whereby the rising edge of the clock signal CLK can be close to or aligned with the middle of the two-level change interval of the first signal D1, so as to improve the tolerance to sampling offset; and if The falling edge of the clock signal CLK is used as the basis for sampling data, and the first edge adjustment circuit 126 adjusts the transition edge of the first signal D1 to be close to or aligned with the rising edge of the clock signal CLK, but as long as it is possible to implement, implement The operator can decide to adjust the rules according to the needs.

请再参阅图1,控制电路124于第一边缘调整电路126完成边缘调整后,可选择性地进一步依据这些数据信号来计数一特定数值的出现次数,并于该特定数值的出现次数符合一预设条件时令校准器120停止校准该时脉信号与该第一信号的关系,其中该预设条件可选择性地与频率相关,例如该预设条件可以是一预定时间内该出现次数介于或不小于一预定范围。举例而言,输入端110所接收的传输流于固定间距就会传送一同步信息,此同步信息为一特定数值,藉由计数同步信息于一预定时间内该出现次数,即可判断对这些数据信号所进行边缘调整是否正确。Please refer to FIG. 1 again, after the first edge adjustment circuit 126 completes the edge adjustment, the control circuit 124 can optionally further count the number of occurrences of a specific value according to these data signals, and when the number of occurrences of the specific value matches a The preset condition causes the calibrator 120 to stop calibrating the relationship between the clock signal and the first signal, wherein the preset condition can be selectively related to frequency, for example, the preset condition can be that the number of occurrences within a predetermined time is between Or not less than a predetermined range. For example, the transmission stream received by the input terminal 110 will transmit a synchronization information at a fixed interval, and the synchronization information is a specific value. By counting the number of occurrences of the synchronization information within a predetermined time, it can be judged whether the data is correct or not. Whether the edge adjustment of the signal is correct.

承上所述,若计数值未达到该预设数目(换言之特定数值的出现次数不符合该预设条件),代表校准未完成,则控制电路124可选择性地令校准器120调整第一信号D1的相位,此时校准器120如图6所示,进一步包含:一第一相位调整电路610,用来于控制电路124的控制下调整第一边缘调整电路126所输出的第一信号D1(后称D1_Out)的相位,并输出调整后的第一信号D1_Out。第一相位调整电路610的一实施例如图7所示,包含:X个延迟单元710、X个选择控制单元720(图式标号为SEL)与X个多工器730,每该延迟单元710例如是闩锁器,用来依据时脉信号CLK输出延迟一或多个单位的第一信号D1_Out,所述X个选择控制单元720用来依据控制电路120的触发信号Ctrl_CLK与X个相位调整信号Phase_Ctrl_Reg令X个多工器730的每一个输出未延迟或延迟一或多个单位的第一信号D1_Out,其中X为正整数,举例来说,当X为3,3个相位调整信号Phase_Ctrl_Reg为010,则收到0的第一个多工器730输出未延迟的第一信号D1_Out(即第一信号D1_Out未经过任何延迟单元710)、收到1的第二个多工器730输出延迟一个单位的第一信号D1_Out(即第一信号D1_Out经过一个延迟单元710)、以及收到0的第三个多工器730输出延迟一个单位的第一信号D1_Out(即第二个多工器730所输出之第一信号D1_Out)做为最终输出的第一信号D1_Out以供实际取样或其它调整(例如相位调整)。类似地,于相位调整电路610调整第一信号D1_Out的相位后,控制电路124可再依据这些数据信号来计数该特定数值的出现次数,并于该特定数值的出现次数符合该预设条件时令校准器120停止校准时脉信号CLK与第一信号D1的关系;或于该特定数值的出现次数不符合该预设条件时令校准器120再次调整第一边缘调整电路126所输出的第一信号D1_Out的相位。As mentioned above, if the count value does not reach the preset number (in other words, the number of occurrences of a specific value does not meet the preset condition), it means that the calibration is not completed, and the control circuit 124 can selectively make the calibrator 120 adjust the first signal The phase of D1, at this moment calibrator 120 as shown in Figure 6, further comprises: a first phase adjustment circuit 610, is used for adjusting the first signal D1 ( hereinafter referred to as the phase of D1_Out), and output the adjusted first signal D1_Out. An embodiment of the first phase adjustment circuit 610, as shown in FIG. It is a latch, which is used to output the first signal D1_Out delayed by one or more units according to the clock signal CLK, and the X selection control units 720 are used to adjust the signal Phase_Ctrl_Reg according to the trigger signal Ctrl_CLK of the control circuit 120 and the X phase adjustment signals Let each of the X multiplexers 730 output the first signal D1_Out that is not delayed or delayed by one or more units, where X is a positive integer, for example, when X is 3, the 3 phase adjustment signals Phase_Ctrl_Reg are 010, Then the first multiplexer 730 that receives 0 outputs the undelayed first signal D1_Out (that is, the first signal D1_Out does not pass through any delay unit 710), and the second multiplexer 730 that receives 1 outputs a delayed one-unit The first signal D1_Out (that is, the first signal D1_Out passes through a delay unit 710), and the third multiplexer 730 that receives 0 outputs the first signal D1_Out delayed by one unit (that is, the output of the second multiplexer 730 The first signal D1_Out) is used as the final output first signal D1_Out for actual sampling or other adjustments (such as phase adjustment). Similarly, after the phase adjustment circuit 610 adjusts the phase of the first signal D1_Out, the control circuit 124 can count the number of occurrences of the specific value according to these data signals, and calibrate when the number of occurrences of the specific value meets the preset condition. The calibrator 120 stops calibrating the relationship between the clock signal CLK and the first signal D1; or the calibrator 120 adjusts the first signal D1_Out output by the first edge adjustment circuit 126 again when the number of occurrences of the specific value does not meet the preset condition. phase.

请再参阅图1,校准器120可进一步包含:一开关(未图示),用来依据控制电路124的控制致能与禁能第一取样电路122。举例而言,该开关位于时脉信号CLK的来源与第一取样电路122之间,当控制电路124令开关导通时,第一取样电路122方可据以进行取样;当完成取样以供校准或完成校准后,控制电路124令开关不导通,藉此禁能第一取样电路122,此时控制电路124与第一边缘调整电路126可继续运作以维持校准效果。另外,控制电路124可依据一预设规则从这些数据信号中选择其中之一做为第一信号D1及/或从其余的数据信号中选择其中之一做为第二信号D2,类似的信号选择可以此类推。Please refer to FIG. 1 again, the calibrator 120 may further include: a switch (not shown) for enabling and disabling the first sampling circuit 122 according to the control of the control circuit 124 . For example, the switch is located between the source of the clock signal CLK and the first sampling circuit 122. When the control circuit 124 turns on the switch, the first sampling circuit 122 can perform sampling accordingly; when the sampling is completed for calibration Or after the calibration is completed, the control circuit 124 makes the switch non-conductive, thereby disabling the first sampling circuit 122 , at this time the control circuit 124 and the first edge adjustment circuit 126 can continue to operate to maintain the calibration effect. In addition, the control circuit 124 can select one of these data signals as the first signal D1 and/or select one of the other data signals as the second signal D2 according to a preset rule, similar signal selection And so on.

基于前揭时序校准装置可应用于一传输流处理器,本发明相对应地揭示一种具有时序校准功能的传输流处理器,其一实施例如图8所示。传输流例如是来自于一地面数位视讯广播(Digital Video Broadcasting-Terrestrial,DVB-T)装置的传输流或其它影音传输流,传输流中包含连续传送的多个封包,封包的类型包含影像数据封包、音讯数据封包、以及信息封包(例如字幕、节目信息等)。每个封包具有一标头(Header),标头内包含封包识别信息(Packet Identifier(PID)),用以识别封包的类型。传输流处理器800包含:一输入端810、一校准器820以及一处理单元830。输入端810透过多个信号路径来接收传输流,所接收的传输流包含一路时脉信号CLK、八路数据信号D1至D8、一路有效信号Valid以及一路同步信号Sync,传输流中每个封包的封包数据系分散于数据信号D1至D8。校准器820包含八个取样电路、一控制电路、及八个边缘调整电路。这些取样电路用来依据时脉信号分别取样数据信号D1至D8,以产生八个取样结果。控制电路用以分别依据这些取样结果是否包含其对应的数据信号的转换边缘,判定这些取样结果的有效性。这些边缘调整电路用以于这些取样结果有效时,分别调整这些数据信号的转换边缘,使调整后的这些数据信号的转换边缘与该时脉信号的转换边缘满足一预设时序关系。校准器820于校准过程中,更可利用传输流中同步信号Sync所对应的特定数值来判断校准结果是否正确。举例而言,当有效信号Valid为1且同步信号Sync为1时,控制电路可判断数据信号D1至D8所载数据是否等于16进位值0x47(即二进位值01000111,在此做为前述特定数值),若是则增加一计数值,若否则保持计数值不变,在一定时间或信号周期数内,若计数值达到一预设数目(换言之特定数值的出现次数满足该预设条件,例如相关频率(一预定时间内的该出现次数)界于1/189至1/193之间),代表校准完成,则控制电路令校准器820停止校准。此外,校准器820可进一步包含八个相位调整电路,用来于控制电路的控制下调整经这些边缘调整电路调整后的数据信号D1至D8的相位,当该特定数值的出现次数不符合该预设条件时,控制电路令这些相位调整电路对数据信号D1至D8进行相位调整。此例中各个取样电路、控制单元、各个边缘调整电路及各个相位调整电路的运作、功效与实施变化如前揭实施例所述。当校准器820完成传输流的时序校准后,系将校准后的传输流输出至处理单元830。处理单元830包含一标头检测模块832及一PID判断模块834。标头检测模块832用以自传输流的数据信号D1至D8中辨识一封包数据的一标头。实施上,标头检测模块832可包含比较器,用于比较数据信号D1至D8中的数据是否符合已知封包标头的特定辨识码或起启码,如果比较结果是符合的,即代表找到标头。当标头检测模块832辨识出一封包数据的标头时,PID判断模块834即可自标头内的封包识别信息(PID)判断此封包数据的类型。当封包数据为音讯数据时,PID判断模块834即将封包数据经由一音讯输出路径842输出;当封包数据为影像数据时,PID判断模块834即将封包数据经由一影像输出路径844输出;当封包数据为信息数据时,PID判断模块834即将封包数据经由一信息输出路径846输出。Based on the fact that the aforementioned timing calibration device can be applied to a transport stream processor, the present invention correspondingly discloses a transport stream processor with a timing calibration function, an embodiment of which is shown in FIG. 8 . The transport stream is, for example, a transport stream from a terrestrial digital video broadcasting (Digital Video Broadcasting-Terrestrial, DVB-T) device or other video and audio transport streams. The transport stream includes multiple packets transmitted continuously, and the types of packets include image data packets. , audio data packets, and information packets (such as subtitles, program information, etc.). Each packet has a header (Header), which contains packet identification information (Packet Identifier (PID)) for identifying the type of the packet. The transport stream processor 800 includes: an input terminal 810 , a calibrator 820 and a processing unit 830 . The input terminal 810 receives the transport stream through multiple signal paths. The received transport stream includes one clock signal CLK, eight data signals D1 to D8, one valid signal Valid and one synchronous signal Sync. Each packet in the transport stream Packet data is distributed among data signals D1 to D8. The calibrator 820 includes eight sampling circuits, a control circuit, and eight edge adjustment circuits. These sampling circuits are used to respectively sample the data signals D1 to D8 according to the clock signal to generate eight sampling results. The control circuit is used for determining the validity of the sampling results respectively according to whether the sampling results contain transition edges of the corresponding data signals. The edge adjustment circuits are used to respectively adjust the transition edges of the data signals when the sampling results are valid, so that the adjusted transition edges of the data signals and the clock signal satisfy a preset timing relationship. During the calibration process, the calibrator 820 can further use the specific value corresponding to the synchronization signal Sync in the transport stream to determine whether the calibration result is correct. For example, when the valid signal Valid is 1 and the synchronous signal Sync is 1, the control circuit can determine whether the data contained in the data signals D1 to D8 is equal to the hexadecimal value 0x47 (that is, the binary value 01000111, here as the aforementioned specific value ), if so, increase a count value, otherwise keep the count value unchanged, within a certain time or number of signal cycles, if the count value reaches a preset number (in other words, the number of occurrences of a specific value satisfies the preset condition, such as the relevant frequency (the number of occurrences within a predetermined time period) is between 1/189 and 1/193), which means that the calibration is completed, and the control circuit makes the calibrator 820 stop the calibration. In addition, the calibrator 820 may further include eight phase adjustment circuits, which are used to adjust the phases of the data signals D1 to D8 adjusted by these edge adjustment circuits under the control of the control circuit. When the condition is set, the control circuit makes these phase adjustment circuits adjust the phases of the data signals D1 to D8. In this example, the operation, functions and implementation changes of each sampling circuit, control unit, each edge adjustment circuit and each phase adjustment circuit are as described in the previous embodiments. After the calibrator 820 completes the timing calibration of the transport stream, it outputs the calibrated transport stream to the processing unit 830 . The processing unit 830 includes a header detection module 832 and a PID determination module 834 . The header detection module 832 is used for identifying a header of a packet of data from the data signals D1 to D8 of the transport stream. In practice, the header detection module 832 may include a comparator for comparing whether the data in the data signals D1 to D8 conform to a specific identification code or a start code of a known packet header. If the comparison result is consistent, it means that a Header. When the header detecting module 832 identifies the header of a packet of data, the PID judging module 834 can judge the type of the packet data from the packet identification information (PID) in the header. When the package data is audio data, the PID judging module 834 is about to output the package data through an audio output path 842; when the package data is image data, the PID judgment module 834 is about to output the package data through an image output path 844; when the package data is For information data, the PID judging module 834 is about to output the packet data through an information output path 846 .

除前述的时序校准装置外,本发明另揭示一种时序校准方法,如图9所示,该方法的一实施例包含下列步骤:In addition to the aforementioned timing calibration device, the present invention discloses another timing calibration method, as shown in FIG. 9 , an embodiment of the method includes the following steps:

步骤S910:经由多个路径接收一传输流,该传输流包含一时脉信号以及多笔数据信号,这些数据信号包含一第一信号,该时脉信号是经由一时脉路径所接收,该第一信号是经由一第一路径所接收。本步骤可由图1的输入端110或其等效电路来执行。Step S910: Receive a transport stream through multiple paths, the transport stream includes a clock signal and a plurality of data signals, the data signals include a first signal, the clock signal is received through a clock path, the first signal is received via a first path. This step can be performed by the input terminal 110 in FIG. 1 or its equivalent circuit.

步骤S920:一校准步骤,用来校准该时脉信号与该第一信号的关系,包含:依据该时脉信号取样该第一信号,藉此产生一第一取样结果;于该第一取样结果包含该第一信号的转换边缘时判定该第一取样结果有效;以及于该第一取样结果有效时据以调整该时脉信号的转换边缘与该第一信号的转换边缘的其中之一以满足一预设时序关系。本步骤可由图1的校准器120或其等效电路来执行。Step S920: a calibration step for calibrating the relationship between the clock signal and the first signal, including: sampling the first signal according to the clock signal, thereby generating a first sampling result; determining that the first sampling result is valid when the transition edge of the first signal is included; and adjusting one of the transition edge of the clock signal and the transition edge of the first signal to satisfy A preset timing relationship. This step can be performed by the calibrator 120 in FIG. 1 or its equivalent circuit.

综上所述,本发明的时序校准装置与方法能够改善因传输路径不同所导致的时脉信号与数据信号不同步的问题,从而避免取样错误等问题。To sum up, the timing calibration device and method of the present invention can improve the problem of asynchronous clock signal and data signal caused by different transmission paths, thereby avoiding problems such as sampling errors.

虽然本发明的实施例如上所述,然而该些实施例并非用来限定本发明,本技术领域具有通常知识者可依据本发明的明示或隐含的内容对本发明的技术特征施以变化,凡此种种变化均可能属于本发明所寻求的专利保护范畴,换言之,本发明的专利保护范围应由权利要求书界定为准。Although the embodiments of the present invention are as described above, these embodiments are not intended to limit the present invention, and those skilled in the art can make changes to the technical characteristics of the present invention according to the explicit or implicit content of the present invention. All these changes may belong to the scope of patent protection sought by the present invention. In other words, the scope of patent protection of the present invention should be defined by the claims.

Claims (17)

1.一种具有时序校准功能的传输流处理器,用以处理一传输流,该传输流包括一时脉信号与多数据信号,其包含:1. A transport stream processor with a timing alignment function, used for processing a transport stream, the transport stream includes a clock signal and multiple data signals, comprising: 一输入端,分别经由多路径接收该时脉信号与这些数据信号;an input terminal, respectively receiving the clock signal and the data signals through multiple paths; 一校准器,包含:A calibrator, comprising: 多取样电路,用来依据该时脉信号分别取样这些数据信号,以产生多取样结果;A multi-sampling circuit is used to respectively sample these data signals according to the clock signal to generate multi-sampled results; 一控制电路,用以分别依据这些取样结果是否包含其对应的数据信号的转换边缘,判定这些取样结果的有效性;以及a control circuit for determining the validity of the sampling results respectively according to whether the sampling results contain transition edges of their corresponding data signals; and 多边缘调整电路,用以于这些取样结果有效时,分别调整这些数据信号的转换边缘,使调整后的这些数据信号的转换边缘与该时脉信号的转换边缘满足一预设时序关系;以及The multi-edge adjustment circuit is used to adjust the transition edges of these data signals respectively when the sampling results are valid, so that the adjusted transition edges of these data signals and the transition edges of the clock signal satisfy a preset timing relationship; and 一处理单元,用以自调整后的这些数据信号中辨识一封包数据的一标头,并依据该标头的信息决定将该封包数据经由一音讯输出路径、一影像输出路径以及一数据输出路径其中之一输出。A processing unit, used for identifying a header of a packet of data from the adjusted data signals, and deciding to pass the packet of data through an audio output path, an image output path, and a data output path according to the information of the header One of them is output. 2.如权利要求1所述的传输流处理器,其特征在于,该控制电路还依据调整后的这些数据信号计数一特定数值的出现次数,并于该特定数值的出现次数符合一预设条件时令该校准器停止校准。2. The transport stream processor according to claim 1, wherein the control circuit also counts the number of occurrences of a specific value according to the adjusted data signals, and when the number of occurrences of the specific value matches a preset condition to stop the calibrator from calibrating. 3.如权利要求1所述的传输流处理器,其特征在于,该校准器进一步包含:多相位调整电路,用来于该控制电路的控制下调整这些调整后的这些数据信号的相位;当该特定数值的出现次数不符合该预设条件时,该控制电路令这些相位调整电路进行相位调整。3. The transport stream processor according to claim 1, wherein the calibrator further comprises: a multi-phase adjustment circuit, which is used to adjust the phases of the adjusted data signals under the control of the control circuit; When the number of occurrences of the specific value does not meet the preset condition, the control circuit makes the phase adjustment circuits perform phase adjustment. 4.一种时序校准装置,用来校准一传输流的一时脉信号与一第一信号的时序关系,其包含:4. A timing calibration device for calibrating the timing relationship between a clock signal of a transport stream and a first signal, comprising: 一输入端,用来经由一时脉传输路径接收该时脉信号,并经由一第一路径接收该第一信号;以及an input terminal for receiving the clock signal via a clock transmission path and receiving the first signal via a first path; and 一校准器,包含:A calibrator, comprising: 一第一取样电路,用来依据该时脉信号取样该第一信号,藉此产生一第一取样结果;a first sampling circuit, used for sampling the first signal according to the clock signal, thereby generating a first sampling result; 一控制电路,用来于该第一取样结果包含该第一信号的转换边缘时判定该第一取样结果有效;以及a control circuit for determining that the first sampling result is valid when the first sampling result includes a transition edge of the first signal; and 一第一边缘调整电路,用来于该第一取样结果有效时据以调整该时脉信号的转换边缘与该第一信号的转换边缘的其中之一以满足一预设时序关系。A first edge adjustment circuit is used to adjust one of the transition edge of the clock signal and the transition edge of the first signal to satisfy a preset timing relationship when the first sampling result is valid. 5.如权利要求4所述的时序校准装置,其特征在于,该第一边缘调整电路用来于该第一取样结果有效时调整该第一信号的转换边缘以使其对齐或接近该时脉信号的转换边缘而满足该预设时序关系。5. The timing calibration device according to claim 4, wherein the first edge adjustment circuit is used to adjust the transition edge of the first signal to be aligned with or close to the clock when the first sampling result is valid The transition edge of the signal satisfies the preset timing relationship. 6.如权利要求4所述的时序校准装置,其特征在于,该传输流包含多数据信号,该第一信号为这些数据信号其中之一,该控制电路于该第一边缘调整电路完成边缘调整后,进一步依据这些数据信号来计数一特定数值的出现次数,并于该特定数值的出现次数符合一预设条件时令该校准器停止校准该时脉信号与该第一信号的关系。6. The timing calibration device as claimed in claim 4, wherein the transport stream includes multiple data signals, the first signal is one of the data signals, and the control circuit performs edge adjustment on the first edge adjustment circuit Afterwards, further counting the occurrence times of a specific value according to the data signals, and instructing the calibrator to stop calibrating the relationship between the clock signal and the first signal when the occurrence times of the specific value meet a preset condition. 7.如权利要求4所述的时序校准装置,其特征在于,该传输流包含多数据信号,该第一信号为这些数据信号其中之一,该控制电路于该第一边缘调整电路完成边缘调整后,进一步依据这些数据信号来计数一特定数值的出现次数,并于该特定数值的出现次数不符合一预设条件时令该校准器调整该第一信号的相位。7. The timing calibration device according to claim 4, wherein the transport stream includes multiple data signals, the first signal is one of the data signals, and the control circuit performs edge adjustment on the first edge adjustment circuit Afterwards, further counting the occurrence times of a specific value according to the data signals, and instructing the calibrator to adjust the phase of the first signal when the occurrence times of the specific value do not meet a preset condition. 8.如权利要求7所述的时序校准装置,其特征在于,该校准器进一步包含:一第一相位调整电路,用来于该控制电路的控制下调整该第一信号的相位。8. The timing calibration device according to claim 7, wherein the calibrator further comprises: a first phase adjustment circuit for adjusting the phase of the first signal under the control of the control circuit. 9.如权利要求8所述的时序校准装置,其特征在于,该控制电路于该相位调整电路调整该第一信号的相位后,进一步依据这些数据信号来计数特定期数值的出现次数,并于该特定数值的出现次数符合该预设条件时令该校准器停止校准该时脉信号与该第一信号的关系。9. The timing calibration device according to claim 8, wherein the control circuit further counts the number of occurrences of a specific period value according to the data signals after the phase adjustment circuit adjusts the phase of the first signal, and then When the occurrence times of the specific value meet the preset condition, the calibrator stops calibrating the relationship between the clock signal and the first signal. 10.如权利要求4所述的时序校准装置,其特征在于,该校准器进一步包含:一开关,用来依据该控制电路的控制致能该第一取样电路。10. The timing calibration device according to claim 4, wherein the calibrator further comprises: a switch for enabling the first sampling circuit according to the control of the control circuit. 11.如权利要求4所述的时序校准装置,其特征在于,该传输流包含多数据信号,该第一信号为这些数据信号其中之一,这些数据信号还包含一第二信号,且该校准器进一步包含:11. The timing calibration device according to claim 4, wherein the transport stream includes multiple data signals, the first signal is one of the data signals, and the data signals further include a second signal, and the calibration The implementer further includes: 一第二取样电路,用来依据该时脉信号取样该第二信号,藉此产生一第二取样结果;以及a second sampling circuit, used for sampling the second signal according to the clock signal, thereby generating a second sampling result; and 一第二边缘调整电路,用来于该控制电路判定该第二取样结果有效时调整该时脉信号的转换边缘与该第二信号的转换边缘的其中之一以满足该预设时序关系。A second edge adjustment circuit is used to adjust one of the transition edge of the clock signal and the transition edge of the second signal to meet the preset timing relationship when the control circuit determines that the second sampling result is valid. 12.如权利要求11所述的时序校准装置,其特征在于,该控制电路依据一预设规则从这些数据信号中选择其中之一做为该第一信号,再从其余的数据信号中选择其中之一做为该第二信号。12. The timing calibration device according to claim 11, wherein the control circuit selects one of the data signals as the first signal according to a preset rule, and then selects one of the other data signals One of them is used as the second signal. 13.一种时序校准方法,用来校准一传输流之一时脉信号与一第一信号的时序关系,其包含下列步骤:13. A timing calibration method for calibrating the timing relationship between a clock signal of a transport stream and a first signal, comprising the following steps: 经由一时脉传输路径接收该时脉信号,并经由一第一路径接收该第一信号;receiving the clock signal via a clock transmission path, and receiving the first signal via a first path; 依据该时脉信号取样该第一信号,藉此产生一第一取样结果;sampling the first signal according to the clock signal, thereby generating a first sampling result; 于该第一取样结果包含该第一信号的转换边缘时判定该第一取样结果有效;以及determining that the first sampling result is valid when the first sampling result includes a transition edge of the first signal; and 于该第一取样结果有效时据以调整该时脉信号的转换边缘与该第一信号的转换边缘的其中之一以满足一预设时序关系。When the first sampling result is valid, one of the transition edge of the clock signal and the transition edge of the first signal is adjusted accordingly to satisfy a preset timing relationship. 14.如权利要求13所述的时序校准方法,其特征在于,调整该时脉信号的转换边缘与该第一信号的转换边缘的其中之一以满足该预设时序关系的步骤是调整该第一信号的转换边缘,使第一信号的转换边缘对齐或接近该时脉信号的转换边缘。14. The timing calibration method according to claim 13, wherein the step of adjusting one of the transition edge of the clock signal and the transition edge of the first signal to meet the preset timing relationship is to adjust the second The transition edge of a signal is aligned with or close to the transition edge of the clock signal. 15.如权利要求13所述的时序校准方法,其中该传输流包含多数据信号,该第一信号为这些数据信号其中之一,该时序校准方法进一步包含:15. The timing calibration method according to claim 13, wherein the transport stream comprises multiple data signals, the first signal is one of the data signals, the timing calibration method further comprises: 于调整该时脉信号的转换边缘与该第一信号的转换边缘的其中之一以满足该预设时序关系之后,依据这些数据信号来计数一特定数值的出现次数,并于该特定数值的出现次数符合一预设条件时停止校准该时脉信号与该第一信号的关系。After adjusting one of the transition edge of the clock signal and the transition edge of the first signal to meet the preset timing relationship, count the number of occurrences of a specific value according to the data signals, and count the occurrence times of the specific value Stop calibrating the relationship between the clock signal and the first signal when the number of occurrences meets a preset condition. 16.如权利要求15所述的时序校准方法,其特征在于,当该特定数值的出现次数不符合一预设条件时调整该第一信号的相位。16. The timing calibration method according to claim 15, wherein the phase of the first signal is adjusted when the number of occurrences of the specific value does not meet a preset condition. 17.如权利要求13所述的时序校准方法,其特征在于,该传输流包含多数据信号,该第一信号为这些数据信号其中之一,这些数据信号包含一第二信号,且该时序校准方法进一步包含:17. The timing alignment method according to claim 13, wherein the transport stream includes multiple data signals, the first signal is one of the data signals, the data signals include a second signal, and the timing alignment The method further includes: 依据该时脉信号取样该第二信号,藉此产生一第二取样结果;sampling the second signal according to the clock signal, thereby generating a second sampling result; 于该第二取样结果包含该第二信号的转换边缘时判定该第二取样结果有效;以及determining that the second sampling result is valid when the second sampling result includes a transition edge of the second signal; and 于该第二取样结果有效时调整该时脉信号的转换边缘与该第二信号的转换边缘的其中之一以满足该预设时序关系。One of the transition edge of the clock signal and the transition edge of the second signal is adjusted to satisfy the preset timing relationship when the second sampling result is valid.
CN201510506974.1A 2015-08-18 2015-08-18 Transmission stream processor with time sequence calibration function and time sequence calibration device and method Pending CN106470346A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510506974.1A CN106470346A (en) 2015-08-18 2015-08-18 Transmission stream processor with time sequence calibration function and time sequence calibration device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510506974.1A CN106470346A (en) 2015-08-18 2015-08-18 Transmission stream processor with time sequence calibration function and time sequence calibration device and method

Publications (1)

Publication Number Publication Date
CN106470346A true CN106470346A (en) 2017-03-01

Family

ID=58213957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510506974.1A Pending CN106470346A (en) 2015-08-18 2015-08-18 Transmission stream processor with time sequence calibration function and time sequence calibration device and method

Country Status (1)

Country Link
CN (1) CN106470346A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110061742A (en) * 2018-01-19 2019-07-26 创意电子股份有限公司 Analog-digital converter calibration system
CN113645497A (en) * 2021-10-15 2021-11-12 苇创微电子(上海)有限公司 Self-adaptive adjustment method and system for output timing of image size conversion module

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6388997B1 (en) * 1995-06-05 2002-05-14 Xircom Wireless, Inc. Timing adjustment control for efficient time division duplex communication
CN101521567A (en) * 2008-02-25 2009-09-02 联华电子股份有限公司 Sampling method and data recovery circuit thereof
CN101674175A (en) * 2008-09-11 2010-03-17 财团法人工业技术研究院 Burst clock and data recovery circuit using phase selection technique
TW201142613A (en) * 2010-05-31 2011-12-01 Jmicron Technology Corp Timing aligning circuit and timing aligning method for aligning data transmitting timing of a plurality of lanes
CN102804157A (en) * 2009-06-24 2012-11-28 先进微装置公司 Adjustment of write timing in a memory device
US20130300478A1 (en) * 2012-05-11 2013-11-14 Mstar Semiconductor, Inc. Method and Associated Apparatus for Clock-Data Edge Alignment
CN104283560A (en) * 2014-10-15 2015-01-14 朱从益 Clock skew calibrating circuit of sampling-and-holding-amplifier-free assembly line ADC and control method of clock skew calibrating circuit of sampling-and-holding-amplifier-free assembly line ADC

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6388997B1 (en) * 1995-06-05 2002-05-14 Xircom Wireless, Inc. Timing adjustment control for efficient time division duplex communication
CN101521567A (en) * 2008-02-25 2009-09-02 联华电子股份有限公司 Sampling method and data recovery circuit thereof
CN101674175A (en) * 2008-09-11 2010-03-17 财团法人工业技术研究院 Burst clock and data recovery circuit using phase selection technique
CN102804157A (en) * 2009-06-24 2012-11-28 先进微装置公司 Adjustment of write timing in a memory device
TW201142613A (en) * 2010-05-31 2011-12-01 Jmicron Technology Corp Timing aligning circuit and timing aligning method for aligning data transmitting timing of a plurality of lanes
US20130300478A1 (en) * 2012-05-11 2013-11-14 Mstar Semiconductor, Inc. Method and Associated Apparatus for Clock-Data Edge Alignment
CN104283560A (en) * 2014-10-15 2015-01-14 朱从益 Clock skew calibrating circuit of sampling-and-holding-amplifier-free assembly line ADC and control method of clock skew calibrating circuit of sampling-and-holding-amplifier-free assembly line ADC

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110061742A (en) * 2018-01-19 2019-07-26 创意电子股份有限公司 Analog-digital converter calibration system
CN110061742B (en) * 2018-01-19 2023-03-10 创意电子股份有限公司 Analog-to-digital converter calibration system
CN113645497A (en) * 2021-10-15 2021-11-12 苇创微电子(上海)有限公司 Self-adaptive adjustment method and system for output timing of image size conversion module

Similar Documents

Publication Publication Date Title
US9673968B2 (en) Multi-wire open-drain link with data symbol transition based clocking
US7054331B1 (en) Multi-lane receiver de-skewing
KR102091302B1 (en) Timestamp correction in a multi-lane communication link with skew
TW200935236A (en) Method and apparatus for training the reference voltage level and data sample timing in a receiver
CN107566889B (en) Audio stream flow velocity error processing method and device, computer device and computer readable storage medium
TWI540444B (en) Transport stream processor capable of timing calibration, and timing calibration device and method
US10097673B2 (en) Method and system for serialization and deserialization (SERDES) for inter-system communications
US20130114423A1 (en) Packet synchronization receiver
US7995695B2 (en) Data alignment method for arbitrary input with programmable content deskewing info
CN106470346A (en) Transmission stream processor with time sequence calibration function and time sequence calibration device and method
US7664146B1 (en) Dynamic alignment for data on a parallel bus
CN107769907B (en) Multiple data rate multi-protocol communication techniques for reference-less retimers
US9059825B2 (en) Receiver, system including the same, and calibration method thereof
US11190625B2 (en) Reception device, data processing method, and transmission/reception system
US10057524B2 (en) Image capturing apparatus
US7154976B2 (en) Frequency controller
CN113630640B (en) Method and device for analyzing flow precision of media equipment and readable storage medium
CN116232523A (en) Quantum bit control signal delay calibration method and related device
TWI589157B (en) Hdmi receiving circuit and method of determining transmission mode
US20120275555A1 (en) Methods and apparatus for trimming of cdr clock buffer using phase shift of transmit data
TWI646794B (en) Signal receiving apparatus conforming to digital video broadcasting standard and signal processing method thereof
CN101257623A (en) Method of PCR Jitter Correction for MPEG-2 Transport Stream Based on Counter Setting
US12342032B2 (en) Control integrated circuit for maintaining video output to conditional access module with aid of reference clock regeneration, associated television receiver and associated method
JP2013175832A (en) Image processing apparatus, signal transfer circuit and semiconductor integrated circuit
TWI569594B (en) Impulse-interference eliminating apparatus and method for eliminating impulse-interference

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20190924

AD01 Patent right deemed abandoned