[go: up one dir, main page]

CN101222206A - Method and device for correcting time constant of chip built-in resistor and capacitor - Google Patents

Method and device for correcting time constant of chip built-in resistor and capacitor Download PDF

Info

Publication number
CN101222206A
CN101222206A CNA2007100016480A CN200710001648A CN101222206A CN 101222206 A CN101222206 A CN 101222206A CN A2007100016480 A CNA2007100016480 A CN A2007100016480A CN 200710001648 A CN200710001648 A CN 200710001648A CN 101222206 A CN101222206 A CN 101222206A
Authority
CN
China
Prior art keywords
coupled
input
node
output
time constant
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2007100016480A
Other languages
Chinese (zh)
Inventor
刘炜
曾昭文
邱维乾
陈盈吉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Quantek Inc
Original Assignee
Quantek Inc
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 Quantek Inc filed Critical Quantek Inc
Priority to CNA2007100016480A priority Critical patent/CN101222206A/en
Publication of CN101222206A publication Critical patent/CN101222206A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Networks Using Active Elements (AREA)

Abstract

A method for correcting an on-chip RC time constant of an integrated circuit tuner. The integrated circuit tuner comprises a receiving circuit for receiving radio frequency signals; a quadrature mixer coupled to the output of the receiving circuit; a polyphase filter; a relaxation oscillator; and a digital correction module. The image signal filtering function of the polyphase filter and the oscillation period of the relaxation oscillator are controlled by an RC time constant built in a chip. The calibration method comprises generating a clock proportional to the RC time constant built in the chip; the clock inputs a counter in the digital correction module; counting the period of the clock in a preset time section to generate a count value; and updating the RC time constant in the chip according to the counting value by using a continuous approximation correction method.

Description

芯片内建电阻电容时间常数校正方法与装置 Method and device for calibrating time constants of resistors and capacitors built into a chip

技术领域 technical field

本发明提供一种芯片内建RC时间常数校正方法与装置,尤其指一种具有RC时间常数精准自我校正方法以增进多相滤波器的镜像信号(image)滤除(rejection)功能的集成电路调谐器芯片。The present invention provides a chip built-in RC time constant correction method and device, especially an integrated circuit tuning method with an RC time constant precision self-calibration method to improve the image signal (image) rejection (rejection) function of a polyphase filter chip.

背景技术 Background technique

通常集成电路调谐器芯片使用多相滤波器处理来自正交混频器的同相/正交信号(I/Q signals)与射频信号的混频信号,以形成一镜像信号滤除混频器,并输出所要的信号。而其镜像信号滤除功能的优劣决定于对RC时间常数的精准控制。一般而言,集成电路制造电阻的阻值误差大约是+/-20%,而电容的容值误差大约是+/-10%,所以对RC时间常数的精准控制并非易事。因此多相滤波器就特别需要一精准的RC时间常数校正方法以提高其镜像信号滤除的功能。Usually integrated circuit tuner chips use a polyphase filter to process the mixed signal of the in-phase/quadrature signal (I/Q signals) and the radio frequency signal from the quadrature mixer to form an image signal to filter the mixer, and output the desired signal. The quality of its image signal filtering function depends on the precise control of the RC time constant. Generally speaking, the resistance error of integrated circuit manufacturing resistors is about +/-20%, and the capacitance error of capacitors is about +/-10%, so it is not easy to accurately control the RC time constant. Therefore, the polyphase filter particularly needs an accurate RC time constant correction method to improve its image signal filtering function.

在一序号为5,245,646的美国专利的先前技术中,公开一种使用一参考时钟以计数一由RC时间常数所决定的脉冲。但由于其所使用的参考时钟有频率上的限制,而计数器的计数速度也同样受限,所以其整体效能并不特别优越。总之,提供一有弹性的及精准的RC时间常数校正方法与装置才是提高集成电路调谐器芯片的镜像信号滤除功能的治本之道。In a prior art US Patent No. 5,245,646, a reference clock is used to count a pulse determined by the RC time constant. However, since the frequency of the reference clock used is limited, and the counting speed of the counter is also limited, its overall performance is not particularly superior. In a word, providing a flexible and accurate RC time constant correction method and device is the fundamental way to improve the image signal filtering function of the integrated circuit tuner chip.

发明内容 Contents of the invention

本发明提供一种使用芯片内建RC时间常数校正方法的集成电路调谐器。该集成电路调谐器包含一接收射频信号的接收电路;一正交混频器,耦合于该接收电路的输出端;一多相滤波器;一弛张振荡器;以及一数字校正模块。The invention provides an integrated circuit tuner using a chip built-in RC time constant correction method. The integrated circuit tuner includes a receiving circuit for receiving radio frequency signals; a quadrature mixer coupled to the output end of the receiving circuit; a polyphase filter; a relaxation oscillator; and a digital correction module.

该多相滤波器包含一第一输入端与一第二输入端,该第一输入端耦接于该正交混频器的一输出端,该数字校正模块包含一2输入与门,其一第一输入端耦接于该弛张振荡器的一输出端;一计数器,其一输入端耦接于该2输入与门的一输出端;一有限状态机,包含一输入端耦接于该计数器的一输出端,一第一输出端耦接于该弛张振荡器的一输入端与该多相滤波器的第二输入端,以及一第二输出端耦接于该2输入与门的一第二输入端。The polyphase filter includes a first input end and a second input end, the first input end is coupled to an output end of the quadrature mixer, the digital correction module includes a 2-input AND gate, one of which A first input end is coupled to an output end of the relaxation oscillator; a counter, an input end thereof is coupled to an output end of the 2-input AND gate; a finite state machine includes an input end coupled to the 2-input AND gate. An output terminal of the counter, a first output terminal coupled to an input terminal of the relaxation oscillator and a second input terminal of the polyphase filter, and a second output terminal coupled to the 2-input AND gate a second input terminal.

本发明另提供一种用于集成电路调谐器的多相滤波器的芯片内建RC时间常数校正方法,该多相滤波器的镜像信号滤除功能由一芯片内建RC时间常数所控制。该方法包含由弛张振荡器产生一时钟,该时钟的周期正比于该芯片内建RC时间常数;该时钟输入数字校正模块中的计数器,由数字校正模块中的有限状态机发出一启用信号以设定一预定时间区段,计数该时钟的周期以产生一计数值;将该计数值与一期望值于有限状态机内进行比较以产生一比较结果;以及根据该比较结果由数字校正模块更新该芯片内建RC时间常数(rc_code)至多相滤波器与弛张振荡器。The present invention also provides a method for calibrating the built-in RC time constant of the polyphase filter of the integrated circuit tuner. The image signal filtering function of the polyphase filter is controlled by a built-in RC time constant of the chip. The method comprises generating a clock by a relaxation oscillator, the period of the clock is proportional to the on-chip RC time constant; the clock is input to a counter in the digital correction module, and a finite state machine in the digital correction module sends an enabling signal to Setting a predetermined time period, counting the period of the clock to generate a count value; comparing the count value with an expected value in the finite state machine to generate a comparison result; and updating the digital correction module according to the comparison result On-chip RC time constant (rc_code) to polyphase filter and relaxation oscillator.

附图说明 Description of drawings

图1为根据本发明的集成电路调谐器的电路示意图。FIG. 1 is a schematic circuit diagram of an integrated circuit tuner according to the present invention.

图2为本发明一较佳实施例的二分搜寻逼近校正法的流程图。FIG. 2 is a flowchart of a binary search approximation correction method in a preferred embodiment of the present invention.

图3为图1的弛张振荡器的内部电路示意图。FIG. 3 is a schematic diagram of the internal circuit of the relaxation oscillator shown in FIG. 1 .

主要元件符号说明Description of main component symbols

100     集成电路调谐器    105       接收电路100 integrated circuit tuner 105 receiving circuit

110     交混频器          120       多相滤波器110 Cross Mixer 120 Polyphase Filter

130     数字校正模块      140       弛张振荡器130 Digital Correction Module 140 Relaxation Oscillator

1502    输入与门          160       计数器1502 input AND gate 160 counter

170     有限状态机        310       第一比较器170 finite state machine 310 first comparator

320     第二比较器        330       第一2输入与非门320 2nd comparator 330 1st 2-input NAND gate

340     第二2输入与非门   rc_code   校正码340 second 2-input NAND gate rc_code correction code

I       同相信号          Q         正交信号I In-phase signal Q Quadrature signal

CLK     时钟              n         校正码位数CLK clock clock n n correction code bits

NP      周期计数值        EN        启用信号NP Period Count Value EN Enable Signal

C1      第一电容区        C2        第二电容区C1 The first capacitor area C2 The second capacitor area

SW1     第一开关          SW2       第二开关SW1 first switch SW2 second switch

Vref    带隙(Bandgap)     V1、V2    电压源Vref Bandgap V1, V2 voltage source

        参考电压  Reference Voltage

N1、N2、节点              VN1、VN2、节点电压N1, N2, node VN1, VN2, node voltage

N3、N4、      VN4、VN5N3, N4, VN4, VN5

N5N5

400   流程    200-300   步骤400 Process 200-300 Steps

具体实施方式 Detailed ways

如上所述,序号为5,245,646的美国专利的先前技术中,公开一种使用一参考时钟以计数一由RC时间常数所决定的脉冲。而本发明技术则是产生一由RC时间常数所决定的时钟,并用以在一预定时间区段内计数该时钟的周期以产生一周期计数值,再利用该周期计数值与一期望值执行RC时间常数的校正,该预定时间区段越长则所校正的RC时间常数越精准,由于该预定时间区段并没有限制,所以RC时间常数就可达到任何所要求的精准度,因此可以显著提高集成电路调谐器芯片的镜像信号滤除功能。As mentioned above, the prior art of US Patent No. 5,245,646 discloses the use of a reference clock to count a pulse determined by the RC time constant. The technology of the present invention is to generate a clock determined by the RC time constant, and to count the cycle of the clock in a predetermined time period to generate a cycle count value, and then use the cycle count value and an expected value to execute the RC time Constant correction, the longer the predetermined time period is, the more accurate the corrected RC time constant is. Since there is no limit to the predetermined time period, the RC time constant can achieve any required accuracy, so the integration can be significantly improved The image signal filtering function of the circuit tuner chip.

请参阅图1,图1显示根据本发明具有芯片内建RC时间常数校正功能的集成电路调谐器100的电路示意图。集成电路调谐器100包含一接收电路105,用以接收一射频信号;一正交混频器110,耦合至接收电路105的输出;以及一多相滤波器rccr_combiner 120,耦合至正交混频器110的输出,用以处理来自正交混频器110的同相/正交信号(I/Q signals)与射频信号的混频信号,以形成一镜像信号滤除混频器,并输出所要的信号。多相滤波器rccr_combiner 120包含多个电阻与多个电容,为了避免输出图像失真,多相滤波器rccr_combiner 120另接收一校正码rc_code(芯片内建RC时间常数)以调整其多个电阻与多个电容的电路操作,用以执行假像信号滤除的校正功能,因多相滤波器rccr_combiner 120的操作原理为公知技术,所以不再赘述。Please refer to FIG. 1 . FIG. 1 shows a schematic circuit diagram of an integrated circuit tuner 100 with an on-chip RC time constant correction function according to the present invention. The integrated circuit tuner 100 includes a receiving circuit 105 for receiving a radio frequency signal; a quadrature mixer 110 coupled to the output of the receiving circuit 105; and a polyphase filter rccr_combiner 120 coupled to the quadrature mixer The output of 110 is used to process the mixing signal of the in-phase/orthogonal signal (I/Q signals) and the radio frequency signal from the quadrature mixer 110, to form an image signal filtering mixer, and output the desired signal . The polyphase filter rccr_combiner 120 includes multiple resistors and multiple capacitors. In order to avoid output image distortion, the polyphase filter rccr_combiner 120 also receives a correction code rc_code (on-chip RC time constant) to adjust its multiple resistors and multiple capacitors. The circuit operation of the capacitor is used to perform the correcting function of filtering out false image signals. Since the operation principle of the polyphase filter rccr_combiner 120 is a known technology, it will not be repeated here.

集成电路调谐器100还包含有一弛张振荡器140与一数字校正模块130。数字校正模块130包含一2输入与门150、一计数器160、以及一有限状态机170,用以更新与输出校正码rc_code至多相滤波器rccr_combiner 120与弛张振荡器140。弛张振荡器140根据所接收到的校正码rc_code而更新其振荡频率,并输出具有更新频率的时钟CLK至数字校正模块130,该校正码rc_code可不断地被变更以校正相关元件的操作。2输入与门150具有一第一输入端、一第二输入端、与一输出端,第一输入端用以接收弛张振荡器140输出的时钟CLK,第二输入端用以接收有限状态机170输出的启用信号EN,其输出端耦合至计数器160。The IC tuner 100 also includes a relaxation oscillator 140 and a digital correction module 130 . The digital correction module 130 includes a 2-input AND gate 150 , a counter 160 , and a finite state machine 170 for updating and outputting the correction code rc_code to the polyphase filter rccr_combiner 120 and the relaxation oscillator 140 . The relaxation oscillator 140 updates its oscillation frequency according to the received calibration code rc_code, and outputs the clock CLK with the updated frequency to the digital calibration module 130. The calibration code rc_code can be continuously changed to correct the operation of related components. The 2-input AND gate 150 has a first input terminal, a second input terminal, and an output terminal, the first input terminal is used to receive the clock CLK output by the relaxation oscillator 140, and the second input terminal is used to receive the finite state machine The enable signal EN output by 170 is coupled to the counter 160 at its output terminal.

弛张振荡器140所输出的时钟CLK的周期正比于芯片内建RC时间常数校正码rc_code。计数器160在预定的时间区段中由有限状态机170输出的启用信号EN控制其启动与停止计数,而计数器160在该预定时间区段中计数弛张振荡器140输出时钟CLK的周期以产生周期计数值NP,有限状态机170利用二分搜寻逼近校正法根据计数器160输出的周期计数值NP更新校正码rc_code,并提供更新的校正码rc_code至弛张振荡器140与多相滤波器rccr_combiner 120。The period of the clock CLK output by the relaxation oscillator 140 is proportional to the on-chip RC time constant correction code rc_code. The counter 160 is controlled by the enable signal EN output by the finite state machine 170 to start and stop counting in a predetermined time period, and the counter 160 counts the period of the relaxation oscillator 140 output clock CLK in the predetermined time period to generate a period For the count value NP, the finite state machine 170 uses the binary search approximation correction method to update the correction code rc_code according to the period count value NP output by the counter 160, and provides the updated correction code rc_code to the relaxation oscillator 140 and the polyphase filter rccr_combiner 120.

请参阅图2,图2显示根据本发明一较佳实施例的连续逼近搜寻校正法400的流程图。先将校正码rc_code所有位值均设定为“0”,数字校正模块130的有限状态机170输出启用信号EN以控制计数器160在一预定时间区段中计数弛张振荡器140输出时钟CLK的周期以产生周期计数值NP。其后,有限状态机170将周期计数值NP与一期望值进行比较,如果周期计数值NP大于该期望值,则表示弛张振荡器140的振荡频率太高,此时校正码rc_code的一位资料会被更新以增加RC时间常数。反之,如果周期计数值NP小于该期望值,则表示弛张振荡器140的振荡频率太低,此时校正码rc_code的一位资料会被更新以减少RC时间常数。上述的比较与更新程序不断地执行,而校正码rc_code的每一位资料即从最高有效位到最低有效位依序被更新。Please refer to FIG. 2 , which shows a flowchart of a continuous approximation search correction method 400 according to a preferred embodiment of the present invention. First, all the bit values of the correction code rc_code are set to "0", and the finite state machine 170 of the digital correction module 130 outputs an enable signal EN to control the counter 160 to count the number of times of the relaxation oscillator 140 output clock CLK in a predetermined time period. period to generate a period count value NP. Afterwards, the finite state machine 170 compares the period count value NP with an expected value. If the period count value NP is greater than the expected value, it means that the oscillation frequency of the relaxation oscillator 140 is too high. At this time, one bit of the correction code rc_code will be is updated to increase the RC time constant. On the contrary, if the period count value NP is smaller than the expected value, it means that the oscillation frequency of the relaxation oscillator 140 is too low, and at this time, one bit of the correction code rc_code will be updated to reduce the RC time constant. The above-mentioned comparing and updating procedures are continuously executed, and each bit of the correction code rc_code is updated sequentially from the most significant bit to the least significant bit.

连续逼近搜寻校正法400包含下列步骤:The continuous approach search correction method 400 includes the following steps:

步骤200:开始;Step 200: start;

步骤210:将校正码rc_code所有位值的初值均设定为“0”,假设校正码rc_code为一n位二进码,其位索引值范围设为从1至n,而n代表最高有效位的索引值,1代表最低有效位的索引值,设一变数i,并将变数i的起始值设定为n;Step 210: Set the initial value of all the bit values of the correction code rc_code to "0", assuming that the correction code rc_code is an n-bit binary code, and its bit index value range is set from 1 to n, and n represents the most effective The index value of the bit, 1 represents the index value of the least significant bit, set a variable i, and set the initial value of the variable i to n;

步骤220:有限状态机170送出一启动计数的启用信号EN以启动计数器160的计数状态,经一预定时间区段后,有限状态机170送出一停止计数的启用信号EN以停止计数器160的计数状态;Step 220: the finite state machine 170 sends an enabling signal EN to start counting to start the counting state of the counter 160, and after a predetermined time period, the finite state machine 170 sends an enabling signal EN to stop counting to stop the counting state of the counter 160 ;

步骤230:有限状态机170将计数器160所产生的周期计数值NP与一期望值比较,如果周期计数值NP大于该期望值则执行步骤240,否则执行步骤250;Step 230: The finite state machine 170 compares the period count value NP generated by the counter 160 with an expected value, and if the period count value NP is greater than the expected value, execute step 240, otherwise execute step 250;

步骤240:有限状态机170将校正码rc_code中索引值为i的有效位值设定为“1”,用以提高校正码rc_code的值以降低弛张振荡器140的振荡频率,执行步骤260;Step 240: The finite state machine 170 sets the effective bit value of the index value i in the correction code rc_code to "1" to increase the value of the correction code rc_code to reduce the oscillation frequency of the relaxation oscillator 140, and execute step 260;

步骤250:有限状态机170将校正码rc_code中索引值为i的有效位值设定为“0”,用以降低校正码rc_code的值以提高弛张振荡器140的振荡频率,执行步骤260;Step 250: The finite state machine 170 sets the effective bit value of the index value i in the correction code rc_code to "0" to reduce the value of the correction code rc_code to increase the oscillation frequency of the relaxation oscillator 140, and execute step 260;

步骤260:有限状态机170判断变数i的值是否大于1,如果变数i的值大于1则执行步骤270,否则执行步骤280;Step 260: the finite state machine 170 judges whether the value of the variable i is greater than 1, if the value of the variable i is greater than 1, execute step 270, otherwise execute step 280;

步骤270:将校正码rc_code中索引值为i-1的有效位值设定为“1”;Step 270: Set the effective bit value of the index value i-1 in the correction code rc_code to "1";

步骤280:将变数i的值减1;Step 280: decrement the value of variable i by 1;

步骤290:如果变数i的值不等于0,就表示校正码rc_code尚未完成校正,跳回至步骤220,否则执行步骤300;Step 290: If the value of the variable i is not equal to 0, it means that the correction code rc_code has not been corrected yet, jump back to step 220, otherwise execute step 300;

步骤300:结束。Step 300: end.

上述连续逼近搜寻校正法400,在步骤210中,将校正码rc_code所有位值的初值均设定为“0”,可变更为将校正码rc_code的最高有效位设定为“1”,而其余非最高有效位的至少一个位均设定为“0”,也就是说,先将校正码rc_code的初值设定为一中间值,然后开始进行连续逼近搜寻程序。总的,在不影响校正码rc_code的校正结果情况下,类似连续逼近法的均等变化,皆属本发明的涵盖范围。In the above-mentioned continuous approximation search correction method 400, in step 210, the initial values of all the bit values of the correction code rc_code are set to "0", which can be changed to set the most significant bit of the correction code rc_code to "1", and At least one bit other than the most significant bit is set to "0", that is, the initial value of the correction code rc_code is set to an intermediate value, and then the continuous approximation search procedure is started. In general, under the condition that the correction result of the correction code rc_code is not affected, equal changes similar to the continuous approximation method are within the scope of the present invention.

请参阅图3,图3是显示图1的弛张振荡器140的内部电路示意图。弛张振荡器140包含一第一电容区C1,包含有受校正码rc_code控制的芯片内建电容电阻组;一第二电容区C2,包含有受校正码rc_code控制的另一芯片内建电容电阻组;一第一比较器310;一第二比较器320;一第一2输入与非门330;以及一第二2输入与非门340。Please refer to FIG. 3 . FIG. 3 is a schematic diagram showing an internal circuit of the relaxation oscillator 140 of FIG. 1 . The relaxation oscillator 140 includes a first capacitance area C1, including a set of on-chip capacitors and resistors controlled by the calibration code rc_code; a second capacitor area C2, including another on-chip capacitor and resistors controlled by the calibration code rc_code set; a first comparator 310; a second comparator 320; a first 2-input NAND gate 330; and a second 2-input NAND gate 340.

第一电容区C1与第二电容区C2均包含多个电容与多个电阻,用以模拟多相滤波器rccr_combiner 120所包含的多个电容与多个电阻的电路功能,使得弛张振荡器140能有效地重现目前校正码rc_code作用在多相滤波器rccr_combiner 120上的效果。Both the first capacitor area C1 and the second capacitor area C2 include multiple capacitors and multiple resistors, which are used to simulate the circuit functions of the multiple capacitors and multiple resistors included in the polyphase filter rccr_combiner 120, so that the relaxation oscillator 140 It can effectively reproduce the effect of the current correction code rc_code acting on the polyphase filter rccr_combiner 120.

第一电容区C1耦合于节点N1与接地之间,其具有一输入端以接收校正码rc_code。节点N1耦合至一电压源V1、第一比较器310的负输入端、以及一第一开关SW1,具有一控制输入端耦接于节点N4,也就是说第一开关SW1由节点N4的节点电压VN4所控制,当节点电压VN4为高电平时,第一开关处于闭合状态,也就是将第一电容区C1设定为放电状态,当节点电压VN4为低电平时,第一开关处于开路状态,也就是将第一电容区C1设定为充电状态,此时,第一电容区C1利用校正码rc_code控制其芯片内建电容电阻组的电路操作以控制充电状态的RC充电常数。The first capacitive region C1 is coupled between the node N1 and the ground, and has an input terminal for receiving the calibration code rc_code. The node N1 is coupled to a voltage source V1, the negative input terminal of the first comparator 310, and a first switch SW1, which has a control input terminal coupled to the node N4, that is to say, the first switch SW1 is controlled by the node voltage of the node N4 Controlled by VN4, when the node voltage VN4 is at a high level, the first switch is in a closed state, that is, the first capacitor region C1 is set to a discharge state; when the node voltage VN4 is at a low level, the first switch is in an open state, That is, the first capacitor region C1 is set to be in a charging state. At this time, the first capacitor region C1 uses the correction code rc_code to control the circuit operation of the on-chip capacitor resistor group to control the RC charging constant of the charging state.

第二电容区C2耦合于节点N2与接地之间,其具有一输入端以接收校正码rc_code,节点N2耦合至一电压源V2、第二比较器320的负输入端、以及一第二开关SW2,具有一控制输入端耦接于节点N5,也就是说第二开关SW2由节点N5的节点电压VN5所控制,当节点电压VN5为高电平时,第二开关处于闭合状态,也就是将第二电容区C2设定为放电状态,当节点电压VN5为低电平时,第二开关处于开路状态,也就是将第二电容区C2设定为充电状态,此时,第二电容区C2利用校正码rc_code控制其芯片内建电容电阻组的电路操作以控制充电状态的RC充电常数。The second capacitive region C2 is coupled between the node N2 and the ground, and has an input terminal for receiving the correction code rc_code. The node N2 is coupled to a voltage source V2, the negative input terminal of the second comparator 320, and a second switch SW2 , has a control input terminal coupled to the node N5, that is to say, the second switch SW2 is controlled by the node voltage VN5 of the node N5, when the node voltage VN5 is at a high level, the second switch is in a closed state, that is, the second Capacitance area C2 is set to discharge state. When node voltage VN5 is at low level, the second switch is in open state, that is, the second capacitance area C2 is set to charge state. At this time, the second capacitance area C2 uses the correction code rc_code controls the circuit operation of its on-chip capacitor-resistor set to control the RC charge constant of the state of charge.

第一比较器310与第二比较器320的正输入端均接收一带隙(bandgap)参考电压Vref,第一比较器310的输出端耦合到第一2输入与非门330的第一输入端,第二比较器320的输出端耦合到第二2输入与非门340的第一输入端,第一2输入与非门330的第二输入端与第二2输入与非门340的输出端耦合于节点N5,第二2输入与非门340的第二输入端与第一2输入与非门330的输出端耦合于节点N4,而弛张振荡器140的输出时钟CLK即输出于节点N4。The positive input ends of the first comparator 310 and the second comparator 320 both receive a bandgap (bandgap) reference voltage Vref, the output end of the first comparator 310 is coupled to the first input end of the first 2-input NAND gate 330, The output terminal of the second comparator 320 is coupled to the first input terminal of the second 2-input NAND gate 340, and the second input terminal of the first 2-input NAND gate 330 is coupled to the output terminal of the second 2-input NAND gate 340 At the node N5, the second input terminal of the second 2-input NAND gate 340 and the output terminal of the first 2-input NAND gate 330 are coupled to the node N4, and the output clock CLK of the relaxation oscillator 140 is output to the node N4.

第一2输入与非门330与第二2输入与非门340连接成一RS闩锁器(RS-Latch),第二2输入与非门340的第一输入端即为Set输入端,第一2输入与非门330的第一输入端即为Reset输入端,当Set输入端与Reset输入端均接收高电平信号时,RS闩锁器(RS-Latch)处于闩锁状态,也就是保持输出状态的存储状态,特别注意此由二个2输入与非门所连接成的RS闩锁器的闩锁状态(存储状态)不同于由二个NOR门所连接成的RS闩锁器,当Set输入端接收高电平信号而Reset输入端接收低电平信号时,第一2输入与非门330的输出节点电压VN4为高电平,而第二2输入与非门340的输出节点电压VN5为低电平,当Set输入端接收低电平信号而Reset输入端接收高电平信号时,第一2输入与非门330的输出节点电压VN4为低电平,而第二2输入与非门340的输出节点电压VN5为高电平。The first 2-input NAND gate 330 and the second 2-input NAND gate 340 are connected to form an RS latch (RS-Latch). The first input terminal of the second 2-input NAND gate 340 is the Set input terminal, and the first The first input terminal of the 2-input NAND gate 330 is the Reset input terminal. When both the Set input terminal and the Reset input terminal receive a high-level signal, the RS-Latch is in a latch state, that is, it is held The storage state of the output state, pay special attention to the latch state (storage state) of the RS latch connected by two 2-input NAND gates is different from the RS latch connected by two NOR gates, when When the Set input terminal receives a high-level signal and the Reset input terminal receives a low-level signal, the output node voltage VN4 of the first 2-input NAND gate 330 is high level, and the output node voltage of the second 2-input NAND gate 340 is VN5 is low level, when the Set input end receives a low level signal and the Reset input end receives a high level signal, the output node voltage VN4 of the first 2-input NAND gate 330 is low level, and the second 2-input NAND The output node voltage VN5 of the NOT gate 340 is high level.

假设Set输入端接收高电平信号而Reset输入端接收低电平信号,则如上述,节点电压VN4为高电平而节点电压VN5为低电平,即弛张振荡器140的输出时钟CLK处于高电平状态,所以第一开关被设定为闭合状态而第二开关被设定为开路状态,也就是将第一电容区C1设定为放电状态,而将第二电容区C2设定为充电状态,此时因第一比较器310的负输入端(节点N1)被短路至接地,也就是第一比较器310的负输入端电压小于正输入端电压(带隙参考电压Vref),因此第一比较器310的输出端(Reset输入端)信号由低电平转换为高电平,此时,Set输入端与Reset输入端均接收高电平信号,因此RS闩锁器处于闩锁状态,其输出状态不变,也就是弛张振荡器140的输出时钟CLK保持于高电平状态,当节点电压VN2从零电位充电到大于带隙参考电压Vref时,第二比较器320的输出端(Set输入端)信号由高电平转换为低电平,此时,Set输入端接收低电平信号而Reset输入端接收高电平信号,因此第一2输入与非门330的输出节点电压VN4转换为低电平,而第二2输入与非门340的输出节点电压VN5转换为高电平,也就是弛张振荡器140的输出时钟CLK转换为低电平状态。Assuming that the Set input terminal receives a high-level signal and the Reset input terminal receives a low-level signal, as described above, the node voltage VN4 is at a high level and the node voltage VN5 is at a low level, that is, the output clock CLK of the relaxation oscillator 140 is at High level state, so the first switch is set to the closed state and the second switch is set to the open state, that is, the first capacitance area C1 is set to the discharge state, and the second capacitance area C2 is set to the Charging state, because the negative input terminal (node N1) of the first comparator 310 is short-circuited to ground at this time, that is, the negative input terminal voltage of the first comparator 310 is less than the positive input terminal voltage (bandgap reference voltage Vref), so The signal at the output terminal (Reset input terminal) of the first comparator 310 is converted from a low level to a high level. At this time, both the Set input terminal and the Reset input terminal receive a high level signal, so the RS latch is in a latched state , its output state remains unchanged, that is, the output clock CLK of the relaxation oscillator 140 remains in a high-level state. (Set input terminal) signal is converted from high level to low level. At this time, the Set input terminal receives a low level signal and the Reset input terminal receives a high level signal, so the output node voltage of the first 2-input NAND gate 330 VN4 transitions to a low level, and the output node voltage VN5 of the second 2-input NAND gate 340 transitions to a high level, that is, the output clock CLK of the relaxation oscillator 140 transitions to a low level state.

其后,第一开关被设定为开路状态而第二开关被设定为闭合状态,也就是将第一电容区C1设定为充电状态,而将第二电容区C2设定为放电状态,此时因第二比较器320的负输入端(节点N2)被短路至接地,也就是第二比较器320的负输入端电压小于正输入端电压(带隙参考电压Vref),因此第二比较器320的输出端(Set输入端)信号由低电平转换为高电平,此时,Set输入端与Reset输入端均接收高电平信号,因此RS闩锁器处于闩锁状态,其输出状态不变,也就是弛张振荡器140的输出时钟CLK保持于低电平状态,当节点电压VN1从零电位充电到大于带隙参考电压Vref时,第一比较器310的输出端(Reset输入端)信号由高电平转换为低电平,此时,Set输入端接收高电平信号而Reset输入端接收低电平信号,因此第一2输入与非门330的输出节点电压VN4转换为高电平,而第二2输入与非门340的输出节点电压VN5转换为低电平,也就是弛张振荡器140的输出时钟CLK转换为高电平状态。Thereafter, the first switch is set to an open state and the second switch is set to a closed state, that is, the first capacitive region C1 is set to a charging state, and the second capacitive region C2 is set to a discharging state, At this time, because the negative input terminal (node N2) of the second comparator 320 is short-circuited to ground, that is, the negative input terminal voltage of the second comparator 320 is smaller than the positive input terminal voltage (bandgap reference voltage Vref), so the second comparator The signal at the output terminal (Set input terminal) of the device 320 is converted from a low level to a high level. At this time, both the Set input terminal and the Reset input terminal receive a high level signal, so the RS latch is in a latched state, and its output The state remains unchanged, that is, the output clock CLK of the relaxation oscillator 140 remains in a low-level state. When the node voltage VN1 is charged from zero potential to be greater than the bandgap reference voltage Vref, the output terminal (Reset input terminal) signal from high level to low level, at this time, the Set input terminal receives a high level signal and the Reset input terminal receives a low level signal, so the output node voltage VN4 of the first 2-input NAND gate 330 is converted to High level, and the output node voltage VN5 of the second 2-input NAND gate 340 is switched to low level, that is, the output clock CLK of the relaxation oscillator 140 is switched to a high level state.

如上所述,第一电容区C1与第二电容区C2的充电状态与放电状态,不断地交互变化而产生弛张振荡器140的输出振荡时钟CLK,而由于第一电容区C1与第二电容区C2在充电状态时的时间常数正比于芯片内建RC时间常数校正码rc_code,所以弛张振荡器140输出时钟CLK的振荡周期亦正比于芯片内建RC时间常数校正码rc_code。As mentioned above, the charge state and discharge state of the first capacitance area C1 and the second capacitance area C2 are constantly changing alternately to generate the output oscillation clock CLK of the relaxation oscillator 140, and because the first capacitance area C1 and the second capacitance area The time constant of the region C2 in the charging state is proportional to the on-chip RC time constant correction code rc_code, so the oscillation period of the relaxation oscillator 140 output clock CLK is also proportional to the on-chip RC time constant correction code rc_code.

由上述可知,本发明技术突破先前技术有关RC时间常数校正的限制,本发明技术利用一弛张振荡器产生一由RC时间常数所决定的时钟,并用以在一预定时间区段内计数该时钟的周期以产生一周期计数值,再比较该周期计数值与一期望值以执行RC时间常数校正,该预定时间区段越长则校正码rc_code的有效位数越多,而所校正的RC时间常数也就越精准。一般而言,校正误差有二种主要来源,其一为该弛张振荡器内的比较器所造成的延迟误差,其二为启动与停止计数时的同步计数误差。本发明结构先进的地方在这二种误差均可通过降低该弛张振荡器的振荡频率与延长该预定时间区段而减少到容许误差以下。也就是说,较长的校正时间可以提高校正精准度。所以RC时间常数的校正就可达到任何所要求的精准度,因此可以显著提高集成电路调谐器芯片的镜像信号滤除功能。From the above, it can be seen that the technology of the present invention breaks through the limitations of the prior art on RC time constant correction. The technology of the present invention uses a relaxation oscillator to generate a clock determined by the RC time constant, and is used to count the clock within a predetermined time period to generate a cycle count value, and then compare the cycle count value with an expected value to perform RC time constant correction. The longer the predetermined time period is, the more effective digits the correction code rc_code has, and the corrected RC time constant It is also more accurate. In general, there are two main sources of calibration error, one is the delay error caused by the comparator in the relaxation oscillator, and the other is the synchronization count error when starting and stopping counting. The structure of the present invention is advanced in that the two errors can be reduced below the allowable error by reducing the oscillation frequency of the relaxation oscillator and extending the predetermined time period. That is to say, a longer calibration time can improve calibration accuracy. Therefore, the correction of the RC time constant can achieve any required accuracy, so the image signal filtering function of the integrated circuit tuner chip can be significantly improved.

通过使用适当型式的电阻与电容,则RC时间常数随温度与电压变化所导至的变动量可降低到可忽略的情况,也就是说,RC时间常数的变动主要由半导体制造所影响。因此,只需在开机时,作一次RC时间常数校正程序,其后就不需要再作校正。所以,较长的校正时间并不会对完成开机校正程序后的电路工作造成任何影响。本发明所提供的高精准度RC时间常数校正方法与装置,可以确保镜像信号滤除功能只受限于多相滤波器的滤波解析度,而不受限于校正程序的精准度。本发明结构与使用典型的电压比较器结构相比较,可节省芯片面积和减低线路的复杂度。By using appropriate types of resistors and capacitors, the variation of the RC time constant with temperature and voltage changes can be reduced to negligible conditions, that is, the variation of the RC time constant is mainly affected by semiconductor manufacturing. Therefore, it is only necessary to perform an RC time constant calibration procedure once when starting up, and there is no need for further calibration thereafter. Therefore, the longer calibration time will not have any impact on the circuit operation after the power-on calibration procedure is completed. The high-precision RC time constant correction method and device provided by the present invention can ensure that the image signal filtering function is only limited by the filtering resolution of the polyphase filter, not by the precision of the correction procedure. Compared with the typical voltage comparator structure, the structure of the present invention can save chip area and reduce circuit complexity.

以上所述仅为本发明的优选实施例,凡依本发明权利要求所进行的等效变化与修改,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.

Claims (13)

1. the integrated circuit tuner of the multiphase filter of a tool chip built-in RC time constant calibration function comprises:
One orthogonal mixer;
One multiphase filter comprises a first input end and one second input, and this first input end is coupled to an output of this orthogonal mixer;
One relaxation oscillator; And
One figure adjustment module comprises an output and be coupled to second input of this multiphase filter and an input of this relaxation oscillator, and an input is coupled to an output of this relaxation oscillator.
2. integrated circuit tuner as claimed in claim 1, wherein this figure adjustment module comprises:
One 2 inputs and door comprise the input that a first input end is coupled to this figure adjustment module;
One counter comprises the output that an input is coupled to this 2 input and door; And
One finite state machine comprises the output that an input is coupled to this counter, and one first output is coupled to the output of this figure adjustment module, and one second output is coupled to one second input of this 2 input and door.
3. integrated circuit tuner as claimed in claim 2, wherein this relaxation oscillator comprises:
One first capacitive region is coupled between a first node and the ground connection, comprises the input that an input is coupled to this relaxation oscillator, and this first node is coupled to one first voltage source;
One first switch is coupled between this first node and the ground connection;
One first comparator comprises a first input end and is coupled to this first node, and one second input is coupled to one the 3rd node, and the 3rd node is coupled to a reference voltage;
One the 1 input nand gate, comprise the output that a first input end is coupled to this first comparator, one second input is coupled to one the 5th node, and one output be coupled to one the 4th node, the 4th node is coupled to a control input end of this first switch and the output of this relaxation oscillator;
One second capacitive region is coupled between a Section Point and the ground connection, comprises the input that an input is coupled to this relaxation oscillator, and this Section Point is coupled to one second voltage source;
One second switch is coupled between this Section Point and the ground connection;
One second comparator comprises a first input end and is coupled to this Section Point, and one second input is coupled to one the 3rd node; And
One the 22 input nand gate, comprise the output that a first input end is coupled to this second comparator, one second input is coupled to one the 4th node, and an output is coupled to one the 5th node, and the 5th node is coupled to a control input end of this second switch.
4. integrated circuit tuner as claimed in claim 1, wherein this relaxation oscillator comprises:
One first capacitive region is coupled between a first node and the ground connection, comprises the input that an input is coupled to this relaxation oscillator, and this first node is coupled to one first voltage source;
One first switch is coupled between this first node and the ground connection;
One first comparator comprises a first input end and is coupled to this first node, and one second input is coupled to one the 3rd node, and the 3rd node is coupled to a reference voltage;
One the 1 input nand gate, comprise the output that a first input end is coupled to this first comparator, one second input is coupled to one the 5th node, and one output be coupled to one the 4th node, the 4th node is coupled to a control input end of this first switch and the output of this relaxation oscillator;
One second capacitive region is coupled between a Section Point and the ground connection, comprises the input that an input is coupled to this relaxation oscillator, and this Section Point is coupled to one second voltage source;
One second switch is coupled between this Section Point and the ground connection;
One second comparator comprises a first input end and is coupled to this Section Point, and one second input is coupled to one the 3rd node; And
One the 22 input nand gate, comprise the output that a first input end is coupled to this second comparator, one second input is coupled to one the 4th node, and an output is coupled to one the 5th node, and the 5th node is coupled to a control input end of this second switch.
5. integrated circuit tuner as claimed in claim 4, wherein this first capacitive region and this second capacitive region all comprise a plurality of electric capacity and a plurality of resistance, in order to simulate a plurality of electric capacity that this multiphase filter comprises and the circuit function of a plurality of resistance.
6. integrated circuit tuner as claimed in claim 5, wherein this figure adjustment module comprises:
One 2 inputs and door comprise the input that a first input end is coupled to this figure adjustment module;
One counter comprises the output that an input is coupled to this 2 input and door; And
One finite state machine comprises the output that an input is coupled to this counter, and one first output is coupled to the output of this figure adjustment module, and one second output is coupled to one second input of this 2 input and door.
7. chip built-in RC time constant bearing calibration that is used for the multiphase filter of integrated circuit tuner, the image signal filtering function of this multiphase filter is controlled by a chip built-in RC time constant, and this method comprises the following step:
(a) produce a clock, the cycle of this clock is proportional to this chip built-in RC time constant;
(b) in a scheduled time section, the cycle of counting this clock is to produce a count value;
(c) this count value and a desired value are compared to produce a comparative result; And
(d) upgrade this chip built-in RC time constant according to this comparative result.
8. bearing calibration as claimed in claim 7 also comprises:
This chip built-in RC time constant is set at an initial value.
9. bearing calibration as claimed in claim 8, wherein this chip built-in RC time constant comprises a plurality of positions, and the one highest significant position is set at " 1 ".
10. bearing calibration as claimed in claim 8, wherein upgrading this chip built-in RC time constant is to set the position data of this chip built-in RC time constant according to this comparative result.
11. bearing calibration as claimed in claim 8, wherein after this chip built-in RC time constant is finished initial value and is set, from the highest significant position to the least significant bit according to step (a) and (b), (c), and repeating and new settings more (d).
12. bearing calibration as claimed in claim 7 also comprises:
The voltage and a preset reference voltage of comparison one first capacitive region, voltage and this preset reference voltage of comparison one second capacitive region are in order to control the cycle of this clock.
13. bearing calibration as claimed in claim 12 also comprises:
Adjust effective number of a plurality of chip built-in electric capacity in this first capacitive region and this second capacitive region according to this chip built-in RC time constant.
CNA2007100016480A 2007-01-09 2007-01-09 Method and device for correcting time constant of chip built-in resistor and capacitor Pending CN101222206A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007100016480A CN101222206A (en) 2007-01-09 2007-01-09 Method and device for correcting time constant of chip built-in resistor and capacitor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007100016480A CN101222206A (en) 2007-01-09 2007-01-09 Method and device for correcting time constant of chip built-in resistor and capacitor

Publications (1)

Publication Number Publication Date
CN101222206A true CN101222206A (en) 2008-07-16

Family

ID=39631836

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007100016480A Pending CN101222206A (en) 2007-01-09 2007-01-09 Method and device for correcting time constant of chip built-in resistor and capacitor

Country Status (1)

Country Link
CN (1) CN101222206A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045060A (en) * 2009-10-13 2011-05-04 晨星软件研发(深圳)有限公司 Portable control device and method thereof
CN102226823A (en) * 2011-04-01 2011-10-26 广州润芯信息技术有限公司 Measuring method of RC constant of ground capacitance
CN102226822A (en) * 2011-04-01 2011-10-26 广州润芯信息技术有限公司 RC constant measuring method of differential capacitance
CN102916679A (en) * 2012-10-19 2013-02-06 钜泉光电科技(上海)股份有限公司 Circuit for supplying precise low-frequency clock signal, and control method for circuit

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045060A (en) * 2009-10-13 2011-05-04 晨星软件研发(深圳)有限公司 Portable control device and method thereof
CN102226823A (en) * 2011-04-01 2011-10-26 广州润芯信息技术有限公司 Measuring method of RC constant of ground capacitance
CN102226822A (en) * 2011-04-01 2011-10-26 广州润芯信息技术有限公司 RC constant measuring method of differential capacitance
CN102916679A (en) * 2012-10-19 2013-02-06 钜泉光电科技(上海)股份有限公司 Circuit for supplying precise low-frequency clock signal, and control method for circuit
CN102916679B (en) * 2012-10-19 2016-03-16 钜泉光电科技(上海)股份有限公司 Circuit and the control method thereof of accurate low-frequency clock signal are provided

Similar Documents

Publication Publication Date Title
CN107807511B (en) Correction apparatus and method, correction apparatus manufacturing method, and integrated circuit constructing method
US8933738B2 (en) Signal duty cycle detector and calibration system
US6842710B1 (en) Calibration of integrated circuit time constants
US8314652B2 (en) System and method for RC calibration using phase and frequency
EP1551102A1 (en) Device for calibrating the frequency of an oscillator, phase looked loop circuit comprising said calibration device and related frequency calibration method.
US8570113B2 (en) Digital VCO calibration method and apparatus
CN111030630B (en) Circuit and method for calibrating RC time constant on chip by using switched capacitor
EP2740214A1 (en) High accuracy rc calibration circuit
CN108111146B (en) Automatic calibration circuit for time constant of active filter
CN112422106B (en) Comparator for inhibiting offset voltage and method for inhibiting offset voltage of comparator
US7755398B2 (en) Time constant calibration device and related method thereof
US20090074120A1 (en) Auto-calibration for a filter
CN101222206A (en) Method and device for correcting time constant of chip built-in resistor and capacitor
US10868544B2 (en) Digitally reconfigurable ultra-high precision internal oscillator
CN103259532A (en) Resistor-capacitor filter calibrating circuit
US8364433B1 (en) Accurate resistance capacitance (RC) time constant calibration with metal-oxide-metal (MOM) capacitors for precision frequency response of integrated filters
CN110113028A (en) Constant calibrates circuit when the partial pressure integral form of on-chip active RC filter
JP4641045B2 (en) Semiconductor integrated circuit and microcomputer
CN102195612A (en) Semiconductor integrated circuit including constant adjusting circuit
JPH10322196A (en) Correction circuit and electronic circuit device having the same
CN100438335C (en) Circuit and method for automatically coordinating resistance-capacitance time constant of semiconductor element
US7548129B2 (en) On-chip R-C time constant calibration
CN114978163A (en) Frequency discrimination circuit, clock correction circuit, chip and information processing device
WO2022207807A1 (en) TESTING ADCs
US20120092078A1 (en) Variable resistor circuit and oscillation circuit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20080716