Analog-to-digital converter with hysteresis
By introducing a hysteresis circuit into the analog-to-digital converter, the problems of ADC output voltage oscillation and delay are solved, and a more stable voltage output is achieved, which is suitable for duty cycle control of DC-DC converters.
Patent Information
- Application Number
- CN202080017173.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-09-30
- Filing Date
- 2020-01-13
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2040-01-13
AI Technical Summary
The output voltage oscillation caused by the least significant bit (LSB) jitter of the analog-to-digital converter (ADC) during the analog-to-digital conversion process, especially the delay problem in the duty cycle control of the DC-DC converter, limits the application of averaging technology .
A circuit including an analog-to-digital converter (ADC) and a hysteresis circuit is designed. The hysteresis circuit determines whether to store or skip certain digital codes by determining the changing direction and difference of the digital codes, thereby reducing the jitter of the output and achieving control. Fine-tuning of ADC output.
It effectively reduces the oscillation of the analog-to-digital converter output voltage, provides a more stable voltage output, reduces the delay problem in the DC-DC converter, and improves the stability of the system.
Smart Images

Figure CN113508533B_ABST
Abstract
Description
Background Art
[0001] An analog-to-digital converter (ADC) converts an analog signal into a digital code. An inherent behavior of the ADC is the least significant bit (LSB) jitter during the analog-to-digital conversion process. In applications where averaging techniques can be applied, LSB jitter is usually insignificant. However, in control processes such as setting the duty cycle of a direct current (DC)-DC converter, the use of the ADC and its inherent LSB jitter will result in observable oscillations in the converter output voltage. In some applications, averaging techniques are not useful because the averaging process itself introduces delays. Summary of the invention
[0002] In one example, a circuit includes an analog-to-digital converter (ADC) and a hysteresis circuit. The ADC is configured to generate a series of digital codes. The hysteresis circuit is configured to: (a) determine that a first digital code in the series of digital codes represents a change in the same direction as a previous digital code, and store the first digital code in a register; and (b) determine that a second digital code in the series of digital codes represents a change in direction from the previous digital code, determine that the second digital code differs from the previous digital code by less than a hysteresis value, and do not store the second digital code in the register. BRIEF DESCRIPTION OF THE DRAWINGS
[0003] For a detailed description of various examples, reference will now be made to the accompanying drawings, in which:
[0004] Figure 1 An example of a switching voltage regulator including an analog-to-digital converter (ADC) employing hysteresis is illustrated.
[0005] Figure 2 The diagram illustrates the principle of hysteresis implemented on the ADC.
[0006] Figure 3 Shown in Figure 1 An example implementation of a coarse control circuit for use in a switching regulator.
[0007] Figure 4 Shown in Figure 1 An example implementation of a delay cell used in a delay line pulse width modulator (DLPWM) used in a switching regulator of FIG.
[0008] Figure 5 The operation of DLPWM is further illustrated.
[0009] Figure 6 An example of a method for employing hysteresis for an ADC is illustrated.
[0010] Figure 7 An example of a circuit for employing hysteresis for an ADC is shown.
[0011] Figure 8 An example of a direction detection circuit that can be used to employ hysteresis for the ADC is shown.
[0012] Fig. 9 An example of a hysteresis adder that can be used to employ hysteresis for an ADC is shown.
[0013] Fig.10 An example of a cellular base station in which a switching voltage regulator may be used is shown. DETAILED DESCRIPTION
[0014] The described examples relate to an ADC that includes hysteresis for determining the LSB of an output digital code from the ADC. One example use of an ADC with hysteresis control is within a switching regulator, as described below.
[0015] Figure 1 A switching regulator 100 is shown in one example. The example switching regulator 100 includes a coarse control circuit 110, an ADC 115, a delay line pulse width modulator (DLPWM) 120, a transistor driver 130, transistors M1 and M2, an inductor L1, a capacitor C1, and an error amplifier 140. Figure 1 Two or more components in can be manufactured on the same semiconductor substrate (same die). In one example, Figure 1 All components in are manufactured on the same semiconductor substrate / die. In other implementation examples, Figure 1 All components except the inductor L1 in FIG. 1 are manufactured on the same semiconductor substrate.
[0016] Transistor M1 is Figure 1 In the example of , transistor M2 is shown as an n-type metal oxide semiconductor field effect transistor (NMOS), and transistor M2 is shown as a p-type metal oxide semiconductor field effect transistor (PMOS). Different types of transistors can be used in other embodiments (for example, NMOS instead of PMOS, PMOS instead of NMOS, bipolar junction transistor instead of MOS transistor, etc.). The transistor has a control input and a pair of current terminals. The control input of the MOS transistor is the gate, and the current terminals are the source and drain. The control input of the bipolar junction transistor is the base, and the current terminals are the emitter and collector.
[0017] The switching regulator 100 receives an input voltage VIN and generates a regulated output voltage VOUT. The coarse control circuit 110 receives as input the input voltage VIN, the target output voltage (target VOUT) and the time period (Tper) of each cycle of the switching regulator. The coarse control circuit 110 generates a current Iton, which encodes the pulse width of the PWM signal (PWM OUT 127) generated by the DLPWM 120 to the driver 130. Iton encodes the length of time that the transistor M1 (also referred to as the high-side transistor) should be turned on during each cycle of the operation of the switching regulator. In this example, ADC 115 is a current ADC that converts the analog Iton current into a digital code, which is shown as CONTROL_COARSE 116 and provided to DLPWM120. ADC 115 includes a hysteresis circuit 700, which is described below.
[0018] DLPWM 120 includes a decoder 121, a plurality of delay elements 122a, 122b, ..., 122n (individually and collectively, delay elements 122) and a NAND gate 123. A clock signal (CLOCK) (or other type of trigger signal) is provided to DLPWM 120 and delayed by the amount of time implemented by DLPWM 120 based on CONTROL_COARSE 116. The delay elements 122 of DLPWM 120 are connected in series, and thus each delay element 122 receives the output of the previous delay element, wherein delay element 122a receives the clock input CLOCK, and the last delay element 122n provides its output to the input of NAND gate 123. The other input of NAND gate 123 receives the clock input CLOCK. Delay elements 122 generally all implement the same amount of time delay. In one example, the time delay of each delay element is 1.2 nanoseconds (ns). In addition, in one example implementation, DLPWM includes 256 delay elements 122 (n is 256).
[0019] Decoder 121 receives CONTROL_COARSE 116 from ADC 115. CONTROL_COARSE 116 is an m-bit binary value. In one example, m is 8, which means that CONTROL_COARSE 116 is an 8-bit value. Decoder 121 converts the m-bit value into a multi-bit digital control value, wherein each control bit 125a-125n is provided to a corresponding delay element 122. Control bit 125a is provided to delay element 122a, control bit 125b is provided to delay element 122b, and so on. Each control bit 125 enables or disables the corresponding delay element, i.e., controls whether the corresponding delay element causes the delay element to delay the signal (from the previous delay element) on its input or causes the input signal to be provided to the output of the delay element without adding any delay (bypass mode). For a value of CONTROL_COARSE 116 of S, the first S delay elements in the series chain starting with 122a are configured to add delay, and the remaining 256-S delay elements 122 are configured in their bypass mode (no additional delay). For example, for a CONTROL_COARSE value of 15 (decimal), the first 15 delay elements starting with 122a are configured to delay, and the remaining 241 delay elements are configured in bypass mode. In an example where each of the 256 delay elements introduces a 1.2ns delay and CONTROL_COARSE 116 can indicate which delay elements provide additional delay and which are configured in bypass mode, the DLPWM 120 can introduce a total time delay between 1.2ns and 307.2ns in increments of 1.2ns.
[0020] The output of the NAND gate 123 is a PWM output signal 127 and is provided to a driver 130. The driver 130 generates gate drive signals 131 and 132 for the corresponding transistors M1 and M2. The gate drive signal 131 turns the transistor M1 on and off, and the gate drive signal 132 turns the transistor M2 on and off. The drains of the transistors M1 and M2 are connected together at a switch node (SW). An inductor L1 is connected between the switch node SW and the capacitor C1. The connection point between the inductor L1 and the capacitor C1 is the output node 135 of the switching regulator.
[0021] VOUT is provided to the input of the error amplifier 140 (which implements gain G). Another input of the error amplifier 140 is the target VOUT voltage. The error amplifier 140 amplifies the difference between the target VOUT voltage and the actual output voltage VOUT from the output node 135. In an example embodiment, instead of providing VOUT to the error amplifier from the output node 135, the feedback voltage to the error amplifier is obtained from a resistor divider (not shown) connected between the output node 135 and the ground, thereby providing a scaled VOUT to the error amplifier. The target VOUT in this example can also be scaled down similarly. The output of the error amplifier 140 is CONTROL_FINE 141 and encodes the difference between what VOUT actually is and what it should be (target VOUT). CONTROL_FINE 141 is a signal provided to each delay element 122 to fine-tune the amount of delay introduced by each delay element. In one example, CONLTROL_FINE 141 provides a 50% to 100% adjustment for the nominal 1.2 ns of each delay element 122, resulting in a configurable time delay range of 0.6 ns to 1.2 ns for each delay element.
[0022] ADC 115 employs hysteresis to generate an output digital code (CONTROL_COARSE). Figure 2 An example analog input signal 202 (e.g., Iton) input to the ADC 115 is illustrated, and as shown, the example analog input signal 202 ramps up with the upward progression of the corresponding output digital code 210 (CONTROL_COARSE 116). During the upward progression of the analog input signal 202, the ADC 115 samples the analog input signal and outputs a digital code corresponding to each sampled input.
[0023] However, at 220, the analog input signal 220 changes direction and decreases. The analog input signal 202 increases between the samples taken at 218 and 220, but then decreases between a subsequent pair of samples 220 and 221. The ADC 115 determines whether to accept and use (e.g., provide to the DLPWM 120) the digital code 225 corresponding to the sample of the analog input signal at 221. In an example hysteresis technique, after detecting a change in direction of the analog input signal 202, a new digital code from the ADC 114 is provided as an output digital code (CONTROL_COARSE 116) if the new digital code differs from the previous output digital code by more than a hysteresis value. The hysteresis value is preset or configurable into the ADC 115. The hysteresis value is shown as "1LSB" at 230, which corresponds to RANGE / (2 m), where RANGE is the analog input signal range, and m is the number of bits of the digital code generated by ADC 115. For example, for an analog input range of 0A to 5A (RANGE=5) and a 3-bit ADC 115, 1 LSB corresponds to 0.625A. Figure 2 In the example of , after the direction of the analog input signal 202 changes, the new digital code 225 (corresponding to sample 221 of the analog input signal 202) differs from (is smaller than, in the example where the digital code is decreasing) the previous digital code 220 by no more than 1 LSB, and therefore the new digital code 221 is not provided to the DLPWM 120, but digital code 220 continues to be used. However, the next digital code 227 (corresponding to sample 222) differs from (is smaller than) the currently used digital code 220 by at least 1 LSB, and therefore the new digital code 227 is provided to and used by the decoder 121. The analog input signal 202 changes direction again at 240. Using the same principle described above, the ADC 115 skips the digital code 242 generated at sample 241, because the digital code 242 differs from (is larger than, in this example where the digital code is now increasing) the currently used code 240 by no more than the hysteresis value. Subsequently, digital code 244 corresponding to sample 243 is determined to be greater than code 240 by more than the hysteresis value and is therefore provided to DLPWM 120 .
[0024] Figure 3 is a block diagram of an example of a coarse control circuit 110 that generates the Iton current. Figure 3 In the example of FIG. 1 , coarse control circuit 110 includes voltage scaling circuits 304, 316, 318, and 322 coupled to multiplication / division circuit 320. VIN is coupled to voltage scaling circuit 604, which scales the input voltage to a voltage compatible with the operating voltage of coarse control circuit 110. Target output voltage is coupled to voltage scaling circuit 316, which scales the target output voltage to a voltage compatible with the operating voltage of coarse control circuit 110. Tper input is provided to the input of scaling circuit 318.
[0025] The multiplication / division circuit 320 performs a function on the input signal required to generate the output signal. In the above example, the multiplication / division circuit 320 multiplies Tper (or its scaled value from the scaling circuit 318) by the ratio of the target output voltage (or its scaled value) to VIN (or its scaled value). The output of the multiplication / division circuit 320 is transmitted to the scaling circuit 322, and the scaling circuit 322 appropriately scales the output of the multiplication / division circuit 320 to output to the ADC 115 as Iton.
[0026] Figure 4is a block diagram of an example delay element 122. The example delay cell 122 includes an input that receives the above-mentioned CONTROL_FINE signal 141. The adjustable delay device 420 receives the output from the previous delay cell 122 as its input. If the delay element 122 is the first delay cell in the series chain of delay cells (e.g., delay element 122a), the input of the delay cell is the clock input CLOCK. In one example, each adjustable delay device 420 includes a plurality of inverters connected in series. Each inverter is characterized by a specific propagation delay, and therefore, the total propagation delay through a group of inverters connected in series is the sum of the propagation delays through the group of inverters. In one example, the number of inverters is an even number, so the polarity of the output of the adjustable delay device 420 is the same as its input signal.
[0027] The switch SW1 is coupled across the adjustable delay device 420. The open / closed state of the switch SW1 is controlled by the control bit 125 from the decoder 141. When the switch SW1 is open, the output signal from the delay element 122 is a delayed version of its input signal. When the switch SW1 is closed (according to the control bit 125), the input signal of the delay element 122 flows through the switch SW1 thereby bypassing the adjustable delay device 420, and thus the output signal from the delay element 122 is not delayed relative to the input signal. As described above, the CQNTROL_COARSE signal 116 from the ADC 115 is a binary signal that is decoded by the decoder 121 to generate a separate control bit 125 for each delay element 122. When the control bit is in a first logic state, the corresponding switch SW1 is open so that the adjustable delay device 420 introduces a time delay to the output signal from the previous delay element. When the control bit is in a second logic state, the corresponding switch SW1 is closed so that the adjustable delay device 420 is bypassed, thereby avoiding introducing a time delay to the output signal from the previous delay element.
[0028] Return to reference Figure 1 , the NAND gate 123 performs a NAND operation on the output from the last delay element 122n and CLOCK. Figure 5 An example cycle of CLOCK and the output from delay element 122n is shown. CLOCK has a rising edge 502 and a falling edge 504, and the output of delay element 122n has a corresponding rising edge 504 and a falling edge 506. The time delay between rising edges 502 and 506 is equal to the total delay of all delay elements 122 whose switches SW1 are set to an open state by control bits 125 from decoder 121. Figure 5Also illustrated is PWM OUT 127, which is the output signal from NAND gate 123. PWM OUT 127 has a falling edge 510 and a rising edge 512. PWM OUT 127 is logic high when at least one of the NAND gate inputs is logic low. PWM OUT 127 is logic low when both inputs are logic high. Thus, PWM OUT 127 is logic high until a rising edge 504 occurs at a point where both CLOCK and the output of delay element 122n are logic high. At this point, PWM OUT 127 becomes logic low and remains logic low until a falling edge 506 of CLOCK. The pulse width (PW) of the negative pulse of PWM OUT 127 is based on the time when the rising edge 504 occurs, which in turn is based on the total time delay configured into the DLPWM by CONTROL_COARSE from ADC 115.
[0029] Figure 6 An example method for implementing hysteresis for ADC 115 is illustrated. At 602, the method includes determining the difference between the current digital code Data(n) (i.e., the most recent digital code generated by ADC 115) and the previous digital code Data(n-1). The difference is referred to as Delta(n). The difference between Data(n-1) and Data(n-2) is referred to as Delta(n-1). Determining the difference of the digital codes includes determining the sign of the difference, i.e., determining whether the difference is positive or negative. If the analog input (e.g., Iton) is increasing, the difference of the digital codes will be positive, and if the analog input is decreasing, the difference will be negative.
[0030] At 604, the method includes determining whether Delta(n) has the same sign as Delta(n-1). If the analog input continues to change in the same direction (whether increasing or decreasing), Delta(n) will have the same sign as Delta(n-1). If the analog input signal changes direction, such as Figure 2 As illustrated at 220 and 240 in FIG. 1 , Delta(n) will have an opposite sign to Delta(nl). If the signs of Delta are the same, the current digital code Data(n) is stored in an output register within ADC 115 to be subsequently provided to DLPWM 120.
[0031] If Delta(n) has a different sign than Delta(n-1), then at 606, it is determined whether the current digital code Data(n) should be stored in the output register, or whether the previous digital code Data(nl) should be stored in the output register (or, if Data(n-1) is already in the output register, it is not overwritten with a different value). At operation 608, if Data(n) differs from Data(n-1) by more than the hysteresis value, then Data(n) is stored in the output register. Otherwise, at operation 610, if Data(n) differs from Data(n-1) by no more than the hysteresis value, then Data(n-1) is stored in the output register.
[0032] Figure 7 An example of a hysteresis circuit 700 for implementing hysteresis for ADC 115 is shown. Hysteresis circuit 700 may be included as part of ADC 115 (e.g., Figure 1 115) or as a separate circuit coupled to the output of ADC 115. The hysteresis circuit 700 in this example includes a direction detection circuit 702, an adder 704, a positive edge detector 706 and a negative edge detector 708, AND gates 710 and 712, latches 714 and 716, comparators 718 and 720, a multiplexer 724, and an output register 726. The input to the hysteresis circuit 700 is a digital code stream from the ADC 115. Data(n+1) represents the analog-to-digital conversion of the most recent sample of the analog input signal Iton, Data(n) represents the previous digital code (stored in the output register), Data(n-1) represents the digital code before Data(n), and so on. The direction detection circuit 702 detects changes in the direction of the digital code (e.g., as Figure 2 220 and 240 in FIG. 1 ). The direction detection circuit 702 detects the change in direction, i.e., the new code is smaller but the previous code is increasing, and the new code is larger but the previous code is decreasing. The direction detection circuit 702 implements Figure 6 The functionality of operation 602 (described above).
[0033] The direction detection circuit 702 provides two output signals NOT EQUAL (NEQ) and DIR. NEQ encodes whether Data(n+1) is different from Data(n). For example, NEQ equal to 1 means that Data(n+1) is different from Data(n), and NEQ equal to 0 means that Data(n+1) is the same as Data(n). DIR encodes whether the data from ADC 115 is increasing or decreasing. In one example, DIR equal to 0 means that Data is decreasing (e.g., Data(n+1) is less than Data(n) and Data(n) is less than Data(n-1)), and DIR equal to 1 means that Data is increasing (e.g., Data(n+1) is greater than Data(n) and Data(n) is greater than Data(n-1)).
[0034] The input of adder 704 includes the previous Data (i.e., Data(n)) currently stored in output register 726, the DIR signal, and a hysteresis value (HYST). HYST is stored in a hysteresis storage element 703 (e.g., a memory, a register, etc.) coupled to adder 704. Adder 704 adds the hysteresis value (HYST) to Data(n) or subtracts HYST from Data(n) based on the DIR signal. For example, if DIR is 0, which indicates a decreasing analog input signal, the adder adds HYST to Data(n), and if DIR is 1, which indicates an increasing analog input signal, HYST is subtracted from Data(n). The output of adder 704 is provided to latches 714 and 716.
[0035] The DIR signal from the direction detection circuit 702 is a stream of 0s and 1s that indicates whether the data value from the ADC 115 is increasing (e.g., DIR=1) or decreasing (e.g., DIR=0). A change in DIR from 0 to 1 or from 1 to 0 indicates a change in direction. The positive edge detection circuit 706 includes a one-shot circuit that generates a positive output pulse (as illustrated at 709) in response to a positive edge of the DIR signal (as illustrated at 707). Similarly, the negative edge detection circuit 708 also includes a one-shot circuit that generates a positive output pulse (as illustrated at 713) in response to a negative edge of the DIR signal (as illustrated at 711). In this way, the positive edge detection circuit 706 generates an output pulse 709 in response to Data(n+1) being greater than Data(n) (as illustrated at 717) after a previous data value decline trend. Negative edge detection circuit 708 generates output pulse 713 in response to Data(n+1) being less than Data(n) following a preceding data value uptrend (as illustrated at 719 ).
[0036] AND gate 710 ANDs the output of positive edge detection circuit 706 with the NEQ signal from direction detection circuit 702. If NEQ equals 1, Data(n+1) is different from Data(n) and DIR indicates the direction of change, as described above. However, if NEQ equals 0, Data(n+1) is the same as Data(n) and the state of DIR should be rejected because the data is neither increasing nor decreasing. Therefore, AND gate 710 prevents false positive output pulses 709 from reaching latch 714. Similarly, and gate 712 ANDs the output of negative edge detection circuit 708 with the NEQ signal for the same reason.
[0037] The output of AND gate 710 is provided to the clock input of latch 714. After the edge (rising or falling) of the output of the positive edge detection circuit occurs (assuming NEQ=1), latch 714 latches the output of adder 704. After the direction of the output data of the ADC changes from decreasing to increasing (as illustrated at 717), adder 704 generates an output value to latch 714, which is the sum of the previous data Data(n) and the hysteresis value. Similarly, the output of AND gate 712 is provided to the clock input of latch 716. After the edge (rising or falling) of the output of the negative edge detection circuit occurs (assuming NEQ=1), latch 716 latches the output of adder 704. After the direction of the output data of the ADC changes from increasing to decreasing (as illustrated at 719), adder 704 generates an output value to latch 716, which is the previous data Data(n) minus the hysteresis value.
[0038] When clocked, each latch 714, 716 latches its input data. Latch 714 provides its latched data to the A input of comparator 718. The B input of comparator 718 includes the current data value Data(n+1). In this example, in response to the data on the A input being greater than the data on the B input, that is, Data(n)+HYST is greater than Data(n+1), the output 721 of comparator 718 is asserted high. The output 721 of comparator 718 is a logic high indication that after the downward to upward direction change of the output data of the ADC, the new data value Data(n+1) is not greater than the old value Data(n) by the hysteresis value. In this example, the logic high ("1") from comparator 718 is propagated to the select (S) input of multiplexer 724 through OR gate 722 so that the B input of multiplexer 724 is provided as its output (Y). The B input of multiplexer 724 receives the previous data value Data(n) from output register 726, and thus the data value in output register 726 remains unchanged (Data(n)). The logic low ("0") from comparator 718 indicates that the new data value Data(n+1) is greater than Data(n) by more than the hysteresis value, and causes the S input of multiplexer 724 to select its A input, which receives the current data value Data(n+1). Thus, output register 726 is updated by multiplexer 724 to the new data value Data(n+1).
[0039] Latch 716 provides the data latched by it to the B input of comparator 720. The A input of comparator 720 includes the current data value Data(n+1). In this example, in response to the data on the A input being greater than the data on the B input, i.e., when Data(n+1) is greater than Data(n)-HYST, the output 731 of comparator 720 is asserted high. The output 731 of comparator 720 is a logic high indication that, after the upward to downward direction change of the output data of the ADC, the new data value Data(n+1) is not less than the old value Data(n) by the hysteresis value. In this example, the logic high from comparator 720 is propagated to the select (S) input of multiplexer 724 through OR gate 722, so that the B input (Data(n)) of multiplexer 724 is provided back to output register 726 as its output (Y), and thus the data value in output register 726 remains unchanged. The logic low from comparator 720 indicates that the new data value Data(n+1) is less than Data(n) by more than the hysteresis value and causes the S input of multiplexer 724 to select its A input, which receives the current data value Data(n+1). Therefore, output register 726 is updated by multiplexer 724 to the new data value Data(n+1). The combination of adder 704, positive edge detection circuit 706 and negative edge detection circuit 708, AND gates 710, 712, latches 714, 716, comparators 718, 720, or gate 722, and multiplexer 724 implements Figure 6 The reference to the output register in operations 608 and 610 is Figure 7 Output register 726 in.
[0040] If there is no directional change in the ADC data value (i.e., the data is increasing or decreasing), the outputs of the positive edge detection circuit 706 and the negative edge detection circuit 708 remain low and the outputs of the comparators 718 and 720 also remain low, causing the output register 716 to be updated with each new data value received by the hysteresis circuit 700.
[0041] Figure 8 An example implementation of the direction detection circuit 702 is illustrated. The example direction detection circuit 702 in this example is a 3-bit circuit, meaning that a 3-bit digital code (Data[2:0]) is provided to the direction detection circuit. The direction detection circuit 702 is easily scalable to a larger number of bits as needed. The inputs to the direction detection circuit 702 include the current digital code Data(n+1)[2:0] and the previous digital code Data(n)[2:0] from the ADC 115. Figure 8The example direction detection circuit 702 in FIG. 7 includes three direction unit circuits 810, 820, and 830. The direction unit circuit 830 generates NEQ and DIR signals. The direction unit circuit 810 receives the most significant bits of Data(n+1) and Data(n), i.e., Data(n+1)[2] and Data(n)[2]. The direction unit circuit 820 receives the next most significant bits of Data(n+1) and Data(n), i.e., Data(n+1)[1] and Data(n)[1]. The direction unit circuit 830 receives the least significant bits of Data(n+1) and Data(n), i.e., Data(n+1)[0] and Data(n)[0].
[0042] Each direction unit circuit includes a comparator and a combinational logic circuit. The combinational logic circuit in this example includes an inverter, an XOR gate and a NAND gate. Direction unit circuit 810 includes an inverter 811, an XOR gate 812, a NAND gate 813 and a comparator 814. Direction unit circuit 820 includes an inverter 821, an XOR gate 822, a NAND gate 823 and a comparator 824. Direction unit circuit 830 includes an inverter 831, an XOR gate 832, a NAND gate 833 and a comparator 834. The input of inverter 811 receives a signal designated as SEL_IN. The output of the inverter is the logical inversion of SEL_IN and is coupled to an input of NAND gate 813. Two data inputs of direction unit circuit 810 are provided to the input of XOR gate 812. The output of XOR gate 812 is provided to another input of NAND gate 813. Multiplexer 814 serves as a selection control input (S) and inputs A and B. The signal on input A receives the most significant bit of Data(n+1), and, for example, when SEL_IN is 0, the input A signal is provided to the output of multiplexer 814. When SEL_IN is 1, the signal on input B is provided to the output of multiplexer 814. The B input of multiplexer 814 receives the CIN input signal.
[0043] The configuration of the direction unit circuits 820 and 830 is the same as that of the direction unit circuit 810. The Data(n+1)[1] bit and the Data(n)[1] bit are provided to the input of the XOR gate 822 of the direction unit circuit 820, and the least significant bits, the Data(n+1)[0] bit and the Data(n)[0] bit, are provided to the input of the XOR gate 832 of the direction unit circuit 830. The output of the NAND gate 813 of the direction unit circuit 810 is labeled as SEL_OUT2 and provided to the inverter 821 of the direction unit circuit 820. Similarly, the output of the NAND gate 823 of the direction unit circuit 820 is labeled as SEL_OUT1 and provided to the inverter 831 of the direction unit circuit 830. The SEL_OUT0 output of the NAND gate 833 represents the above-mentioned NEQ signal.
[0044] The output of comparator 814 of direction unit circuit 810 is labeled COUT2 and is coupled to the B input of comparator 824 of direction unit circuit 820. The output of comparator 824 of direction unit circuit 820 is labeled COUT1 and is coupled to the B input of comparator 834 of direction unit circuit 830. The COUT0 output of comparator 834 of direction unit circuit 830 represents the DIR signal described above.
[0045] During each cycle of comparing the digital code Data(n+1) with the previous digital code Data(n) provided to the DLPWM 120, SEL_IN and CIN are initialized to 0. The XOR gate outputs 0 in response to its inputs being different, and outputs 1 when its inputs are the same (both 0 or both 1). The NAND gate outputs 0 only when both its inputs are 1. In the case where SEL_IN is 0, the output of the inverter 811 is 1. If the Data(n+1)[2] bit is the same as the Data(n)[2] bit (both 1 or both 0), then the other input of the NAND gate 813 from the XOR gate 812 is also 1, and the SEL_OUT2 bit from the direction unit circuit 810 is 0. The same logic is implemented in the direction unit circuits 820 and 830, and therefore if each bit of Data(n+1)[2:0] is the same as the corresponding bit of Data(n)[2:0], then SEL_OUT0 will be 0. SEL_OUT0 being 0 indicates that the value of the new digital code Data(n+1) is the same as the value of the previous digital code Data(n).
[0046] In the case where each SEL_OUT bit is 0 (in the case where Data(n+1) is equal to Data(n)), the A input of each multiplexer is selected as COUT to be provided to the output. The A input receives the Data(n+1) bit of the corresponding direction unit circuit. Therefore, the COUT of each direction unit circuit is the Data(n+1) bit of that direction unit circuit, as long as the Data(n+1) bit and Data(n) bit of that direction unit circuit and the more significant direction unit circuit are the same.
[0047] Starting from the most significant bit direction unit circuit 810 and continuing toward the least significant bit direction unit circuit 830, as long as the Data(n+1) and Data(n) bits of the corresponding direction unit circuit have the same value, the SEL_OUT bit from the direction unit circuit is 0. However, if the Data(n+1) bit and Data(n) bit of the direction unit circuit are different (1 and 0, or 0 and 1), the output of the corresponding XOR gate will be 0, and therefore the output of the corresponding NAND gate. Therefore, the first direction unit circuit (starting from the most significant bit direction unit circuit 810) whose corresponding Data(n+1) bit and Data(n) bit are different causes the NAND gate output 1 of the direction unit circuit as its SEL_OUT bit. The SEL_OUT bit from each direction unit circuit is used to control the multiplexer of the subsequent direction unit circuit. That is, SEL_OUT2 controls multiplexer 824, and SEL_OUT1 controls multiplexer 834. Since a given SEL_OUT is 1 (since the corresponding Data(n+1) bit and Data(n) bit are different), the B input of the subsequent multiplexer is selected. The B input of the subsequent multiplexer is coupled to the COUT bit of the previous multiplexer and therefore receives the Data(n+1) of the previous direction unit circuit. Therefore, when the input Data(n+1) bit and Data(n) bit of a given direction unit circuit are different, the SEL_OUT bit of the direction unit circuit causes the multiplexer of the subsequent direction unit circuit to select the B input and therefore select the COUT bit of the previous direction unit circuit. The Data(n+1) bit that fails to match the corresponding Data(n) bit is therefore provided to the multiplexer of the next direction unit circuit.
[0048] Once a given SEL_OUT bit is 1, the SEL_OUT bit of the subsequent direction unit circuit is also 1, and the most significant Data(n+1) bit that fails to match the corresponding Data(n) bit is therefore passed through the subsequent set of multiplexers to COUTO. Therefore, COUTO is the logic state of the most significant Data(n+1) bit that fails to match the corresponding Data(n) bit. In addition, SEL_OUT0 is 1 to indicate that Data(n+1) is not equal to Data(n), and COUTO indicates whether Data(n+1) is greater than or less than Data(n).
[0049] Fig. 9 An example implementation of adder 704 is illustrated. Adder 704 adds a hysteresis value (HYST) to Data(n) or subtracts HYST from Data(n), depending on the logic level of SIGN. Adder 706 is an n-bit adder. Fig. 9The example adder 704 shown is a 3-bit adder that adds a 3-bit Data(n) value to a 3-bit HYST value. The adder 704 includes bit adders 910, 920, and 930, and a multiplexer 940. The HYST value 950 and its binary complement 951 are provided to the input of the multiplexer 940, and SIGN selects HYST 950 or its binary complement to be provided to the bit adders 910, 920, and 930. Therefore, the adder 704 adds HYST to DATA(n) or adds the binary complement of HYST to DATA(n). The output 941 of the multiplexer is shown as HYST[2:0], which is the hysteresis value or its binary complement. In one example, the hysteresis value is configurable and stored in a register or other storage mechanism. The binary complement can be determined within the switching regulator 100 and can also be stored in a register or other storage mechanism. In another example, the amount of hysteresis implemented by the switching regulator on the digital code from the ADC 115 is fixed and not configurable.
[0050] Each bit adder includes two XOR gates, two AND gates and one OR gate. Bit adder 910 includes XOR gates 911 and 912, AND gates 913 and 914, and OR gate 915. XOR gate 911 receives the least significant bit of DATA(n) and HYST 941. The output of XOR gate 911 is coupled to the input of XOR gate 912 and the input of AND gate 913. The other inputs of XOR gate 912 and AND gate 913 receive the bit value 0. AND gate 914 also receives the least significant bit of DATA(n) and HYST 941. The outputs of AND gates 913 and 914 are coupled to the input of OR gate 914. The output of XOR gate 912 represents the output and bit from bit adder 910, and the output of AND gate 915 represents the carry to the next bit adder (bit adder 920) in the chain.
[0051] The bit adders 920 and 930 have similar configurations. The bit adder 920 includes XOR gates 921 and 922, AND gates 923 and 924, and an OR gate 925. The bit adder 930 includes XOR gates 931 and 932, AND gates 933 and 934, and an OR gate 935. The outputs of the XOR gates 912, 922, and 932 represent Figure 7 DATA_HYST value.
[0052] Fig.10 An example of a base station 1002 is shown in which the switching voltage regulator 100 may be used. In this example, the base station 1002 includes a processor 1030 coupled to a memory 1032, a symbol processing circuit 1038, and a transceiver 1040 via a backplane bus 1036. The memory 1032 stores one or more applications 1034 for execution by the processor 1030 to manage wireless communications with a cellular device (e.g., a cellular phone, a tablet device, etc.).
[0053] The transceiver 1040 includes an uplink resource manager that enables the base station 1002 to selectively allocate uplink resources to cellular devices. Components of the uplink resource manager may use the physical (PHY) layer and / or the medium access control (MAC) layer of the transceiver 1040. The transceiver 1040 includes one or more receivers 1042 for receiving transmissions from various UEs within the range of the base station 1002, and one or more transmitters 1044 for transmitting data and control information to various cellular devices within the range of the base station 1002. The uplink resource manager executes instructions that control the operation of the transceiver 1040. Some of these instructions may be located in the memory 1032 and executed by the processor 1030 when needed. The resource manager controls the transmission resources allocated to each cellular device served by the base station 1002.
[0054] The random access signal is demodulated in the symbol processing circuitry 1038 .
[0055] During the transmission and reception of voice data or other application data, the receiver 1042 may receive a random access signal from a cellular device. The random access signal is encoded to request a message size compatible with the cellular device. The cellular device determines the message size by using a message threshold provided by the base station 1002. The message threshold calculation is implemented by executing instructions stored in the memory 1032 by the processor 1030. In other examples, the threshold calculation may be implemented by a separate processor / memory unit, a hardware state machine, or other types of control logic. Alternatively, in some networks, the message threshold is a fixed value that may be stored in the memory 1032, for example. In response to receiving the message size request, the base station 1002 schedules an appropriate set of resources and notifies the cellular device with a resource grant.
[0056] The switching regulator 100 provides one or more regulated supply voltages to one or more components of the base station 1002 (e.g., the memory 1032, the processor 1030, the symbol processing 1038, and the transceiver 1040). As described above, the hysteresis circuit 700 reduces the oscillation / ripple in the output voltage of the switching regulator, which otherwise may occur without the hysteresis circuit. Thus, a more stable supply voltage (lower oscillation / ripple) is provided to the components within the base station 1002.
[0057] The term "coupled" is used throughout the specification. The term can encompass connections, communications, or signal paths that achieve a functional relationship consistent with the description of the present disclosure. For example, if device A generates a signal to control device B to perform an action, then in the first example, device A is coupled to device B, or in the second example, if the intermediate component C does not substantially change the functional relationship between device A and device B, then device A is coupled to device B through the intermediate component C, so that device B is controlled by device A via the control signal generated by device A.
Claims
1. A circuit comprising: An analog-to-digital converter, or ADC, has an ADC output; a direction detection circuit, the direction detection circuit having a direction detection circuit input and a direction detection circuit output, the direction detection circuit input being coupled to the ADC output; an adder having a first adder input and a second adder input and an adder output, the first adder input being coupled to the direction detection circuit output and the second adder input being coupled to a hysteresis storage element; a first latch having a first latch input, a first clock input, and a first latch output, wherein the first latch input is coupled to the adder output; a first comparator having a first comparator input and a second comparator input, the first comparator input being coupled to the ADC output and the second comparator input being coupled to the first latch output; A positive edge detection circuit, wherein the positive edge detection circuit has a positive edge detection input and a positive edge detection output; a first logic gate having a first logic gate input and a first logic gate output, the first logic gate input being coupled to the positive edge detection output and the first logic gate output being coupled to the first clock input; A negative edge detection circuit, wherein the negative edge detection circuit has a negative edge detection input and a negative edge detection output; a second logic gate having a second logic gate input and a second logic gate output, wherein the second logic gate input is coupled to the negative edge detection output; a second latch having a second clock input, a second latch input, and a second latch output, the second latch input being coupled to the adder output, and the second clock input being coupled to the second logic gate output; as well as A second comparator having a third comparator input and a fourth comparator input, the third comparator input coupled to the ADC output and the fourth comparator input coupled to the second latch output.
2. The circuit according to claim 1, further comprising: a multiplexer coupled to the first comparator; as well as A register is coupled to the multiplexer.
3. The circuit of claim 1 , wherein the first comparator has a first comparator output and wherein the second comparator has a second comparator output, the circuit further comprising a third logic gate having a third logic gate input and a fourth logic gate input, the third logic gate input being coupled to the first comparator output and the fourth logic gate input being coupled to the second comparator output.
4. A circuit comprising: a coarse control circuit configured to generate an output current based on an input parameter; a current analog-to-digital converter (ADC) coupled to the output of the coarse control circuit and configured to convert the output current from the coarse control circuit into a series of digital codes, the current ADC including a register and a hysteresis circuit, the hysteresis circuit configured to (a) determine that a first digital code in the series of digital codes represents a change in the same direction as a previous digital code and store the first digital code in the register, and (b) determine that a second digital code in the series of digital codes represents a change in the direction from the previous digital code, determine that the second digital code differs from the previous digital code by less than a hysteresis value, and reject the second digital code; a pulse width modulator, i.e., a PWM, coupled to the register of the hysteresis circuit, the PWM having a PWM output; a first transistor having a first control input; a second transistor having a second control input; as well as A driver is coupled between the PWM output and the first control input and the second control input.
5. The circuit of claim 4 , wherein the hysteresis circuit is configured to determine that a third digital code in the series of digital codes represents a change in direction from a previous digital code, determine that the third digital code differs from the previous digital code by at least a hysteresis value, and store the third digital code in the register.
6. The circuit of claim 4, wherein the hysteresis circuit comprises: register; as well as A multiplexer having a first input, a second input, and a first output, the first input being configured to receive each consecutive digital code in the series of digital codes, and the first output and the second input being coupled to the register.
7. The circuit of claim 6 , wherein the hysteresis circuit comprises a direction detection circuit having a direction detection circuit input and a direction detection circuit output, wherein the direction detection circuit input is configured to receive the series of digital codes, and the direction detection circuit is configured to generate a direction signal on the direction detection circuit output, wherein the direction signal indicates whether the digital codes are increasing or decreasing.
8. A circuit according to claim 7, wherein the hysteresis circuit includes a positive edge detection circuit coupled to the direction detection circuit output, and includes a negative edge detection circuit coupled to the direction detection circuit output, and wherein the positive edge detection circuit is configured to generate an output pulse after detecting a positive edge of the direction signal, and the negative edge detection circuit is configured to generate an output pulse after detecting a negative edge of the direction signal.
9. The circuit according to claim 7, wherein the direction detection circuit comprises a plurality of direction unit circuits, each of the plurality of direction unit circuits comprising a combinatorial logic circuit configured to receive a digital code in the series of digital codes and corresponding bits of a previous digital code, the combinatorial logic circuit including a combinatorial output coupled to another directional unit circuit; and A third multiplexer having a second select control input coupled to the combined output of another directional unit circuit.
10. The circuit of claim 4, wherein the hysteresis circuit comprises an adder configured to add the hysteresis value to a digital code within the series of digital codes, the adder having an adder output.
11. The circuit of claim 10, wherein the hysteresis circuit comprises a latch coupled to the adder output, the latch being configured to latch data from the adder output in response to an output pulse from a positive edge detection circuit in the hysteresis circuit.
12. The circuit of claim 4, wherein the PWM comprises a delay line PWM including a first delay element and a second delay element, wherein based on the digital code from the register, the delay line PWM is configured to enable and disable the first delay element and the second delay element, respectively.
13. A circuit comprising: An analog-to-digital converter, or ADC, configured to generate a series of digital codes; as well as A hysteresis circuit, the hysteresis circuit being configured to: determining that a first digital code in the series of digital codes represents a change in the same direction as a preceding digital code, and storing the first digital code in a register; and determining that a second digital code in the series of digital codes represents a change in direction from a preceding digital code, It is determined that the second digital code differs from a previous digital code by less than a hysteresis value, and the second digital code is not stored in the register.
14. The circuit of claim 13 , wherein the hysteresis circuit is configured to determine that a third digital code in the series of digital codes represents a change in direction from a previous digital code, determine that the third digital code differs from the previous digital code by at least a hysteresis value, and store the third digital code in the register.
15. The circuit of claim 13 , wherein the hysteresis circuit comprises a direction detection circuit having a direction detection circuit input and a direction detection circuit output, wherein the direction detection circuit input is configured to receive the series of digital codes, and the direction detection circuit is configured to generate a direction signal on the direction detection circuit output, wherein the direction signal indicates whether the digital code in the series of digital codes is increasing or decreasing.
16. The circuit of claim 15, wherein the hysteresis circuit comprises an adder configured to add the hysteresis value to or subtract the hysteresis value from a digital code within the series of digital codes based on an output signal from the direction detection circuit.
17. A circuit according to claim 15, wherein the hysteresis circuit includes a positive edge detection circuit coupled to the direction detection circuit output, and includes a negative edge detection circuit coupled to the direction detection circuit output, and wherein the positive edge detection circuit is configured to generate an output pulse after detecting a positive edge of the direction signal, and the negative edge detection circuit is configured to generate an output pulse after detecting a negative edge of the direction signal.
18. The circuit of claim 13, wherein the hysteresis circuit comprises an adder configured to add the hysteresis value to or subtract the hysteresis value from a digital code within the series of digital codes depending on whether the digital code within the series of digital codes is increasing or decreasing, the adder having an adder output.
Citation Information
Patent Citations
Analog-to-digital converter for digital control switch DC-DC converter
CN101917193A
Analog to digital conversion circuit and method
CN102082573A
A / D converter circuit and A / D conversion method
US20080284633A1
Apparatuses and methods for multiple-output comparators and analog-to-digital converters
US20110210878A1
Successive approximation register analog-digital converter and method for operating the same
US20110227774A1
