CN103631723B - adjusting circuit and circuit adjusting method - Google Patents
adjusting circuit and circuit adjusting method Download PDFInfo
- Publication number
- CN103631723B CN103631723B CN201310635378.4A CN201310635378A CN103631723B CN 103631723 B CN103631723 B CN 103631723B CN 201310635378 A CN201310635378 A CN 201310635378A CN 103631723 B CN103631723 B CN 103631723B
- Authority
- CN
- China
- Prior art keywords
- circuit
- adjustment
- adjusted
- storage address
- state machine
- 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
Landscapes
- Air Conditioning Control Device (AREA)
- Control Of Non-Positive-Displacement Pumps (AREA)
Abstract
本发明公开了调节电路及电路调节方法,所述电路包括:EEPROM及状态机;在EEPROM中设置额外存储单元,该存储单元的存储地址中预存待调节电路及状态机处于多种状态值时所对应的调节参数,状态机与EEPROM的读写端口连接,根据待调节电路及状态机的当前状态值,选取所对应的存储地址,从该存储地址中读取调节参数;根据调节参数对待调节电路及状态机设置进行调节。从而解决了现有电路参数调节繁琐的问题。实现了对电路单元的实施调节,提高了电路调节的灵活性,使电路的普适性提高,降低电路的维护及使用成本。
The invention discloses a regulating circuit and a method for regulating the circuit. The circuit comprises: an EEPROM and a state machine; an extra storage unit is set in the EEPROM, and the storage address of the storage unit pre-stores the values of the circuit to be adjusted and the state machine in various state values. For the corresponding adjustment parameters, the state machine is connected to the read-write port of the EEPROM, and the corresponding storage address is selected according to the current state value of the circuit to be adjusted and the state machine, and the adjustment parameters are read from the storage address; the adjustment circuit is treated according to the adjustment parameters and state machine settings. Therefore, the problem of cumbersome adjustment of the existing circuit parameters is solved. The implementation of adjustment to the circuit unit is realized, the flexibility of circuit adjustment is improved, the universality of the circuit is improved, and the maintenance and use costs of the circuit are reduced.
Description
技术领域technical field
本发明涉及自动控制及电子应用领域,尤其涉及电路调节方法及调节电路。The invention relates to the field of automatic control and electronic application, in particular to a circuit adjustment method and an adjustment circuit.
背景技术Background technique
随着现代集成电路生产技术的提高,集成电路的生产周期日益缩短,电路规模日益增大。在实际的应用过程中,驱动或控制类的集成电路需根据实际应用情况进行调节,但通常情况下,集成电路在流片后,内部参数已经设置完成,若调整或修改需要专用的设备并需要较长的操作周期。针对上述问题,现有技术中,多采用对集成电路的空余或已有的调节管脚进行预设的方式实现对电路的调节。但上述方法在实施时,由于空余及调节管脚的参数设置通常是单次或有限次的,即不可能对集成电路进行反复读写操作,而且其待调节的参数,通常是在集成电路已焊接到线路板上之后才可获得的,因此,将集成电路从线路板上反复取下也会对电路造成伤害。由此可知,现有技术中,对集成电路的参数调节,由于其信息读取的特有性,操作较为困难,调节次数有限。使集成电路的使用成本提高,并降低了电路的整体可靠性。With the improvement of modern integrated circuit production technology, the production cycle of integrated circuits is shortened day by day, and the circuit scale is increased day by day. In the actual application process, the driving or control integrated circuit needs to be adjusted according to the actual application situation, but usually, after the integrated circuit is taped out, the internal parameters have been set. If adjustment or modification requires special equipment and needs Long operating cycle. In view of the above-mentioned problems, in the prior art, the regulation of the circuit is realized by presetting the vacant or existing regulation pins of the integrated circuit. However, when the above method is implemented, since the parameter setting of the vacancy and the adjustment pin is usually single or limited, it is impossible to repeatedly read and write the integrated circuit, and the parameters to be adjusted are usually in the integrated circuit. It is not available until it is soldered to the circuit board, so repeated removal of the IC from the circuit board can also damage the circuit. It can be seen that, in the prior art, the parameter adjustment of the integrated circuit is difficult to operate and the number of adjustments is limited due to the uniqueness of information reading. This increases the cost of using the integrated circuit and reduces the overall reliability of the circuit.
发明内容Contents of the invention
鉴于现有技术中存在的情况,根据本发明的一个方面,提供一种调节电路,包括EEPROM及状态机;在所述EEPROM中设置额外存储单元,该存储单元的存储地址中预存待调节电路或状态机处于多种状态值时所对应的调节参数,使存储地址与所述状态值一一对应;所述状态机与EEPROM的读写端口连接,根据待调节电路或状态机的当前状态值,选取所对应的存储地址,从该存储地址中读取调节参数以根据所述调节参数对待调节电路或状态机设置进行调节。In view of the situation existing in the prior art, according to one aspect of the present invention, a kind of adjustment circuit is provided, including EEPROM and state machine; An extra storage unit is set in the EEPROM, and the storage address of the storage unit is pre-stored in the storage address of the circuit to be adjusted or When the state machine is in a plurality of state values, the corresponding adjustment parameters make the storage address correspond to the state value one by one; the state machine is connected with the read-write port of the EEPROM, and according to the current state value of the circuit to be adjusted or the state machine, The corresponding storage address is selected, and the adjustment parameter is read from the storage address to adjust the setting of the circuit to be adjusted or the state machine according to the adjustment parameter.
优选地,所述状态机包括:状态机读取单元、状态机内部参数设置单元及灵敏度放大器,所述状态机读取单元从所述EEPROM中读取调节参数,所述状态机内部参数设置单元根据所述调节参数对所述灵敏度放大器进行调节。Preferably, the state machine includes: a state machine reading unit, a state machine internal parameter setting unit and a sensitivity amplifier, the state machine reading unit reads adjustment parameters from the EEPROM, and the state machine internal parameter setting unit The sensitivity amplifier is adjusted according to the adjustment parameter.
优选地,所述外部待调节电路包括:多路电荷泵驱动电路、正高压或负高压电荷泵的驱动电路。Preferably, the external circuit to be adjusted includes: a multi-channel charge pump drive circuit, and a drive circuit for a positive high-voltage or negative high-voltage charge pump.
优选地,所述额外存储单元包括:第一额外存储单元及第二额外存储单元。Preferably, the additional storage unit includes: a first additional storage unit and a second additional storage unit.
优选地,当所述外部待调节电路为正高压或负高压电荷泵的驱动电路时,所驱动电荷泵的调整端Regulator与状态机连接,状态机根据待调节电路的第一当前状态值,从所述第一额外存储单元中选取所对应存储地址,从该存储地址中读取第一调节参数,根据所述第一调节参数对正高压或负高压电荷泵的驱动电路进行调节;若接收到Regulator反馈信号,则根据待调节电路的第二当前状态值,从所述第二额外存储单元中选取所对应存储地址,从该存储地址中读取第二调节参数,根据所述第二调节参数对正高压或负高压电荷泵的驱动电路进行调节。Preferably, when the external circuit to be regulated is a driving circuit of a positive high voltage or a negative high voltage charge pump, the regulating terminal Regulator of the driven charge pump is connected to the state machine, and the state machine is based on the first current state value of the circuit to be regulated, from Select the corresponding storage address in the first additional storage unit, read the first adjustment parameter from the storage address, and adjust the driving circuit of the positive high voltage or negative high voltage charge pump according to the first adjustment parameter; if received Regulator feedback signal, then according to the second current state value of the circuit to be adjusted, select the corresponding storage address from the second additional storage unit, read the second adjustment parameter from the storage address, according to the second adjustment parameter Regulates drive circuits for positive high voltage or negative high voltage charge pumps.
同时本发明还提供了一种电路调节方法,包括以下步骤:Simultaneously the present invention also provides a kind of circuit regulation method, comprises the following steps:
将待调节电路处于多种状态值时所对应的调节参数,存储在独立存储地址中,使存储地址与所述状态值一一对应;根据待调节电路的待调节状态值,选取所对应的存储地址,从该存储地址中读取调节参数;根据所述调节参数对所述待调节电路进行调节。Store the corresponding adjustment parameters when the circuit to be adjusted is in various state values, and store them in independent storage addresses, so that the storage addresses correspond to the state values one by one; select the corresponding storage address according to the state values of the circuit to be adjusted. address, read the adjustment parameter from the storage address; adjust the circuit to be adjusted according to the adjustment parameter.
优选地,所述将待调节电路处于多种状态值时所对应的调节参数,存储在独立存储地址中的步骤包括:将待调节驱动电路分别处于第一状态值及第二状态值时所对应的第一调节参数及第二调节参数,分别存储在第一存储地址及第二存储地址中。Preferably, the step of storing the corresponding adjustment parameters when the circuit to be adjusted is in various state values in an independent storage address includes: storing the corresponding adjustment parameters when the drive circuit to be adjusted is in the first state value and the second state value The first adjustment parameter and the second adjustment parameter are stored in the first storage address and the second storage address respectively.
优选地,根据待调节电路的待调节状态值,选取所对应的存储地址,从该存储地址中读取调节参数的步骤包括:根据待调节电路的第一状态值,从第一存储地址中选取第一调节参数;若接收到调整端Regulator的反馈信号,则待调节电路根据第二状态值,从第二存储地址中选取第二调节参数。Preferably, the corresponding storage address is selected according to the state value of the circuit to be adjusted, and the step of reading the adjustment parameter from the storage address includes: selecting from the first storage address according to the first state value of the circuit to be adjusted The first adjustment parameter; if the feedback signal from the adjustment terminal Regulator is received, the circuit to be adjusted selects the second adjustment parameter from the second storage address according to the second state value.
优选地,所述从存储地址中读取调节参数的步骤包括:当待调节电路为低压电器或高温电器的驱动电路时,从存储地址中读取调节参数后,对该读取的调节参数进行特殊字符串pattern校验或CRC校验;若该校验未通过,则重新从该存储地址中读取调节参数,直到校验通过为止。Preferably, the step of reading the adjustment parameter from the storage address includes: when the circuit to be adjusted is a drive circuit of a low-voltage electrical appliance or a high-temperature electrical appliance, after the adjustment parameter is read from the storage address, the read adjustment parameter is Special character string pattern check or CRC check; if the check fails, read the adjustment parameters from the storage address again until the check passes.
通过上述技术方案,本发明与现有技术相比具有以下优点:本发明通过在EEPROM(电可擦可编程只读存储器)中预存待调节参数,因此,当电路需要调节时,通过对EEPROM的相应存储地址中预存待调节参数的读取,实现了对功能性电路的实施调节。从而,提高了电路调节的灵活性,使电路的普适性提高,降低电路的维护及使用成本。Through the above technical scheme, the present invention has the following advantages compared with the prior art: the present invention prestores the parameters to be adjusted in EEPROM (Electrically Erasable Programmable Read-Only Memory), so when the circuit needs to be adjusted, the EEPROM The reading of the pre-stored parameters to be adjusted in the corresponding storage address realizes the adjustment of the functional circuit. Therefore, the flexibility of circuit adjustment is improved, the universality of the circuit is improved, and the maintenance and use costs of the circuit are reduced.
附图说明Description of drawings
图1为本发明调节电路在一种实施方式中的组成示意图;FIG. 1 is a schematic diagram of the composition of the regulating circuit of the present invention in an embodiment;
图2为本发明调节电路在一种实施方式中,外部待调节电路为多路电荷泵驱动电路的组成示意图;Fig. 2 is a schematic diagram of the composition of the regulating circuit of the present invention, in which the external circuit to be adjusted is a multi-channel charge pump driving circuit;
图3为本发明调节电路在一种实施方式中,外部待调节电路为状态机的组成示意图;Fig. 3 is a schematic diagram of the composition of the regulating circuit of the present invention, in which the external circuit to be adjusted is a state machine;
图4为本发明调节电路在一种实施方式中,外部待调节电路为电荷泵组成示意图;Fig. 4 is a schematic diagram of the composition of the external circuit to be adjusted as a charge pump in an embodiment of the regulating circuit of the present invention;
图5为本发明调节电路在一种实施方式中,外部待调节电路为带反馈电荷泵组成示意图;Fig. 5 is a schematic diagram of the composition of the regulation circuit of the present invention, in which the external circuit to be adjusted is a charge pump with feedback;
图6为本发明的一种实施方式中电路调节方法的流程示意图。FIG. 6 is a schematic flowchart of a circuit adjustment method in an embodiment of the present invention.
具体实施方式detailed description
下面结合附图对本发明作进一步详细的说明。The present invention will be described in further detail below in conjunction with the accompanying drawings.
如图1为本发明一种实施方式中实现本方法的调节系统组成示意图所示。该系统包括:状态机1、EEPROM2及外部待调节电路3,其中,状态机1及EEPROM2构成本发明的调节电路,在状态机1中设置状态机读取单元11及状态机外部参数设置单元12、在EEPROM2中设置额外存储单元21。状态机读取单元11的读取端与额外存储单元21的读写接口端连接,从额外存储单元21中读取存储数据。状态机读取单元11的输出端与状态机外部参数设置单元12的输入端连接,将从额外存储单元21中读取的数据传送到状态机外部参数设置单元12中。状态机外部参数设置单元12的输出端与外部待调节电路3的参数设置端连接,向外部待调节电路3输出设置参数。上述调节系统的实现过程为:首先,将外部待调节电路3处于工作状态1、工作状态2及工作状态3三种工作状态时对应的“参数”,一一对应预存入额外存储单元21的三个连续或非连续地址中。之后,从三种工作状态中选择所需的工作状态,将该工作状态所对应的“存储地址”预存到状态机读取单元11的读取地址中。后续,当启动状态机1后,状态机读取单元11根据读取地址,从额外存储单元21中读取设定工作状态的“参数”,并将此“参数”传送到“状态机外部参数设置单元12”中,状态机外部参数设置单元12根据接收到的“参数”对外部待调节电路3进行设定。从而实现了待调节电路的动态参数设置,有效解决了当EEPROM2流片后,其预存电路参数无法变更、对电路无法重现设置的问题,提高了电路的灵活性及可靠性。FIG. 1 is a schematic diagram showing the composition of an adjustment system for implementing the method in an embodiment of the present invention. This system comprises: state machine 1, EEPROM2 and external circuit 3 to be adjusted, wherein, state machine 1 and EEPROM2 constitute the regulation circuit of the present invention, state machine reading unit 11 and state machine external parameter setting unit 12 are set in state machine 1 1. An extra storage unit 21 is set in the EEPROM2. The reading end of the state machine reading unit 11 is connected to the read-write interface end of the extra storage unit 21 to read stored data from the extra storage unit 21 . The output end of the state machine reading unit 11 is connected with the input end of the state machine external parameter setting unit 12 , and the data read from the extra storage unit 21 is transmitted to the state machine external parameter setting unit 12 . The output terminal of the external parameter setting unit 12 of the state machine is connected with the parameter setting terminal of the external circuit 3 to be adjusted, and outputs the setting parameters to the external circuit 3 to be adjusted. The realization process of the above adjustment system is as follows: firstly, the corresponding "parameters" when the external circuit 3 to be adjusted is in the working state 1, working state 2 and working state 3 are pre-stored in the extra storage unit 21 one by one. consecutive or non-consecutive addresses. Afterwards, the desired working state is selected from the three working states, and the “storage address” corresponding to the working state is pre-stored in the read address of the state machine reading unit 11 . Subsequently, after starting the state machine 1, the state machine reading unit 11 reads the "parameter" of setting the working state from the additional storage unit 21 according to the read address, and transmits this "parameter" to the "state machine external parameter In the setting unit 12", the state machine external parameter setting unit 12 sets the external circuit 3 to be adjusted according to the received "parameter". In this way, the dynamic parameter setting of the circuit to be adjusted is realized, and the problem that the pre-stored circuit parameters cannot be changed after the EEPROM2 is taped out, and the circuit cannot be reproducibly set, improves the flexibility and reliability of the circuit.
通过本发明的调节电路可实现对多路电荷泵接入数量的控制,如图2所示,作为本发明调节电路的一种实施方式,外部待调节电路3为多路电荷泵31-1、31-2、31-3及31-4接入电路,其多路电荷泵的接入状态包括:接入电荷泵31-1工作(设定状态值为1)、接入电荷泵31-1、31-2工作(设定状态值为2)、接入电荷泵31-1、31-2及31-3工作(设定状态值为3)、接入电荷泵31-1、31-2、31-3及31-4工作(设定状态值为4)四种工作状态,其中,接入电荷泵31-1工作时,多路电荷泵驱动电路31的驱动值为0001、接入电荷泵31-1、31-2工作时,多路电荷泵驱动电路31的驱动值为0011、接入电荷泵31-1、31-2及31-3,多路电荷泵驱动电路31的驱动值为0111、接入电荷泵31-1、31-2、31-3及31-4,多路电荷泵驱动电路31的驱动值为1111。分别将上述电荷泵状态值存入单独的存储地址中,使状态值与驱动值相对应,具体如表1所示:The regulating circuit of the present invention can realize the control on the access quantity of multiple charge pumps. As shown in FIG. 31-2, 31-3, and 31-4 are connected to the circuit, and the connected states of the multi-channel charge pump include: connected to the charge pump 31-1 to work (the set state value is 1), connected to the charge pump 31-1 , 31-2 work (set state value is 2), connect charge pump 31-1, 31-2 and 31-3 work (set state value is 3), connect charge pump 31-1, 31-2 , 31-3 and 31-4 work (the set state value is 4) four working states, wherein, when the charge pump 31-1 is connected to work, the drive value of the multi-channel charge pump drive circuit 31 is 0001, and the charge pump is connected to When the pumps 31-1, 31-2 are working, the driving value of the multi-channel charge pump driving circuit 31 is 0011, and when the charge pumps 31-1, 31-2 and 31-3 are connected, the driving value of the multi-channel charge pump driving circuit 31 is is 0111, the charge pumps 31-1, 31-2, 31-3 and 31-4 are connected, and the driving value of the multi-channel charge pump driving circuit 31 is 1111. Store the state values of the above charge pumps in separate storage addresses, so that the state values correspond to the drive values, as shown in Table 1:
表1Table 1
如:当需要对多路电荷泵31-1、31-2及31-3进行“选路开启”时,首先,将状态值3所对应的存储地址0010,编写到状态机读取单元11的读取语句中。当状态机1上电启动后,状态机读取单元11从存储地址0010中读取驱动值0111,并将该驱动值0111通过状态机外部参数设置单元12,对多路电荷泵驱动电路31进行设置,从而实现了电荷泵31-1、31-2及31-3的开启,从而完成多路电荷泵的选择接入。有效解决了对接入电荷泵数量进行实时控制问题,从而降低了空余功耗,提高了多路电荷泵的整体使用效率。For example: when it is necessary to "select and turn on" the multi-channel charge pumps 31-1, 31-2 and 31-3, at first, write the storage address 0010 corresponding to the state value 3 into the state machine reading unit 11 read statement. After the state machine 1 is powered on and started, the state machine reading unit 11 reads the driving value 0111 from the storage address 0010, and passes the driving value 0111 through the state machine external parameter setting unit 12 to perform multi-channel charge pump driving circuit 31 setting, thereby realizing the opening of the charge pumps 31-1, 31-2 and 31-3, thereby completing the selective access of multiple charge pumps. The problem of real-time control of the number of connected charge pumps is effectively solved, thereby reducing idle power consumption and improving the overall use efficiency of multiple charge pumps.
为保证本发明的调节电路在不同应用环境中,都可对额外存储单元21中的数据进行准确读取,如图3所示,在本发明调节电路的一种实施方式中,状态机1作为待调节电路,在状态机1中还设置状态机内部参数设置单元13及灵敏度放大器14,该单元用于对状态机1本身的设置参数进行调节,并与灵敏度放大器14的参数设定端连接,灵敏度放大器14,用于比较从EEPROM2所读出的存储单元电流与基准电流的大小,从而判断存储单元的数值,通过差分比较器电路将比较电流的模拟值转换为数字(1或0),并输出到数据总线。在当前调节电路工作在高温、高压状态时,设定状态值为1,灵敏度放大器14的灵敏度调节参数为1;在当前调节电路工作在理想环境(非高压、高温及高寒环境)时,设定状态值为2,灵敏度放大器14的灵敏度调节参数为0.8;具体如表2所示:In order to ensure that the regulating circuit of the present invention can accurately read the data in the extra storage unit 21 in different application environments, as shown in FIG. 3 , in one embodiment of the regulating circuit of the present invention, the state machine 1 serves as The circuit to be adjusted is also provided with a state machine internal parameter setting unit 13 and a sensitivity amplifier 14 in the state machine 1. This unit is used to adjust the setting parameters of the state machine 1 itself, and is connected with the parameter setting end of the sensitivity amplifier 14. The sensitivity amplifier 14 is used to compare the magnitude of the memory cell current read from the EEPROM2 with the reference current, thereby judging the value of the memory cell, converting the analog value of the comparison current into a digital (1 or 0) through a differential comparator circuit, and output to the data bus. When the current regulation circuit works in high temperature and high pressure state, set the state value to 1, and the sensitivity adjustment parameter of the sensitivity amplifier 14 is 1; State value is 2, and the sensitivity adjustment parameter of sensitivity amplifier 14 is 0.8; Specifically as shown in table 2:
表2Table 2
在当前调节电路工作在理想环境时,状态机1根据设定状态值2,将读取存储地址0001的指令放入到状态机读取单元11中,当状态机1上电后,从所对应的存储地址0001中读取灵敏度调节参数0.8。状态机1根据灵敏度调节参数0.8,对状态机1的灵敏度放大器14进行设置,从而使当前的读取灵敏度更适于当前的工作环境。因此使存储器的数据读取更为可靠,从而保证了后续电路的准确控制。When the current regulation circuit is working in an ideal environment, state machine 1 puts the instruction to read storage address 0001 into the state machine reading unit 11 according to the set state value 2, and when the state machine 1 is powered on, from the corresponding Read the sensitivity adjustment parameter 0.8 in the memory address 0001. The state machine 1 sets the sensitivity amplifier 14 of the state machine 1 according to the sensitivity adjustment parameter 0.8, so that the current reading sensitivity is more suitable for the current working environment. Therefore, the reading of data from the memory is more reliable, thus ensuring the accurate control of subsequent circuits.
为通过本发明的调节电路,实现对电荷泵的动态调节,如图4所示,作为本发明调节电路的一种实施方式,外部待调节电路3为正高压或负高压电荷泵的驱动电路32时,该驱动电路32的驱动参数包括:驱动正高压电荷泵(状态值1)的驱动参数A及驱动负高压电荷泵(状态值2)的驱动参数B。并将上述A、B参数存入EEPROM2的额外存储单元21的0000~0001中。具体如表3所示:In order to realize the dynamic regulation of the charge pump through the regulating circuit of the present invention, as shown in FIG. 4, as an embodiment of the regulating circuit of the present invention, the external circuit 3 to be adjusted is a driving circuit 32 of a positive high-voltage or negative high-voltage charge pump , the driving parameters of the driving circuit 32 include: driving parameter A for driving the positive high-voltage charge pump (state value 1) and driving parameter B for driving the negative high-voltage charge pump (state value 2). And the above-mentioned A, B parameters are stored in 0000~0001 of the extra memory unit 21 of EEPROM2. Specifically as shown in Table 3:
表3table 3
参数A、B的调用及读取过程与上述实施方式的调取方式相同,此处不再赘述。为使电荷泵在工作运行过程中更为稳定,如图5所示,在本实施方式中,电荷泵33的调整端Regulator与状态机1连接,该驱动电路32的驱动参数包括:驱动正高压电荷泵调整参数(状态值3)的驱动参数C及驱动负高压电荷泵调整参数(状态值4)的驱动参数D。并将上述C、D参数存入EEPROM2的额外存储单元21的1000~1001中。具体如表4所示:The calling and reading process of parameters A and B is the same as the calling method of the above-mentioned embodiment, and will not be repeated here. In order to make the charge pump more stable during operation, as shown in FIG. 5 , in this embodiment, the regulator terminal Regulator of the charge pump 33 is connected to the state machine 1, and the driving parameters of the drive circuit 32 include: driving positive high voltage The driving parameter C of the charge pump adjustment parameter (state value 3) and the driving parameter D of the negative high voltage charge pump adjustment parameter (state value 4). And the above-mentioned C, D parameters are stored in 1000~1001 of the extra storage unit 21 of EEPROM2. Specifically as shown in Table 4:
表4Table 4
在该实施方式中,电荷泵33在启动过程中,状态机读取单元11根据当前接入的电荷泵类型(正高压或负高压电荷泵中的一种),从存储地址0000或0001中读取驱动参数A或B。在电荷泵33在运行过程中,若收到来自调整端Regulator的反馈信号,则从存储地址1000或1001中读取驱动参数C或D,从而实现了对于电荷泵的动态调节。上述实施方式,减小了接入不同类型的电荷泵时,对驱动电路的更换。同时也可实现电荷泵在工作过程中的动态调节。In this embodiment, during the start-up process of the charge pump 33, the state machine reading unit 11 reads from the storage address 0000 or 0001 according to the type of the charge pump currently connected (one of the positive high-voltage or negative high-voltage charge pump). Take drive parameter A or B. When the charge pump 33 is running, if it receives a feedback signal from the regulator, it reads the driving parameter C or D from the storage address 1000 or 1001, thereby realizing the dynamic adjustment of the charge pump. The above implementation manner reduces the replacement of the driving circuit when different types of charge pumps are connected. At the same time, the dynamic adjustment of the charge pump in the working process can also be realized.
图6为本发明的一种实施方式中电路调节方法的流程示意图。如图1~4及5所示,本发明的电路调节方法,包括以下步骤:FIG. 6 is a schematic flowchart of a circuit adjustment method in an embodiment of the present invention. As shown in Figures 1 to 4 and 5, the circuit adjustment method of the present invention comprises the following steps:
S101:获取多工作状态下的电路参数值。根据外部待调节电路3的运行状态,获取或设置该电路在多种工作状态时的调节参数。如上述实施方式中,当外部待调节电路3为多路电荷泵驱动电路时,存在四种电荷泵开启状态,分别对应4种驱动值。当待调节电路为状态机自身时,存在2种灵敏度放大器状态,分别对应2种灵敏度调节参数。当待调节电路为正高压或负高压电荷泵的驱动电路32时,对应2种驱动参数。S101: Obtain circuit parameter values in a multi-working state. According to the operating state of the external circuit 3 to be adjusted, the adjustment parameters of the circuit in various operating states are acquired or set. As in the above embodiment, when the external circuit 3 to be adjusted is a multi-channel charge pump drive circuit, there are four charge pump open states, corresponding to four drive values. When the circuit to be adjusted is the state machine itself, there are two sensitivity amplifier states, corresponding to two sensitivity adjustment parameters. When the circuit to be adjusted is the driving circuit 32 of the positive high-voltage or negative high-voltage charge pump, it corresponds to two kinds of driving parameters.
S102:在EEPROM2中预存电路参数值。在EEPROM2中设置额外存储单元21,如定义地址0000~0100为额外存储空间地址。之后,将上述步骤S101中所获得的电路参数值,根据不同的状态值或参数值,分别存储在上述额外存储单元21中,获得状态值、存储地址与调节参数(灵敏度调节参数或驱动参数)的对照表,使存储地址与状态值一一对应,具体如上述实施方式中表1~4所示。S102: Pre-store circuit parameter values in EEPROM2. The extra storage unit 21 is set in the EEPROM2, for example, addresses 0000-0100 are defined as addresses of the extra storage space. After that, the circuit parameter values obtained in the above step S101 are respectively stored in the above additional storage unit 21 according to different state values or parameter values, to obtain state values, storage addresses and adjustment parameters (sensitivity adjustment parameters or driving parameters) The corresponding comparison table makes the storage address correspond to the state value one by one, as shown in Tables 1-4 in the above-mentioned embodiment.
S103:获取参数存储地址。根据外部待调节电路3或状态机1当前的待调节状态,选取所对应的参数存储地址。如以上实施方式中,若要对多路电荷泵31-1、31-2及31-3进行“选路开启”时,则选取存储地址0010。S103: Obtain a parameter storage address. According to the current state of the external circuit 3 to be adjusted or the state machine 1 to be adjusted, the corresponding parameter storage address is selected. As in the above embodiments, if the multi-channel charge pumps 31 - 1 , 31 - 2 and 31 - 3 are to be "routed and turned on", the storage address 0010 is selected.
S104:根据读取地址进行参数读取。根据步骤S103中的存储地址编写读取指令,并将该读取指令写入状态机读取单元11的引导(或上电)读取指令中。当状态机1上电后,状态机读取单元11运行该读取指令,对额外存储单元21中的存储地址的内容给予读取。S104: Read parameters according to the read address. Write the read instruction according to the storage address in step S103 , and write the read instruction into the boot (or power-on) read instruction of the state machine read unit 11 . After the state machine 1 is powered on, the state machine reading unit 11 executes the read command to read the content of the storage address in the extra storage unit 21 .
当外部待调节电路3为正高压或负高压电荷泵的驱动电路32时,为在电荷泵运行过程中,对电荷泵实现动态调节,对电荷泵参数的调节,分为启动时的一次调节及运行过程中的二次调节。相应在额外存储单元21中设定启动时的第一独立存储地址及第二独立存储地址,在电荷泵的运行过程中,若状态机接收到电荷泵Regulator反馈值,则从第二独立存储地址1000~1001中,读取驱动参数C或D。从而实现对电荷泵在运行中的动态调节。When the external circuit 3 to be adjusted is the driving circuit 32 of the positive high-voltage or negative high-voltage charge pump, in order to realize the dynamic adjustment of the charge pump during the operation of the charge pump, the adjustment of the parameters of the charge pump is divided into one-time adjustment at startup and Secondary adjustment during operation. Correspondingly, the first independent storage address and the second independent storage address when starting are set in the additional storage unit 21. During the operation of the charge pump, if the state machine receives the feedback value of the charge pump Regulator, then from the second independent storage address From 1000 to 1001, drive parameter C or D is read. In this way, the dynamic adjustment of the charge pump during operation is realized.
当待调节电路3为低压电器或高温电器的驱动电路时,为使上述读取参数更为准确,在从该存储地址中读取调节参数后,对该读取调节参数进行特殊字符串pattern校验或CRC校验;若该校验未通过,则重新从该存储地址中读取调节参数,直到通过为止。When the circuit 3 to be adjusted is a drive circuit of a low-voltage electrical appliance or a high-temperature electrical appliance, in order to make the above-mentioned reading parameters more accurate, after reading the adjustment parameters from the storage address, a special character string pattern calibration is performed on the read adjustment parameters. check or CRC check; if the check fails, read the adjustment parameters from the storage address again until it passes.
S105:根据读取参数,对外部待调节电路3或状态机进行参数设定。状态机1将在步骤S104中所获得的调节参数(灵敏度调节参数或驱动参数),发送到外部待调节电路3或状态机内部参数设置单元13,对外部待调节电路3或状态机内部参数设置单元13实现调节。S105: According to the read parameters, set the parameters of the external circuit 3 to be adjusted or the state machine. The state machine 1 sends the adjustment parameter (sensitivity adjustment parameter or drive parameter) obtained in step S104 to the external circuit to be adjusted 3 or the internal parameter setting unit 13 of the state machine, and sets the external circuit to be adjusted 3 or the internal parameter of the state machine Unit 13 implements the regulation.
通过上述方案本发明通过在EEPROM(电可擦可编程只读存储器)中预存待调节参数,因此,当电路需要调节时,通过对EEPROM的相应存储地址中预存待调节参数的读取,实现了对集成电路的实施调节。从而,提高了电路调节的灵活性,使电路的普适性提高,降低电路的维护及使用成本。Through the above scheme, the present invention prestores the parameters to be adjusted in EEPROM (Electrically Erasable Programmable Read-Only Memory). Therefore, when the circuit needs to be adjusted, the parameter to be adjusted is prestored in the corresponding storage address of the EEPROM. Implement regulation on integrated circuits. Therefore, the flexibility of circuit adjustment is improved, the universality of the circuit is improved, and the maintenance and use costs of the circuit are reduced.
以上所述的仅是本发明的一些实施方式。对于本领域的普通技术人员来说,在不脱离本发明创造构思的前提下,还可以做出若干变形和改进,这些都属于发明的保护范围。What have been described above are only some embodiments of the present invention. For those skilled in the art, without departing from the inventive concept of the present invention, several modifications and improvements can be made, and these all belong to the protection scope of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310635378.4A CN103631723B (en) | 2013-11-29 | 2013-11-29 | adjusting circuit and circuit adjusting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310635378.4A CN103631723B (en) | 2013-11-29 | 2013-11-29 | adjusting circuit and circuit adjusting method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103631723A CN103631723A (en) | 2014-03-12 |
CN103631723B true CN103631723B (en) | 2017-02-01 |
Family
ID=50212807
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310635378.4A Active CN103631723B (en) | 2013-11-29 | 2013-11-29 | adjusting circuit and circuit adjusting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103631723B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9633734B1 (en) * | 2016-07-14 | 2017-04-25 | Ememory Technology Inc. | Driving circuit for non-volatile memory |
CN115981683B (en) * | 2023-03-20 | 2023-07-11 | 荣湃半导体(上海)有限公司 | Automatic efuse programming circuit |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101770752A (en) * | 2008-12-30 | 2010-07-07 | 鸿富锦精密工业(深圳)有限公司 | Display and display control method |
CN102577620A (en) * | 2009-01-14 | 2012-07-11 | 美光工具公司 | Multi-mode Portable Lighting Device |
CN103385038A (en) * | 2011-01-17 | 2013-11-06 | 美光工具公司 | Multi-mode portable lighting device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070016835A1 (en) * | 2005-07-12 | 2007-01-18 | Integrated Device Technology, Inc. | Method and apparatus for parameter adjustment, testing, and configuration |
-
2013
- 2013-11-29 CN CN201310635378.4A patent/CN103631723B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101770752A (en) * | 2008-12-30 | 2010-07-07 | 鸿富锦精密工业(深圳)有限公司 | Display and display control method |
CN102577620A (en) * | 2009-01-14 | 2012-07-11 | 美光工具公司 | Multi-mode Portable Lighting Device |
CN103385038A (en) * | 2011-01-17 | 2013-11-06 | 美光工具公司 | Multi-mode portable lighting device |
Also Published As
Publication number | Publication date |
---|---|
CN103631723A (en) | 2014-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103019127A (en) | Electrifying control circuit | |
CN103631723B (en) | adjusting circuit and circuit adjusting method | |
CN110809068A (en) | Novel address distribution circuit | |
US7633331B2 (en) | Dynamic voltage pump circuit and method of dynamically generating an output supply voltage thereof | |
KR102359331B1 (en) | Substrate processing system, storage medium and method of registering new device | |
CN102915076A (en) | Computer mainboard and voltage regulation circuit thereof | |
US8867251B2 (en) | Power supply device for solid state drive | |
US10438668B2 (en) | Power supply management device and memory system | |
EP3891594B1 (en) | Memory control system with a sequence processing unit | |
CN118622743A (en) | Fan control strategy acquisition method, device, server and medium | |
CN113704170B (en) | A chip working mode control method, system and medium | |
CN109375089A (en) | A kind of switching method and apparatus of power supply | |
CN114155888B (en) | Hard disk power supply control device and method, computer equipment and storage medium | |
CN113778930B (en) | AVS (Audio video Standard) adjusting system, method, device and equipment | |
US12141002B2 (en) | Hashboard, power supply system of digital processing device, and digital processing device | |
CN115793835A (en) | Method, device, equipment and storage medium for adjusting load line | |
CN104808730B (en) | Mobile terminal and its output voltage of power management chip control method and system | |
US20120218031A1 (en) | Method for controlling the supply voltage for an integrated circuit and an apparatus with a voltage regulation module and an integrated circuit | |
CN107797892A (en) | A kind of memory SPD adjustment method | |
CN109217663B (en) | Method and system for optimally designing microplate power supply compensation of storage system | |
CN219122686U (en) | Circuit board with read multi-manufacturer current sensor data | |
CN110993008A (en) | Selectable voltage generating circuit | |
CN216216514U (en) | Control circuit for simply generating two voltages | |
CN101667445A (en) | Working voltage supply device and method thereof | |
US20250155946A1 (en) | Compress attached memory module and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |