Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Logic input signal is converted into many bit logic signal or single-bit logical signal by means of only a logic input signal end by the embodiment of the present invention, realizes the mode bit controlling internal circuit fast or at a slow speed.
Fig. 1 illustrates the general construction of the one line control circuit that the embodiment of the present invention provides, and for convenience of explanation, illustrate only part related to the present invention.
As the one line control circuit that one embodiment of the invention provides, be packaged in chip, this one line control circuit comprises:
Status toggle unit 11, its input end is chip one pin, status toggle unit 11 judges outside logic input signal, when logic input signal is fast logic signal, export quick active signal, this one line control circuit be switched to quick mode, when logic input signal be at a slow speed logical signal time, export slow active signal, this one line control circuit is switched to slow speed mode;
Quick cell 12, its control end is connected with the output terminal of status toggle unit 11, input end is connected with the input end of status toggle unit 11, clock signal terminal is connected with internal circuit 14, feedback output end is connected with the reset terminal of status toggle unit 11, this quick cell 12 is activated when receiving quick active signal, responds under the effect of clock signal to the Rapid Variable Design composition of logic input signal, control multiple mode bit internally circuit 14 export many bit logic signal; And
Unit 13 at a slow speed, its control end is connected with the output terminal of status toggle unit 11, input end is connected with the input end of status toggle unit 11, this at a slow speed unit 13 be activated when receiving slow active signal, respond to the varying component at a slow speed of logic input signal, control single status position internally circuit 14 exports single-bit logical signal.
Below in conjunction with specific embodiment, realization of the present invention is described in detail.
Fig. 2 illustrates the sub modular structure example of the one line control circuit that the embodiment of the present invention provides, and for convenience of explanation, illustrate only part related to the present invention.
As one embodiment of the invention, quick cell 12 comprises:
According to clock signal C lock, export and get location time Add_time and to the timing module 121 of status toggle unit 11 feedback reset signal Reset, its clock control end is the clock signal terminal of quick cell 12, feedback signal output is the feedback output end of quick cell 12, and reset terminal is the control end of quick cell 12;
According to getting location time Add_time, what export effective status bit address Add gets location module 122, it is got location time input end and is connected with the location time output terminal of getting of timing module 121, and input end of clock is the input end of quick cell 12, and Enable Pin is the control end of quick cell 12;
Getting under location time Add_time effective status bit address Add assignment, by the assignment module 123 that the Rapid Variable Design composition conversion in logic input signal is many bit logic signal, it is got location time input end and is connected with the location time output terminal of getting of timing module 121, address input end is connected with the address output end getting location module 122, logic signal input end is the input end of quick cell 12, and address inverting input is connected with the secondary address reversed-phase output getting location module 122.
In an initial condition, quick cell 12 is in dormant state, and unit 13 is in state of activation at a slow speed, and logic input signal passes through unit 13 at a slow speed and is converted to the output of single-bit logical signal, this conversion only to logic input signal delay disposal slightly, does not change the logic state of its signal.
Until when logic input signal first time, logic state changed, namely using the negative edge of logic input signal or rising edge as trigger condition, change-over period starts, one line control circuit is switched to quick mode by status toggle unit 11, and export quick active signal, quick cell 12 is activated, simultaneously, unit 13 enters dormant state at a slow speed, and the single-bit logical signal of output is maintained at the logic state before dormancy, no longer affects by logic input signal.
As one embodiment of the invention, can set quick active signal is high level, then slow active signal is low level; Also can set quick active signal is low level, then slow active signal is high level.
After quick cell 12 is activated, under the effect of clock signal, timing by timing module 121, and export get the location time to getting location module 122 and assignment module 123, get in the time of location at this, by the rising edge number of getting location module 122 statistic logic input signal, and using the mode bit address of the number of rising edge as many bit logic signal.At the end of getting the location time, namely at assignment point, assignment module 123, by crawl logic input signal logic state now, carries out assignment to the mode bit of corresponding address in many bit logic signal.After completing assignment, the assignment of quick cell 12 hold mode position, enters dormant state.One line control circuit is switched to slow speed mode by status toggle unit 11, and unit 13 enters state of activation again at a slow speed, and quick cell 12 enters dormant state, and one line control circuit gets back to original state, completes a change-over period.
As one embodiment of the invention, can using the single rising edge of logic input signal or multiple rising edge as counting condition, also can using the single negative edge of logic input signal or multiple negative edge as counting condition.
In embodiments of the present invention, the logic change of logic input signal within the change-over period belongs to Rapid Variable Design composition, is responded by quick cell 12; The logic change of logic input signal outside the change-over period belongs to varying component at a slow speed, is responded by unit 13 at a slow speed.
Fig. 3 illustrates the exemplary circuit structure of the status toggle unit that one embodiment of the invention provides and timing module, for convenience of explanation, illustrate only part related to the present invention.
As one embodiment of the invention, status toggle unit 11 comprises phase inverter INV0, d type flip flop DFF1, delayer Delay0 and diode Diode, the input end of phase inverter INV0 is the input end of status toggle unit 11, the output terminal of phase inverter INV0 is connected with the input end of clock of d type flip flop DFF1, the data input pin of d type flip flop DFF1 connects high level, the reset terminal of d type flip flop DFF1 is the reset terminal of status toggle unit 11, the data output end of d type flip flop DFF1 is connected with the input end of delayer Delay0, the output terminal of delayer Delay0 is connected with the negative electrode of diode Diode, tie point is the output terminal of status toggle unit 11, the plus earth of diode Diode.
Timing module 121 can be counter, the first data input pin of counter connects high level, the input end of clock of counter is the clock control end of timing module 121, the reset terminal of counter is the reset terminal of timing module 121, the last digit of counter is the feedback signal output of timing module 121 according to reversed-phase output, the secondary last digit of counter according to output terminal be timing module 121 get location time output terminal.
In embodiments of the present invention, with four digit counters be made up of d type flip flop DFF2, d type flip flop DFF3, d type flip flop DFF4, d type flip flop DFF5 for realizing example, being described, being to be understood that, can also increase or reduce the quantity of trigger during specific implementation, its annexation repeats no more.
In embodiments of the present invention, after diode Diode ensures that circuit powers on, the original state of activation signal Enable is 0.As reset signal Reset=1, trigger during first negative edge of logic input signal, make activation signal Enable=1.
As one embodiment of the invention, when can make Enable=1, this activation signal Enable is quick active signal, and when making Enable=0, this activation signal Enable is slow active signal.
Clock is reference clock, can by generations such as the crystal oscillating circuit in internal circuit, phaselocked loop or oscillators.
Fig. 4 illustrates and the exemplary circuit structure of getting location module that one embodiment of the invention provides for convenience of explanation, illustrate only part related to the present invention.
Get location module 122 and comprise counter, phase inverter INV1 and rejection gate NOR1, the input end of phase inverter INV1 be get location module 122 get location time input end, an input end of the output terminal AND OR NOT gate NOR1 of phase inverter INV1 connects, another input end of rejection gate NOR1 be get location module 122 get location time input end, the output terminal of rejection gate NOR1 is connected with the reset terminal of counter, the first data input pin of counter connects high level, the input end of clock of counter is the input end of clock getting location module 122, every data output end of counter is the address output end getting location module 122, the first data inversion output terminal of counter is unsettled, secondary bit data reversed-phase output OPADD reverse signal AddB.
In embodiments of the present invention, address inversion signal Add (N) B, Add (N-1) B ... Add1B is the inversion signal of address bit Add [N:0].
In embodiments of the present invention, with four digit counters be made up of d type flip flop DFF6, d type flip flop DFF7, d type flip flop DFF8, d type flip flop DFF9 for realizing example, the rising edge be used in computational logic input signal, and export four bit address positions Add [3:0], the quantity of trigger can also be increased or reduce when should be appreciated that specific implementation, to adapt to the needs of address bit, this address bit Add [3:0] follows thermometer code establishment, is used for judging that whether one of four states bit address is effective.
When getting location time Add_time=0, and during activation signal Enable=1, counter is activated, and gets location module 122 and starts to carry out getting location, and counter can according to the rising edge number of logic input, corresponding change address bit.If only have a rising edge, address bit Add [3:0]=0001, first mode bit address is effective; If there are three rising edges, address bit Add [3:0]=0111, the 3rd mode bit address is effective, in like manner can push away.
Fig. 5 illustrates the exemplary circuit structure of the assignment module that one embodiment of the invention provides, and for convenience of explanation, illustrate only part related to the present invention.
Assignment module 123 comprises d type flip flop DFF10, d type flip flop DFF11, d type flip flop DFF12, d type flip flop DFF13, phase inverter INV10, phase inverter INV11, phase inverter INV12, phase inverter INV13, phase inverter INV14, three end input nand gate NAND0, three end input nand gate NAND1, three end input nand gate NAND2 and two end input nand gate NAND4, the data input pin of d type flip flop DFF10 and d type flip flop DFF11 is the logic signal input end of assignment module 123, d type flip flop DFF12 is connected with the data input pin of d type flip flop DFF13 and is connected with the output terminal of phase inverter INV14 simultaneously, the input end of phase inverter INV14 is the logic signal input end of assignment module 123, d type flip flop DFF10, d type flip flop DFF11, d type flip flop DFF12 is all connected high level with the reset terminal of d type flip flop DFF13, and the logical signal output terminal that the data output end of d type flip flop DFF10 and d type flip flop DFF11 is respectively assignment module 123 exports many bit logic signal Reg0, Reg1, the logical signal output terminal that the data back output terminal of d type flip flop DFF12 and d type flip flop DFF13 is respectively assignment module 123 exports many bit logic signal Reg2, Reg3, three end input nand gate NAND0, three end input nand gate NAND1, two input ends of three end input nand gate NAND2 and two end input nand gate NAND4 are the address input end of assignment module 123 respectively and get location time input end, three end input nand gate NAND0, an other input end of three end input nand gate NAND1 and three end input nand gate NAND2 is the anti-phase address input end of assignment module 123, three end input nand gate NAND0, three end input nand gate NAND1, the output terminal of three end input nand gate NAND2 and two end input nand gate NAND3 is respectively by phase inverter INV10, phase inverter INV11, phase inverter INV12 and phase inverter INV13 and d type flip flop DFF10, d type flip flop DFF11, d type flip flop DFF12 is connected with the input end of clock of d type flip flop DFF13.
In embodiments of the present invention, d type flip flop DFF10, d type flip flop DFF11, d type flip flop DFF12 and d type flip flop DFF13 are used for as one of four states position assignment, after circuit powers on, be set as " 0 " by the initial value of the 2nd and the 1st mode bit Reg [1:0], the initial value of the 4th and the 3rd mode bit REG [3:2] is set as " 1 ".As Add [3:0]=0001, Add1B=1, Add2B=1, during Add3B=1, first mode bit address is effective, and d type flip flop DFF10 is triggered at the rising edge of Add_time, capture the magnitude of voltage of logic input signal now, assignment is carried out to many bit logic signal Reg0; As Add [3:0]=0011, Add1B=0, Add2B=1, Add3B=1, second mode bit address is effective, and d type flip flop DFF11 is triggered at the rising edge of Add_time, capture the magnitude of voltage of logic input signal now, assignment is carried out to many bit logic signal Reg1; As Add [3:0]=0111, Add1B=0, Add2B=0, during Add3B=1,3rd mode bit address is effective, d type flip flop DFF12 is triggered at the rising edge of Add_time, captures the inverse value of the voltage of logic input signal at that time, again anti-phasely carries out assignment to many bit logic signal Reg2 afterwards; As Add [3:0]=1111, Add1B=0, Add2B=0, during Add3B=0, one of four states bit address is effective, d type flip flop DFF13 is triggered at the rising edge of Add_time, captures the inverse value of the voltage of logic input signal at that time, again anti-phasely carries out assignment to many bit logic signal Reg3 afterwards.
Fig. 6 illustrates the exemplary circuit structure of the unit at a slow speed that one embodiment of the invention provides, and for convenience of explanation, illustrate only part related to the present invention.
Unit 13 comprises delayer Delay1, delayer Delay2, rejection gate NOR2 and phase inverter INV2 at a slow speed, the input end of delayer Delay1 is the input end of unit 13 at a slow speed, the output terminal of delayer Delay1 is connected with the input end of delayer Delay2, an input end of the output terminal AND OR NOT gate NOR2 of delayer Delay2 connects, another input end of rejection gate NOR2 is the control end of unit 13 at a slow speed, the output terminal of rejection gate NOR2 is connected with the input end of phase inverter INV2, and the output terminal of phase inverter INV2 is the input end of unit 13 at a slow speed.
In embodiments of the present invention, as Enable=0, quick cell 12 is in dormant state, and logic input signal is directly transferred to single-bit logic and exports; Activation signal Enable is when the negative edge saltus step of logic input signal is " 1 ", quick cell 12 is activated, unit 13 dormancy at a slow speed, single-bit logical signal by locked in " 1 ", logic input signal is after delayer Delay1, delayer Delay2 postpone, the rising edge of the single-bit logical signal negative edge that order exports and activation signal Enable staggers, and the single-bit logical signal avoiding output produces pulse burr signal.
Fig. 7 illustrates the logical waveform sequential of 2 change-over periods of one line control circuit that one embodiment of the invention provides, and for convenience of explanation, illustrate only part related to the present invention.
Before the instant t 0, Enable=0, the quick cell 12 of one line control circuit is in dormant state, and unit 13 is activated at a slow speed, and single-bit logic output signal State equals logic input signal, but slightly some postpone.
After first negative edge of logic input signal arrives, through postponing slightly, in the t0 moment, Enable=1, the quick cell 12 of one line control circuit is activated, unit 13 dormancy at a slow speed, now one line control circuit entered for the first change-over period, and within this change-over period, quick cell 12 pairs of logic input signals respond, export many bit logic signal Reg [3:0], single-bit logical signal State is locked in " 1 ";
In embodiments of the present invention, from the t0 moment to the t1 moment for getting location time Tadd, this gets location time Tadd between 2ms and 3ms, get in location time Tadd at this, logic input signal has three rising edges, therefore Add [3:0]=0111, namely the 3rd mode bit address is effective, the t1 moment is assignment point, assignment module 123 now capture logic input signal and assignment give the 3rd mode bit address, make many bit logic signal Reg2=0.After assignment completes, reset signal Reset carries out saltus step, and the t2 moment after short delay makes Enable reset, i.e. Enable=0, quick cell 12 dormancy of one line control circuit, each correlation module is all reset, and mode bit keeps its assignment constant, the unit at a slow speed 13 of one line control device is activated simultaneously, exports the single-bit slightly postponed compared with logic input signal and patrols signal State.
The frequency arranging Clock is f, according to the number n of d type flip flop before Add_time, can arrange the time of minimum triggering for (n-1)/f.In embodiments of the present invention, the frequency of Clock is 1KHz, and the time of minimum triggering is 2ms, 1ms after Add_time=1, and state handover module 11 is reset.
In embodiments of the present invention, this t2 moment is switching point, and be a change-over period Twork from the t0 moment to the t2 moment, this change-over period, Twork was between 3ms and 4ms.
After the negative edge of logic input signal arrives again, after postponing slightly, in the t3 moment, the quick cell 12 of one line control circuit is activated again, Enable=1, and one line control circuit entered for the second change-over period, unit 13 dormancy at a slow speed, single-bit logical signal is locked in " 1 " simultaneously.Get in location time Tadd in this section of t3 moment to t4 moment, logic input signal only has a rising edge, therefore Add [3:0]=0001, first mode bit address is effective, the t4 moment is assignment point, assignment module 123 now capture logic input signal and assignment give first mode bit address, make many bit logic signal Reg0=1.In the t5 moment, the second change-over period terminated, quick cell 12 dormancy of one line control circuit, and unit 13 activates at a slow speed, and now logic input signal is " 0 ", single-bit patrol signal State also thereupon saltus step for " 0 ".
In the present embodiment, there is Rapid Variable Design composition in logic input, also there is varying component at a slow speed.After first negative edge, enter the change-over period that duration is Twork, the signal logic change of logic input in Twork all belongs to Rapid Variable Design, and what meeting was corresponding provides many bit logic signal; Logic input is after the change-over period terminates, and the logic state before comparing the change-over period, the logic still existed changes, and belongs to and changes at a slow speed, and what meeting was corresponding provides single-bit logical signal, until again encounter negative edge to enter the next change-over period.
Fig. 8 illustrates and the sequential of cell operation at a slow speed that one embodiment of the invention provides for convenience of explanation, illustrate only part related to the present invention.
In embodiments of the present invention, after first negative edge of logic input signal, one line control device quick cell is activated, but the time maintaining " 0 " due to logic input signal is greater than change-over period Twork, therefore one line control device get location module 122 and assignment module 123 does not all work, it is constant that the many bit logic signal Reg [3:0] exported maintains former logic state all the time, is equivalent to the conductively-closed of one line control circuit quick cell.Single-bit logical signal State saltus step after the change-over period, Twork terminated is " 0 "; When logic input saltus step is " 1 ", single-bit logical signal State is and then saltus step one-tenth " 1 " also.The whole course of work is equivalent to only has the unit at a slow speed of one line control circuit in work, and single-bit logic exports follows logic input change, and negative edge saltus step exists the delay of about Twork.
The one line control circuit that the embodiment of the present invention provides can be applied in the one line control chip of any series.
In embodiments of the present invention, by having the status toggle unit receive logic input signal of external pin, activation quick cell or at a slow speed unit, the many bit logic signal of corresponding output or single-bit logical signal control multiple mode bit or the single status position of internal circuit, realize one line control, meet the requirement of a small amount of pin package chip, simplify the peripheral applications environment of circuit, reduce packaging cost.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.