CN112816773B - A current sampling circuit - Google Patents
A current sampling circuit Download PDFInfo
- Publication number
- CN112816773B CN112816773B CN202110275164.5A CN202110275164A CN112816773B CN 112816773 B CN112816773 B CN 112816773B CN 202110275164 A CN202110275164 A CN 202110275164A CN 112816773 B CN112816773 B CN 112816773B
- Authority
- CN
- China
- Prior art keywords
- mos
- tube
- current
- mos tube
- electrically connected
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/25—Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Amplifiers (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及电流采样技术领域,具体涉及一种电流采样电路。The present invention relates to the technical field of current sampling, and in particular to a current sampling circuit.
背景技术Background Art
目前,对于许多直流刷式电机或者步进电机来说采样并检测电流是其工作的必要条件,对于刷式电机来说,采样并检测到电流信息可以确定负载条件的变化,也可以用来限制启动电流或者失速电流。当电机处于启动期间,在到达稳态条件之前通常需要保持在某个特定的电流条件,如果没有电流调节功能,有可能会无法满足这种特定的条件从而导致无法正常启动。同时在电机驱动产生过流时,也能够通过电流采样与电流调节对芯片的电流进行调整或者进行过流保护。因此一种高精度的电流采样电路以及相对应的电流调节功能对于电机驱动芯片来说是十分的重要的。而传统的电机电流采用方式大多通过在电机外部并联电阻器接地从而对电流进行限制,产生分流器检测电机的电压降,然后与芯片内部或者外部的参考电压进行比较。这种电流采样方式因为是对于满载电流的采样,因此在外部并联的电阻器往往采用精度较高的功率电阻器,在需要满足高精度的同时也会占用较大的面积以及产生较高的成本。另外现有电流采样电路大多采用常规的电流镜架构,这样当检测很小的电流时对于采样电阻的精度要求很高,很难达到很高的采样比例,除此之外,现有电流采样电路一般都会在电流经过的采样管上进行,电流采样的精度会受到采样比例的影响,采样比例越大,精度越差,采样比例缩小又不仅会给增加电路的面积,还会给电路带来过多的额外功耗。At present, sampling and detecting current is a necessary condition for many DC brush motors or stepper motors to work. For brush motors, sampling and detecting current information can determine the change of load conditions and can also be used to limit the starting current or stall current. When the motor is in the starting period, it is usually necessary to maintain a certain current condition before reaching the steady-state condition. If there is no current regulation function, it may not be able to meet this specific condition, resulting in failure to start normally. At the same time, when the motor drive generates overcurrent, the current sampling and current regulation can also be used to adjust the current of the chip or perform overcurrent protection. Therefore, a high-precision current sampling circuit and the corresponding current regulation function are very important for the motor driver chip. The traditional motor current adopting method is mostly to limit the current by connecting a parallel resistor to the ground outside the motor, generating a shunt to detect the voltage drop of the motor, and then comparing it with the reference voltage inside or outside the chip. Because this current sampling method is for sampling the full-load current, the external parallel resistor often uses a high-precision power resistor, which occupies a large area and generates a high cost while meeting the high precision. In addition, most of the existing current sampling circuits use a conventional current mirror architecture, so when detecting very small currents, the accuracy of the sampling resistor is very high, and it is difficult to achieve a high sampling ratio. In addition, the existing current sampling circuits are generally performed on the sampling tube through which the current passes. The accuracy of current sampling will be affected by the sampling ratio. The larger the sampling ratio, the worse the accuracy. Reducing the sampling ratio will not only increase the area of the circuit, but also bring too much additional power consumption to the circuit.
发明内容Summary of the invention
鉴于背景技术的不足,本发明是提供了一种采样比例可调、高精度的电流采样电路。In view of the shortcomings of the background technology, the present invention provides a current sampling circuit with adjustable sampling ratio and high precision.
为解决以上技术问题,本发明提供了如下技术方案:一种电流采样电路,包括电流镜电路、电压钳位电路和输出cascode电流镜电路;电流镜电路包括采样电路和镜像电路,采样电路包括至少两个第一MOS管,所有第一MOS管的漏极分别输入检测电流,所有第一MOS管的栅极输入第一驱动电压VIN,所有第一MOS管的源极接地;镜像电路包括至少两个第二MOS管,所有第二MOS管依次串联,串联是指上一个第二MOS管的源极与下一个第二MOS管的漏极电连接,第一个第二MOS管的漏极向输出cascode电流镜电路输入第一镜像电流,最后一个第二MOS管的源极接地,所有第二MOS管的栅极分别输入第一驱动电压VIN;输出cascode电流镜电路将第一镜像电流比例转换为第二镜像电流,第二镜像电流输入到采样电阻Rsense;电压钳位电路将第一MOS管的漏极电压和第一个第二MOS管的漏极电压钳至到目标电位。To solve the above technical problems, the present invention provides the following technical solutions: a current sampling circuit, comprising a current mirror circuit, a voltage clamping circuit and an output cascode current mirror circuit; the current mirror circuit comprises a sampling circuit and a mirror circuit, the sampling circuit comprises at least two first MOS tubes, the drains of all the first MOS tubes are respectively input with a detection current, the gates of all the first MOS tubes are respectively input with a first driving voltage VIN, and the sources of all the first MOS tubes are grounded; the mirror circuit comprises at least two second MOS tubes, all the second MOS tubes are sequentially connected in series, the series connection means that the source of the previous second MOS tube is electrically connected to the drain of the next second MOS tube, the drain of the first second MOS tube inputs the first mirror current to the output cascode current mirror circuit, the source of the last second MOS tube is grounded, and the gates of all the second MOS tubes are respectively input with the first driving voltage VIN; the output cascode current mirror circuit converts the first mirror current ratio into a second mirror current, and the second mirror current is input to the sampling resistor Rsense; the voltage clamping circuit clamps the drain voltage of the first MOS tube and the drain voltage of the first second MOS tube to a target potential.
在某种实施方式中,采样电路包括四个第一MOS管,镜像电路包括三个第二MOS管。In a certain implementation, the sampling circuit includes four first MOS transistors, and the mirror circuit includes three second MOS transistors.
在某种实施方式中,电压钳位电路包括误差放大器AMP和输出管MN1,误差放大器AMP的正极与第一MOS管的漏极电连接,误差放大器的负极与第一个第二MOS管的漏极电连接,误差放大器的输出信号输入到输出管MN1的栅极,第一镜像电流通过输出管MN1的源极和漏极输入到输出cascode电流镜电路。In a certain embodiment, the voltage clamping circuit includes an error amplifier AMP and an output tube MN1, the positive electrode of the error amplifier AMP is electrically connected to the drain of the first MOS tube, the negative electrode of the error amplifier is electrically connected to the drain of the first second MOS tube, the output signal of the error amplifier is input to the gate of the output tube MN1, and the first mirror current is input to the output cascode current mirror circuit through the source and drain of the output tube MN1.
在某种实施方式中,误差放大器包括一级放大电路、二级放大电路、三级放大电路和偏置电流产生电路;In a certain embodiment, the error amplifier includes a primary amplifier circuit, a secondary amplifier circuit, a tertiary amplifier circuit and a bias current generating circuit;
偏置电流产生电路产生第一偏置电流、第二偏置电流和第三偏置电流;The bias current generating circuit generates a first bias current, a second bias current and a third bias current;
一级放大电路包括MOS管M1、M2、M3、M4和M13,第一偏置电流输入到MOS管M1和M2的源极,MOS管M1的栅极是误差放大器AMP的负极,MOS管M2的栅极是误差放大器AMP的正极,MOS管M1的漏极与MOS管M3的漏极电连接,MOS管M2的漏极与MOS管M4的漏极电连接,MOS管M3、M4和M13的源极分别接地,MOS管M3的栅极、MOS管M4的栅极、MOS管M13的栅极和漏极分别和电源V1电连接;The first-stage amplifier circuit includes MOS tubes M1, M2, M3, M4 and M13, the first bias current is input to the source electrodes of the MOS tubes M1 and M2, the gate electrode of the MOS tube M1 is the negative electrode of the error amplifier AMP, the gate electrode of the MOS tube M2 is the positive electrode of the error amplifier AMP, the drain electrode of the MOS tube M1 is electrically connected to the drain electrode of the MOS tube M3, the drain electrode of the MOS tube M2 is electrically connected to the drain electrode of the MOS tube M4, the sources of the MOS tubes M3, M4 and M13 are grounded respectively, and the gate electrode of the MOS tube M3, the gate electrode of the MOS tube M4, and the gate electrode and drain electrode of the MOS tube M13 are electrically connected to the power supply V1 respectively;
二级放大电路包括MOS管M14、M15、M16、M17、M18和M19,MOS管M14和M15的源极分别与电源V2电连接,MOS管M14的栅极分别和MOS管M14的漏极、MOS管M15的栅极和MOS管M16的漏极电连接,MOS管M15的漏极与MOS管M17的漏极电连接,MOS管M16和M17的栅极分别输入第二偏置电流,MOS管M16的源极分别与MOS管M2的漏极和MOS管M18的源极电连接,MOS管M17的源极分别与MOS管M1的漏极和MOS管M19的源极电连接,MOS管M18和M19的栅极分别输入使能电压V3和使能电压V4,MOS管M18和M19的漏极分别接地;三级放大电路包括MOS管M20和M21,MOS管M20的源极与电源V2电连接,MOS管M20的栅极与MOS管M15的漏极电连接,MOS管M20的漏极分别和输出管MN1的栅极电连接,第三偏置电流输入到MOS管M21的栅极,MOS管M21的源极接地。The secondary amplifier circuit includes MOS tubes M14, M15, M16, M17, M18 and M19. The sources of MOS tubes M14 and M15 are electrically connected to the power supply V2 respectively. The gate of MOS tube M14 is electrically connected to the drain of MOS tube M14, the gate of MOS tube M15 and the drain of MOS tube M16 respectively. The drain of MOS tube M15 is electrically connected to the drain of MOS tube M17. The gates of MOS tubes M16 and M17 input the second bias current respectively. The source of MOS tube M16 is electrically connected to the drain of MOS tube M2 and the source of MOS tube M18 respectively. MOS tube M17 The source of the MOS tube M1 is electrically connected to the drain of the MOS tube M1 and the source of the MOS tube M19 respectively, the gates of the MOS tubes M18 and M19 are respectively input with the enable voltage V3 and the enable voltage V4, and the drains of the MOS tubes M18 and M19 are respectively grounded; the three-stage amplification circuit includes MOS tubes M20 and M21, the source of the MOS tube M20 is electrically connected to the power supply V2, the gate of the MOS tube M20 is electrically connected to the drain of the MOS tube M15, the drain of the MOS tube M20 is respectively electrically connected to the gate of the output tube MN1, the third bias current is input to the gate of the MOS tube M21, and the source of the MOS tube M21 is grounded.
在某种实施方式中,MOS管M18和M19的漏极通过修调模块接地,修调模块包括MOS管M60、M61、M62、M63、M64、M65、M66和M67,MOS管M60、M61、M62和M63的漏极分别与MOS管M18和M19的漏极电连接,MOS管M60、M61、M62和M63的栅极分别接入第一控制信号EN1、第二控制信号EN2、第三控制信号EN3和第四控制信号EN4,MOS管M60、M61、M62和M63的源极分别和MOS管M64、M65、M66和M67的漏极电连接,MOS管M64、M65、M66和M67的栅极分别接入电压Vbias,MOS管M64、M65、M66和M67的源极接地。In a certain embodiment, the drains of the MOS tubes M18 and M19 are grounded through the trimming module, and the trimming module includes MOS tubes M60, M61, M62, M63, M64, M65, M66 and M67. The drains of the MOS tubes M60, M61, M62 and M63 are electrically connected to the drains of the MOS tubes M18 and M19, respectively. The gates of the MOS tubes M60, M61, M62 and M63 are respectively connected to the first control signal EN1, the second control signal EN2, the third control signal EN3 and the fourth control signal EN4. The sources of the MOS tubes M60, M61, M62 and M63 are respectively electrically connected to the drains of the MOS tubes M64, M65, M66 and M67, respectively. The gates of the MOS tubes M64, M65, M66 and M67 are respectively connected to the voltage Vbias, and the sources of the MOS tubes M64, M65, M66 and M67 are grounded.
在某种实施方式中,输出cascode电流镜电路包括功率管MP1、MP2、MP3和MP4,功率管MP1和MP2的源极分别和电源VDD电连接,功率管MP1的漏极和功率管MP3的漏极电连接,功率管MP2的漏极和功率管MP4的漏极电连接,功率管MP1的栅极分别和功率管MP2的栅极、功率管MP3的源极和输出管MN1的漏极电连接,功率管MP3和MP4的栅极分别和驱动电压V5电连接,功率管MP4的源极与采样电阻Rsense一端电连接,采样电阻Rsense另一端接地。In a certain embodiment, the output cascode current mirror circuit includes power tubes MP1, MP2, MP3 and MP4, the sources of the power tubes MP1 and MP2 are electrically connected to the power supply VDD respectively, the drain of the power tube MP1 is electrically connected to the drain of the power tube MP3, the drain of the power tube MP2 is electrically connected to the drain of the power tube MP4, the gate of the power tube MP1 is electrically connected to the gate of the power tube MP2, the source of the power tube MP3 and the drain of the output tube MN1 respectively, the gates of the power tubes MP3 and MP4 are electrically connected to the driving voltage V5 respectively, the source of the power tube MP4 is electrically connected to one end of the sampling resistor Rsense, and the other end of the sampling resistor Rsense is grounded.
在某种实施方式中,采样电阻Rsense未接地的一端与MCU的数模转换接口电连接,所述MCU对采样电阻Rsense的电压进行模数转换。In a certain implementation manner, the ungrounded end of the sampling resistor Rsense is electrically connected to a digital-to-analog conversion interface of the MCU, and the MCU performs analog-to-digital conversion on the voltage of the sampling resistor Rsense.
本发明与现有技术相比所具有的有益效果是:Compared with the prior art, the present invention has the following beneficial effects:
1:采样电路由至少两个第一MOS管并联组成,在保证高采样比例的前提下,避免了在需要较高采样比例时单个采样管的尺寸过大,而且也能拥有更好的版图匹配性;1: The sampling circuit is composed of at least two first MOS tubes connected in parallel. Under the premise of ensuring a high sampling ratio, it avoids the size of a single sampling tube being too large when a higher sampling ratio is required, and also has better layout matching;
2:通过误差放大器将第一MOS管的漏极电压和第一个第二MOS管的漏极电压钳到同一电位,当第一MOS管的栅极电压和第二MOS管的栅极电压相同时,第一MOS管和第二MOS管能够线性导通,进而确保电流镜电路的采样精度,这样在需要高采样比例时不用额外设置高精度的采样电阻;2: The drain voltage of the first MOS tube and the drain voltage of the first and second MOS tubes are clamped to the same potential through the error amplifier. When the gate voltage of the first MOS tube and the gate voltage of the second MOS tube are the same, the first MOS tube and the second MOS tube can be linearly turned on, thereby ensuring the sampling accuracy of the current mirror circuit. In this way, there is no need to set an additional high-precision sampling resistor when a high sampling ratio is required;
3:在实际使用时,通过调节输出cascode电流镜电路的电流转换比例,可以降低在高采样比例时对采样电阻的要求;另外通过输出cascode电流镜电路的功率管MP3和MP4的输出阻抗,可以提高电源抑制比,增大输出cascode电流镜电路的采样精度;3: In actual use, by adjusting the current conversion ratio of the output cascode current mirror circuit, the requirements for the sampling resistor at a high sampling ratio can be reduced; in addition, by adjusting the output impedance of the power tubes MP3 and MP4 of the output cascode current mirror circuit, the power supply rejection ratio can be improved, and the sampling accuracy of the output cascode current mirror circuit can be increased;
4:在实际使用时,本发明可以应用于电机驱动芯片在低侧进行电流采样,当电机处于独立的PWM模式且两个低侧MOSFET在同时传感电流的时候,两个低侧MOSFET的电流可以输入到输出cascode电流镜电路中进行检测,只需使用一个电流采样电路便能检测两个低侧MOSFET的电流,减小了功耗和降低了成本,同时也能允许在驱动和制动低侧慢速衰减期间检测电机绕组电流,从而能够在双向有刷直流电机中联系检测电流。4: In actual use, the present invention can be applied to the motor driver chip to perform current sampling on the low side. When the motor is in an independent PWM mode and the two low-side MOSFETs are sensing current at the same time, the currents of the two low-side MOSFETs can be input into the output cascode current mirror circuit for detection. Only one current sampling circuit is needed to detect the currents of the two low-side MOSFETs, thereby reducing power consumption and reducing costs. At the same time, it also allows the motor winding current to be detected during the slow decay of the driving and braking low sides, thereby being able to detect the current in a bidirectional brushed DC motor.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
本发明有如下附图:The present invention has the following accompanying drawings:
图1为本发明的电路图;Fig. 1 is a circuit diagram of the present invention;
图2为本发明的误差放大器的电路图;FIG2 is a circuit diagram of an error amplifier of the present invention;
图3为本发明的修调模块的电路图;FIG3 is a circuit diagram of a trimming module of the present invention;
图4为本发明的仿真图。FIG. 4 is a simulation diagram of the present invention.
具体实施方式DETAILED DESCRIPTION
现在结合附图对本发明作进一步详细的说明。这些附图均为简化的示意图,仅以示意方式说明本发明的基本结构,因此其仅显示与本发明有关的构成。The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.
如图1所示,一种电流采样电路,包括电流镜电路1、电压钳位电路2和输出cascode电流镜电路3;电流镜电路1包括采样电路10和镜像电路11,采样电路10包括至少两个第一MOS管M101,所有第一MOS管M101的漏极分别输入检测电流,所有第一MOS管M101的栅极分别输入第一驱动电压VIN,所有第一MOS管M101的源极接地;镜像电路11包括至少两个第二MOS管M102,所有第二MOS管M102依次串联,串联是指上一个第二MOS管M102的源极与下一个第二MOS管M102的漏极电连接,第一个第二MOS管M102的漏极向输出cascode电流镜电路3输入第一镜像电流,最后一个第二MOS管M102的源极接地,所有第二MOS管M102的栅极分别与输入第一驱动电压VIN;输出cascode电流镜电路3将第一镜像电流比例转换为第二镜像电流,第二镜像电流输入到采样电阻Rsense;电压钳位电路2将第一MOS管M101的漏极电压和第一个第二MOS管M102的漏极电压钳至到同一电位。As shown in FIG1 , a current sampling circuit includes a current mirror circuit 1, a voltage clamp circuit 2 and an output cascode current mirror circuit 3; the current mirror circuit 1 includes a sampling circuit 10 and a mirror circuit 11, the sampling circuit 10 includes at least two first MOS tubes M101, the drains of all the first MOS tubes M101 are respectively input with a detection current, the gates of all the first MOS tubes M101 are respectively input with a first driving voltage VIN, and the sources of all the first MOS tubes M101 are grounded; the mirror circuit 11 includes at least two second MOS tubes M102, all the second MOS tubes M102 are connected in series in sequence, and the series connection refers to the connection of the previous second MOS tube M102 with the previous second MOS tube M102. The source of the first MOS tube M101 is electrically connected to the drain of the next second MOS tube M102, the drain of the first second MOS tube M102 inputs the first mirror current to the output cascode current mirror circuit 3, the source of the last second MOS tube M102 is grounded, and the gates of all the second MOS tubes M102 are respectively connected to the input first driving voltage VIN; the output cascode current mirror circuit 3 converts the first mirror current into a second mirror current in proportion, and the second mirror current is input to the sampling resistor Rsense; the voltage clamping circuit 2 clamps the drain voltage of the first MOS tube M101 and the drain voltage of the first second MOS tube M102 to the same potential.
具体的,本实施例中,采样电路10包括四个第一MOS管M101,镜像电路11包括三个第二MOS管M102,通过将四个第一MOS管M101并联并将三个第二MOS管M102串联,使其电流比例为1:K,使得镜像电路镜像到的理想电流值为Isense=Iin/K。在理想情况下MOS管处于线性区的漏极电流应为:因此若想第二MOS管M102与第一MOS管M101的电流能够与尺寸成比例则需要两个管子的漏极电压与栅极电压相同,而这两个管子的漏极电位的不同会导致漏极电流的不同,同时也会导致严重的沟道长度调制效应,从而导致采样电流的精度较低,因此需要采用电压钳位电路2将第一MOS管M101和第二MOS管M102的漏端电压钳位到目标电位,确保电流镜电路1的高采样比例。Specifically, in this embodiment, the sampling circuit 10 includes four first MOS transistors M101, and the mirror circuit 11 includes three second MOS transistors M102. By connecting the four first MOS transistors M101 in parallel and the three second MOS transistors M102 in series, the current ratio is 1:K, so that the ideal current value mirrored by the mirror circuit is I sense =I in /K. In an ideal case, the drain current of the MOS transistor in the linear region should be: Therefore, if the current of the second MOS tube M102 and the first MOS tube M101 is to be proportional to the size, the drain voltage and gate voltage of the two tubes need to be the same, and the difference in the drain potential of the two tubes will lead to different drain currents, and will also lead to a serious channel length modulation effect, resulting in low accuracy of the sampled current. Therefore, it is necessary to use a voltage clamping circuit 2 to clamp the drain voltage of the first MOS tube M101 and the second MOS tube M102 to the target potential to ensure a high sampling ratio of the current mirror circuit 1.
具体的,本实施例中,输出cascode电流镜电路3包括功率管MP1、MP2、MP3和MP4,功率管MP1和MP2的源极分别和电源VDD电连接,功率管MP1的漏极和功率管MP3的漏极电连接,功率管MP2的漏极和功率管MP4的漏极电连接,功率管MP1的栅极分别和功率管MP2的栅极、功率管MP3的源极和输出管MN1的漏极电连接,功率管MP3和MP4的栅极分别和驱动电压V5电连接,功率管MP4的源极与采样电阻Rsense一端电连接,采样电阻Rsense另一端接地,其中功率管MP1和MP2组成了电流镜结构,其比例为1:1,在实际使用时,如果所需采样的电流值过小,可以适当调整该电流镜结构的比例来降低对采样电阻Rsense的精度要求。Specifically, in the present embodiment, the output cascode current mirror circuit 3 includes power tubes MP1, MP2, MP3 and MP4, the sources of the power tubes MP1 and MP2 are electrically connected to the power supply VDD respectively, the drain of the power tube MP1 is electrically connected to the drain of the power tube MP3, the drain of the power tube MP2 is electrically connected to the drain of the power tube MP4, the gate of the power tube MP1 is electrically connected to the gate of the power tube MP2, the source of the power tube MP3 and the drain of the output tube MN1 respectively, the gates of the power tubes MP3 and MP4 are electrically connected to the driving voltage V5 respectively, the source of the power tube MP4 is electrically connected to one end of the sampling resistor Rsense, and the other end of the sampling resistor Rsense is grounded, wherein the power tubes MP1 and MP2 form a current mirror structure, and the ratio thereof is 1:1. In actual use, if the current value to be sampled is too small, the ratio of the current mirror structure can be appropriately adjusted to reduce the accuracy requirement on the sampling resistor Rsense.
具体的,本实施例中,电压钳位电路2包括误差放大器AMP和输出管MN1,误差放大器AMP的正极与第一MOS管M101的漏极电连接,误差放大器AMP的负极与第一个第二MOS管M102的漏极电连接,误差放大器AMP的输出信号输入到输出管MN1的栅极,第一镜像电流通过输出管MN1的源极和漏极输入到输出cascode电流镜电路。Specifically, in this embodiment, the voltage clamping circuit 2 includes an error amplifier AMP and an output tube MN1, the positive electrode of the error amplifier AMP is electrically connected to the drain of the first MOS tube M101, the negative electrode of the error amplifier AMP is electrically connected to the drain of the first second MOS tube M102, the output signal of the error amplifier AMP is input to the gate of the output tube MN1, and the first mirror current is input to the output cascode current mirror circuit through the source and drain of the output tube MN1.
如图2所示,本实施例中,误差放大器AMP包括一级放大电路21、二级放大电路22、三级放大电路23和偏置电流产生电路20;As shown in FIG. 2 , in this embodiment, the error amplifier AMP includes a primary amplifier circuit 21 , a secondary amplifier circuit 22 , a tertiary amplifier circuit 23 and a bias current generating circuit 20 ;
偏置电流产生电路20产生第一偏置电流、第二偏置电流和第三偏置电流;The bias current generating circuit 20 generates a first bias current, a second bias current and a third bias current;
偏置电流产生电路20包括MOS管M5、M6、M7、M8、M9、M10、M11、M12、M22、M23和两个电阻,其中MOS管M5、M6、M7和M8构成了共源共栅电流镜,由电源I2提供偏置电流,共源共栅电流镜产生第一偏置电流和第二偏置电流,增大了误差放大器AMP的电源抑制比,其中第一偏置电流通过MOS管M5的漏极输入到一级放大电路21,第二偏置电流通过MOS管M7的漏极输入到二级放大电路22;The bias current generating circuit 20 includes MOS tubes M5, M6, M7, M8, M9, M10, M11, M12, M22, M23 and two resistors, wherein the MOS tubes M5, M6, M7 and M8 form a common source and common gate current mirror, the bias current is provided by the power supply I2, the common source and common gate current mirror generates a first bias current and a second bias current, and increases the power supply rejection ratio of the error amplifier AMP, wherein the first bias current is input to the first-stage amplifier circuit 21 through the drain of the MOS tube M5, and the second bias current is input to the second-stage amplifier circuit 22 through the drain of the MOS tube M7;
一级放大电路21包括MOS管M1、M2、M3、M4和M13,第一偏置电流输入到MOS管M1和M2的源极,MOS管M1的栅极是误差放大器AMP的负极,MOS管M2的栅极是误差放大器AMP的正极,MOS管M1的漏极与MOS管M3的漏极电连接,MOS管M2的漏极与MOS管M4的漏极电连接,MOS管M3、M4和M13的源极分别接地,MOS管M3的栅极、MOS管M4的栅极、MOS管M13的栅极和漏极分别和电源V1电连接;The first-stage amplifier circuit 21 includes MOS tubes M1, M2, M3, M4 and M13, the first bias current is input to the source electrodes of the MOS tubes M1 and M2, the gate of the MOS tube M1 is the negative electrode of the error amplifier AMP, the gate of the MOS tube M2 is the positive electrode of the error amplifier AMP, the drain of the MOS tube M1 is electrically connected to the drain of the MOS tube M3, the drain of the MOS tube M2 is electrically connected to the drain of the MOS tube M4, the sources of the MOS tubes M3, M4 and M13 are grounded respectively, and the gate of the MOS tube M3, the gate of the MOS tube M4, the gate and the drain of the MOS tube M13 are electrically connected to the power supply V1 respectively;
另外,本实施例中,为了保证一级放大电路20在使用时的频率特性和稳定性,MOS管M1和M2的漏极分别连接有补偿电容;In addition, in this embodiment, in order to ensure the frequency characteristics and stability of the first-stage amplifier circuit 20 when in use, the drains of the MOS tubes M1 and M2 are respectively connected to compensation capacitors;
二级放大电路22包括MOS管M14、M15、M16、M17、M18和M19,MOS管M14和M15的源极分别与电源V2电连接,MOS管M14的栅极分别和MOS管M14的漏极、MOS管M15的栅极和MOS管M16的漏极电连接,MOS管M15的漏极与MOS管M17的漏极电连接,MOS管M16和M17的栅极分别输入第二偏置电流,MOS管M16的源极分别与MOS管M2的漏极和MOS管M18的源极电连接,MOS管M17的源极分别与MOS管M1的漏极和MOS管M19的源极电连接,MOS管M18和M19的栅极分别输入使能电压V3和使能电压V4,使能电压V3和使能电压V4使MOS管M18和M19导通,MOS管M18和M19的漏极分别接地;在实际实用时,一级放大电路21的双端输出电压输入到MOS管M16和M17的源极,二级放大电路22将双端输入转换为单独电压输出到三级放大电路23;The secondary amplifier circuit 22 includes MOS tubes M14, M15, M16, M17, M18 and M19. The sources of the MOS tubes M14 and M15 are electrically connected to the power supply V2 respectively. The gate of the MOS tube M14 is electrically connected to the drain of the MOS tube M14, the gate of the MOS tube M15 and the drain of the MOS tube M16 respectively. The drain of the MOS tube M15 is electrically connected to the drain of the MOS tube M17. The gates of the MOS tubes M16 and M17 are respectively input with a second bias current. The source of the MOS tube M16 is electrically connected to the drain of the MOS tube M2 and the drain of the MOS tube M18 respectively. The source electrodes of the MOS tube M17 are electrically connected to the drain electrodes of the MOS tube M1 and the source electrodes of the MOS tube M19, respectively; the gate electrodes of the MOS tubes M18 and M19 are respectively input with the enable voltage V3 and the enable voltage V4, the enable voltage V3 and the enable voltage V4 turn on the MOS tubes M18 and M19, and the drain electrodes of the MOS tubes M18 and M19 are respectively grounded; in actual use, the double-terminal output voltage of the first-stage amplifier circuit 21 is input to the source electrodes of the MOS tubes M16 and M17, and the second-stage amplifier circuit 22 converts the double-terminal input into a single voltage and outputs it to the third-stage amplifier circuit 23;
三级放大电路23包括MOS管M20和M21,MOS管M21和M22构成了电流镜结构,电源I2向三级放大电路23提供第三偏置电流,第三偏置电流输入到MOS管M21的栅极,MOS管M20的源极与电源V2电连接,MOS管M20的栅极与功率管M15的漏极电连接,MOS管M20的漏极分别和输出管MN1的栅极电连接,第三偏置电流输入到MOS管M21的栅极,MOS管M21的源极接地。The three-stage amplifier circuit 23 includes MOS tubes M20 and M21. The MOS tubes M21 and M22 form a current mirror structure. The power supply I2 provides a third bias current to the three-stage amplifier circuit 23. The third bias current is input to the gate of the MOS tube M21. The source of the MOS tube M20 is electrically connected to the power supply V2. The gate of the MOS tube M20 is electrically connected to the drain of the power tube M15. The drain of the MOS tube M20 is electrically connected to the gate of the output tube MN1 respectively. The third bias current is input to the gate of the MOS tube M21. The source of the MOS tube M21 is grounded.
在设计过程中,误差放大器AMP中地所有MOS管可以是NMOS管或者PMOS管。During the design process, all MOS tubes in the error amplifier AMP can be NMOS tubes or PMOS tubes.
作为改进,本实施例中,MOS管M18和M19的漏极通过修调模块接地,修调模块包括N型MOS管M60、M61、M62、M63、M64、M65、M66和M67,MOS管M60、M61、M62和M63的漏极分别与MOS管M18和M19的漏极电连接,MOS管M60、M61、M62和M63的栅极分别接入第一控制信号EN1、第二控制信号EN2、第三控制信号EN3和第四控制信号EN4,MOS管M60、M61、M62和M63的源极分别和所述MOS管M64、M65、M66和M67的漏极电连接,MOS管M64、M65、M66和M67的栅极分别接入电压Vbias,MOS管M64、M65、M66和M67的源极接地。As an improvement, in the present embodiment, the drains of the MOS tubes M18 and M19 are grounded through the trimming module, and the trimming module includes N-type MOS tubes M60, M61, M62, M63, M64, M65, M66 and M67. The drains of the MOS tubes M60, M61, M62 and M63 are electrically connected to the drains of the MOS tubes M18 and M19, respectively. The gates of the MOS tubes M60, M61, M62 and M63 are respectively connected to the first control signal EN1, the second control signal EN2, the third control signal EN3 and the fourth control signal EN4. The sources of the MOS tubes M60, M61, M62 and M63 are respectively electrically connected to the drains of the MOS tubes M64, M65, M66 and M67, respectively. The gates of the MOS tubes M64, M65, M66 and M67 are respectively connected to the voltage Vbias, and the sources of the MOS tubes M64, M65, M66 and M67 are grounded.
在实际使用时,通过控制第一控制信号EN1、第二控制信号EN2、第三控制信号EN3和第四控制信号EN4的高低电平可以使相应的MOS管导通或者关闭,而MOS管M60、M61、M62和M63中的一个或者多个关闭时会改变二级放大电路22的偏置电流,进而能减小误差放大器的失调。In actual use, the corresponding MOS tubes can be turned on or off by controlling the high and low levels of the first control signal EN1, the second control signal EN2, the third control signal EN3 and the fourth control signal EN4. When one or more of the MOS tubes M60, M61, M62 and M63 are turned off, the bias current of the secondary amplifier circuit 22 will be changed, thereby reducing the offset of the error amplifier.
本发明的电压钳位电路的工作原理如下:在实际使用时,如果电压V_SENSE下降则输入到二级放大电路22的电压则会增大,增大的电压输入到MOS管M15的栅极使其输入到MOS管M20的栅极的电压变小,而MOS管M20由于其栅极的输入电压变小,MOS管M20的漏极输出电压变大即误差放大器AMP输入到输出管MN1的栅极电压变大,进而使得减小的电压V_SENSE增大,达到电压钳位的作用;如果电压V_SENSE增大,则反之,MOS管M20的漏极输入到输出管MN1的栅极电压变小;如果电压V_DRV增大,则A点输入到二级放大电路22的电压将会变小,则二级放大电路22输入到三级放大电路23的电压将会变小,即MOS管M20的栅极电压会变小,因此最后输入到输出管MN1的栅极电压将会变大,使第一MOS管M101的漏极电压变大,保持和第二MOS管M102的漏极电压相同,从而能够达到电压钳位的作用。The working principle of the voltage clamping circuit of the present invention is as follows: in actual use, if the voltage V_SENSE decreases, the voltage input to the secondary amplifier circuit 22 will increase, and the increased voltage is input to the gate of the MOS tube M15, so that the voltage input to the gate of the MOS tube M20 becomes smaller, and the MOS tube M20 has a smaller input voltage at its gate, and the drain output voltage of the MOS tube M20 increases, that is, the gate voltage input to the output tube MN1 by the error amplifier AMP increases, thereby increasing the reduced voltage V_SENSE, achieving the effect of voltage clamping; if the voltage V_SENSE decreases, the voltage input to the gate of the MOS tube M15 decreases, and the gate of the MOS tube M20 decreases, so that the gate of the MOS tube M20 decreases, and the gate of the output tube MN1 decreases, thereby increasing the reduced voltage V_SENSE, and achieving the effect of voltage clamping; If SENSE increases, then conversely, the gate voltage input from the drain of the MOS tube M20 to the output tube MN1 becomes smaller; if the voltage V_DRV increases, the voltage input from point A to the secondary amplifier circuit 22 will become smaller, and the voltage input from the secondary amplifier circuit 22 to the tertiary amplifier circuit 23 will become smaller, that is, the gate voltage of the MOS tube M20 will become smaller, so the gate voltage input to the output tube MN1 will become larger, so that the drain voltage of the first MOS tube M101 becomes larger, and the drain voltage of the second MOS tube M102 is kept the same, so that the voltage clamping effect can be achieved.
在某种实施方式中,采样电阻Rsense未接地的一端与MCU的数模转换接口电连接,MCU对采样电阻Rsense的电压进行模数转换,以此实现电流检测。In a certain implementation, the ungrounded end of the sampling resistor Rsense is electrically connected to the digital-to-analog conversion interface of the MCU, and the MCU performs analog-to-digital conversion on the voltage of the sampling resistor Rsense to achieve current detection.
图4中,IDRV为待检测电流,Isense为流过采样电阻Rsense的检测电流,MNDRV为第一功率管M101的漏极电压,MNsense为第二功率管M102的漏极电压,从图4中可以得到,在进行仿真时,可见第一功率管M101和第二功率管M102的漏极电压相差仅为0.7MV,Isense为采样比例1:1000后的采样电流为1.0339mA,IDRV为所需采样的电流为969.72mA,可采样电流的绝对精度约为百分之6。In FIG4 , IDRV is the current to be detected, Isense is the detection current flowing through the sampling resistor Rsense, MNDRV is the drain voltage of the first power tube M101, and MNsense is the drain voltage of the second power tube M102. It can be seen from FIG4 that during simulation, the drain voltage difference between the first power tube M101 and the second power tube M102 is only 0.7MV, Isense is the sampling current after the sampling ratio is 1:1000, which is 1.0339mA, and IDRV is the current to be sampled, which is 969.72mA. The absolute accuracy of the sampled current is about 6%.
综上,本发明在实际使用时具有以下效果:In summary, the present invention has the following effects when actually used:
1:采样电路10由至少两个第一MOS管M101并联组成,在保证高采样比例的前提下,避免了在需要较高采样比例时单个采样管的尺寸过大,而且也能拥有更好的版图匹配性;1: The sampling circuit 10 is composed of at least two first MOS tubes M101 connected in parallel. Under the premise of ensuring a high sampling ratio, it avoids the size of a single sampling tube being too large when a higher sampling ratio is required, and also has better layout matching;
2:通过误差放大器AMP将第一MOS管M101的漏极电压和第一个第二MOS管M102的漏极电压钳到同一电位,当第一MOS管M101的栅极电压和第二MOS管M02的栅极电压相同时,第一MOS管M101和第二MOS管M102能够线性导通,进而确保电流镜电路1的采样精度,这样在需要高采样比例时不用额外设置高精度的采样电阻Rsense;2: The drain voltage of the first MOS tube M101 and the drain voltage of the first and second MOS tubes M102 are clamped to the same potential through the error amplifier AMP. When the gate voltage of the first MOS tube M101 and the gate voltage of the second MOS tube M102 are the same, the first MOS tube M101 and the second MOS tube M102 can be linearly turned on, thereby ensuring the sampling accuracy of the current mirror circuit 1. In this way, there is no need to set an additional high-precision sampling resistor Rsense when a high sampling ratio is required;
3:在实际使用时,通过调节输出cascode电流镜电路3的电流转换比例,可以降低在高采样比例时对采样电阻Rsene的要求;另外通过输出cascode电流镜电路3的功率管MP3和MP4的输出阻抗,可以提高电源抑制比,增大电流镜电路的采样精度;3: In actual use, by adjusting the current conversion ratio of the output cascode current mirror circuit 3, the requirement for the sampling resistor Rsene at a high sampling ratio can be reduced; in addition, by adjusting the output impedance of the power tubes MP3 and MP4 of the output cascode current mirror circuit 3, the power supply rejection ratio can be improved, thereby increasing the sampling accuracy of the current mirror circuit;
4:在实际使用时,本发明可以应用于电机驱动芯片在低侧进行电流采样,减小了功耗和降低了成本,同时也能允许在驱动和制动低侧慢速衰减期间检测电机绕组电流,从而能够在双向有刷直流电机中联系检测电流。当电机驱动芯片处于独立的PWM模式且两个低侧的MOSFET在同时传输电流时,两路采样电流都可以输入到输出cascode电流镜电路中,此时流过采样电阻Rsense的检测电流为两个低侧MOSFET的电流之和,能够达到1:1000的采样比例且感应电流与采样电流之间的绝对误差为6%。4: In actual use, the present invention can be applied to the motor driver chip to perform current sampling on the low side, which reduces power consumption and costs, and also allows the detection of motor winding current during the slow decay of the driving and braking low sides, so that the detection current can be connected in the bidirectional brushed DC motor. When the motor driver chip is in an independent PWM mode and the two low-side MOSFETs are transmitting current at the same time, both sampling currents can be input into the output cascode current mirror circuit. At this time, the detection current flowing through the sampling resistor Rsense is the sum of the currents of the two low-side MOSFETs, which can achieve a sampling ratio of 1:1000 and the absolute error between the induced current and the sampled current is 6%.
上述依据本发明为启示,通过上述的说明内容,相关工作人员完全可以在不偏离本项发明技术思想的范围内,进行多样的变更以及修改。本项发明的技术性范围并不局限于说明书上的内容,必须要根据权利要求范围来确定其技术性范围。The above is based on the present invention as an inspiration. Through the above description, relevant staff can make various changes and modifications without departing from the technical idea of this invention. The technical scope of this invention is not limited to the content in the specification, and its technical scope must be determined according to the scope of the claims.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110275164.5A CN112816773B (en) | 2021-03-15 | 2021-03-15 | A current sampling circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110275164.5A CN112816773B (en) | 2021-03-15 | 2021-03-15 | A current sampling circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112816773A CN112816773A (en) | 2021-05-18 |
CN112816773B true CN112816773B (en) | 2024-09-13 |
Family
ID=75863244
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110275164.5A Active CN112816773B (en) | 2021-03-15 | 2021-03-15 | A current sampling circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112816773B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115694480A (en) * | 2022-10-27 | 2023-02-03 | 北京兆讯恒达技术有限公司 | Current Mode Numerically Controlled Oscillator and Corresponding Phase Locked Loop |
CN116191366B (en) * | 2022-12-16 | 2025-03-21 | 深圳市创芯微微电子有限公司 | A battery protection chip and protection system |
CN116338281B (en) * | 2023-03-22 | 2024-10-22 | 辰芯半导体(深圳)有限公司 | High-voltage MOSFET bidirectional current sampling circuit, power management chip and mobile electronic device |
CN116207949B (en) * | 2023-04-25 | 2023-07-11 | 拓尔微电子股份有限公司 | Current sampling circuit and DC-DC converter |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN214539787U (en) * | 2021-03-15 | 2021-10-29 | 江苏集萃智能集成电路设计技术研究所有限公司 | Current sampling circuit |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104977450B (en) * | 2014-04-03 | 2019-04-30 | 深圳市中兴微电子技术有限公司 | A current sampling circuit and method |
CN107765067B (en) * | 2017-10-17 | 2023-07-07 | 深圳南云微电子有限公司 | Current detection circuit and current detection method |
CN111337735B (en) * | 2020-02-17 | 2022-09-13 | 上海艾为电子技术股份有限公司 | Chip and current sampling circuit |
-
2021
- 2021-03-15 CN CN202110275164.5A patent/CN112816773B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN214539787U (en) * | 2021-03-15 | 2021-10-29 | 江苏集萃智能集成电路设计技术研究所有限公司 | Current sampling circuit |
Also Published As
Publication number | Publication date |
---|---|
CN112816773A (en) | 2021-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112816773B (en) | A current sampling circuit | |
CN101629973B (en) | High-precision current sampling circuit without operational amplifier for low voltage power supply | |
CN109032241B (en) | A Low Dropout Linear Regulator with Current Limit | |
CN107607770B (en) | Current sampling circuit, switch circuit and current sampling method | |
EP2966460B1 (en) | Current sampling circuit and method | |
CN107727925B (en) | A High Precision Wide Range Peak Current Sampling Circuit | |
CN101739054A (en) | Active current limiting circuit and power regulator using same | |
CN102128970A (en) | Wide-load range, high-precision and low-power consumption current detection circuit | |
CN210201705U (en) | Current sampling comparator circuit | |
CN101557164B (en) | Low-voltage power-generating circuit and device thereof | |
JP5434170B2 (en) | Overcurrent protection device | |
CN117040449A (en) | Overcurrent protection and detection circuit suitable for class AB output stage | |
CN105305989A (en) | Rail-to-rail operational amplifier | |
CN214539787U (en) | Current sampling circuit | |
CN201018463Y (en) | Single Sided Hysteretic Comparator | |
JP4810943B2 (en) | Overcurrent detection circuit and voltage comparison circuit | |
CN202217200U (en) | A low dropout linear regulator | |
CN109347453A (en) | A High Linear Precision Fully Differential Operational Amplifier Circuit Structure | |
CN115792359A (en) | H-bridge current detection circuit | |
CN114094947A (en) | Cascode amplifier biasing method, device and biasing circuit | |
CN110445482B (en) | A low power high slew rate comparator | |
JP4555131B2 (en) | Constant voltage power circuit | |
WO2021056301A1 (en) | Transconductance amplifier and chip | |
CN111654244A (en) | A High Linearity GΩ Class Equivalent Resistance Circuit with PVT Robustness | |
CN216411410U (en) | Series resistance detection 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 | ||
CP03 | Change of name, title or address |
Address after: 214000 18th floor, building C, swan block, Wuxi Software Park, 111 Linghu Avenue, Xinwu District, Wuxi City, Jiangsu Province Patentee after: Jiangsu Luojia Juxin Integrated Circuit Design Co.,Ltd. Country or region after: China Address before: 214000 18th floor, building C, swan block, Wuxi Software Park, 111 Linghu Avenue, Xinwu District, Wuxi City, Jiangsu Province Patentee before: Jiangsu Jicui Intelligent Integrated Circuit Design Technology Research Institute Co.,Ltd. Country or region before: China |
|
CP03 | Change of name, title or address |