The present invention relates to a modulation method and associated modulator system for a delta sigma converter.
Delta Sigma (or Sigma Delta) converters are a well-known type of converter circuit providing a high resolution output with a low implementation cost.
An example of a known 2nd order Delta Sigma converter is illustrated in
A corresponding feedback signal for an arbitrary input signal is shown in
It is an object of the invention to provide a Delta Sigma system having improved noise characteristics, performance, and flexibility of implementation
Accordingly, there is provided a modulation method for a converter having an input circuit to receive an input signal and an output circuit to provide a converted output signal, the modulation method comprising the steps of:
Preferably, the method comprises the step of delaying said feedback signal is delayed relative to the sampling
Preferably, the method comprises the step of sending said forward pulse to said output circuit when the sampled comparator output is High.
Preferably, said step of generating a forward pulse is based on at least one system constant, and wherein said system constant is dependent on the characteristics of at least one of the input signal of said input circuit or the output signal of said output circuit.
Preferably, the method comprises the step of detecting the characteristics of said input signal of said input circuit and said output signal of said output circuit.
There is also provided a modulation method for a Delta Sigma converter, the Delta Sigma converter comprising an input circuit operable to receive an input signal and provide an integrated input signal having a negative feedback loop, and an output circuit operable to receive a modulated output signal and produce a converted output signal, wherein the method comprises the steps of:
As the feedback system is operating on a faster clock than the sampling system, the feedback signal does not have the same pulse width as the sampled comparator output. As a result, the system performs a part of an A*x+B linear conversion by having the feedback different from 1 (normally the time of the feedback is the same as the time for the sample. In a preferred embodiment, the difference is approximately 14/63.
Preferably, the input circuit and the output circuit are operable to provide different combinations of input signal and converted output signal formats, wherein the method comprises the step of detecting the input-output format combination of the input circuit and the output circuit, and wherein said step of performing a forward conditioning operation is based on said detected input-output format combination.
The input and output hardware can be configured to switch between different configurations of input signal and output signal, e.g. having different voltage spans, different reference voltages used, whether the input or output is a current signal or a voltage signal, etc. Accordingly, the system can detect which particular combination is currently selected, and can adjust the modulation technique accordingly.
Preferably, said step of performing a forward conditioning operation comprises performing a mathematical operation on said sampled comparator output, said mathematical operation based on a set of constants, wherein the method comprises the steps of:
As the forward conditioning can be characterised using a set of constants, wherein said constants are dependent on the desired input/output characteristics of the delta sigma converter, the system can be dynamically adjusted based on the selected input/output combination. To do this, a series of constants can be pre-defined and stored in memory at the converter, and accessed when required (i.e. when the input/output setup of the converter is changed).
Preferably, said step of performing a forward conditioning operation comprises the steps of:
Preferably, said step of performing a forward conditioning operation comprises the steps of:
The comparator output will be either a High or Low value, i.e. a logical ‘1’ or a logical ‘0’. This acts to determine if a forward pulse should be sent from the modulation section to the output circuit for conversion to an appropriate output signal. It also determines the operation to be performed by the forward conditioning circuit. It should be noted that the integer part of the accumulated value can be cleared when a forward pulse is generated.
Preferably, the method comprises the step of clearing the integer section of the accumulator when a modulated output signal is generated.
Preferably, the method comprises the step of providing said first selected constant K1 and said second selected constant K2, and wherein K1 and K2 are defined by the formulas:
where Dig_Per is the period of said first clock frequency, Dig_FB is the duration of one period of the modulated feedback signal, Vin0% is the input low voltage, Vin100% is the input high voltage, Vout0% is the output low voltage, Vout100% is the output high voltage, VrefIn is the input reference voltage, and VrefOut is the output reference voltage.
The use of such constants results in a system transfer function for the Delta Sigma converter of:
V
Out
=V
In·(k1−k2)+Vref·k2=VIn·α+β
This may be easily modelled and simulated as required.
Preferably, the method comprises the step of storing constants K1 and K2 as two's complement binary numbers, and wherein said adding steps comprise a two's complement binary addition.
Storing the constants as two's complement binary allows for a combination of precision, simple computational implementation, and efficiency of storage.
Preferably, said step of sending a modulated output signal to said output circuit comprises sending the integer result of the adding operation as the modulated output signal.
Preferably, said constants K1 and K2 are defined as 24 bit values, wherein 8 bits comprise the integer value of the constants, wherein said step of adding comprises a 24 bit accumulation operation, and wherein said step of sending a modulated output signal to said output circuit comprises sending the 8 bits representing an integer value of the 24 bit accumulation as the modulated output signal.
As the two's complement format allows for easy addition of the constants in an accumulator, the system can be easily implemented in basic hardware, such as a simple microprocessor. Preferably, the 8 bits are selected as the Most Significant Byte of the 24 bit values.
Preferably, the method comprises the steps of:
Downsampling the system clock provides for a simple method of producing a clock having a lower frequency than the system clock. The downsampling is based on a set constant Dig_Per, which is the desired period of the first clock frequency.
Preferably, said step of generating a modulated feedback signal comprises the steps of:
This allows for a predefined length of the feedback pulse—Dig_FB—in terms of pulses of the system clock. Accordingly, the feedback signal does not have the same pulse width as the bits provided in the single bit stream of the sampled comparator output.
Preferably, said step of generating a modulated feedback signal comprises the step of:
This allows for the counter to be reset with every pulse of the first clock.
Preferably, said step of generating a modulated feedback signal comprises performing a digital to analogue signal conversion of said modulated feedback signal.
Preferably, said step of providing a comparator output comprises the step of comparing an integrated output of said input hardware circuit with a threshold value.
There is also provided a signal converter comprising:
Preferably, the converter is a Delta Sigma converter. Preferably, the converter is operable to convert an input voltage or current signal into an output voltage or current signal.
There is also provided a method for converting analogue values into voltage values by performing at least the following steps by a digital processor:
Embodiments of the invention will now be described, by way of example only, with reference to the accompanying drawings, in which:
An embodiment of a Delta Sigma converter system according to an embodiment of the invention is shown in
The input hardware circuit 50 comprises any suitable Delta Sigma configuration. The circuit shown in
The output hardware circuit 60 comprises any suitable circuitry operable to receive a modulated output signal 62 of a Delta Sigma converter, and convert a pulse signal 62 into an appropriate voltage or current based output. The pulse signal 62 can be in the form of a pulse width modulation output signal. The output hardware circuit comprises a reference voltage VrefOut.
VrefIn and VrefOut are the reference voltages in the input and output HW circuit, and may be specified by an operator to set the voltage level at which the Delta Sigma converter operates at. For example, both reference voltages may be set at 5 volts if standardised operation for the entire circuit is preferred, similarly different reference voltages may be set at the input and output circuits depending on system requirements.
The modulation system 70 comprises a comparator 72 (for example a simple 1-bit ADC) which is operable to receive said integrated input signal Vin′ 54 and provide a output in the form of a High or Low signal. A latch 74 samples said High or Low signal, the latch 74 triggered by a first clock signal 76. The output of the latch 74 is provided as a single bit stream. The modulator further comprises a DAC 78 for generating a feedback signal to be output as the negative feedback 52 for the input hardware circuit 50.
A system clock 80 is provided in the modulation system 70. The system clock 80 is downsampled 82 to provide said first clock signal 76. The downsampling 82 is performed such that the first clock signal 76 is downsampled by a ratio equal to a constant Dig_Per.
The feedback signal is generated using a second latch 84, the input to the latch being the single bit stream out put by the latch 74, the second latch 84 triggered by the system clock 80. The second latch 84 is started or initialised by the first clock signal 76. On initialisation, the second latch 84 performs the following operation:
Dig_FB is a constant defining the desired length of the feedback pulse to be generated.
In one embodiment, the Dig_Per equals 63 clock cycles and Dig_FB equals 14 clock cycles. This allows for a feedback pulse that is lower than one digital period, which is the case in an ordinary Delta Sigma modulator.
The value 63 comes from the following:
Tosc=4*1/Fosc=4/(8*10̂6)=500 nanoseconds, where Fosc is the oscillator frequency for a microprocessor used as the modulation system 70 in the embodiment and the instruction clock 4 times 1/Fosc (microchip PIC specific).
Specifying a sample frequency ˜32 kHz, which gives 1/32000/500 nanoseconds=62.5 instruction clocks˜63 (=Dig_Per).
The values for the digital feedback is chosen from the input/output relationships that the system shall handle. In this case, a Dig_FB is set at 14, to provide stable constants for feed forward conditioning (described below). It will be understood that other values may be selected for the constants.
The modulation system 70 further comprises a forward pulse calculation module 86, operable to perform signal conditioning on the sampled comparator output. The forward pulse calculation module 86 is operable to generate a modulated output signal 62 to be received by the output hardware circuit 60. The forward pulse calculation module 86 comprises an accumulator module (not shown), preferably operable to perform 24 bit accumulation.
With reference to
If ‘1’, a feedback pulse will be generated (step 104) at the second latch 84 (as described above). In the forward pulse calculation module 86, a first constant K1 will be added in the accumulator (step 106). The modulated output signal 62 (also called forward pulse) is produced (step 108) by the forward pulse calculation module 86, in this embodiment by the most significant byte (MSB) of the accumulator. The MSB of the accumulator is then cleared or reset (step 110), and the forward pulse calculation module 86 waits for the next sample from the latch 74 (step 112).
If ‘a sample of ‘0’ is detected, a second constant K2 is added in the accumulator (step 114), and the forward pulse calculation module 86 waits for the next sample (step 112). (It will be understood that what is not shown for a sample of ‘0’ is that the second latch 84 also initialises another feedback pulse generation cycle—as it is started by the first clock signal 76—but as the sample is ‘0’ no actual pulse will be sent as feedback—i.e. feedback of ‘0’).
The sequence may be described as the following:
A sample bit stream for the modulation system 70 is shown at
The timing of the system can be seen in
n donates the number of ‘0’ in the sampled bitstream, i.e. it counts the ‘0’ between each ‘1’. The aim is to send out a forward pulse when a ‘1’ is sampled, meaning that there is a 1:1 relationship between the sampled bitstream and the forward pulse (Vout′ in
The delay can be used in the overall formula to adjust constants K1 and K2 to fit a given need in a given input/output relationship.
The input/output relationship formula can be shown as follows:
It will be understood that the modulation may be configured to generate a small output pulse when the sampled bit value is ‘0’—this is the static offset is desired in the system. This pulse acts to keep a high frequency in the forward output signal (which can be filtered out). Such a pulse is dependent on the constant K3 above. In the present embodiment, K3 is set at ‘0’.
A preferred embodiment provides for the constants, K1 and K2, used for the linear transformation to be defined as follows:
where Dig_Per is the period of the first clock signal 76, Dig_FB is the duration of one period of the modulated feedback signal, Vin0% and Vin100% are respectively the low and high input voltages to the input hardware circuit 50, Vout0% and Vout100% are respectively the low and high output voltages of the output hardware circuit, VrefIn is the input reference voltage, and VrefOut is the output reference voltage.
The modulation system 70 can be effectively represented as in
The input hardware circuit 50 is operable to receive an input signal which may be a current or voltage signal, perform an integration operation on the signal and forward the output to the modulation system 70, which provides a modulated output to the output hardware circuit 60, which can convert the signal into an appropriate current or voltage output signal having the required signal characteristics (e.g. high-low range, etc.).
The system is operable to adjust the transfer function (preferably the selection of constants K1 and K2) depending on the detected input signal configuration, and required output signal configuration. I.e.:
The implementation of the transformation is preferably done by defining two constants K1 and K2. With reference to
The key features in the system are the following
As described above, the actual values for K1 and K2 are defined from the given input/output relationship. Simple adds allows for implementation in a microprocessor/microcontroller (μC) without usage of multiplications, which isn't natively is available in most μCs.
By contrast, multiplication can be implemented in firmware in a μC, but it slows the process down i.e. lower sample rate. The sigma delta converter is based on oversampling thus a lowering of the oversampling rate is not preferable.
One example of a transfer function of the invention is as follows:
V
O=(VIn+VOff
The equation variables are described in the following three tables.
For this example, α1 and α2 are system specific and needs to be measured. This is done by using known K1 and K2 values, applying known input voltage, and measuring the corresponding output value. This ends up with five equations to find all unknowns. Those five equations are shown below (this is done for a voltage measurement, but the procedure is the same for a currentmeasurement):
V
Out
low′=(VIn
V
Out
high′=(VIn
V
Out
low″=(VIn
V
Out
high″=(VIn
V
Out
high″=(VIn
Our five unknowns in the above are: V_Off_In, α1, α2, V_Mod_Ref, V_Off_Out.
V_In_Low and V_In_High are applied, and V_Out_Low and V_Out_High are measured.
K1 and K2 are predefined for all five measurements where K1′!=K1″ and K2′!=K2″.
This gives us five equations with five unknowns, which can be solved using simultaneous equations.
It will be understood that the modulation system 70 may be used with other converter configurations, and is also not limited to a single bit stream output of said converter system.
The modulation system 70 may be implemented in firmware, e.g. any suitable microprocessor, e.g. a PIC16F1936.
The invention is not limited to the embodiment described herein, and may be modified or adapted without departing from the scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
PA 2010 00359 | Apr 2010 | DK | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/DK2011/050124 | 4/18/2011 | WO | 00 | 12/11/2012 |