[go: up one dir, main page]

CN107204755B - High-precision self-adaptive relaxation oscillator - Google Patents

High-precision self-adaptive relaxation oscillator Download PDF

Info

Publication number
CN107204755B
CN107204755B CN201710432878.6A CN201710432878A CN107204755B CN 107204755 B CN107204755 B CN 107204755B CN 201710432878 A CN201710432878 A CN 201710432878A CN 107204755 B CN107204755 B CN 107204755B
Authority
CN
China
Prior art keywords
circuit
charging
capacitor
charge
comparator
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
Application number
CN201710432878.6A
Other languages
Chinese (zh)
Other versions
CN107204755A (en
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.)
Southeast University Wuxi Institute Of Integrated Circuit Technology
Southeast University
Original Assignee
Southeast University Wuxi Institute Of Integrated Circuit Technology
Southeast University
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 Southeast University Wuxi Institute Of Integrated Circuit Technology, Southeast University filed Critical Southeast University Wuxi Institute Of Integrated Circuit Technology
Priority to CN201710432878.6A priority Critical patent/CN107204755B/en
Publication of CN107204755A publication Critical patent/CN107204755A/en
Application granted granted Critical
Publication of CN107204755B publication Critical patent/CN107204755B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K3/00Circuits for generating electric pulses; Monostable, bistable or multistable circuits
    • H03K3/02Generators characterised by the type of circuit or by the means used for producing pulses
    • H03K3/023Generators characterised by the type of circuit or by the means used for producing pulses by the use of differential amplifiers or comparators, with internal or external positive feedback
    • H03K3/0231Astable circuits
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K3/00Circuits for generating electric pulses; Monostable, bistable or multistable circuits
    • H03K3/01Details
    • H03K3/011Modifications of generator to compensate for variations in physical values, e.g. voltage, temperature
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K3/00Circuits for generating electric pulses; Monostable, bistable or multistable circuits
    • H03K3/01Details
    • H03K3/012Modifications of generator to improve response time or to decrease power consumption

Landscapes

  • Pulse Circuits (AREA)
  • Manipulation Of Pulses (AREA)

Abstract

一种高精度的自适应张弛振荡器,利用电容预充电原理抵消设于振荡电路中的充放电控制电路产生的延时,包括振荡电路、第一电容预充电电路和第二电容预充电电路,电容预充电电路用于给振荡器充放电电容预充电,振荡电路在电容预充电电路预充电电平的基础上进行充放电,电容两次充电产生的误差延时抵消,使振荡器工作在预设的频率上,实现显著提高频率‑控制电流线性度,且本发明不是直接通过提升比较器或者RS触发器的速度来减小延时,而是通过两次充电过程抵消控制电路产生的延时以及随外界环境变化的失调的影响,显著地提高了振荡器的精度,并且具有很强的温度稳定性和电源电压抑制即自适应性。

Figure 201710432878

A high-precision adaptive relaxation oscillator, which utilizes the principle of capacitor pre-charging to offset the delay generated by a charge-discharge control circuit arranged in an oscillation circuit, comprising an oscillation circuit, a first capacitor pre-charge circuit and a second capacitor pre-charge circuit, The capacitor pre-charge circuit is used to pre-charge the oscillator charging and discharging capacitor. The oscillator circuit charges and discharges on the basis of the pre-charge level of the capacitor pre-charge circuit. The error delay caused by the two charging of the capacitor is cancelled, so that the oscillator works in pre-charge. At the set frequency, the frequency-control current linearity is significantly improved, and the present invention does not directly reduce the delay by increasing the speed of the comparator or the RS flip-flop, but offsets the delay generated by the control circuit through two charging processes. As well as the influence of the imbalance with the change of the external environment, the accuracy of the oscillator is significantly improved, and it has strong temperature stability and power supply voltage suppression, that is, self-adaptability.

Figure 201710432878

Description

一种高精度自适应的张弛振荡器A High Precision Adaptive Relaxation Oscillator

技术领域technical field

本发明涉及张弛振荡器,尤其涉及一种高精度自适应的张弛振荡器,属于CMOS集成电路技术领域。The invention relates to a relaxation oscillator, in particular to a high-precision self-adaptive relaxation oscillator, belonging to the technical field of CMOS integrated circuits.

背景技术Background technique

在大规模集成电路中,时钟信号一般由振荡器产生的。张弛振荡器具有结构简单,成本较低,易于集成,功耗相对较小,是振荡器里面应用最为广泛的时钟产生电路。In large-scale integrated circuits, the clock signal is generally generated by an oscillator. The relaxation oscillator has the advantages of simple structure, low cost, easy integration and relatively low power consumption. It is the most widely used clock generation circuit in the oscillator.

在信号的调制与解调、存储系统的数据恢复等的应用中,要求所使用的张弛振荡器的控制电流—频率具有很高的线性度,从而减小失真,同时也可以增大该张弛振荡器的频率范围。在张弛振荡器中,控制电流—频率的线性度和充放电电容振荡幅度的控制电路的延时有关。因此,要提高振荡器的线性度,最大化振荡器的频率就必须将控制电路的延时影响降到最小。而在时钟恢复电路中,为了获得更大的动态范围,要求张弛振荡器电路具有小的抖动,张弛振荡器电路的抖动是由于电路本身的噪声引起的在翻转阈值电平处存在的微小扰动,而具有小的抖动的张弛振荡器电路要求增大其充放电电容的振荡幅度。In applications such as signal modulation and demodulation, data recovery of storage systems, etc., the control current-frequency of the relaxation oscillator used is required to have high linearity, thereby reducing distortion and increasing the relaxation oscillation. frequency range of the device. In relaxation oscillators, the control current-frequency linearity is related to the delay of the control circuit for the oscillation amplitude of the charge and discharge capacitors. Therefore, in order to improve the linearity of the oscillator, maximizing the frequency of the oscillator must minimize the delay effect of the control circuit. In the clock recovery circuit, in order to obtain a larger dynamic range, the relaxation oscillator circuit is required to have a small jitter. The jitter of the relaxation oscillator circuit is a small perturbation at the flip threshold level caused by the noise of the circuit itself. The relaxation oscillator circuit with small jitter requires to increase the oscillation amplitude of its charge and discharge capacitors.

在现有的技术中,张弛振荡器有许多不同的结构,对不同结构的张弛振荡器的共同要求就是精度高和在高频时频率-控制电流仍具有良好的线性度。但现有的张弛振荡器仍存在着一些不足。In the prior art, relaxation oscillators have many different structures, and the common requirements for relaxation oscillators with different structures are high precision and good linearity of the frequency-control current at high frequencies. But the existing relaxation oscillators still have some shortcomings.

图1示出了单个定时电容的电流控制张弛振荡器,包括充电电流源Icharge、放电电流源Idischarge,PMOS管M1、NMOS管M2,定时电容C,两个比较器COMP1和COMP2,RS触发器。RS触发器的输出端Q接PMOS管M1和NMOS管M2的栅端。根据RS触发器输出端Q的信号的不同,PMOS管M1和NMOS管M2交替导通和关断,充电电流源Icharge、放电电流源Idischarge交替地给定时电容C充电和放电。Figure 1 shows a current-controlled relaxation oscillator with a single timing capacitor, including a charging current source I charge , a discharging current source I discharge , a PMOS transistor M1, an NMOS transistor M2, a timing capacitor C, two comparators COMP1 and COMP2, and RS triggering device. The output end Q of the RS flip-flop is connected to the gate ends of the PMOS transistor M1 and the NMOS transistor M2. According to different signals at the output Q of the RS flip-flop, the PMOS transistor M1 and the NMOS transistor M2 are turned on and off alternately, and the charging current source I charge and the discharging current source I discharge charge and discharge the capacitor C alternately for a given timing.

单个定时电容的电流控制张弛振荡器的工作过程如下:The current-controlled relaxation oscillator for a single timing capacitor operates as follows:

S1)当RS触发器的输出端Q为低电平,PMOS管M1开启、NMOS管M2关断,充电电流源Icharge给定时电容C充电,当定时电容C上的电压上升超过上参考电平VH时,比较器COMP1输出高电平,RS触发器处于置位状态,输出端Q输出高电平;S1) When the output terminal Q of the RS flip-flop is at a low level, the PMOS transistor M1 is turned on, the NMOS transistor M2 is turned off, the charging current source I charge is given and the capacitor C is charged. When the voltage on the timing capacitor C rises above the upper reference level When V H , the comparator COMP1 outputs a high level, the RS flip-flop is in the set state, and the output terminal Q outputs a high level;

S2)当RS触发器的输出端Q输出高电平,PMOS管M1关断、NMOS管M2开启,放电电流源Idischarge开始给定时电容C放电,C上的电压下降,当定时电容C上的电压下降到小于下参考电平VL时,比较器COMP2输出高电平,RS触发器处于复位状态,输出端Q输出低电平;S2) When the output terminal Q of the RS flip-flop outputs a high level, the PMOS transistor M1 is turned off, the NMOS transistor M2 is turned on, and the discharge current source I discharge begins to discharge the capacitor C at a given timing, and the voltage on C drops. When the voltage drops below the lower reference level VL , the comparator COMP2 outputs a high level, the RS flip-flop is in a reset state, and the output terminal Q outputs a low level;

RS触发器输出端Q为低电平,回到初始状态,然后依次重复上面两个过程。The output terminal Q of the RS flip-flop is at a low level, returning to the initial state, and then repeating the above two processes in turn.

单个定时电容的电流控制张弛振荡器的电容上的电压在上参考电平VH和下参考电平VL之间来回振荡。如果控制电路(图1中的COMP1、COMP2和RS触发器)的延时可以被忽略,且设Icharge=Idischarge=I,则振荡器的周期和频率为The voltage on the capacitor of the current controlled relaxation oscillator of the single timing capacitor oscillates back and forth between the upper reference level VH and the lower reference level VL . If the delay of the control circuit (COMP1, COMP2 and RS flip-flops in Figure 1) can be ignored, and let I charge =I discharge =I, then the period and frequency of the oscillator are

Figure BDA0001317742640000021
Figure BDA0001317742640000021

Figure BDA0001317742640000022
Figure BDA0001317742640000022

由式2可以看出,如果控制电路的延时可以忽略,一旦选定电容C、上参考电平VH和下参考电平VL,单个定时电容的电流控制张弛振荡器的频率正比于控制电流I。It can be seen from Equation 2 that if the delay of the control circuit can be ignored, once the capacitor C, the upper reference level V H and the lower reference level VL are selected, the frequency of the current-controlled relaxation oscillator of a single timing capacitor is proportional to the control current I.

但是,图1所示的单个定时电容的电流控制张弛振荡器的控制电路的延时并不能忽略,定时电容C上的电压的实际波形如图2所示。由于控制电路的延时的存在,使得定时电容C上的电压达到上参考电平VH时,PMOS管M1并没有立刻关断、NMOS管M2并没有立刻开启,导致电容上的电压过充,而由于电容上电压的过充,在电容电压下降时要求有同样的时间来释放过充的电荷(设Icharge=Idischarge),在这个过程中,控制电路的延时为2td,当定时电容C放电到接近下参考电平VL时,同样会产生过放现象,因此,在一个周期中的总延时为Td=4td,因此频率的公式(式2)修正为However, the delay of the control circuit of the current-controlled relaxation oscillator of a single timing capacitor shown in FIG. 1 cannot be ignored, and the actual waveform of the voltage on the timing capacitor C is shown in FIG. 2 . Due to the delay of the control circuit, when the voltage on the timing capacitor C reaches the upper reference level V H , the PMOS tube M1 is not turned off immediately, and the NMOS tube M2 is not turned on immediately, resulting in the overcharge of the voltage on the capacitor. Due to the overcharge of the voltage on the capacitor, the same time is required to release the overcharged charge when the capacitor voltage drops (set I charge =I discharge ), in this process, the delay of the control circuit is 2td, when the timing capacitor When C is discharged close to the lower reference level VL , an over-discharge phenomenon will also occur. Therefore, the total delay in one cycle is T d =4td, so the frequency formula (Equation 2) is modified as

Figure BDA0001317742640000023
Figure BDA0001317742640000023

其中fideal为式1中的理想频率,Td为振荡器一个周期内的延时4td。式3中的实际频率f与控制电流的关系可以用图3来表示。Where f ideal is the ideal frequency in equation 1, and T d is the delay 4td in one cycle of the oscillator. The relationship between the actual frequency f in formula 3 and the control current can be represented by FIG. 3 .

因此,为了提高线性度和最大化振荡器的频率,必须减小该张弛振荡器中一个周期内的延时TdTherefore, in order to improve linearity and maximize the frequency of the oscillator, the delay Td within one cycle in the relaxation oscillator must be reduced.

同时,单个定时电容的电流控制张弛振荡器也有着许多其他的缺点,如需要两个参考电平;且因为有两个参考电平的存在,使得定时电容的振荡幅度受限,从而导致电路本身的噪声对充放电电容的阈值电平产生影响,并且这种影响会在每个周期累积,最终影响振荡器的输出频率;最后,由于器件的失配,其充电电流和放电电流不可能完全精确的相等,因此,很难获得50%的占空比。因此,有必要针对上面的缺点,对单个定时电容的电流控制张弛振荡器进行改进。At the same time, the current-controlled relaxation oscillator with a single timing capacitor also has many other disadvantages, such as the need for two reference levels; and because of the existence of two reference levels, the oscillation amplitude of the timing capacitor is limited, which leads to the circuit itself. The noise of the charge and discharge capacitors has an effect on the threshold level, and this effect accumulates in each cycle, ultimately affecting the output frequency of the oscillator; finally, due to device mismatch, its charge and discharge currents cannot be completely accurate. are equal, therefore, it is difficult to obtain a 50% duty cycle. Therefore, it is necessary to improve the current-controlled relaxation oscillator of a single timing capacitor in view of the above shortcomings.

针对单个定时电容的电流控制张弛振荡器的不足,图4给出了可以减小一个周期内的延时Td的带有双定时电容的电流控制张弛振荡器,包括电流源I1和I2,PMOS管M3、NMOS管M4、PMOS管M5、NMOS管M6,定时电容C01和C02,两个比较器COMP3和COMP4,RS触发器,比较器COMP3、比较器COMP4的同相端分别接定时电容C01、定时电容C02,比较器COMP3、比较器COMP4的反相端接在一起连接到参考电平VRAiming at the shortcomings of the current-controlled relaxation oscillator with a single timing capacitor, Figure 4 shows a current-controlled relaxation oscillator with dual timing capacitors that can reduce the delay T d in one cycle, including current sources I 1 and I 2 , PMOS tube M3, NMOS tube M4, PMOS tube M5, NMOS tube M6, timing capacitors C01 and C02, two comparators COMP3 and COMP4, RS flip-flop, the non-inverting terminals of comparator COMP3 and comparator COMP4 are respectively connected to timing capacitor C01 , the timing capacitor C02, the inverting terminals of the comparator COMP3 and the comparator COMP4 are connected together to the reference level VR .

带有双定时电容的电流控制张弛振荡器的工作过程如下:The operation of a current controlled relaxation oscillator with dual timing capacitors is as follows:

S1)设电路开始工作时,RS触发器的输出端Q为低电平,输出端Q为高电平,PMOS管M3开启、NMOS管M4关断,电流源Icharge1给定时电容C01充电,PMOS管M5关断、NMOS管M6开启,定时电容C02放电到地GND,当定时电容C01上的电压上升到超过参考电平VR时,比较器COMP3输出高电平,RS触发器处于置位状态,输出端Q变为高电平,输出端Q变为低电平;S1) When the circuit starts to work, the output terminal Q of the RS flip-flop is at a low level, the output terminal Q is at a high level, the PMOS tube M3 is turned on, the NMOS tube M4 is turned off, the current source I charge1 is given when the capacitor C01 is charged, and the PMOS tube is charged. The tube M5 is turned off, the NMOS tube M6 is turned on, and the timing capacitor C02 is discharged to the ground GND. When the voltage on the timing capacitor C01 rises to exceed the reference level VR, the comparator COMP3 outputs a high level, and the RS flip-flop is in the set state. , the output terminal Q becomes a high level, and the output terminal Q becomes a low level;

S2)RS触发器的输出端Q为高电平,输出端Q为低电平,PMOS管M3关断、NMOS管M4开启,定时电容C01放电到地GND,PMOS管M5开启、NMOS管M6关断,电流源Icharge2给定时电容C02充电,当定时电容C02上的电压超过参考电平VR时,比较器COMP4输出高电平,RS触发器处于复位状态,输出端Q变为低电平,输出端Q为高电平;S2) The output terminal Q of the RS flip-flop is high level, the output terminal Q is low level, the PMOS tube M3 is turned off, the NMOS tube M4 is turned on, the timing capacitor C01 is discharged to the ground GND, the PMOS tube M5 is turned on, and the NMOS tube M6 is turned off The current source I charge2 charges the timing capacitor C02. When the voltage on the timing capacitor C02 exceeds the reference level VR, the comparator COMP4 outputs a high level, the RS flip-flop is in the reset state, and the output terminal Q becomes a low level. , the output Q is high level;

S3)RS触发器的输出端Q为低电平,输出端Q为高电平,返回到初始状态S1)。S3) The output terminal Q of the RS flip-flop is at a low level, and the output terminal Q is at a high level, returning to the initial state S1).

与图1的单个定时电容的电流控制张弛振荡器相比,图4所示的带有双定时电容的电流控制张弛振荡器具有明显改进的效果:Compared to the single timing capacitor current controlled relaxation oscillator of Figure 1, the current controlled relaxation oscillator with dual timing capacitors shown in Figure 4 has a significantly improved effect:

1)双定时电容张弛振荡器的充放电电容的振幅比单个定时电容张弛振荡器的充放电电容上的振幅大,可以在接近于GND到接近电源电压之间振荡,从而可以减小电路本身的噪声对充放电电容的翻转电平的影响。1) The amplitude of the charge and discharge capacitor of the dual timing capacitor relaxation oscillator is larger than the amplitude of the charge and discharge capacitor of a single timing capacitor relaxation oscillator, and it can oscillate between close to GND and close to the power supply voltage, thereby reducing the circuit itself. The effect of noise on the inversion level of charging and discharging capacitors.

2)双定时电容张弛振荡器只需一个参考电平,而基于单个定时电容的张弛振荡器则需要两个参考电平。2) A dual-timing capacitor relaxation oscillator requires only one reference level, while a relaxation oscillator based on a single timing capacitor requires two reference levels.

3)双定时电容的张弛振荡器的周期仅由电容C01、C02的充电过程决定。定时电容C02的充电时间决定了振荡器输出端Q为高电平的时间,定时电容C01的充电时间决定了振荡器输出Q为低电平的时间。双定时电容的电流控制张弛振荡器的周期仅由电容的充电过程决定,其波形如图5所示,因此,仅有电容充电过程时的控制电路(图4中的COMP3、COMP4和RS触发器)以及作为控制开关的PMOS管M3、NMOS管M4、PMOS管M5、NMOS管M6的延时才能影响到振荡器的周期,而电容放电过程的延时对振荡器周期不产生影响,因此整个周期的延时由单定时电容结构的4td减小到2td,提高了振荡器电路的控制线性度,增大了电路的最大频率范围。3) The period of the relaxation oscillator of the dual timing capacitors is determined only by the charging process of the capacitors C01 and C02. The charging time of the timing capacitor C02 determines the time when the oscillator output Q is at a high level, and the charging time of the timing capacitor C01 determines the time when the oscillator output Q is at a low level. The cycle of the current controlled relaxation oscillator of the dual timing capacitor is determined only by the charging process of the capacitor, and its waveform is shown in Figure 5. Therefore, only the control circuit during the charging process of the capacitor (COMP3, COMP4 and RS flip-flop in Figure 4) ) and the delay of PMOS tube M3, NMOS tube M4, PMOS tube M5, and NMOS tube M6 as control switches can affect the cycle of the oscillator, while the delay of the capacitor discharge process does not affect the cycle of the oscillator, so the entire cycle The delay of the single-time capacitor structure is reduced from 4td to 2td, which improves the control linearity of the oscillator circuit and increases the maximum frequency range of the circuit.

虽然,带有双定时电容的电流控制张弛振荡器在一个周期内将延时由4td减小到2td,但是振荡器的输出频率仍然受到定时电容振荡幅度的控制电路和作为控制开关的PMOS管M3、NMOS管M4、PMOS管M5、NMOS管M6的延时2td的影响,特别是在高频时,2td的延时甚至大于振荡器输出波形的周期,不但降低了频率-控制电流的线性度,而且限制了振荡器的最大频率范围,因此有必要对双定时电容的电流控制张弛振荡器进行进一步的改进,来减小延时的影响。Although the current controlled relaxation oscillator with dual timing capacitors reduces the delay from 4td to 2td in one cycle, the output frequency of the oscillator is still subject to the control circuit of the oscillation amplitude of the timing capacitor and the PMOS transistor M3 as a control switch , The influence of the delay of 2td of NMOS tube M4, PMOS tube M5 and NMOS tube M6, especially at high frequency, the delay of 2td is even greater than the period of the oscillator output waveform, which not only reduces the frequency-control current linearity, Moreover, the maximum frequency range of the oscillator is limited, so it is necessary to further improve the current-controlled relaxation oscillator with dual timing capacitors to reduce the effect of delay.

针对带有双定时电容的电流控制张弛振荡器的不足,图6给出了带有参考电平自调节高线性度张弛振荡器,包括振荡电路、参考电平自调节电路和传输门选择信号产生电路。通过检测振荡电路中充放电电容的电压峰值,求出由于控制电路的延时导致的电容电压过充量,从而把振荡电路中的比较器参考电平减小相应的量作为新的参考电平来使得充放电电容的振荡幅度刚好为理论值,在新的参考电平大于零时,张弛振荡器消除了充放电电容由于控制电路的延时导致的电容电压过充对输出频率产生的影响,显著地提高了张弛振荡器的频率-控制电路的线性度,传输门选择信号产生电路通过控制传输门为比较器提供起始参考电平,在新的参考电平生成后,将其传送到比较器的反相端,而将初始参考电平与比较器反相端隔离。Aiming at the shortcomings of the current-controlled relaxation oscillator with dual timing capacitors, Figure 6 shows a high-linearity relaxation oscillator with reference level self-regulation, including oscillation circuit, reference level self-regulation circuit and transmission gate selection signal generation circuit. By detecting the voltage peak value of the charging and discharging capacitor in the oscillation circuit, the overcharge of the capacitor voltage caused by the delay of the control circuit is obtained, so that the reference level of the comparator in the oscillation circuit is reduced by the corresponding amount as a new reference level In order to make the oscillation amplitude of the charge and discharge capacitor just the theoretical value, when the new reference level is greater than zero, the relaxation oscillator eliminates the effect of the overcharge of the capacitor voltage on the output frequency caused by the delay of the charge and discharge capacitor due to the delay of the control circuit. Significantly improves the linearity of the frequency-control circuit of the relaxation oscillator, the transmission gate selection signal generation circuit provides a starting reference level for the comparator by controlling the transmission gate, and after a new reference level is generated, it is transmitted to the comparator The inverting terminal of the comparator is isolated, and the initial reference level is isolated from the inverting terminal of the comparator.

参考电平自调节高线性度张弛振荡器的工作过程如下:The working process of the reference level self-adjusting high linearity relaxation oscillator is as follows:

S1)设刚开始RS触发器的输出端Q为低电平,输出端Q为高电平,控制开关S01打开、控制开关S02关断,电流I流向充放电电容C1,控制开关S03关断、控制开关S04打开,充放电电容C2放电到地,当充放电电容C1上的电位上升到超过第一比较器COMP5的起始参考电平Vref时,第一比较器COMP5输出高电平,RS触发器处于置位状态,输出端Q输出高电平,输出端Q为低电平,同时充放电电容C1上的波形峰值Vpeak通过峰值检测与保持电路检测出来并保持住,之后通过减法器电路与两倍的起始参考电平2Vref相减,得到2Vref-Vpeak,并传送到第二传输门TG2的输入端。电路刚开启时,传输门选择信号产生电路中的Vφ为低电平,

Figure BDA0001317742640000041
为高电平,此时第一传输门TG1开启,起始参考电平Vref传送到振荡电路中的第一比较器COMP5和第二比较器COMP6的反相端,当电路开启之后,传输门选择信号产生电路中PMOS管M7、M8给电容C3充完电后,Vφ为高电平,
Figure BDA0001317742640000042
为低电平,此时第一传输门TG1截止,第二传输门TG2开启,信号2Vref-Vpeak通过第二传输门TG2传送到第一比较器COMP5和第二比较器COMP6的反相端作为新的参考电平;S1) Assume that the output terminal Q of the RS flip-flop at the beginning is low level, the output terminal Q is high level, the control switch S01 is turned on, the control switch S02 is turned off, the current I flows to the charging and discharging capacitor C1, the control switch S03 is turned off, and the control switch S02 is turned off. The control switch S04 is turned on, and the charge and discharge capacitor C2 is discharged to the ground. When the potential on the charge and discharge capacitor C1 rises to exceed the initial reference level Vref of the first comparator COMP5, the first comparator COMP5 outputs a high level, and RS The flip-flop is in the set state, the output terminal Q outputs a high level, and the output terminal Q is a low level. At the same time, the waveform peak V peak on the charging and discharging capacitor C1 is detected and maintained by the peak detection and hold circuit, and then passed through the subtractor. The circuit subtracts twice the starting reference level 2V ref to obtain 2V ref -V peak , which is sent to the input of the second transmission gate TG2. When the circuit is just turned on, V φ in the transmission gate selection signal generation circuit is low level,
Figure BDA0001317742640000041
It is a high level, at this time the first transmission gate TG1 is turned on, and the initial reference level Vref is transmitted to the inverting terminals of the first comparator COMP5 and the second comparator COMP6 in the oscillator circuit. When the circuit is turned on, the transmission gate After the PMOS transistors M7 and M8 in the selection signal generation circuit are charged to the capacitor C3, V φ is a high level,
Figure BDA0001317742640000042
At this time, the first transmission gate TG1 is turned off, the second transmission gate TG2 is turned on, and the signal 2V ref -V peak is transmitted to the inverting terminals of the first comparator COMP5 and the second comparator COMP6 through the second transmission gate TG2 as the new reference level;

S2)RS触发器的输出端Q输出高电平,输出端Q为低电平,充电控制开关S01关断、控制开关S02打开,充放电电容C1放电到地,控制开关S03打开、控制开关S04关断,电流I流向充放电电容C2,当充放电电容C2上的电位上升到超过第二比较器COMP6的参考电平(起始为Vref,传输门选择信号产生电路给电容C3充完电之后为2Vref-Vpeak)时,第二比较器COMP6输出高电平,RS触发器处于复位状态,输出端Q输出低电平,输出端Q为高电平;S2) The output terminal Q of the RS flip-flop outputs a high level, the output terminal Q is a low level, the charging control switch S01 is turned off, the control switch S02 is turned on, the charging and discharging capacitor C1 is discharged to the ground, the control switch S03 is turned on, and the control switch S04 Turn off, the current I flows to the charge and discharge capacitor C2, when the potential on the charge and discharge capacitor C2 rises to exceed the reference level of the second comparator COMP6 (starting at V ref , the transmission gate selection signal generation circuit charges the capacitor C3 When it is 2V ref -V peak ), the second comparator COMP6 outputs a high level, the RS flip-flop is in a reset state, the output terminal Q outputs a low level, and the output terminal Q is a high level;

S3)RS触发器的输出端Q为低电平,输出端Q为高电平,返回到初始状态S1),然后依次循环。S3) The output terminal Q of the RS flip-flop is at a low level, and the output terminal Q is at a high level, returning to the initial state S1), and then cycling in turn.

由上面的工作过程可知,张弛振荡器中的充放电电容的幅值,理论上为Vref,由于控制电路的延时,导致充放电电容C1、C2上的电压过充,而电压过充则会使振荡器的周期延长,频率降低,因此,为了消除过充的影响,通过增加参考电平自调节电路来降低比较器的参考电平,使充放电电容上的电压幅度刚好为理论值Vref,从而使得振荡器的输出频率刚好是理论设计值,提高频率-控制电流的线性度。为了使充放电电容上的电压幅度刚好为理论值Vref,我们通峰值检测和保持电路来检测充放电电容C1上的峰值Vpeak,之后求出充放电电容C1上电压的过充量Vpeak-Vref,为了使电容C1上的充电幅度刚好为理论值Vref,我们将比较器的参考电平减去过充量作为新的参考电平,即Vref-(Vpeak-Vref)=2Vref-Vpeak,得到信号2Vref-Vpeak的减法过程由减法器来实现。由于控制电路的延时是固定,而选定了一个充电控制电流I之后,充放电电容上的过充电压是固定,因此,将比较器的参考电平减小一个过充量作为新的参考电平,从而使充放电电容上的电压幅度刚好是理论设计值的方法是可行的。因此,本发明提供的在参考电平2Vref-Vpeak大于0时,消除了控制电路的延时对张弛振荡器的输出频率产生的影响,显著地提高了振荡器的频率-控制电流的线性度,最大化了张弛振荡器的频率。加入参考电平自动调节电路前和加入参考电平自动调节电路后,电容C1上的波形变化如图7所示,张弛振荡器中的充放电电容的幅值,理论上为Vref,由于控制电路的延时,导致充放电电容C1、C2上的电压过充,而电压过充则会使振荡器的周期延长,频率降低,消除了电容电压过充的影响。It can be seen from the above working process that the amplitude of the charge and discharge capacitors in the relaxation oscillator is theoretically V ref . Due to the delay of the control circuit, the voltages on the charge and discharge capacitors C1 and C2 are overcharged, and the voltage is overcharged. It will prolong the period of the oscillator and reduce the frequency. Therefore, in order to eliminate the influence of overcharge, the reference level of the comparator is reduced by adding a reference level self-adjusting circuit, so that the voltage amplitude on the charging and discharging capacitor is just the theoretical value V ref , so that the output frequency of the oscillator is just the theoretical design value, and the linearity of the frequency-control current is improved. In order to make the voltage amplitude on the charging and discharging capacitor just the theoretical value V ref , we use the peak detection and holding circuit to detect the peak value V peak on the charging and discharging capacitor C1 , and then obtain the overcharge V peak of the voltage on the charging and discharging capacitor C1 -V ref , in order to make the charging amplitude on the capacitor C1 just the theoretical value V ref , we subtract the overcharge from the reference level of the comparator as a new reference level, namely V ref -(V peak -V ref ) =2V ref -V peak , the subtraction process of obtaining the signal 2V ref -V peak is realized by a subtractor. Since the delay time of the control circuit is fixed, and after a charging control current I is selected, the overcharge voltage on the charging and discharging capacitor is fixed. Therefore, the reference level of the comparator is reduced by an overcharge amount as a new reference. It is feasible to make the voltage amplitude on the charging and discharging capacitor just the theoretical design value. Therefore, when the reference level 2V ref -V peak is greater than 0, the influence of the delay of the control circuit on the output frequency of the relaxation oscillator is eliminated, and the linearity of the frequency of the oscillator and the control current is significantly improved. degrees, maximizing the frequency of the relaxation oscillator. Before adding the reference level automatic adjustment circuit and after adding the reference level automatic adjustment circuit, the waveform change on the capacitor C1 is shown in Figure 7. The amplitude of the charge and discharge capacitor in the relaxation oscillator is theoretically V ref , due to the control The delay of the circuit causes the voltage on the charging and discharging capacitors C1 and C2 to be overcharged, and the overcharge of the voltage will prolong the period of the oscillator and reduce the frequency, which eliminates the influence of the overcharge of the capacitor voltage.

虽然,带有参考电平自调节高线性度张弛振荡器通过参考电平自调节电路减小了传输延时,但这里需要注意的是控制电路的延时会随着温度、失调以及电源电压的变化而变化,外界环境的变化,将会使得充放电电容C1和C2上的峰值电压Vpeak发生变化,上述方法的高精度张弛振荡器的效果变差,因为这里参考电平自调节减小的是一个某一特定条件下的定值传输延时。Although the high linearity relaxation oscillator with reference level self-regulation reduces the propagation delay through the reference level self-regulation circuit, it should be noted here that the delay of the control circuit will vary with temperature, offset and supply voltage. The change of the external environment will cause the peak voltage V peak on the charge and discharge capacitors C1 and C2 to change, and the effect of the high-precision relaxation oscillator of the above method will become worse, because the reference level self-adjustment here reduces the is a fixed value propagation delay under a certain condition.

针对带有双定时电容的电流控制张弛振荡器的不足,图8给出了带有误差延时检测高线性度的张弛振荡器,包括振荡电路、延时误差检测电路和调制电流产生电路,延时误差检测电路用于检测振荡电路中充放电电容的峰值电压,并根据峰值电压产生延时误差消除信号,使振荡器振荡在预设的频率上,调制电流产生电路根据充放电电容上的峰值电压,产生相应的附加控制电流,提高充放电电容的充电速率,消除振荡电路延时的影响,提高控制电流—频率的线性度。Aiming at the shortcomings of the current-controlled relaxation oscillator with dual timing capacitors, Figure 8 shows a relaxation oscillator with high linearity of error delay detection, including an oscillation circuit, a delay error detection circuit and a modulation current generation circuit. The time error detection circuit is used to detect the peak voltage of the charging and discharging capacitor in the oscillation circuit, and generate a delay error elimination signal according to the peak voltage, so that the oscillator oscillates at a preset frequency, and the modulation current generating circuit is based on the peak value of the charging and discharging capacitor. voltage, generate a corresponding additional control current, improve the charging rate of the charging and discharging capacitor, eliminate the influence of the delay of the oscillation circuit, and improve the linearity of the control current-frequency.

误差延时检测高线性度的张弛振荡器的工作过程如下:The working process of the relaxation oscillator with high linearity for error delay detection is as follows:

如图8,设初始状态时,RS触发器的输出端Q为低电平,输出端Q为高电平,控制开关S1打开、控制开关S2关断,控制电流流向充放电电容C1,控制开关S3关断、控制开关S4打开,充放电电容C2放电到地,理论上,当充放电电容C1上的电位上升到超过参考电平Vref时,比较器COMP7输出高电平,RS触发器处于置位状态,输出端Q输出高电平,输出端Q为低电平,控制开关S1关断、控制开关S2打开,充放电电容C1放电到地,控制开关S3打开、控制开关S4关断,控制电流流向充放电电容C2,当充放电电容C2的电位上升到超过参考电平Vref时,RS触发器的输出端Q为低电平,输出端Q为高电平,依次循环,产生振荡波形,但是实际上由于振荡电路延时的作用,充放电电容C1和C2的电压峰值会大于Vref,导致控制电流—频率的非线性,本发明采用延时误差检测电路中的峰值检测与保持电路检测充放电电容C1和C2上的峰值电压,并将此峰值信号作为调制电流产生电路的控制信号,电路延时越大,峰值电压Vpeak也会越大,使得调制电流产生电路的输出电流也相应增加,充放电电容C1和C2的充电速率上升,当调制电流达到预设的值后,振荡器的输出频率便为预设的频率,消除了电路延时的影响。As shown in Figure 8, in the initial state, the output terminal Q of the RS flip-flop is low level, the output terminal Q is high level, the control switch S1 is turned on, the control switch S2 is turned off, the control current flows to the charge and discharge capacitor C1, and the control switch S3 is turned off, the control switch S4 is turned on, and the charge and discharge capacitor C2 is discharged to the ground. In theory, when the potential on the charge and discharge capacitor C1 rises to exceed the reference level Vref , the comparator COMP7 outputs a high level, and the RS flip-flop is in In the set state, the output terminal Q outputs a high level, the output terminal Q is a low level, the control switch S1 is turned off, the control switch S2 is turned on, the charge and discharge capacitor C1 is discharged to the ground, the control switch S3 is turned on, and the control switch S4 is turned off, The control current flows to the charge and discharge capacitor C2. When the potential of the charge and discharge capacitor C2 rises to exceed the reference level V ref , the output terminal Q of the RS flip-flop is at a low level, and the output terminal Q is at a high level. However, in fact, due to the delay of the oscillation circuit, the voltage peaks of the charging and discharging capacitors C1 and C2 will be greater than V ref , resulting in the nonlinearity of the control current-frequency. The present invention adopts the peak detection and hold in the delay error detection circuit The circuit detects the peak voltage on the charging and discharging capacitors C1 and C2, and uses this peak signal as the control signal of the modulation current generation circuit. The greater the circuit delay, the greater the peak voltage V peak , which makes the output current of the modulation current generation circuit It also increases accordingly, and the charging rate of the charging and discharging capacitors C1 and C2 increases. When the modulation current reaches the preset value, the output frequency of the oscillator is the preset frequency, which eliminates the influence of circuit delay.

虽然,带有误差延时检测的高线性度张弛振荡器减小了传输延时,但由于上述电路需要先检测充放电电容C1和C2上的峰值电压,再将检测到的峰值电压作为调制电流产生电路的控制信号,使调制电流产生电路的输出电流增加,振荡器频率逐渐变大,等到振荡器的频率达到预设值时所需要的时间比较长,即振荡器有很长的启动时间,而且控制电路的延时会随着温度、失调以及电源电压的变化而变化,外界环境的变化,将会使得充放电电容C1和C2上的峰值电压Vpeak0发生变化,如果在振荡器频率达到稳定之前,控制电路的延时因温度、失调以及电源电压的变化而发生改变,振荡器的频率将很难在一定时间内达到稳定的值,这会导致振荡器的功能发生异常,这种问题的存在很大程度上限制了上述张弛振荡器的性能稳定性。Although the high linearity relaxation oscillator with error delay detection reduces the propagation delay, because the above circuit needs to detect the peak voltage on the charging and discharging capacitors C1 and C2 first, and then use the detected peak voltage as the modulation current The control signal of the generation circuit increases the output current of the modulation current generation circuit, and the frequency of the oscillator gradually increases. It takes a long time to wait until the frequency of the oscillator reaches the preset value, that is, the oscillator has a long start-up time. In addition, the delay of the control circuit will change with the temperature, offset and power supply voltage. Changes in the external environment will cause the peak voltage V peak0 on the charge and discharge capacitors C1 and C2 to change. If the oscillator frequency stabilizes Previously, the delay of the control circuit changed due to changes in temperature, offset and power supply voltage, and it was difficult for the frequency of the oscillator to reach a stable value within a certain period of time, which would cause the oscillator to function abnormally. There are significant limitations on the performance stability of the relaxation oscillators described above.

发明内容SUMMARY OF THE INVENTION

本发明针对张弛振荡器在外界环境变化时还能保持很高的精度的问题,提出一种利用电容预充电原理抵消充放电控制电路产生的延时,实现显著提高频率-控制电流线性度的高精度自适应的张弛振荡器,随外界环境变化张弛振荡器仍然能够保持很高的精度。Aiming at the problem that the relaxation oscillator can maintain high accuracy when the external environment changes, the invention proposes a method that uses the principle of capacitor pre-charging to offset the delay generated by the charging and discharging control circuit, so as to achieve a high frequency-control current linearity. Accuracy-adaptive relaxation oscillator, the relaxation oscillator can still maintain high accuracy with changes in the external environment.

为实现上述发明目的,本发明采用如下技术方案:一种高精度自适应的张弛振荡器,其特征在于:以振荡电路为基础,增设两个电容预充电电路,利用电容预充电原理抵消设于振荡电路中的充放电控制电路产生的延时;包括振荡电路、第一电容预充电电路和第二电容预充电电路,电容预充电电路用于给振荡器充放电电容预充电,振荡电路在电容预充电电路预充电电平的基础上进行充放电,电容两次充电产生的误差延时抵消,使振荡器工作在预设的频率上,实现显著提高频率-控制电流线性度;其中:In order to achieve the above purpose of the invention, the present invention adopts the following technical scheme: a high-precision self-adaptive relaxation oscillator, characterized in that: based on the oscillation circuit, two additional capacitor precharge circuits are added, and the capacitor precharge principle is used to offset the The delay generated by the charge and discharge control circuit in the oscillator circuit; including the oscillator circuit, the first capacitor precharge circuit and the second capacitor precharge circuit, the capacitor precharge circuit is used to precharge the oscillator charge and discharge capacitor, and the oscillator circuit is used in the capacitor The precharge circuit charges and discharges on the basis of the precharge level, and the error delay caused by the two charges of the capacitor is cancelled, so that the oscillator works at the preset frequency, and the frequency-control current linearity is significantly improved; among them:

振荡电路包括电流源I0、I1,控制开关S30、S40,充放电电容C10、C20,比较器CMP1、CMP2以及RS触发器RS1和参考电平VX+Vref,其中,比较器CMP1、CMP2和RS触发器RS1构成充放电控制电路;电流源I0的负极和电流源I1的负极均连接电源VDD,电流源I0的正极和电流源I1的正极分别连接控制开关S30的一端和控制开关S40的一端,控制开关S30的另一端连接充放电电容C10的一端和比较器CMP1的同相输入端,充放电电容C10的另一端接地,控制开关S40的另一端连接充放电电容C20的一端和比较器CMP2的同相输入端,充放电电容C20的另一端接地,比较器CMP1的反相输入端与比较器CMP2的反相输入端互连并连接参考电平VX+Vref,比较器CMP1的输出端和比较器CMP2的输出端分别连接RS触发器RS1的置位输入端S和复位输入端R;The oscillation circuit includes current sources I 0 , I 1 , control switches S30 and S40 , charge and discharge capacitors C10 and C20 , comparators CMP1 and CMP2 , RS flip-flop RS1 and reference level V X +V ref , wherein the comparators CMP1, The CMP2 and the RS flip-flop RS1 constitute a charge and discharge control circuit; the negative pole of the current source I 0 and the negative pole of the current source I 1 are both connected to the power supply VDD, and the positive pole of the current source I 0 and the positive pole of the current source I 1 are respectively connected to one end of the control switch S30 and one end of the control switch S40, the other end of the control switch S30 is connected to one end of the charge and discharge capacitor C10 and the non-inverting input end of the comparator CMP1, the other end of the charge and discharge capacitor C10 is grounded, and the other end of the control switch S40 is connected to the charge and discharge capacitor C20. One end and the non-inverting input of the comparator CMP2, the other end of the charge and discharge capacitor C20 is grounded, the inverting input of the comparator CMP1 and the inverting input of the comparator CMP2 are interconnected and connected to the reference level V X +V ref , compare The output end of the device CMP1 and the output end of the comparator CMP2 are respectively connected to the set input end S and the reset input end R of the RS flip-flop RS1;

第一电容预充电电路包括控制开关S10、S50,二输入与门AND1、脉冲产生电路和充放电控制电路,其中,充放电控制电路包括比较器CMP3、CMP4以及RS触发器RS2和参考电平VX、VM,比较器CMP3的反相输入端连接参考电平VX,比较器CMP4的同相输入端连接参考电平VM,比较器CMP3的同相输入端与比较器CMP4的反相输入端互连并与控制开关S50的一端、控制开关S10的一端以及振荡电路中控制开关S30的另一端连接在一起,控制开关S10的另一端连接振荡电路中电流源I0的正极,控制开关S50的另一端接地,控制开关S50的控制端连接脉冲产生电路的输出信号,脉冲产生电路的输入端连接振荡电路中RS触发器RS1的输出端Q1,比较器CMP3的输出端和比较器CMP4的输出端分别连接RS触发器RS2的置位输入端S和复位输入端R,RS触发器RS2的输出端Q2连接二输入与门AND1的一个输入端,二输入与门AND1的另一个输入端连接振荡电路中RS触发器RS1的输出端

Figure BDA0001317742640000071
二输入与门AND1的输出端连接振荡电路中控制开关S30的控制端,RS触发器RS2的输出端
Figure BDA0001317742640000072
连接控制开关S10的控制端;The first capacitor precharge circuit includes control switches S10, S50, two-input AND gate AND1, a pulse generation circuit and a charge and discharge control circuit, wherein the charge and discharge control circuit includes comparators CMP3, CMP4, RS flip-flop RS2 and reference level V X , VM, the inverting input terminal of the comparator CMP3 is connected to the reference level V X , the non-inverting input terminal of the comparator CMP4 is connected to the reference level VM, the non-inverting input terminal of the comparator CMP3 and the inverting input terminal of the comparator CMP4 It is interconnected and connected with one end of the control switch S50, one end of the control switch S10 and the other end of the control switch S30 in the oscillating circuit, the other end of the control switch S10 is connected to the positive pole of the current source I0 in the oscillating circuit, and the The other end is grounded, the control end of the control switch S50 is connected to the output signal of the pulse generation circuit, the input end of the pulse generation circuit is connected to the output end Q1 of the RS flip-flop RS1 in the oscillation circuit, the output end of the comparator CMP3 and the output end of the comparator CMP4 The set input terminal S and reset input terminal R of the RS flip-flop RS2 are respectively connected, the output terminal Q2 of the RS flip-flop RS2 is connected to one input terminal of the two-input AND gate AND1, and the other input terminal of the two-input AND gate AND1 is connected to the oscillator circuit. The output of the RS flip-flop RS1
Figure BDA0001317742640000071
The output end of the two-input AND gate AND1 is connected to the control end of the control switch S30 in the oscillator circuit, and the output end of the RS flip-flop RS2
Figure BDA0001317742640000072
Connect the control terminal of the control switch S10;

第二电容预充电电路与第一电容预充电电路的结构相同,包括控制开关S20、S60,二输入与门AND2、脉冲产生电路和充放电控制电路,其中,充放电控制电路包括比较器CMP5、CMP6以及RS触发器RS3和参考电平VX、VM,比较器CMP5的反相输入端连接参考电平VX,比较器CMP6的同相输入端连接参考电平VM,比较器CMP5的同相输入端与比较器CMP6的反相输入端互连并与控制开关S60的一端、控制开关S20的一端以及振荡电路中控制开关S40的另一端连接在一起,控制开关S20的另一端连接振荡电路中电流源I1的正极,控制开关S60的另一端接地,控制开关S60的控制端连接脉冲产生电路的输出信号,脉冲产生电路的输入端连接振荡电路中RS触发器RS1的输出端

Figure BDA0001317742640000082
比较器CMP5的输出端和比较器CMP6的输出端分别连接RS触发器RS3的置位输入端S和复位输入端R,RS触发器RS3的输出端Q3连接二输入与门AND2的一个输入端,二输入与门AND2的另一个输入端连接振荡电路中RS触发器RS1的输出端Q1,二输入与门AND2的输出端连接振荡电路中控制开关S40的控制端,RS触发器RS3的输出端
Figure BDA0001317742640000081
连接控制开关S20的控制端;The second capacitor precharge circuit has the same structure as the first capacitor precharge circuit, including control switches S20, S60, two-input AND gate AND2, a pulse generation circuit and a charge and discharge control circuit, wherein the charge and discharge control circuit includes comparators CMP5, CMP6 and RS flip-flop RS3 and reference levels V X , VM , the inverting input terminal of the comparator CMP5 is connected to the reference level V X , the non-inverting input terminal of the comparator CMP6 is connected to the reference level VM , and the non-inverting input terminal of the comparator CMP5 is connected to the reference level VM The input terminal is interconnected with the inverting input terminal of the comparator CMP6 and is connected to one end of the control switch S60, one end of the control switch S20 and the other end of the control switch S40 in the oscillation circuit, and the other end of the control switch S20 is connected to the oscillation circuit. The positive pole of the current source I1 , the other end of the control switch S60 is grounded, the control end of the control switch S60 is connected to the output signal of the pulse generating circuit, and the input end of the pulse generating circuit is connected to the output end of the RS flip-flop RS1 in the oscillation circuit
Figure BDA0001317742640000082
The output end of the comparator CMP5 and the output end of the comparator CMP6 are respectively connected to the set input end S and the reset input end R of the RS flip-flop RS3, and the output end Q3 of the RS flip-flop RS3 is connected to an input end of the two-input AND gate AND2, The other input terminal of the two-input AND gate AND2 is connected to the output terminal Q1 of the RS flip-flop RS1 in the oscillator circuit, the output terminal of the two-input AND gate AND2 is connected to the control terminal of the control switch S40 in the oscillator circuit, and the output terminal of the RS flip-flop RS3
Figure BDA0001317742640000081
Connect the control terminal of the control switch S20;

上述电路通过两个电容预充电电路中的充放电控制电路检测充放电电容C10和C20上的电压来控制控制开关S10、S20对充放电电容C10和C20进行预充电,再控制开关S30、S40对充放电电容C10和C20进行充电,通过脉冲产生电路产生的窄脉冲输出,对充放电电容C10和C20进行放电,利用充放电电容C10和C20的两次充电过程中产生的受温度、失调和电源电压因素影响的误差延时相抵消,实现高精度自适应的张弛振荡器。The above circuit detects the voltage on the charge and discharge capacitors C10 and C20 by the charge and discharge control circuit in the two capacitor precharge circuits to control the control switches S10 and S20 to precharge the charge and discharge capacitors C10 and C20, and then control the switches S30 and S40 to The charging and discharging capacitors C10 and C20 are charged, and the narrow pulse output generated by the pulse generating circuit is used to discharge the charging and discharging capacitors C10 and C20. The error delays affected by the voltage factor are cancelled out to realize a relaxation oscillator with high precision and self-adaptation.

所述充放电电容C10和C20的结构与电容值完全相同;比较器CMP1、CMP2、CMP3、CMP4、CMP5和CMP6的结构完全相同;RS触发器RS1、RS2和RS3的结构完全相同;二输入与门AND1和二输入与门AND2的结构完全相同;设置的参考电平门限电压应满足VM≤VX+ΔV≤VX+Vref,其中ΔV为触发器RS1、RS2和RS3在充放电电容C10、C20上产生的电压过冲量。The structures of the charging and discharging capacitors C10 and C20 are exactly the same as the capacitance values; the structures of the comparators CMP1, CMP2, CMP3, CMP4, CMP5 and CMP6 are exactly the same; the structures of the RS flip-flops RS1, RS2 and RS3 are exactly the same; The structure of gate AND1 and gate AND2 is exactly the same; the set reference level threshold voltage should satisfy VM ≤V X +ΔV≤V X +V ref , where ΔV is the charge and discharge capacitors of the flip-flops RS1, RS2 and RS3. The voltage overshoot generated on C10 and C20.

在产生振荡过程中,脉冲产生电路的脉冲宽度不小于充放电电容C10和C20从电平VX+Vref放电到VM的时间,不大于充放电电容C10和C20从电平VX+Vref放电到零电位的时间,避免脉冲宽度过宽导致控制开关S50和控制开关S60在充放电电容C10和C20充电的过程中仍然打开,致使得振荡器工作异常。In the process of generating oscillation, the pulse width of the pulse generating circuit is not less than the time for the charge and discharge capacitors C10 and C20 to discharge from the level V X +V ref to V M , and is not greater than the time for the charge and discharge capacitors C10 and C20 to discharge from the level V X +V The time for ref to discharge to zero potential avoids that the pulse width is too wide and the control switch S50 and the control switch S60 are still open during the charging process of the charging and discharging capacitors C10 and C20, resulting in abnormal operation of the oscillator.

所述第一、第二两个电容预充电电路中的脉冲产生电路包括PMOS管MP1~MP6,NMOS管MN1~MN6,电容CP和电阻RP,PMOS管MP1~MP6的源极均连接电源VCC,NMOS管MN1~MN3的源极以及NMOS管MN5、MN6的源极和电容CP的一端均接地,PMOS管MP1的栅极与NMOS管MN1的栅极互连并作为脉冲产生电路的输入端,PMOS管MP1的漏极与NMOS管MN1的漏极并与PMOS管MP2的栅极和NMOS管MN2的栅极连接在一起,PMOS管MP2的漏极与NMOS管MN2的漏极互连并连接电阻RP的一端,电阻RP的另一端连接与电容CP的另一端以及PMOS管MP3的栅极和NMOS管MN3的栅极连接在一起,PMOS管MP3的漏极与NMOS管MN3的漏极互连并与PMOS管MP4的栅极和NMOS管MN5的栅极连接在一起,PMOS管MP4的漏极与PMOS管MP5的漏极、NMOS管MN4的漏极以及PMOS管MP6的栅极和NMOS管MN6的栅极连接在一起,PMOS管MP5的栅极与NMOS管MN4的栅极互连并连接PMOS管MP1的栅极与NMOS管MN1的栅极的互连端,NMOS管MN4的源极连接NMOS管MN5的漏极,PMOS管MP6的漏极与NMOS管MN6的漏极互连并作为脉冲产生电路的输出端。The pulse generating circuits in the first and second capacitor precharging circuits include PMOS transistors MP1-MP6, NMOS transistors MN1-MN6, capacitors C P and resistors R P , and the sources of the PMOS transistors MP1-MP6 are all connected to the power supply VCC, the sources of NMOS transistors MN1-MN3, the sources of NMOS transistors MN5 and MN6, and one end of capacitor C P are all grounded. The gate of PMOS transistor MP1 is interconnected with the gate of NMOS transistor MN1 and serves as the input of the pulse generating circuit terminal, the drain of the PMOS transistor MP1 is connected to the drain of the NMOS transistor MN1 and is connected to the gate of the PMOS transistor MP2 and the gate of the NMOS transistor MN2, and the drain of the PMOS transistor MP2 is interconnected with the drain of the NMOS transistor MN2. One end of the resistor R P is connected, the other end of the resistor R P is connected to the other end of the capacitor C P , the gate of the PMOS transistor MP3 and the gate of the NMOS transistor MN3 are connected together, and the drain of the PMOS transistor MP3 is connected to the NMOS transistor MN3. The drain is interconnected and connected to the gate of the PMOS transistor MP4 and the gate of the NMOS transistor MN5, the drain of the PMOS transistor MP4 is connected to the drain of the PMOS transistor MP5, the drain of the NMOS transistor MN4 and the gate of the PMOS transistor MP6 It is connected with the gate of the NMOS transistor MN6, the gate of the PMOS transistor MP5 is interconnected with the gate of the NMOS transistor MN4 and is connected to the interconnection end of the gate of the PMOS transistor MP1 and the gate of the NMOS transistor MN1, and the gate of the NMOS transistor MN4 is connected. The source is connected to the drain of the NMOS transistor MN5, and the drain of the PMOS transistor MP6 is interconnected with the drain of the NMOS transistor MN6 and serves as an output terminal of the pulse generating circuit.

所述比较器CMP1~CMP6的电路结构包括PMOS管MP7~MP9及NMOS管MN7~MN10,PMOS管MP7~MP9的源极均连接电源VCC,PMOS管MP7的栅极与PMOS管MP8的栅极互连并连接PMOS管MP7的漏极和NMOS管MN7的漏极,NMOS管MN7的源极与NMOS管MN8的源极互连并连接NMOS管MN9的漏极,NMOS管MN9的栅极与NMOS管MN10的栅极互连并连接偏置电压VBIAS,NMOS管MN9的源极和NMOS管MN10的源极均接地,NMOS管MN10的漏极与PMOS管MP9的漏极互连并作为比较器的输出端,NMOS管MN8的栅极为比较器的同相输入端,NMOS管MN7的栅极为比较器的反相输入端。The circuit structure of the comparators CMP1-CMP6 includes PMOS transistors MP7-MP9 and NMOS transistors MN7-MN10. The sources of the PMOS transistors MP7-MP9 are connected to the power supply VCC, and the gate of the PMOS transistor MP7 and the gate of the PMOS transistor MP8 are mutually connected. Connect and connect the drain of the PMOS transistor MP7 and the drain of the NMOS transistor MN7. The source of the NMOS transistor MN7 is interconnected with the source of the NMOS transistor MN8 and connected to the drain of the NMOS transistor MN9. The gate of the NMOS transistor MN9 is connected to the NMOS transistor. The gate of MN10 is interconnected and connected to the bias voltage V BIAS , the source of the NMOS transistor MN9 and the source of the NMOS transistor MN10 are both grounded, and the drain of the NMOS transistor MN10 is interconnected with the drain of the PMOS transistor MP9 and serves as a comparator. The output terminal, the gate of the NMOS transistor MN8 is the non-inverting input terminal of the comparator, and the gate of the NMOS transistor MN7 is the inverting input terminal of the comparator.

所述RS触发器RS1~RS3的电路结构包括PMOS管MP10~MP13及NMOS管MN11~MN14,PMOS管MP10的源极和PMOS管MP12的源极均连接源VCC,PMOS管MP10的漏极连接PMOS管MP11的源极,PMOS管MP12的漏极连接PMOS管MP13的源极,NMOS管MN11~MN14的源极均接地,NMOS管MN11的栅极与PMOS管MP10的栅极互连并作为RS触发器的置位输入端S,NMOS管MN14的栅极与PMOS管MP13的栅极互连并作为RS触发器的复位输入端R,NMOS管MN12的栅极与PMOS管MP11的栅极互连并与NMOS管MN14的漏极、NMOS管MN13的漏极以及PMOS管MP13的漏极连接在一起作为RS触发器的作为RS触发器的输出端Q,NMOS管MN12的漏极与PMOS管MP11的漏极互连并与NMOS管MN11的漏极、NMOS管MN13的栅极以及PMOS管MP12的栅极连接在一起作为RS触发器的输出端Q。The circuit structure of the RS flip-flops RS1-RS3 includes PMOS transistors MP10-MP13 and NMOS transistors MN11-MN14, the source of the PMOS transistor MP10 and the source of the PMOS transistor MP12 are connected to the source VCC, and the drain of the PMOS transistor MP10 is connected to the PMOS The source of the tube MP11, the drain of the PMOS tube MP12 is connected to the source of the PMOS tube MP13, the sources of the NMOS tubes MN11-MN14 are all grounded, and the gate of the NMOS tube MN11 is interconnected with the gate of the PMOS tube MP10 and acts as an RS trigger The set input terminal S of the device, the gate of the NMOS transistor MN14 is interconnected with the gate of the PMOS transistor MP13 and serves as the reset input terminal R of the RS flip-flop, and the gate of the NMOS transistor MN12 is interconnected with the gate of the PMOS transistor MP11 and is It is connected with the drain of the NMOS transistor MN14, the drain of the NMOS transistor MN13 and the drain of the PMOS transistor MP13 as the output Q of the RS flip-flop, the drain of the NMOS transistor MN12 and the drain of the PMOS transistor MP11. The electrodes are interconnected and connected with the drain of the NMOS transistor MN11, the gate of the NMOS transistor MN13 and the gate of the PMOS transistor MP12 as the output terminal Q of the RS flip-flop.

与现有技术相比,本发明的优点及有益效果是:Compared with the prior art, the advantages and beneficial effects of the present invention are:

(1)本发明高精度的自适应张弛振荡器通过对充放电电容C10和C20进行预充电,而充电引起的控制电路的延时可以通过两次充电进行抵消,使得振荡器频率具有很高的精度和频率-控制电流线性度。(1) The high-precision adaptive relaxation oscillator of the present invention pre-charges the charging and discharging capacitors C10 and C20, and the delay of the control circuit caused by charging can be offset by two charging, so that the oscillator frequency has a very high frequency. Accuracy and Frequency - Controls current linearity.

(2)本发明高精度的自适应张弛振荡器在电路外界环境变化下振荡器具有自适应性,因为控制电路的延时会随着温度、失调以及电源电压的变化而变化,本发明不是直接通过提升比较器或者RS触发器的速度来减小延时,而是通过两次充电过程抵消控制电路产生的延时以及随外界环境变化的失调的影响,显著地提高了振荡器的精度,并且具有很强的温度稳定性和电源电压抑制即自适应性。(2) The high-precision adaptive relaxation oscillator of the present invention has self-adaptability under the change of the external environment of the circuit, because the delay of the control circuit will change with the change of temperature, offset and power supply voltage, the present invention is not directly By increasing the speed of the comparator or the RS flip-flop to reduce the delay, the delay generated by the control circuit and the influence of the offset with the change of the external environment are offset by the two charging processes, which significantly improves the accuracy of the oscillator, and It has strong temperature stability and power supply voltage suppression that is adaptive.

(3)本发明高精度的自适应张弛振荡器的启动时间很短,一个振荡周期后即可输出稳定的振荡器频率信号。(3) The high-precision adaptive relaxation oscillator of the present invention has a very short start-up time, and can output a stable oscillator frequency signal after one oscillation period.

(4)本发明高精度的自适应张弛振荡器的振幅大,可以从接近于地的电位到接近电源电压,从而减小抖动对振荡器周期的影响。(4) The high-precision adaptive relaxation oscillator of the present invention has a large amplitude, which can be from a potential close to the ground to a power supply voltage, thereby reducing the influence of jitter on the oscillator cycle.

附图说明Description of drawings

图1是现有技术中的基于单个接地定时电容的电流控制张弛振荡器;1 is a current-controlled relaxation oscillator based on a single grounded timing capacitor in the prior art;

图2是图1中充放电电容C上的电压波形;Fig. 2 is the voltage waveform on the charging and discharging capacitor C in Fig. 1;

图3是图1张弛振荡器中频率-控制电流关系中的传输延时的影响的曲线图;FIG. 3 is a graph of the effect of propagation delay in the frequency-control current relationship in the relaxation oscillator of FIG. 1;

图4是现有技术中的带有双接地定时电容的电流控制的张弛振荡器;4 is a current-controlled relaxation oscillator with dual ground timing capacitors in the prior art;

图5是图4中充放电电容C1、C2及振荡器输出Q和

Figure BDA0001317742640000101
的波形;Figure 5 shows the charging and discharging capacitors C1, C2 and the oscillator output Q and
Figure BDA0001317742640000101
waveform;

图6是现有技术中的带有参考电平自动调节的张弛振荡器;Fig. 6 is the relaxation oscillator with reference level automatic adjustment in the prior art;

图7是图6中充放电电容C1和振荡器输出Q的波形;Fig. 7 is the waveform of charging and discharging capacitor C1 and oscillator output Q in Fig. 6;

图8是现有技术中的带有误差延时检测电路的张弛振荡器;8 is a relaxation oscillator with an error delay detection circuit in the prior art;

图9是图6中充放电电容C1和振荡器输出Q的波形;Fig. 9 is the waveform of charging and discharging capacitor C1 and oscillator output Q in Fig. 6;

图10是本发明高精度的自适应张弛振荡器的基本结构框图;Fig. 10 is the basic structure block diagram of the high-precision adaptive relaxation oscillator of the present invention;

图11是本发明高精度的自适应张弛振荡器上电后,充放电电容C10上的波形变化;Fig. 11 is the waveform change on the charging and discharging capacitor C10 after the high-precision adaptive relaxation oscillator of the present invention is powered on;

图12是本发明高精度的自适应张弛振荡器的工作流程图;Fig. 12 is the working flow chart of the high-precision adaptive relaxation oscillator of the present invention;

图13是本发明高精度的自适应张弛振荡器控制开关S10、S20、S30、S40、充放电电容C10、C20和振荡器输出Q的波形;13 is the waveform of the high-precision adaptive relaxation oscillator control switches S10, S20, S30, S40, charge and discharge capacitors C10, C20 and the oscillator output Q of the present invention;

图14是本发明高精度的自适应张弛振荡器的一种实施电路图;14 is a circuit diagram of an implementation of the high-precision adaptive relaxation oscillator of the present invention;

图15是本发明高精度的自适应张弛振荡器采用的脉冲产生电路的实施电路图;Fig. 15 is the implementation circuit diagram of the pulse generation circuit adopted by the high-precision adaptive relaxation oscillator of the present invention;

图16是本发明高精度的自适应张弛振荡器采用的比较器的实施电路;Fig. 16 is the implementation circuit of the comparator adopted by the high-precision adaptive relaxation oscillator of the present invention;

图17是本发明高精度的自适应张弛振荡器采用的RS触发器的实施电路。FIG. 17 is the implementation circuit of the RS flip-flop adopted by the high-precision adaptive relaxation oscillator of the present invention.

具体实施方式Detailed ways

以下结合附图对本发明的原理和特征进行描述,所举的实例只用于解释本发明,并非用于限定本发明的范围。The principles and features of the present invention will be described below with reference to the accompanying drawings, and the examples are only used to explain the present invention, but not to limit the scope of the present invention.

参照图10和图14,本发明在振荡电路1的基础上增设了能够给充放电电容进行预充电的第一电容预充电电路2和第二电容预充电电路3。振荡电路1、第一电容预充电电路2和第二电容预充电电路3中均包括结构相同的充放电控制电路。Referring to FIG. 10 and FIG. 14 , the present invention adds a first capacitor precharge circuit 2 and a second capacitor precharge circuit 3 that can precharge the charge and discharge capacitors on the basis of the oscillator circuit 1 . The oscillator circuit 1 , the first capacitor precharge circuit 2 and the second capacitor precharge circuit 3 all include charge and discharge control circuits with the same structure.

振荡电路1包括电流源I0、I1,控制开关S30、S40,充放电电容C10、C20,比较器CMP1、CMP2及RS触发器RS1和参考电平VX+Vref,其中比较器CMP1、CMP2及RS触发器RS1构成充放电控制电路。电流源I0的负极接电源VDD,正极接控制开关S10、S30,控制开关S30的另一端接充放电电容C10的一端和比较器CMP1的同相输入端,充放电电容C10的另一端接地,电流源I1的负极接电源VDD,正极接控制开关S20、S40,控制开关S40的另一端接充放电电容C20的一端和比较器CMP2的同相输入端,充放电电容C20的另一端接地,比较器CMP1、CMP2的反相输入端互连并接参考电平VX+Vref,CMP1的输出端接RS触发器RS1的置位输入端S,CMP2的输出端接RS触发器RS1的复位输入端R。The oscillator circuit 1 includes current sources I 0 and I 1 , control switches S30 and S40 , charge and discharge capacitors C10 and C20 , comparators CMP1 and CMP2 , RS flip-flop RS1 and reference level V X +V ref , wherein the comparators CMP1, CMP2 and RS flip-flop RS1 constitute a charge and discharge control circuit. The negative electrode of the current source I 0 is connected to the power supply VDD, the positive electrode is connected to the control switches S10 and S30, the other end of the control switch S30 is connected to one end of the charge and discharge capacitor C10 and the non-inverting input end of the comparator CMP1, the other end of the charge and discharge capacitor C10 is grounded, and the current The negative pole of the source I 1 is connected to the power supply VDD, the positive pole is connected to the control switches S20 and S40, the other end of the control switch S40 is connected to one end of the charge and discharge capacitor C20 and the non-inverting input end of the comparator CMP2, the other end of the charge and discharge capacitor C20 is grounded, the comparator The inverting input terminals of CMP1 and CMP2 are interconnected and connected to the reference level V X +V ref , the output terminal of CMP1 is connected to the set input terminal S of the RS flip-flop RS1, and the output terminal of CMP2 is connected to the reset input terminal of the RS flip-flop RS1. R.

第一电容预充电电路2包括控制开关S10、S50,脉冲产生电路,二输入与门AND1以及比较器CMP3、CMP4及RS触发器RS2和参考电平VX、VM构成的充放电控制电路。控制开关S10的一端接电流源I0的正极,控制开关S10的另一端接充放电电容C10的一端、控制开关S50的一端、比较器CMP3的同相输入端和比较器CMP4的反相输入端,控制开关S50的另一端接地,比较器CMP3的反相输入端接参考电平VX,比较器CMP4的同相输入端接参考电平VM,比较器CMP3的输出端接RS触发器RS2的置位输入端S,比较器CMP4的输出端接RS触发器RS2的复位输入端R,RS触发器RS2的输出

Figure BDA0001317742640000111
高电平可直接使控制开关S10闭合,输出Q2和RS触发器RS1的
Figure BDA0001317742640000112
分别接到二输入与门AND1的两个输入端,二输入与门AND1的输出端高电平可直接使控制开关S30闭合。The first capacitor precharging circuit 2 includes control switches S10, S50, a pulse generating circuit, a two-input AND gate AND1, a charging and discharging control circuit composed of comparators CMP3, CMP4 , RS flip-flop RS2 and reference levels V X , VM. One end of the control switch S10 is connected to the positive pole of the current source I0 , the other end of the control switch S10 is connected to one end of the charge and discharge capacitor C10, one end of the control switch S50, the non-inverting input end of the comparator CMP3 and the inverting input end of the comparator CMP4, The other end of the control switch S50 is grounded, the inverting input end of the comparator CMP3 is connected to the reference level V X , the non-inverting input end of the comparator CMP4 is connected to the reference level VM , and the output end of the comparator CMP3 is connected to the setting of the RS flip-flop RS2. Bit input S, the output of the comparator CMP4 is connected to the reset input R of the RS flip-flop RS2, and the output of the RS flip-flop RS2
Figure BDA0001317742640000111
The high level can directly close the control switch S10, output Q2 and RS flip-flop RS1
Figure BDA0001317742640000112
They are respectively connected to the two input terminals of the two-input AND gate AND1, and the high level of the output terminal of the two-input AND gate AND1 can directly close the control switch S30.

第二电容预充电电路3与第一电容预充电电路2结构相同,包括控制开关S20、S60,脉冲产生电路,二输入与门AND2以及比较器CMP5、CMP6及RS触发器RS3和参考电平VX、VM构成的电容预充电控制电路。控制开关S20的一端接电流源I1的正极,控制开关S20的另一端接充放电电容C20的一端、控制开关S60的一端、比较器CMP5的同相输入端和比较器CMP6的反相输入端,控制开关S60的另一端接地,比较器CMP5的反相输入端接参考电平VX,比较器CMP6的同相输入端接参考电平VM,比较器CMP5的输出端接RS触发器RS3的置位输入端S,比较器CMP6的输出端接RS触发器RS3的复位输入端R,RS触发器RS3的输出

Figure BDA0001317742640000121
高电平可直接使控制开关S20闭合,输出Q3和RS触发器RS1的Q1分别接到二输入与门AND2的两个输入端,二输入与门AND2的输出端高电平可直接使控制开关S40闭合。The second capacitor precharge circuit 3 has the same structure as the first capacitor precharge circuit 2, including control switches S20, S60, a pulse generating circuit, a two-input AND gate AND2, comparators CMP5, CMP6, RS flip-flops RS3, and a reference level V The capacitor precharge control circuit composed of X and VM. One end of the control switch S20 is connected to the positive pole of the current source I1 , the other end of the control switch S20 is connected to one end of the charge and discharge capacitor C20, one end of the control switch S60, the non-inverting input end of the comparator CMP5 and the inverting input end of the comparator CMP6, The other end of the control switch S60 is grounded, the inverting input terminal of the comparator CMP5 is connected to the reference level V X , the non-inverting input terminal of the comparator CMP6 is connected to the reference level V M , and the output terminal of the comparator CMP5 is connected to the setting of the RS flip-flop RS3. Bit input S, the output of the comparator CMP6 is connected to the reset input R of the RS flip-flop RS3, and the output of the RS flip-flop RS3
Figure BDA0001317742640000121
The high level can directly close the control switch S20, the output Q3 and the Q1 of the RS flip-flop RS1 are respectively connected to the two input terminals of the two-input AND gate AND2, and the high level of the output terminal of the two-input AND gate AND2 can directly make the control switch S40 is closed.

上述充放电电容C10和充放电电容C20的结构和电容值完全相同,电流源I0和电流源I1的结构和电流值完全相同,比较器CMP1、CMP2、CMP3、CMP4、CMP5和CMP6电路结构完全相同的,RS触发器RS1、RS2和RS3完全相同的,二输入与门AND1、AND2电路结构完全相同,两个电容预充电电路中的脉冲产生电路结构相同。The structure and capacitance value of the above-mentioned charge and discharge capacitor C10 and charge and discharge capacitor C20 are exactly the same, the structure and current value of the current source I 0 and the current source I 1 are exactly the same, the circuit structure of the comparators CMP1, CMP2, CMP3, CMP4, CMP5 and CMP6 The same, the RS flip-flops RS1, RS2 and RS3 are exactly the same, the two input AND gates AND1, AND2 have the same circuit structure, and the pulse generating circuits in the two capacitor precharge circuits are the same.

如图10,设初始状态时,RS触发器RS1的输出端Q1为低电平,电容预充电控制电路控制控制开关S10打开,S50关断,电流源I0给充放电电容C10充电,同时电容预充电控制电路控制控制开关S20打开,S60关断,电流源I1给充放电电容C20充电,当充放电电容C10上的电位上升到超过参考电平VX时,控制开关S10关断,控制开关S30打开,电流源I0继续给充放电电容C10充电,同时控制开关S20关断,控制开关S60关断,电流源I1停止给充放电电容C20充电,充放电电容两端电压保持不变,当充放电电容C10上的电位上升到超过参考电平VX+Vref时,控制开关S10和控制开关S30关断,控制开关S50在脉冲产生电路产生的一个脉冲下打开,充放电电容C10开始放电,同时控制开关S40打开,控制开关S60关断,电流源I1继续给充放电电容C20充电,在充放电电容C20上的电位上升到超过参考电平VX+Vref的过程中,充放电电容C10上的电位降到低于参考电平VM时,控制开关S10打开,控制开关S50在脉冲宽度之后关断,电流源I0给充放电电容C10充电,当充放电电容C10上的电位上升到超过参考电平VX时,控制开关S10关断,充放电电容C10上的电位保持不变,等到充放电电容C20上的电位上升到超过参考电平VX+Vref时,控制开关S30打开,电流源I0给充放电电容C10充电,同时控制开关S60在脉冲产生电路产生的一个脉冲下打开,充放电电容C20开始放电,如此循环反复,产生振荡波形,以上工作过程如图12所示。As shown in Figure 10, in the initial state, the output terminal Q1 of the RS flip-flop RS1 is at a low level, the capacitor precharge control circuit controls the control switch S10 to turn on, S50 turns off, and the current source I 0 charges the charge and discharge capacitor C10, while the capacitor The precharge control circuit controls the control switch S20 to be turned on, and the control switch S60 to be turned off, and the current source I1 charges the charge and discharge capacitor C20. When the potential on the charge and discharge capacitor C10 rises to exceed the reference level V X , the control switch S10 is turned off, and the control The switch S30 is turned on, the current source I 0 continues to charge the charge and discharge capacitor C10, while the control switch S20 is turned off, the control switch S60 is turned off, the current source I 1 stops charging the charge and discharge capacitor C20, and the voltage across the charge and discharge capacitor remains unchanged. , when the potential on the charge and discharge capacitor C10 rises to exceed the reference level V X +V ref , the control switch S10 and the control switch S30 are turned off, the control switch S50 is turned on under a pulse generated by the pulse generating circuit, and the charge and discharge capacitor C10 Discharge begins, and at the same time, the control switch S40 is turned on, the control switch S60 is turned off, and the current source I 1 continues to charge the charge and discharge capacitor C20. In the process of the potential on the charge and discharge capacitor C20 rising to exceed the reference level V X +V ref , When the potential on the charge and discharge capacitor C10 drops below the reference level VM , the control switch S10 is turned on, the control switch S50 is turned off after the pulse width, and the current source I 0 charges the charge and discharge capacitor C10. When the potential of the charging and discharging capacitor C10 rises to exceed the reference level V X , the control switch S10 is turned off, and the potential on the charging and discharging capacitor C10 remains unchanged. When the potential on the charging and discharging capacitor C20 rises to exceed the reference level V X +V ref , The control switch S30 is turned on, the current source I 0 charges the charging and discharging capacitor C10, and at the same time, the control switch S60 is turned on under a pulse generated by the pulse generating circuit, and the charging and discharging capacitor C20 begins to discharge. Figure 12.

本发明在加上充放电电容预充电电路后,充放电电容C10上的波形变化如图11所示。产生振荡过程中,脉冲产生电路的脉冲宽度的设计应当满足:脉冲宽度不小于充放电电容C10和C20从电平VX+Vref放电到VM的时间,不大于充放电电容C10和C20从电平VX+Vref放电到零电位的时间,防止脉冲宽度过宽导致控制开关S50和控制开关S60在充放电电容C10和C20充电的过程中仍然打开,致使振荡器工作异常。In the present invention, after adding the charging and discharging capacitor pre-charging circuit, the waveform change on the charging and discharging capacitor C10 is shown in FIG. 11 . In the process of generating oscillation, the pulse width of the pulse generating circuit should be designed to satisfy: the pulse width is not less than the time for the charging and discharging capacitors C10 and C20 to discharge from the level V X +V ref to V M , and is not greater than the charging and discharging capacitors C10 and C20 from The time when the level V X +V ref is discharged to zero potential prevents the control switch S50 and the control switch S60 from being turned on during the charging process of the charging and discharging capacitors C10 and C20 due to the excessively wide pulse width, resulting in abnormal operation of the oscillator.

如图13中标注的放电时间即为脉冲产生电路的脉冲宽度。张弛振荡器的周期为充放电电容C10和C20从预充电到超过参考电平VX时电位开始充电到超过参考电平VX+Vref的充电时间的两倍,充放电电容C10和C20充电到参考电平VX或者VX+Vref后由于控制电路的延时产生过充在同一环境下抵消,同时抵消的包括电路的失调影响等,从而保证了张弛振荡器具有很高的精度和频率-控制电流线性度。The discharge time marked in Figure 13 is the pulse width of the pulse generating circuit. The cycle of the relaxation oscillator is twice the charging time of the charging and discharging capacitors C10 and C20 from pre-charging to exceeding the reference level V X when the potential starts to charge to exceeding the reference level V X +V ref , and the charging and discharging capacitors C10 and C20 are charged. After reaching the reference level V X or V X +V ref , the overcharge caused by the delay of the control circuit is offset in the same environment, and the offset effect of the circuit is also offset, thus ensuring the relaxation oscillator has high precision and accuracy. Frequency - Controls current linearity.

如图11(a)所示,当参考电平为Vref,加入电容预充电电路前,在振荡器开始上电时,由于电路延时td的影响(td与温度T、失调OS以及电源电压VDD等都有关,可以表示为td(T,OS,VDD)),电容C10的电压在上升的过程中发生过充并上升至初始峰值电压Vpeak0,振荡器的输出(RS触发器输出端Q的信号)频率大于预设值;加入电容预充电电路后,充放电电容的两次充电过程都会因为电路延时产生过充,因为充放电电容C10和C20的结构和电容值完全相同,电流源I0和I1结构和电流值完全相同,则在振荡器的处在任意环境中,由于电路延时产生的过充以及失调的影响都可以抵消,张弛振荡器具有很高的精度和频率-控制电流线性度以及不随外界环境及失调的影响的自适应性。As shown in Figure 11(a), when the reference level is V ref , before adding the capacitor precharge circuit, when the oscillator starts to power on, due to the influence of the circuit delay td (td and temperature T, offset OS and power supply voltage) It is related to VDD, etc., which can be expressed as td(T, OS, VDD)), the voltage of capacitor C10 is overcharged during the rising process and rises to the initial peak voltage V peak0 , the output of the oscillator (RS flip-flop output Q signal) frequency is greater than the preset value; after adding the capacitor pre-charging circuit, the two charging processes of the charging and discharging capacitor will cause overcharge due to the circuit delay, because the structure and capacitance value of the charging and discharging capacitors C10 and C20 are exactly the same, the current source The structures and current values of I 0 and I 1 are exactly the same, then in any environment where the oscillator is located, the effects of overcharge and offset due to circuit delay can be canceled out. The relaxation oscillator has high precision and frequency- Controls current linearity and adaptability not affected by external environment and offsets.

图14的工作过程如下:The working process of Figure 14 is as follows:

1)假设RS触发器输出端Q1、Q2和Q3的初始状态都为低电平,电容C10和C20的大小相等都为C且初始电压都为0,电流源I0和I1大小都为IREF,比较器的门限电压VX+Vref>VX>VM1) Assume that the initial states of the RS flip-flop output terminals Q1, Q2 and Q3 are all low levels, the capacitors C10 and C20 are equal in size and both are C and the initial voltage is 0, and the current sources I 0 and I 1 are both I REF , the threshold voltage of the comparator V X +V ref >V X >V M ;

2)开始时开关S10和S20闭合,S30、S40、S50和S60断开,电流源I0和电流源I1分别给电容C10和C20充电,在电容C10和C20充电到VX时,Q2和Q3的输出电平发生跳变输出高电平,充电时间2) At the beginning, switches S10 and S20 are closed, S30, S40, S50 and S60 are open, and the current source I 0 and the current source I 1 charge the capacitors C10 and C20 respectively. When the capacitors C10 and C20 are charged to V X , Q2 and The output level of Q3 jumps to output a high level, and the charging time

Figure BDA0001317742640000131
Figure BDA0001317742640000131

式中,C为电容C10和C20相同的电容值,IREF为充电电流I0和I1的值,td(T,OS,VDD)是与温度T、失调OS以及电源电压VDD等都有关的电路延时。In the formula, C is the same capacitance value of capacitors C10 and C20, I REF is the value of charging current I 0 and I 1 , td(T, OS, VDD) is related to temperature T, offset OS and power supply voltage VDD, etc. circuit delay.

3)Q2和Q3输出高电平后开关S10、S20、S40、S50和S60断开,S30闭合,电容C20两端电压保持VX不变,电流源I0继续给电容C10充电,在电容C10充电到VX+Vref时,Q1电平发生跳变输出高电平,充电时间3) After Q2 and Q3 output a high level, switches S10, S20, S40, S50 and S60 are disconnected, S30 is closed, the voltage across capacitor C20 remains unchanged at V X , and the current source I 0 continues to charge capacitor C10. When charging to V X +V ref , the Q1 level jumps to output a high level, and the charging time

Figure BDA0001317742640000132
Figure BDA0001317742640000132

式中,C为电容C10和C20相同的电容值,IREF为充电电流I0和I1的值,td(T,OS,VDD)是与温度T、失调OS以及电源电压VDD等都有关的电路延时。In the formula, C is the same capacitance value of capacitors C10 and C20, I REF is the value of charging current I 0 and I 1 , td(T, OS, VDD) is related to temperature T, offset OS and power supply voltage VDD, etc. circuit delay.

4)Q1输出高电平后开关S10、S20、S30和S60断开,S40和S50闭合,电流源I1给电容C20充电,电容C10放电,待电容C10放电到VM时,Q2输出电平发生跳变输出低电平;4) After Q1 outputs a high level, the switches S10, S20, S30 and S60 are disconnected, S40 and S50 are closed, the current source I1 charges the capacitor C20, and the capacitor C10 discharges. When the capacitor C10 discharges to V M , Q2 outputs the level A transition occurs and outputs a low level;

5)Q2输出低电平后开关S10闭合,S50断开,电流源I0给电容C10充电,电容C10充电到VX后,Q2输出电平发生跳变输出高电平;5) After Q2 outputs a low level, the switch S10 is closed, S50 is disconnected, the current source I 0 charges the capacitor C10, and after the capacitor C10 is charged to V X , the output level of Q2 jumps and outputs a high level;

6)Q2输出高电平后开关S10断开,此时电容C10上的电压保持VX不变,等待电容C20充电到VX+Vref时,Q1的输出电平发生跳变输出低电平,充电时间6) After Q2 outputs a high level, the switch S10 is turned off. At this time, the voltage on the capacitor C10 keeps V X unchanged. When the capacitor C20 is charged to V X +V ref , the output level of Q1 jumps and outputs a low level. , the charging time

Figure BDA0001317742640000141
Figure BDA0001317742640000141

式中,C为电容C10和C20相同的电容值,IREF为充电电流I0和I1的值,td(T,OS,VDD)是与温度T、失调OS以及电源电压VDD等都有关的电路延时。In the formula, C is the same capacitance value of capacitors C10 and C20, I REF is the value of charging current I 0 and I 1 , td(T, OS, VDD) is related to temperature T, offset OS and power supply voltage VDD, etc. circuit delay.

7)Q1输出电平变为低电平后S40断开,S30闭合,电流源I0给电容C10充电,电容C20放电,待电容C20放电到VM时,Q3输出电平发生跳变输出高电平;7) After the output level of Q1 becomes low, S40 is disconnected, S30 is closed, the current source I 0 charges the capacitor C10, and the capacitor C20 discharges. When the capacitor C20 discharges to V M , the output level of Q3 jumps and the output is high. level;

8)Q3输出高电平后开关在脉冲结束后S60断开,S20闭合,电流源I1给电容C20充电,电容C20充电到VX后,Q3输出电平发生跳变输出低电平;8) After Q3 outputs a high level, the switch S60 is disconnected after the pulse ends, S20 is closed, and the current source I 1 charges the capacitor C20. After the capacitor C20 is charged to V X , the output level of Q3 jumps and outputs a low level;

9)Q3输出低电平后开关S20断开,此时电容C20上的电压保持VX不变,等待电容C10充电到VX+Vref时,Q1的输出电平发生跳变输出高电平,充电时间9) After Q3 outputs a low level, the switch S20 is turned off. At this time, the voltage on the capacitor C20 keeps V X unchanged. When the capacitor C10 is charged to V X +V ref , the output level of Q1 jumps and outputs a high level. , the charging time

Figure BDA0001317742640000142
Figure BDA0001317742640000142

式中,C为电容C10和C20相同的电容值,IREF为充电电流I0和I1的值,td(T,OS,VDD)是与温度T、失调OS以及电源电压VDD等都有关的电路延时。In the formula, C is the same capacitance value of capacitors C10 and C20, I REF is the value of charging current I 0 and I 1 , td(T, OS, VDD) is related to temperature T, offset OS and power supply voltage VDD, etc. circuit delay.

10)重复上述步骤4到步骤9的工作过程,形成振荡。10) Repeat the above steps 4 to 9 to form oscillation.

假设由于控制电路RS触发器延时在电容上产生的电压过冲量为ΔV,那么电路正常工作的话,设置的参考电平(门限电压)应该满足如下关系Assuming that the voltage overshoot on the capacitor due to the delay of the RS trigger of the control circuit is ΔV, then if the circuit works normally, the set reference level (threshold voltage) should satisfy the following relationship

VM≤VX+ΔV≤VX+Vref式8V M ≤V X +ΔV≤V X +V ref formula 8

根据电路的工作原理,电路的工作过程参照图13,可知电容预充电电路的周期取决于电容C10和C20从电压VX+ΔV充电到电压VX+Vref+ΔV的时间,其周期为According to the working principle of the circuit, referring to Fig. 13 for the working process of the circuit, it can be seen that the period of the capacitor pre-charging circuit depends on the time when the capacitors C10 and C20 are charged from the voltage V X +ΔV to the voltage V X +V ref +ΔV, and the period is

Figure BDA0001317742640000143
Figure BDA0001317742640000143

其中,C为电容C10和C20相同的电容值,IREF为充电电流I0和I1的值。Among them, C is the same capacitance value of capacitors C10 and C20, and I REF is the value of charging currents I 0 and I 1 .

振荡器的频率为The frequency of the oscillator is

Figure BDA0001317742640000151
Figure BDA0001317742640000151

其中,C为电容C10和C20相同的电容值,IREF为充电电流I0和I1的值。Among them, C is the same capacitance value of capacitors C10 and C20, and I REF is the value of charging currents I 0 and I 1 .

图15是本发明高精度的自适应张弛振荡器采用的脉冲产生电路的一种实施电路。在本实施例中,利用RS1输出经过脉冲产生电路,在输入信号上升沿产生一个窄脉冲信号控制开关S50和S60的闭合,使得充放电电容C10和C20上的电位可以放电到VM,这里的脉冲宽度可以由充放电电容上的放电电压和容值计算确定,脉冲宽度在波形图中如图13。FIG. 15 is an implementation circuit of the pulse generating circuit used in the high-precision adaptive relaxation oscillator of the present invention. In this embodiment, the output of RS1 is used to pass through the pulse generating circuit, and a narrow pulse signal is generated at the rising edge of the input signal to control the closing of switches S50 and S60, so that the potential on the charging and discharging capacitors C10 and C20 can be discharged to VM , where the The pulse width can be determined by calculating the discharge voltage and capacitance value on the charging and discharging capacitor. The pulse width is shown in the waveform diagram as shown in Figure 13.

图16是本发明高精度的自适应张弛振荡器采用的比较器的一种实施电路。MP7、MP8、MN7、MN8和MN9构成五管差分输入级,MP9和MN10构成第二增益级的两级开环运放作为比较器,使比较器对两个输入电压进行比较后输出高电平或低电平。FIG. 16 is an implementation circuit of the comparator used in the high-precision adaptive relaxation oscillator of the present invention. MP7, MP8, MN7, MN8 and MN9 form a five-tube differential input stage, MP9 and MN10 form a two-stage open-loop op amp of the second gain stage as a comparator, so that the comparator compares the two input voltages and outputs a high level or low level.

图17是本发明高精度的自适应张弛振荡器采用的RS触发器的一种实施电路。在实施例中,基于两个与非门构成的RS触发器。FIG. 17 is an implementation circuit of the RS flip-flop adopted by the high-precision adaptive relaxation oscillator of the present invention. In the embodiment, the RS flip-flop is based on two NAND gates.

在示出的实施例中,其他更改和组合是可能的,本发明并不限定在示出的几种实例中。虽然本发明已经利用特殊实施例在上面进行了描述,但是本领域的技术人员可以在权利要求的范围内进行多种更改。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。In the embodiment shown, other modifications and combinations are possible, and the invention is not limited to the few examples shown. Although the invention has been described above using specific embodiments, various modifications may be made by those skilled in the art within the scope of the claims. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (6)

1. A high-precision adaptive relaxation oscillator, characterized by: based on the oscillation circuit, two capacitor pre-charging circuits are additionally arranged, and the delay generated by a charge and discharge control circuit arranged in the oscillation circuit is offset by utilizing the capacitor pre-charging principle; the oscillator comprises an oscillating circuit, a first capacitor pre-charging circuit and a second capacitor pre-charging circuit, wherein the capacitor pre-charging circuit is used for pre-charging a charging and discharging capacitor of the oscillator, the oscillating circuit performs charging and discharging on the basis of the pre-charging level of the capacitor pre-charging circuit, and the error generated by twice charging of the capacitor is delayed and offset, so that the oscillator works at a preset frequency, and the frequency-control current linearity is remarkably improved; wherein:
the oscillating circuit comprises a current source I0、I1Control switches S30 and S40, charging and discharging capacitors C10 and C20, comparators CMP1 and CMP2, RS trigger RS1 and reference level VX+VrefThe comparators CMP1, CMP2 and RS1 form a charge-discharge control circuit; current source I0Negative pole and current source I1The negative electrodes of the two-phase current source are connected with a power supply VDD and a current source I0Positive pole of (1) and current source I1Respectively connected with one end of a control switch S30 and one end of a control switch S40, the other end of the control switch S30 is connected with one end of a charging and discharging capacitor C10 and the non-inverting input end of a comparator CMP1, the other end of the charging and discharging capacitor C10 is grounded, the other end of the control switch S40 is connected with one end of a charging and discharging capacitor C20 and the non-inverting input end of the comparator CMP2, the other end of the charging and discharging capacitor C20 is grounded, the inverting input end of the comparator CMP1 and the inverting input end of the comparator CMP2 are interconnected and connected with a reference level VX+VrefThe output end of the comparator CMP1 and the output end of the comparator CMP2 are respectively connected with the set input end S and the reset input end R of the RS trigger RS 1;
the first capacitor pre-charging circuit comprises control switches S10 AND S50, a two-input AND gate AND1, a pulse generation circuit AND a charge AND discharge control circuit, wherein the charge AND discharge control circuit comprises comparators CMP3 AND CMP4, an RS trigger RS2 AND a reference level VX、VMThe inverting input terminal of the comparator CMP3 is connected to the reference level VXThe non-inverting input terminal of the comparator CMP4 is connected to the reference level VMA non-inverting input terminal of the comparator CMP3 is connected to an inverting input terminal of the comparator CMP4, and is connected to one terminal of the control switch S50, one terminal of the control switch S10, and the other terminal of the control switch S30 in the oscillation circuit, and the other terminal of the control switch S10 is connected to the current source I in the oscillation circuit0The other end of the control switch S50 is grounded, the control end of the control switch S50 is connected with the output signal of the pulse generating circuit, the input end of the pulse generating circuit is connected with the output end Q1 of an RS trigger RS1 in the oscillating circuit, the output end of the comparator CMP3 AND the output end of the comparator CMP4 are respectively connected with the set input end S AND the reset input end R of the RS trigger RS2, the output end Q2 of the RS trigger RS2 is connected with one input end of a two-input AND gate 1, AND the other input end of the two-input AND gate AND1 is connected with the output end of an RS trigger RS1 in the oscillating circuit
Figure FDA0002442345170000011
The output end of the two-input AND gate AND1 is connected with the control of a control switch S30 in the oscillating circuitTerminal, output terminal of RS2 flip-flop
Figure FDA0002442345170000012
The control end of the control switch S10 is connected;
the second capacitor pre-charging circuit has the same structure as the first capacitor pre-charging circuit, AND comprises control switches S20 AND S60, a two-input AND gate AND2, a pulse generation circuit AND a charge AND discharge control circuit, wherein the charge AND discharge control circuit comprises comparators CMP5 AND CMP6, an RS trigger RS3 AND a reference level VX、VMThe inverting input terminal of the comparator CMP5 is connected to the reference level VXThe non-inverting input terminal of the comparator CMP6 is connected to the reference level VMA non-inverting input terminal of the comparator CMP5 is connected to an inverting input terminal of the comparator CMP6, and is connected to one terminal of the control switch S60, one terminal of the control switch S20, and the other terminal of the control switch S40 in the oscillation circuit, and the other terminal of the control switch S20 is connected to the current source I in the oscillation circuit1The other end of the control switch S60 is grounded, the control end of the control switch S60 is connected with the output signal of the pulse generating circuit, and the input end of the pulse generating circuit is connected with the output end of the RS trigger RS1 in the oscillating circuit
Figure FDA0002442345170000021
The output end of the comparator CMP5 AND the output end of the comparator CMP6 are respectively connected with a set input end S AND a reset input end R of an RS flip-flop RS3, the output end Q3 of the RS flip-flop RS3 is connected with one input end of a two-input AND gate AND2, the other input end of the two-input AND gate AND2 is connected with the output end Q1 of the RS flip-flop RS1 in the oscillating circuit, the output end of the two-input AND gate AND2 is connected with the control end of a control switch S40 in the oscillating circuit, AND the output end of the RS flip-flop RS3
Figure FDA0002442345170000022
The control end of the control switch S20 is connected;
in the oscillation circuit, the first capacitor pre-charging circuit and the second capacitor pre-charging circuit, the charge and discharge control circuit in the first capacitor pre-charging circuit and the second capacitor pre-charging circuit detects the voltage on the charge and discharge capacitors C10 and C20 to control the control switches S10 and S20 to pre-charge the charge and discharge capacitors C10 and C20, and then controls the switches S30 and S40 to charge the charge and discharge capacitors C10 and C20, and the narrow pulse output generated by the pulse generating circuit discharges the charge and discharge capacitors C10 and C20, so that the high-precision self-adaptive relaxation oscillator is realized by offsetting the error delay caused by temperature, imbalance and power supply voltage factors in the two charging processes of the charge and discharge capacitors C10 and C20.
2. A high accuracy adaptive relaxation oscillator as claimed in claim 1, characterized in that: the structures and capacitance values of the charge and discharge capacitors C10 and C20 are completely the same; the structures of the comparators CMP1, CMP2, CMP3, CMP4, CMP5, and CMP6 are identical; the RS triggers RS1, RS2 and RS3 are completely the same in structure; the two-input AND gate AND1 AND the two-input AND gate AND2 have the same structure; the threshold voltage of the reference level is set to satisfy VM≤VX+ΔV≤VX+VrefAnd Δ V is the voltage overshoot generated by the flip-flops RS1, RS2 and RS3 on the charging and discharging capacitors C10 and C20.
3. A high precision adaptive relaxation oscillator as claimed in claim 1 or 2, characterized in that: in the process of generating oscillation, the pulse width of the pulse generating circuit is not less than the pulse width of the charging and discharging capacitors C10 and C20 from the level VX+VrefDischarge to VMIs not more than the time from the level V of the charging and discharging capacitors C10 and C20X+VrefThe time of discharging to the zero potential avoids the control switch S50 and the control switch S60 from being still opened in the process of charging the charging and discharging capacitors C10 and C20 due to the excessively wide pulse width, so that the oscillator works abnormally.
4. A high accuracy adaptive relaxation oscillator as claimed in claim 3, characterized in that: the pulse generating circuit in the first and second capacitor pre-charging circuits comprises PMOS tubes MP 1-MP 6, NMOS tubes MN 1-MN 6, and a capacitor CPAnd a resistance RPThe sources of the PMOS tubes MP 1-MP 6 are all connected with a power supply VCC,the source electrodes of the NMOS transistors MN 1-MN 3, the source electrodes of the NMOS transistors MN5 and MN6 and the capacitor CPOne end of the PMOS transistor MP1 is grounded, the grid of the PMOS transistor MP1 is connected with the grid of the NMOS transistor MN1 and is used as the input end of the pulse generation circuit, the drain of the PMOS transistor MP1 is connected with the drain of the NMOS transistor MN1, the grid of the PMOS transistor MP2 and the grid of the NMOS transistor MN2, the drain of the PMOS transistor MP2 is connected with the drain of the NMOS transistor MN2 and is connected with a resistor RPOne terminal of (1), resistance RPIs connected with the capacitor C at the other endPThe other end of the PMOS tube MP3 and the grid of the PMOS tube MP3 are connected with the grid of the NMOS tube MN3, the drain of the PMOS tube MP3 is connected with the drain of the NMOS tube MN3 and is connected with the grid of the PMOS tube MP4 and the grid of the NMOS tube MN5, the drain of the PMOS tube MP4 is connected with the drain of the PMOS tube MP5, the drain of the NMOS tube MN4 and the grid of the PMOS tube MP6 are connected with the grid of the NMOS tube MN6, the grid of the PMOS tube MP5 is connected with the grid of the NMOS tube MN4 and is connected with the grid of the PMOS tube MP1 and the interconnection end of the grid of the NMOS tube MN1, the source of the NMOS tube MN4 is connected with the drain of the NMOS tube MN5, and the drain of the PMOS tube MP6 is connected with the drain of the NMOS tube MN6 and.
5. A high accuracy adaptive relaxation oscillator as claimed in claim 2, characterized in that: the circuit structure of the comparators CMP 1-CMP 6 comprises PMOS tubes MP 7-MP 9 and NMOS tubes MN 7-MN 10, the sources of the PMOS tubes MP 7-MP 9 are all connected with a power supply VCC, the grid of the PMOS tube MP7 is interconnected with the grid of the PMOS tube MP8 and connected with the drain of the PMOS tube MP7 and the drain of the NMOS tube MN7, the source of the NMOS tube MN7 is interconnected with the source of the NMOS tube MN8 and connected with the drain of the NMOS tube MN9, the grid of the NMOS tube MN9 is interconnected with the grid of the NMOS tube MN10 and connected with a bias voltage VBIASThe source of the NMOS transistor MN9 and the source of the NMOS transistor MN10 are both grounded, the drain of the NMOS transistor MN10 is interconnected with the drain of the PMOS transistor MP9 and serves as the output terminal of the comparator, the gate of the NMOS transistor MN8 serves as the non-inverting input terminal of the comparator, and the gate of the NMOS transistor MN7 serves as the inverting input terminal of the comparator.
6. A high accuracy adaptive relaxation oscillator as claimed in claim 2, characterized in that: the circuit structure of the RS trigger RS 1-RS 3 comprises a PMOS tube MP10 ℃MP13 and NMOS tubes MN 11-MN 14, the source of PMOS tube MP10 and the source of PMOS tube MP12 are all connected with VCC, the drain of PMOS tube MP10 is connected with the source of PMOS tube MP11, the drain of PMOS tube MP12 is connected with the source of PMOS tube MP13, the sources of NMOS tubes MN 11-MN 14 are all grounded, the gate of NMOS tube MN11 and the gate of PMOS tube MP10 are connected with each other and serve as the set input S of the RS trigger, the gate of NMOS tube MN14 and the gate of PMOS tube MP13 are connected with each other and serve as the reset input R of the RS trigger, the gate of NMOS tube MN12 and the gate of PMOS tube 11 are connected with the drain of NMOS tube MN14, the drain of NMOS tube MN13 and the drain of PMOS tube MP13 and serve as the output Q of the RS trigger, the drain of NMOS tube MN12 and the drain of PMOS tube MP11 are connected with each other and the drain of NMOS tube MN11, the gate of NMOS tube MP 3687458 and the gate of PMOS tube MP12 are connected together and serve as the output end R of the output of the RS trigger
Figure FDA0002442345170000031
CN201710432878.6A 2017-06-09 2017-06-09 High-precision self-adaptive relaxation oscillator Active CN107204755B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710432878.6A CN107204755B (en) 2017-06-09 2017-06-09 High-precision self-adaptive relaxation oscillator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710432878.6A CN107204755B (en) 2017-06-09 2017-06-09 High-precision self-adaptive relaxation oscillator

Publications (2)

Publication Number Publication Date
CN107204755A CN107204755A (en) 2017-09-26
CN107204755B true CN107204755B (en) 2020-07-24

Family

ID=59908332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710432878.6A Active CN107204755B (en) 2017-06-09 2017-06-09 High-precision self-adaptive relaxation oscillator

Country Status (1)

Country Link
CN (1) CN107204755B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055024B (en) * 2018-01-31 2020-02-18 电子科技大学 A compact delay circuit
CN108649900B (en) * 2018-03-27 2022-02-08 芯海科技(深圳)股份有限公司 Oscillator link delay correction circuit
CN108933583A (en) * 2018-08-06 2018-12-04 上海华虹宏力半导体制造有限公司 A kind of orthogonal clock generating circuit
CN109756211B (en) * 2019-02-21 2020-07-10 电子科技大学 Narrow pulse delay circuit
CN110212910B (en) * 2019-07-11 2020-11-27 福州大学 A pulse register circuit and its control method
CN110971215B (en) * 2019-12-04 2023-06-23 芯创智(北京)微电子有限公司 High-precision on-chip clock generator irrelevant to process
CN111277249A (en) * 2020-01-22 2020-06-12 上海芯凌微电子有限公司 Low-power-consumption relaxation oscillator circuit
CN112311360A (en) * 2020-02-18 2021-02-02 成都华微电子科技有限公司 High-precision oscillator without reference clock
CN111628752B (en) * 2020-06-02 2022-03-22 华南理工大学 RC oscillator adopting pre-charging technology
CN111697947B (en) * 2020-06-17 2021-08-31 长沙锐逸微电子有限公司 High-precision wide-range relaxation oscillator insensitive to temperature
US12193516B2 (en) * 2020-09-23 2025-01-14 Smart Chip Microelectronic Co., Limited Puff detection circuits and devices therefor
WO2022155888A1 (en) * 2021-01-22 2022-07-28 深圳市汇顶科技股份有限公司 Rc relaxation oscillator
CN114598158B (en) * 2022-03-09 2024-06-18 东南大学 PWM drive circuit with leading edge self-adaptive adjustment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1604476A (en) * 2003-09-30 2005-04-06 联发科技股份有限公司 Switched capacitor circuit and related method capable of suppressing clock feedthrough effect and having low phase noise
CN102193032A (en) * 2010-03-08 2011-09-21 上海海栎创微电子有限公司 Self-capacitance change measuring circuit with high precision and high stability
CN102377412A (en) * 2010-08-11 2012-03-14 义隆电子股份有限公司 Low Power Relaxation Oscillator
CN102820852A (en) * 2011-06-09 2012-12-12 英飞凌科技奥地利有限公司 Method for generating oscillating signal and oscillator circuit.
CN103546123A (en) * 2013-11-01 2014-01-29 东南大学 A High Linearity Relaxation Oscillator
CN104579254A (en) * 2014-12-03 2015-04-29 北京兆易创新科技股份有限公司 Relaxation oscillator
CN105071786A (en) * 2015-07-30 2015-11-18 北京大学 Resistance capacitance type relaxation oscillator employing half-period pre-charge compensation technology
CN105958943A (en) * 2016-04-21 2016-09-21 新茂国际科技股份有限公司 Relaxation oscillator

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9172256B2 (en) * 2012-07-13 2015-10-27 Fu-Sheng Tsai Battery management circuit and battery management method for managing battery apparatus
US9099994B2 (en) * 2012-12-20 2015-08-04 Silicon Laboratories Inc. Relaxation oscillator
US9543972B2 (en) * 2015-04-29 2017-01-10 Texas Instruments Incorporated Stability controlled high frequency chopper-based oscillator

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1604476A (en) * 2003-09-30 2005-04-06 联发科技股份有限公司 Switched capacitor circuit and related method capable of suppressing clock feedthrough effect and having low phase noise
CN102193032A (en) * 2010-03-08 2011-09-21 上海海栎创微电子有限公司 Self-capacitance change measuring circuit with high precision and high stability
CN102377412A (en) * 2010-08-11 2012-03-14 义隆电子股份有限公司 Low Power Relaxation Oscillator
CN102820852A (en) * 2011-06-09 2012-12-12 英飞凌科技奥地利有限公司 Method for generating oscillating signal and oscillator circuit.
CN103546123A (en) * 2013-11-01 2014-01-29 东南大学 A High Linearity Relaxation Oscillator
CN104579254A (en) * 2014-12-03 2015-04-29 北京兆易创新科技股份有限公司 Relaxation oscillator
CN105071786A (en) * 2015-07-30 2015-11-18 北京大学 Resistance capacitance type relaxation oscillator employing half-period pre-charge compensation technology
CN105958943A (en) * 2016-04-21 2016-09-21 新茂国际科技股份有限公司 Relaxation oscillator

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"A 51-nW 32.7-kHz CMOS relaxation oscillator with half-period pre-charge compensation scheme for ultra-low power systems";Yongan Zheng等;《2016 IEEE International Symposium on Circuits and Systems (ISCAS)》;20160811;第830页到第833页 *
"A Reference-Free Capacitive-Discharging Oscillator Architecture Consuming 44.4 pW/75.6 nW at 2.8 Hz/6.4 kHz";Hui Wang等;《IEEE Journal of Solid-State Circuits》;20160526;第51卷(第6期);第1423页到第1435页 *
"一种基于恒压源充放电的高精度张弛振荡器的设计";余清华等;《电子世界》;20110930;第29页到第31页 *
"一种高精度张弛振荡器的设计";柯志强等;《电子器件》;20140630;第37卷(第3期);第412页到第415页 *

Also Published As

Publication number Publication date
CN107204755A (en) 2017-09-26

Similar Documents

Publication Publication Date Title
CN107204755B (en) High-precision self-adaptive relaxation oscillator
US9112485B2 (en) Comparator with transition threshold tracking capability
CN103546123B (en) A kind of relaxation oscillator of high linearity
KR100629196B1 (en) Voltage controlled oscillator circuit
CN107707103A (en) A kind of sectional slope compensation circuit suitable for BUCK converters
CN105071786B (en) A kind of resistance-capacitance type relaxation osillator that compensation technique is pre-charged using the half period
US10530297B2 (en) Semiconductor device and control method of semiconductor device
KR102004282B1 (en) Integrated oscillator circuit
US9054637B1 (en) Amplitude limiting circuit for a crystal oscillator
US11245360B2 (en) Oscillator circuit, chip and electronic device
JPH06343024A (en) Mos oscillation circuit with compensated-for power supply
CN103346784B (en) A kind of matching type charge pump circuit for phase-locked loop
CN106330193B (en) Duty ratio adjusting circuit and analog-to-digital conversion system
CN108494384B (en) A trimming circuit for oscillator
JP2005020179A (en) Oscillator circuit
US9461632B2 (en) Oscillator circuit
CN108599745B (en) Single-capacitor duty ratio controllable oscillator
JP4829724B2 (en) Oscillator circuit
CN117335750B (en) RC oscillator circuit for eliminating delay effect of comparator
CN108649900B (en) Oscillator link delay correction circuit
JP2001257586A (en) Dll system
CN115955195A (en) Low temperature drift low offset RC oscillator
WO2023174647A1 (en) Oscillator circuit
CN116230041A (en) High-precision time sequence generating circuit and chip
KR0139906B1 (en) Signal delay circuit and clock signal generation circuit using the circuit

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
GR01 Patent grant
GR01 Patent grant