CN104811164B - Triangular wave generating circuit with clock signal synchronization - Google Patents
Triangular wave generating circuit with clock signal synchronization Download PDFInfo
- Publication number
- CN104811164B CN104811164B CN201410041775.3A CN201410041775A CN104811164B CN 104811164 B CN104811164 B CN 104811164B CN 201410041775 A CN201410041775 A CN 201410041775A CN 104811164 B CN104811164 B CN 104811164B
- Authority
- CN
- China
- Prior art keywords
- clock signal
- signal
- constant current
- phase
- current source
- 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.)
- Active
Links
- 239000003990 capacitor Substances 0.000 claims abstract description 57
- 238000001514 detection method Methods 0.000 claims abstract description 30
- 230000008878 coupling Effects 0.000 claims abstract description 9
- 238000010168 coupling process Methods 0.000 claims abstract description 9
- 238000005859 coupling reaction Methods 0.000 claims abstract description 9
- 230000000630 rising effect Effects 0.000 claims description 14
- 230000005611 electricity Effects 0.000 claims 4
- 238000010586 diagram Methods 0.000 description 16
- 238000007599 discharging Methods 0.000 description 5
- 238000000034 method Methods 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 239000010752 BS 2869 Class D Substances 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)
Abstract
一种具有时钟信号同步的三角波产生电路,包含一电容器,第一至四定电流源,一第一切换单元,一第二切换单元,一高低电平限制单元,一时钟信号产生器,以及一相位检测单元。该等第一和第二定电流源用以对该电容器充电。该等第三和第四定电流源用以对该电容器放电。该相位检测单元用以接收一外部供应时钟信号和该内部时钟信号,并根据两者的相位差值产生第一和第二相位信号。该第二切换单元包含第三和第四开关,该第三开关用以响应于该第一相位信号以控制该第二定电流源与该电容器的耦接状态,且该第四开关用以响应于该第二相位信号以控制该第四定电流源与该电容器的耦接状态。
A triangular wave generating circuit with clock signal synchronization includes a capacitor, first to fourth constant current sources, a first switching unit, a second switching unit, a high and low level limiting unit, a clock signal generator, and a phase detection unit. The first and second constant current sources are used to charge the capacitor. The third and fourth constant current sources are used to discharge the capacitor. The phase detection unit is used to receive an externally supplied clock signal and the internal clock signal, and generate first and second phase signals according to the phase difference between the two. The second switching unit includes third and fourth switches, the third switch is used to respond to the first phase signal to control the coupling state of the second constant current source and the capacitor, and the fourth switch is used to respond to the second phase signal to control the coupling state of the fourth constant current source and the capacitor.
Description
技术领域technical field
本发明涉及一种三角波产生电路,尤其涉及一种与外部时钟信号同步的三角波产生电路。The invention relates to a triangular wave generating circuit, in particular to a triangular wave generating circuit synchronous with an external clock signal.
背景技术Background technique
三角波产生电路藉由充电和放电一电容以产生三角波信号。三角波产生电路可以应用于许多电路中,其中一种应用即于D型(class-D)功率放大器中将模拟语音信号转换成脉宽调制信号。The triangular wave generating circuit generates a triangular wave signal by charging and discharging a capacitor. The triangular wave generating circuit can be applied in many circuits, one of which is to convert the analog voice signal into a pulse width modulated signal in a D-type (class-D) power amplifier.
图1为已知利用方波信号VIN产生三角波信号VOUT的电路10。三角波信号的准确度会影响到使用该三角波信号的装置的效能,例如脉宽调制(PWM)装置的效能。在此图中三角波信号VOUT的切换频率fsw等于1/(TU+TD),其中TU为三角波信号VOUT由VL到VH的上升时间,TD为三角波信号VOUT由VH到VL的下降时间。上升时间TU等于C×(VH-VL)/IC,其中C为横跨运算放大器12的电容器C1的容值,IC为电流源I1提供的充电电流。同理,下降时间TD等于C×(VH-VL)/ID,其中ID为电流源I2提供的放电电流。假设IC与ID相等,则切换频率fsw等于IC/(2×C×(VH-VL))。由此方程式得知三角波切换频率fsw与IC及ID成正比,并与三角波振幅(VH-VL)成反比。FIG. 1 is a known circuit 10 for generating a triangular wave signal VOUT by using a square wave signal VIN. The accuracy of the triangular wave signal will affect the performance of devices using the triangular wave signal, such as the performance of pulse width modulation (PWM) devices. In this figure, the switching frequency fsw of the triangular wave signal VOUT is equal to 1/(TU+TD), where TU is the rising time of the triangular wave signal VOUT from VL to VH, and TD is the falling time of the triangular wave signal VOUT from VH to VL. The rise time TU is equal to C×(VH−VL)/IC, where C is the capacitance of the capacitor C1 across the operational amplifier 12 and IC is the charging current provided by the current source I1. Similarly, the falling time TD is equal to C×(VH-VL)/ID, where ID is the discharge current provided by the current source I2. Assuming that IC and ID are equal, the switching frequency fsw is equal to IC/(2*C*(VH-VL)). From this equation, we know that the triangular wave switching frequency fsw is proportional to IC and ID, and inversely proportional to the triangular wave amplitude (VH-VL).
图2为图1的三角波产生电路10的潜在问题示意图。如图2所示,在问题1中,如果电流源不匹配,即电流IC大于ID或电流ID大于IC时,则三角波信号VOUT就不会在预定限制峰值VH与VL处转换。同理,问题2揭示当方波的责任周期并非为理想值时的三角波波形,问题2会常发生的原因是内部时钟信号与外部时钟信号非同步。将内部时钟信号与外部时钟信号同步是非常重要的一件事,如对5.1声道或7.1声道的D型放大器语音系统应用。如果切换频率不相同,则频率的跳动就会出现在声音频带中。FIG. 2 is a schematic diagram of potential problems of the triangular wave generating circuit 10 of FIG. 1 . As shown in FIG. 2 , in problem 1, if the current source does not match, that is, the current IC is greater than ID or the current ID is greater than IC, the triangular wave signal VOUT will not switch at the predetermined limit peaks VH and VL. Similarly, problem 2 reveals the triangular wave waveform when the duty cycle of the square wave is not an ideal value. The reason why problem 2 often occurs is that the internal clock signal is not synchronized with the external clock signal. It is very important to synchronize the internal clock signal with the external clock signal, such as the D-type amplifier voice system application for 5.1 or 7.1 channels. If the switching frequencies are not the same, frequency jumps will appear in the sound band.
据此,有必要提出一三角波产生电路以改善上述问题。Accordingly, it is necessary to propose a triangular wave generating circuit to improve the above problems.
发明内容Contents of the invention
本发明提供一种具有时钟信号同步的三角波产生电路。该三角波产生电路包含一电容器,一第一定电流源,一第二定电流源,一第三定电流源,一第四定电流源,一第一切换单元,一第二切换单元,一高/低电平限制单元,一时钟信号产生器,以及一相位检测单元。该等第一和第二定电流源用以对该电容器充电。该等第三和第四定电流源用以对该电容器放电。该第一切换单元包含一第一开关和一第二开关,该第一切换单元用以响应于一内部时钟信号以控制该第一和该第三定电流源与该电容器的耦接状态。该高/低电平限制单元包含一第一和一第二比较单元,该第一比较单元用以比较该三角波信号与一高电平参考电压,并在该三角波信号到达该高电平参考电压时产生一输出信号,该第二比较单元用以比较该三角波信号与一低电平参考电压,并在该三角波信号到达该低电平参考电压时产生一输出信号。该时钟信号产生器用以响应于该第一比较单元的该输出信号和该第二比较单元的该输出信号以产生该内部时钟信号。该相位检测单元,用以接收一外部供应时钟信号和该内部时钟信号,并根据该外部供应时钟信号和该内部时钟信号的相位差值产生一第一相位信号和一第二相位信号。该第二切换单元包含一第三开关和一第四开关,该第三开关用以响应于该第一相位信号以控制该第二定电流源与该电容器的耦接状态,且该第四开关用以响应于该第二相位信号以控制该第四定电流源与该电容器的耦接状态。The invention provides a triangular wave generating circuit with clock signal synchronization. The triangular wave generating circuit includes a capacitor, a first constant current source, a second constant current source, a third constant current source, a fourth constant current source, a first switching unit, a second switching unit, a high /Low level limiting unit, a clock signal generator, and a phase detection unit. The first and second constant current sources are used to charge the capacitor. The third and fourth constant current sources are used to discharge the capacitor. The first switch unit includes a first switch and a second switch, and the first switch unit is used for controlling the coupling states of the first and third constant current sources and the capacitor in response to an internal clock signal. The high/low level limiting unit includes a first and a second comparing unit, the first comparing unit is used for comparing the triangular wave signal with a high level reference voltage, and when the triangular wave signal reaches the high level reference voltage When generating an output signal, the second comparison unit is used for comparing the triangular wave signal with a low-level reference voltage, and generating an output signal when the triangular wave signal reaches the low-level reference voltage. The clock signal generator is used for generating the internal clock signal in response to the output signal of the first comparison unit and the output signal of the second comparison unit. The phase detection unit is used to receive an externally supplied clock signal and the internal clock signal, and generate a first phase signal and a second phase signal according to a phase difference between the externally supplied clock signal and the internal clock signal. The second switch unit includes a third switch and a fourth switch, the third switch is used to control the coupling state of the second constant current source and the capacitor in response to the first phase signal, and the fourth switch The coupling state of the fourth constant current source and the capacitor is controlled in response to the second phase signal.
附图说明Description of drawings
图1为已知利用方波信号产生三角波信号的电路。FIG. 1 is a known circuit for generating a triangular wave signal from a square wave signal.
图2为图1的三角波产生电路的潜在问题示意图。FIG. 2 is a schematic diagram of potential problems of the triangular wave generating circuit of FIG. 1 .
图3显示结合本发明一实施例的三角波信号产生器的电路图。FIG. 3 shows a circuit diagram of a triangular wave signal generator according to an embodiment of the present invention.
图4显示图3所示的该相位检测单元的一可能运作波形图。FIG. 4 shows a possible operation waveform diagram of the phase detection unit shown in FIG. 3 .
图5显示图3所示的该相位检测单元的另一可能运作波形图。FIG. 5 shows another possible operation waveform diagram of the phase detection unit shown in FIG. 3 .
图6显示结合本发明的一实施例的该三角波信号产生器的一波形图。FIG. 6 shows a waveform diagram of the triangular wave signal generator combined with an embodiment of the present invention.
图7显示结合本发明的另一实施例的该三角波信号产生器的一波形图。FIG. 7 shows a waveform diagram of the triangular wave signal generator combined with another embodiment of the present invention.
图8显示结合本发明一实施例的三角波信号产生器的电路图。FIG. 8 shows a circuit diagram of a triangular wave signal generator according to an embodiment of the present invention.
图9显示结合本发明一实施例的该等切换电流阵列的电路图。FIG. 9 shows a circuit diagram of the switched current arrays incorporating an embodiment of the present invention.
图10显示结合本发明一实施例的该三角波信号产生器的运作流程图。FIG. 10 shows a flowchart of the operation of the triangular wave signal generator according to an embodiment of the present invention.
【符号说明】【Symbol Description】
10 三角波产生电路10 Triangular wave generating circuit
12 运算放大器12 operational amplifiers
30,30’ 三角波信号产生器30, 30' triangle wave signal generator
32 切换单元32 switching unit
33 第二驱动电路33 Second drive circuit
34 高低电平限制电路34 High and low level limiting circuit
342 比较器342 comparators
344 比较器344 Comparators
36 内部时钟信号产生器36 Internal clock signal generator
38 相位检测单元38 phase detection unit
82 切换电流阵列82 Switching Current Array
84 切换电流阵列84 switch current array
86 比较电路86 comparison circuit
C1 电容器C1 capacitor
I1-IN 定电流源I1-IN constant current source
M1,M2,M3,M4 开关M1, M2, M3, M4 switches
SW1-SWN 开关SW1-SWN switch
S100-S110 步骤S100-S110 steps
具体实施方式detailed description
在说明书及所附的权利要求书当中使用了某些词汇来指称特定的元件。本领域技术人员应可理解,制造商可能会用不同的名词来称呼同样的元件。本说明书及所附的权利要求书并不以名称的差异来作为区分元件的方式,而是以元件在功能上的差异来作为区分的准则。在通篇说明书及所附的权利要求书当中所提及的“包含”为一开放式的用语,故应解释成“包含但不限定于”。另外,“耦接”一词在此包含任何直接及间接的电气连接手段。因此,如果文中描述一第一装置耦接于一第二装置,则代表该第一装置可直接电气连接于该第二装置,或通过其他装置或连接手段间接地电气连接至该第二装置。Certain terms are used throughout the specification and appended claims to refer to particular elements. Those skilled in the art should understand that manufacturers may use different terms to refer to the same component. This description and the appended claims do not use the difference in name as a way to distinguish components, but use the difference in function of components as a criterion for distinguishing. "Includes" mentioned throughout the specification and appended claims is an open-ended term, so it should be interpreted as "including but not limited to". In addition, the term "coupled" herein includes any direct and indirect means of electrical connection. Therefore, if it is described that a first device is coupled to a second device, it means that the first device may be directly electrically connected to the second device, or indirectly electrically connected to the second device through other devices or connection means.
图3显示结合本发明一实施例的三角波信号产生器30的电路图。如图3所示,该三角波信号产生器30包含一电容器C1、一对匹配的充电/放电定电流源I1和I2以及一切换单元32。所谓“匹配”一词在此指充电/放电定电流源I1和I2的电流值实质上相同。该切换单元32包含由一内部时钟信号所控制的两开关M1和M2。该两开关M1和M2是以互补的方式切换,因此当开关M1开启时,开关M2为关闭状态,反之亦然。此外,当开关M1开启时,该定电流源I1会耦接至该电容C1。当开关M2开启时,该定电流源I2会耦接至该电容C1。FIG. 3 shows a circuit diagram of a triangular wave signal generator 30 according to an embodiment of the present invention. As shown in FIG. 3 , the triangular wave signal generator 30 includes a capacitor C1 , a pair of matching charging/discharging constant current sources I1 and I2 and a switching unit 32 . The term "matching" here means that the current values of the charging/discharging constant current sources I1 and I2 are substantially the same. The switching unit 32 includes two switches M1 and M2 controlled by an internal clock signal. The two switches M1 and M2 are switched in a complementary manner, so when the switch M1 is turned on, the switch M2 is turned off, and vice versa. In addition, when the switch M1 is turned on, the constant current source I1 is coupled to the capacitor C1. When the switch M2 is turned on, the constant current source I2 is coupled to the capacitor C1.
参照图3,该三角波信号产生器30还包含一高低电平限制电路34,其包含两比较器342和344。该比较器342比较该电容C1上的一信号VTRI与一高电平参考电压VH,而该比较器342比较该信号VTRI与一低电平参考电压VL。该比较器342的输出信号CPH和该比较器344的输出信号CPL会提供至一内部时钟信号产生器36。在本实施例中,该信号产生器36为一RS拴锁器。该信号产生器36提供一内部时钟信号ICK以根据比较结果控制该切换单元32中的该两开关M1和M2。Referring to FIG. 3 , the triangular wave signal generator 30 further includes a high-low level limiting circuit 34 including two comparators 342 and 344 . The comparator 342 compares a signal VTRI on the capacitor C1 with a high-level reference voltage VH, and the comparator 342 compares the signal VTRI with a low-level reference voltage VL. The output signal CPH of the comparator 342 and the output signal CPL of the comparator 344 are provided to an internal clock signal generator 36 . In this embodiment, the signal generator 36 is an RS latch. The signal generator 36 provides an internal clock signal ICK to control the two switches M1 and M2 in the switching unit 32 according to the comparison result.
参照图3,该三角波信号产生器30还包含一对匹配的充电/放电定电流源I3和I4以及一切换单元33。该切换单元33包含两开关M3和M4。该开关M3是由一相位检测单元38的一输出信号DP所控制,而该开关M4是由该相位检测单元38的一输出信号DN控制。当开关M3开启时,开关M4为关闭状态,反之亦然。此外,当开关M3开启时,该定电流源I3会耦接至该电容C1。当开关M4开启时,该定电流源I4会耦接至该电容C1。Referring to FIG. 3 , the triangular wave signal generator 30 further includes a pair of matching charging/discharging constant current sources I3 and I4 and a switching unit 33 . The switching unit 33 includes two switches M3 and M4. The switch M3 is controlled by an output signal DP of a phase detection unit 38 , and the switch M4 is controlled by an output signal DN of the phase detection unit 38 . When the switch M3 is turned on, the switch M4 is turned off, and vice versa. In addition, when the switch M3 is turned on, the constant current source I3 is coupled to the capacitor C1. When the switch M4 is turned on, the constant current source I4 is coupled to the capacitor C1.
如上所述,该切换单元33的运作是由该相位检测单元38控制。该相位检测单元38接收一外部供应时钟信号ECK和该内部时钟信号ICK,并根据该时钟信号ECK与该时钟信号ICK的相位差值产生这些相位信号DP和DN。当该信号DP为逻辑0电平时,该切换单元33中的开关M3导通。当该信号DN为逻辑1电平时,该切换单元33中的开关M4导通。As mentioned above, the operation of the switching unit 33 is controlled by the phase detection unit 38 . The phase detection unit 38 receives an externally supplied clock signal ECK and the internal clock signal ICK, and generates the phase signals DP and DN according to the phase difference between the clock signal ECK and the clock signal ICK. When the signal DP is at logic 0 level, the switch M3 in the switching unit 33 is turned on. When the signal DN is at logic 1 level, the switch M4 in the switching unit 33 is turned on.
图4显示图3所示的该相位检测单元38的一可能运作波形图,在图4中,该外部时钟信号ECK的相位领先该内部时钟信号ICK的相位,亦即,该外部时钟信号ECK的上升沿领先该内部时钟信号ICK的上升沿,且该外部时钟信号ECK的下降沿领先该内部时钟信号ICK的下降沿。当外部时钟信号ECK的上升沿领先该内部时钟信号ICK的上升沿时,该相位检测单元38产生该相位信号DP。当外部时钟信号ECK的下降沿领先该内部时钟信号ICK的下降沿时,该相位检测单元38产生该相位信号DN。因此,该相位信号DP的宽度W1和该相位信号DN的宽度W2会由该外部时钟信号ECK和该内部时钟信号ICK的相位差值决定。FIG. 4 shows a possible operation waveform diagram of the phase detection unit 38 shown in FIG. 3. In FIG. 4, the phase of the external clock signal ECK leads the phase of the internal clock signal ICK, that is, the phase of the external clock signal ECK The rising edge is ahead of the rising edge of the internal clock signal ICK, and the falling edge of the external clock signal ECK is ahead of the falling edge of the internal clock signal ICK. When the rising edge of the external clock signal ECK is ahead of the rising edge of the internal clock signal ICK, the phase detection unit 38 generates the phase signal DP. When the falling edge of the external clock signal ECK is ahead of the falling edge of the internal clock signal ICK, the phase detection unit 38 generates the phase signal DN. Therefore, the width W1 of the phase signal DP and the width W2 of the phase signal DN are determined by the phase difference between the external clock signal ECK and the internal clock signal ICK.
图5显示图3所示的该相位检测单元38的另一可能运作波形图,在图5中,该外部时钟信号ECK的相位落后该内部时钟信号ICK的相位,亦即,该外部时钟信号ECK的上升沿落后该内部时钟信号ICK的上升沿,且该外部时钟信号ECK的下降沿落后该内部时钟信号ICK的下降沿。当外部时钟信号ECK的上升沿落后该内部时钟信号ICK的上升沿时,该相位检测单元38产生该相位信号DP。当外部时钟信号ECK的下降沿落后该内部时钟信号ICK的下降沿时,该相位检测单元38产生该相位信号DN。因此,该相位信号DP的宽度W3和该相位信号DN的宽度W4会由该外部时钟信号ECK和该内部时钟信号ICK的相位差值决定。FIG. 5 shows another possible operation waveform diagram of the phase detection unit 38 shown in FIG. 3. In FIG. 5, the phase of the external clock signal ECK lags behind the phase of the internal clock signal ICK, that is, the external clock signal ECK The rising edge of the internal clock signal ICK lags behind the rising edge of the internal clock signal ICK, and the falling edge of the external clock signal ECK lags behind the falling edge of the internal clock signal ICK. When the rising edge of the external clock signal ECK lags behind the rising edge of the internal clock signal ICK, the phase detection unit 38 generates the phase signal DP. When the falling edge of the external clock signal ECK lags behind the falling edge of the internal clock signal ICK, the phase detection unit 38 generates the phase signal DN. Therefore, the width W3 of the phase signal DP and the width W4 of the phase signal DN are determined by the phase difference between the external clock signal ECK and the internal clock signal ICK.
现参照图3至图7说明本发明的三角波信号产生器30的运作方式,其中图6显示结合本发明的一实施例的该三角波信号产生器30的一波形图。在本实施例中,该外部时钟信号ECK的相位领先该内部时钟信号ICK的相位。Referring now to FIG. 3 to FIG. 7 , the operation of the triangular wave signal generator 30 of the present invention is described, wherein FIG. 6 shows a waveform diagram of the triangular wave signal generator 30 according to an embodiment of the present invention. In this embodiment, the phase of the external clock signal ECK is ahead of the phase of the internal clock signal ICK.
参照图6,在时间t1前,当该时钟信号ICK为逻辑0电平时,该电容C1会由流过该定电流源I1的电流充电,使得该电容C1上的电压VTRI会线性的上升。在时间t1,该相位检测单元38检测到该外部时钟信号ECK和该内部时钟信号ICK之间的相位差值时,会响应于该外部时钟信号ECK的相位领先该内部时钟信号ICK的相位的状况以产生该相位信号DP,这会使得定电流源I3对该电容C1充电。由于三角波信号的上升段的斜率正比于流过电容的直流电流,该信号VTRI在时间t2时会很快的到达该高电平参考电压VH。当该信号VTRI到达参考电压VH后,该比较器342的输出信号CPH会输出逻辑1电平,使得RS锁存器36输出一具有逻辑1电平的时钟信号ICK。Referring to FIG. 6, before time t1, when the clock signal ICK is logic 0 level, the capacitor C1 is charged by the current flowing through the constant current source I1, so that the voltage VTRI on the capacitor C1 increases linearly. At time t1, when the phase detection unit 38 detects the phase difference between the external clock signal ECK and the internal clock signal ICK, it will respond to the fact that the phase of the external clock signal ECK is ahead of the phase of the internal clock signal ICK To generate the phase signal DP, which causes the constant current source I3 to charge the capacitor C1. Since the slope of the rising segment of the triangular wave signal is proportional to the DC current flowing through the capacitor, the signal VTRI will quickly reach the high-level reference voltage VH at time t2. When the signal VTRI reaches the reference voltage VH, the output signal CPH of the comparator 342 will output a logic 1 level, so that the RS latch 36 outputs a clock signal ICK with a logic 1 level.
在时间t2后,开关M1和M3会关闭,该开关M2会响应于时钟信号ICK而导通,且该电容会由流经定电流源I2的电流放电。因此,该电容C1上的电压VTRI会线性的下降。在时间t3,该相位检测单元38检测到该外部时钟信号ECK和该内部时钟信号ICK之间的相位差值时,会响应于该外部时钟信号ECK的相位领先该内部时钟信号ICK的相位的状况以产生该相位信号DN,这会使得定电流源I4加入定电流源I2以对该电容C1放电。较高的直流电流值产生较短的斜坡时间间隔。因此,该信号VTRI在时间t4时会很快的到达该低电平参考电压VL。当该信号VTRI到达参考电压VL后,该比较器344的输出信号CPL会输出逻辑1电平,使得RS锁存器36输出一具有逻辑0电平的时钟信号ICK。After time t2, the switches M1 and M3 are turned off, the switch M2 is turned on in response to the clock signal ICK, and the capacitor is discharged by the current flowing through the constant current source I2. Therefore, the voltage VTRI on the capacitor C1 will decrease linearly. At time t3, when the phase detection unit 38 detects the phase difference between the external clock signal ECK and the internal clock signal ICK, it will respond to the fact that the phase of the external clock signal ECK is ahead of the phase of the internal clock signal ICK To generate the phase signal DN, the constant current source I4 is added to the constant current source I2 to discharge the capacitor C1. Higher DC current values produce shorter ramp time intervals. Therefore, the signal VTRI will quickly reach the low-level reference voltage VL at time t4. When the signal VTRI reaches the reference voltage VL, the output signal CPL of the comparator 344 will output a logic 1 level, so that the RS latch 36 outputs a clock signal ICK with a logic 0 level.
上述运作会重复地施行,因此该电容器C1上的电压VTRI会以一三角波方式产生。如上所述,该三角波信号产生器30会藉由检测该外部时钟信号ECK和该内部时钟信号ICK之间的相位差值,将该内部时钟信号ICK同步于该外部供应的时钟信号ECK。当该外部时钟信号ECK的相位领先该内部时钟信号ICK的相位时,该信号VTRI的斜率会根据检测结果而增加,因此缩短了斜坡周期。依此方式,该内部时钟信号ICK在数个循环后会同步于该外部供应的时钟信号ECK。The above operation will be performed repeatedly, so the voltage VTRI on the capacitor C1 will be generated in a triangular wave form. As mentioned above, the triangular wave signal generator 30 synchronizes the internal clock signal ICK with the externally supplied clock signal ECK by detecting the phase difference between the external clock signal ECK and the internal clock signal ICK. When the phase of the external clock signal ECK leads the phase of the internal clock signal ICK, the slope of the signal VTRI increases according to the detection result, thus shortening the ramp period. In this way, the internal clock signal ICK is synchronized with the externally supplied clock signal ECK after several cycles.
图7显示结合本发明的另一实施例的该三角波信号产生器30的一波形图。在本实施例中,该外部时钟信号ECK的相位落后该内部时钟信号ICK的相位。FIG. 7 shows a waveform diagram of the triangular wave signal generator 30 according to another embodiment of the present invention. In this embodiment, the phase of the external clock signal ECK lags behind the phase of the internal clock signal ICK.
参照图7,在时间t1前,该时钟信号ICK为逻辑0电平,且该电容C1会由流过该定电流源I1的电流充电,这使得该电容C1上的电压VTRI会线性地上升。在时间t1时,该信号VTRI会到达高电平参考电压VH,这使得该比较器342的输出信号CPH输出逻辑1电平,并让RS锁存器36输出一具有逻辑1电平的时钟信号ICK。因此,该开关M1会截止而该开关M2会导通,使得电流源I2会耦接至该电容器C1。在时间t1后,该相位检测单元38检测到该外部时钟信号ECK和该内部时钟信号ICK之间具有相位差值,并且根据该检测结果产生该相位信号DP,这会使得定电流源I3耦接至该电容C1。在本实施例中,该电流源I3的电流值大于该电流源I2的电流值。因此,该电容C1会由净电流I3-I2充电。Referring to FIG. 7 , before time t1 , the clock signal ICK is at logic 0 level, and the capacitor C1 is charged by the current flowing through the constant current source I1 , so that the voltage VTRI on the capacitor C1 increases linearly. At time t1, the signal VTRI will reach the high-level reference voltage VH, which makes the output signal CPH of the comparator 342 output a logic 1 level, and makes the RS latch 36 output a clock signal with a logic 1 level ICK. Therefore, the switch M1 is turned off and the switch M2 is turned on, so that the current source I2 is coupled to the capacitor C1. After time t1, the phase detection unit 38 detects that there is a phase difference between the external clock signal ECK and the internal clock signal ICK, and generates the phase signal DP according to the detection result, which will make the constant current source I3 coupled to to the capacitor C1. In this embodiment, the current value of the current source I3 is greater than the current value of the current source I2. Therefore, the capacitor C1 will be charged by the net current I3-I2.
时钟信号ECK在时间t2时进入逻辑1电平,因此该相位信号DP也回到逻辑1电平。接着,该开关M3会截止,该电容器C1会由流经定电流源I2的电流放电,这会使得该电容器C1上的电压VTRI线性下降。在时间t3时,该信号VTRI会到达低电平参考电压VL,这使得该地比较器344的输出信号CPL输出逻辑1电平,并让RS锁存器36输出一具有逻辑0电平的时钟信号ICK。因此,该开关M2会截止而该开关M1会导通,使得电流源I1会耦接至该电容C1。在时间t3后,该相位检测单元38检测到该外部时钟信号ECK和该内部时钟信号ICK之间具有相位差值,并且根据检测结果产生该相位信号DN,这会使得定电流源I4开始对该电容C1进行放电。在本实施例中,该电流源I4的电流值大于该电流源I1的电流值。因此,该电容C1会由净电流I4-I1充电。The clock signal ECK goes to a logic 1 level at time t2, so the phase signal DP also returns to a logic 1 level. Then, the switch M3 is turned off, and the capacitor C1 is discharged by the current flowing through the constant current source I2, which causes the voltage VTRI on the capacitor C1 to decrease linearly. At time t3, the signal VTRI will reach the low-level reference voltage VL, which makes the output signal CPL of the ground comparator 344 output a logic 1 level, and allows the RS latch 36 to output a clock with a logic 0 level Signal ICK. Therefore, the switch M2 is turned off and the switch M1 is turned on, so that the current source I1 is coupled to the capacitor C1 . After time t3, the phase detection unit 38 detects that there is a phase difference between the external clock signal ECK and the internal clock signal ICK, and generates the phase signal DN according to the detection result, which will make the constant current source I4 start to Capacitor C1 is discharged. In this embodiment, the current value of the current source I4 is greater than the current value of the current source I1 . Therefore, the capacitor C1 will be charged by the net current I4-I1.
该时钟信号ECK在时间t4时进入逻辑0电平,因此该相位信号DN也回到逻辑0电平。接着,该开关M4会截止,该电容会由流经定电流源I1的电流充电。该电容在时间t5后会依类似的方式进行充电和放电,使得该电容C1上的电压VTRI会以一三角波方式产生。The clock signal ECK goes to a logic 0 level at time t4, so the phase signal DN also returns to a logic 0 level. Then, the switch M4 is turned off, and the capacitor is charged by the current flowing through the constant current source I1. The capacitor will be charged and discharged in a similar manner after time t5, so that the voltage VTRI on the capacitor C1 will generate a triangular wave.
如上所述,该三角波信号产生器30会藉由检测该外部时钟信号ECK和该内部时钟信号ICK之间的相位差值,将该内部时钟信号ICK同步于该外部供应的时钟信号ECK。当该外部时钟信号ECK的相位落后该内部时钟信号ICK的相位时,该电容C1会在相位差间隔中保持先前的充电/放电状态。由于信号VTRI的斜率整体变缓,故斜坡周期增加。依此方式,该内部时钟信号ICK在数个循环后会同步于该外部供应的时钟信号ECK。As mentioned above, the triangular wave signal generator 30 synchronizes the internal clock signal ICK with the externally supplied clock signal ECK by detecting the phase difference between the external clock signal ECK and the internal clock signal ICK. When the phase of the external clock signal ECK lags behind the phase of the internal clock signal ICK, the capacitor C1 will maintain the previous charging/discharging state during the phase difference interval. Since the overall slope of the signal VTRI becomes gentler, the ramp period increases. In this way, the internal clock signal ICK is synchronized with the externally supplied clock signal ECK after several cycles.
在上述实施例中,该电容器C1会由定电流源I3和I4进行额外的充电和放电。然而,在不同的实施例中,该电容器C1也可在相位差间隔中由可变电流源进行额外的充电和放电。图8显示结合本发明一实施例的三角波信号产生器30’的电路图。参照图8,一比较电路86比较该相位信号DP的脉冲宽度与一预定时间间隔TSET,以产生由多个位C0至CN组成的一数字码。同时,该比较电路86比较该相位信号DN的脉冲宽度与该预定时间间隔TSET,以产生由多个位B0至BN组成的一数字码。In the above embodiment, the capacitor C1 is additionally charged and discharged by the constant current sources I3 and I4. However, in a different embodiment, this capacitor C1 can also be additionally charged and discharged by a variable current source during the phase difference interval. FIG. 8 shows a circuit diagram of a triangular wave signal generator 30' according to an embodiment of the present invention. Referring to FIG. 8, a comparison circuit 86 compares the pulse width of the phase signal DP with a predetermined time interval TSET to generate a digital code composed of a plurality of bits C0 to CN. At the same time, the comparison circuit 86 compares the pulse width of the phase signal DN with the predetermined time interval TSET to generate a digital code composed of a plurality of bits B0 to BN.
参照图8,一切换电流阵列82接收该等数字位C0至CN后,根据该等数字位C0至CN提供充电电流。一切换电流阵列84接收该等数字位B0至BN后,根据该等数字位B0至BN提供放电电流。图9显示结合本发明一实施例的该等切换电流阵列82和84的电路图。参照图9,该切换电流阵列82包含多个相同的电流源I1至IN,每一电流源传送相同的电流I。该切换电流阵列82进一步包含对应至多个电流源I1至IN的多个开关SW1至SWN。举例而言,开关SW1负责控制电流源I1和电容C1的耦接状态。该切换电流阵列84的电路配置近似于该电流阵列82。参照图9,该切换电流阵列84包含多个相同的电流源I1至IN,每一电流源传送相同的电流I。该切换电流阵列84进一步包含对应至多个电流源I1至IN的多个开关SW1至SWN。Referring to FIG. 8 , after receiving the digital bits C0 to CN, a switching current array 82 provides charging current according to the digital bits C0 to CN. A switching current array 84 provides discharge current according to the digital bits B0 to BN after receiving the digital bits B0 to BN. FIG. 9 shows a circuit diagram of the switched current arrays 82 and 84 incorporating an embodiment of the present invention. Referring to FIG. 9 , the switched current array 82 includes a plurality of identical current sources I1 to IN, and each current source delivers the same current I. The switched current array 82 further includes a plurality of switches SW1 to SWN corresponding to the plurality of current sources I1 to IN. For example, the switch SW1 is responsible for controlling the coupling state of the current source I1 and the capacitor C1. The circuit configuration of the switched current array 84 is similar to that of the current array 82 . Referring to FIG. 9 , the switched current array 84 includes a plurality of identical current sources I1 to IN, and each current source delivers the same current I. The switched current array 84 further includes a plurality of switches SW1 to SWN corresponding to the plurality of current sources I1 to IN.
图10显示结合本发明一实施例的该三角波信号产生器30’的运作流程图。该流程开始于步骤S100。以下说明请参照图8至图10。在步骤S102中,该相位检测单元38会接收该外部时钟信号ECK和该内部时钟信号ICK,并且根据两者间的相位差值产生该相位信号DP。在步骤S104中,该比较电路86比较该相位信号DP的脉冲宽度与预定时间间隔TSET,以产生由多个数字位C0至CN。在一实施例中,该等数字位C0至CN反应于该相位信号DP的脉冲宽度与该预定时间间隔TSET间的差值。在另一实施例中,该比较电路86比较该相位信号DP的脉冲宽度与多个预定时间间隔TSET1至TSETN,以产生由多个数字位C0至CN。FIG. 10 shows a flowchart of the operation of the triangular wave signal generator 30' according to an embodiment of the present invention. The process starts at step S100. Please refer to FIG. 8 to FIG. 10 for the following description. In step S102 , the phase detection unit 38 receives the external clock signal ECK and the internal clock signal ICK, and generates the phase signal DP according to the phase difference between them. In step S104, the comparison circuit 86 compares the pulse width of the phase signal DP with a predetermined time interval TSET to generate a plurality of digital bits C0 to CN. In one embodiment, the digital bits C0 to CN respond to the difference between the pulse width of the phase signal DP and the predetermined time interval TSET. In another embodiment, the comparison circuit 86 compares the pulse width of the phase signal DP with a plurality of predetermined time intervals TSET1 to TSETN to generate a plurality of digital bits C0 to CN.
接着,在步骤S106中,如果该相位信号DP的脉冲宽度大于该预定时间间隔TSET,流过该电流阵列82的总电流值会增加以对电容C1进行充电。接着,该流程回到步骤S104。如果在充电电流增加后该相位信号DP的脉冲宽度小于该预定时间间隔TSET,则结束该流程。Next, in step S106, if the pulse width of the phase signal DP is greater than the predetermined time interval TSET, the total current flowing through the current array 82 will increase to charge the capacitor C1. Then, the process returns to step S104. If the pulse width of the phase signal DP is smaller than the predetermined time interval TSET after the charging current is increased, the process ends.
参照图8至图10,在本发明一实施例中,该电容C1在初始时只会由该电流阵列82中的一个电流源和该电流阵列84中的一个电流源进行充电和放电。接着,在步骤S106中,如果该相位信号DP的脉冲宽度在数个时钟周期后还是大于该预定时间间隔TSET(例如100ns),该电流阵列82中的另一电流源会耦接至该电容C1以增加充电电流。在数个时钟周期后,该比较电路86会再次比较该相位信号DP的脉冲宽度与该预定时间间隔TSET。如果该相位信号DP的脉冲宽度仍大于该预定时间间隔TSET,表示流过该电流阵列82的总充电电流仍无法降低该外部时钟信号ECK和该内部时钟信号ICK间的相位差值,因此该电流阵列82中的又一开关会开启使又一电流源耦接至该电容C1以增加充电电流。如果在数个周期后该相位信号DP的脉冲宽度仍大于该预定时间间隔TSET,则该电流阵列82中的再一开关会开启使再一电流源耦接至该电容C1以增加充电电流。该等开关会持续开启使不同的电流源依序耦接至该电容C1以增加充电电流,直至该相位信号DP的脉冲宽度小于该预定时间间隔TSET。依此方式,该相位信号DP的脉冲宽度会小于该预定时间间隔TSET。Referring to FIGS. 8 to 10 , in an embodiment of the present invention, the capacitor C1 is initially charged and discharged by only one current source in the current array 82 and one current source in the current array 84 . Next, in step S106, if the pulse width of the phase signal DP is still greater than the predetermined time interval TSET (for example, 100 ns) after several clock cycles, another current source in the current array 82 is coupled to the capacitor C1 to increase the charging current. After several clock cycles, the comparison circuit 86 compares the pulse width of the phase signal DP with the predetermined time interval TSET again. If the pulse width of the phase signal DP is still greater than the predetermined time interval TSET, it means that the total charging current flowing through the current array 82 still cannot reduce the phase difference between the external clock signal ECK and the internal clock signal ICK, so the current Another switch in the array 82 is turned on to couple another current source to the capacitor C1 to increase the charging current. If the pulse width of the phase signal DP is still greater than the predetermined time interval TSET after several cycles, another switch in the current array 82 is turned on to couple another current source to the capacitor C1 to increase the charging current. The switches are continuously turned on to sequentially couple different current sources to the capacitor C1 to increase the charging current until the pulse width of the phase signal DP is less than the predetermined time interval TSET. In this way, the pulse width of the phase signal DP is less than the predetermined time interval TSET.
在上述实施例中,该电流阵列82中的该等开关SW1至SWN会依序开启以增加总充电电流,而该电流阵列84仅有开关SW1导通以增加放电电流。在另一实施例中,该电流阵列84中的该等开关SW1至SWN会依序开启以增加总放电电流,而该电流阵列82仅有开关SW1导通以增加充电电流。然而,在又一实施例中,该电流阵列82中的开关SW1至SWN和该电流阵列84中的开关SW1至SWN均会依序导通,以根据该外部时钟信号ECK和该内部时钟信号ICK间的相位差值增加总充电和总放电电流。依此方式,该相位信号DP的脉冲宽度会逐渐缩小,直至小于该预定时间间隔TSET。In the above embodiment, the switches SW1 to SWN in the current array 82 are turned on sequentially to increase the total charging current, while only the switch SW1 in the current array 84 is turned on to increase the discharge current. In another embodiment, the switches SW1 to SWN in the current array 84 are turned on sequentially to increase the total discharge current, while only the switch SW1 in the current array 82 is turned on to increase the charge current. However, in yet another embodiment, the switches SW1 to SWN in the current array 82 and the switches SW1 to SWN in the current array 84 are all turned on sequentially, so that according to the external clock signal ECK and the internal clock signal ICK The phase difference between them increases the total charge and discharge current. In this manner, the pulse width of the phase signal DP is gradually reduced until it is less than the predetermined time interval TSET.
虽然本发明已以优选实施例公开如上,然其并非用以限定本发明,本领域技术人员,在不脱离本发明的精神和范围内,当可作些许的更动与润饰,因此本发明的保护范围当视所附权利要求书界定范围为准。Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Those skilled in the art may make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the present invention The scope of protection shall be subject to the scope defined by the appended claims.
本发明的技术内容及技术特点已揭示如上,然而本领域技术人员仍可能基于本发明的教示及揭示而作种种不背离本发明精神的替换及修饰。因此,本发明的保护范围应不限于实施例所揭示者,而应包括各种不背离本发明的替换及修饰,并为随后的权利要求书所涵盖。The technical content and technical features of the present invention have been disclosed above, but those skilled in the art may still make various substitutions and modifications based on the teaching and disclosure of the present invention without departing from the spirit of the present invention. Therefore, the protection scope of the present invention should not be limited to those disclosed in the embodiments, but should include various replacements and modifications that do not depart from the present invention, and are covered by the following claims.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410041775.3A CN104811164B (en) | 2014-01-28 | 2014-01-28 | Triangular wave generating circuit with clock signal synchronization |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410041775.3A CN104811164B (en) | 2014-01-28 | 2014-01-28 | Triangular wave generating circuit with clock signal synchronization |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104811164A CN104811164A (en) | 2015-07-29 |
| CN104811164B true CN104811164B (en) | 2017-10-24 |
Family
ID=53695720
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410041775.3A Active CN104811164B (en) | 2014-01-28 | 2014-01-28 | Triangular wave generating circuit with clock signal synchronization |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104811164B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106911323B (en) * | 2015-12-23 | 2020-05-19 | 辰芯科技有限公司 | Triangular wave generating system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101114177A (en) * | 2006-07-27 | 2008-01-30 | 硕颉科技股份有限公司 | Voltage-controlled current source and frequency sweep device using same |
| CN101325408A (en) * | 2007-06-12 | 2008-12-17 | 上海沙丘微电子有限公司 | Circuit for generating triangular wave |
| CN101404487A (en) * | 2008-06-05 | 2009-04-08 | 美芯晟科技(北京)有限公司 | Triangular wave generation method and its circuit |
| CN102237859A (en) * | 2010-05-07 | 2011-11-09 | 旺宏电子股份有限公司 | Oscillator with frequency determined by relative size of current source |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7746130B2 (en) * | 2008-07-14 | 2010-06-29 | Elite Semiconductor Memory Technology, Inc. | Triangular wave generating circuit having synchronization with external clock |
-
2014
- 2014-01-28 CN CN201410041775.3A patent/CN104811164B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101114177A (en) * | 2006-07-27 | 2008-01-30 | 硕颉科技股份有限公司 | Voltage-controlled current source and frequency sweep device using same |
| CN101325408A (en) * | 2007-06-12 | 2008-12-17 | 上海沙丘微电子有限公司 | Circuit for generating triangular wave |
| CN101404487A (en) * | 2008-06-05 | 2009-04-08 | 美芯晟科技(北京)有限公司 | Triangular wave generation method and its circuit |
| CN102237859A (en) * | 2010-05-07 | 2011-11-09 | 旺宏电子股份有限公司 | Oscillator with frequency determined by relative size of current source |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104811164A (en) | 2015-07-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6688138B2 (en) | Load response jitter | |
| TWI483529B (en) | Multi-phase dc-dc power converter | |
| US9712046B2 (en) | Dead-time optimization of DC-DC converters | |
| US11063515B2 (en) | Power converter | |
| US8289091B2 (en) | Relaxation oscillator | |
| CN101626225B (en) | Sawtooth wave generating circuit and switch mode power supply having the same | |
| US9300281B2 (en) | Triangular wave generating circuit to provide clock synchronization | |
| US20080129370A1 (en) | Control circuit and method for a switching amplifier | |
| JP2016502799A (en) | Complementary output generator module | |
| CN110504829B (en) | DC-DC conversion circuit and control method thereof | |
| US20140132314A1 (en) | Triangular waveform generating apparatus | |
| JP2018516524A (en) | Improved tracking | |
| CN104811164B (en) | Triangular wave generating circuit with clock signal synchronization | |
| JP2004104645A (en) | Triangular wave generating device, pulse width modulation signal generating device and external synchronization/internal synchronization/asynchronization switching device | |
| US10128737B1 (en) | Constant on-time switching converter and clock synchronization circuit | |
| US7391242B1 (en) | Sawtooth waveform generator | |
| US7317362B2 (en) | Oscillator circuit and oscillation control method | |
| US7986179B2 (en) | Circuit and method for reducing popping sound | |
| JP5589769B2 (en) | Switching power supply control circuit and electronic device | |
| TWI532319B (en) | Triangular wave generating circuit providing clock synchronization | |
| JP2010283627A (en) | Synchronization signal generating circuit | |
| US9991852B2 (en) | System and method for close-down pop reduction | |
| TWI335725B (en) | ||
| US9705480B2 (en) | Circuit and method for generating an output signal having a variable pulse duty factor | |
| JP2007163301A (en) | Burn-in test signal generation circuit and burn-in test method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| EXSB | Decision made by sipo to initiate substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |