Modulators
11165436 · 2021-11-02
Assignee
Inventors
Cpc classification
H04L27/02
ELECTRICITY
H03M3/432
ELECTRICITY
H03K17/6871
ELECTRICITY
International classification
G04F10/00
PHYSICS
Abstract
This application relates to time-encoding modulators (TEMs). A TEM receives an input signal (S.sub.IN) and outputs a time-encoded output signal (S.sub.OUT). A filter arrangement receives the input signal and also a feedback signal (S.sub.FB) from the TEM output, and generates a filtered signal (S.sub.FIL) based, at least in part, on the feedback signal. A comparator receives the filtered signal and outputs a time-encoded signal (S.sub.PWM) based at least in part on the filtered signal. The time encoding modulator is operable in a first mode with the filter arrangement configured as an active filter and in a second mode with the filter arrangement configured as a passive filter. The filter arrangement may include an op-amp, capacitance and switch network. In the first mode the op-amp is enabled, and coupled with the capacitance to provide the active filter. In the second mode the op-amp is disabled and the capacitance is coupled to a signal path for the feedback signal to provide a passive filter.
Claims
1. A photodiode module comprising: a photodiode; a time-encoding modulator (TEM) configured to receive an input signal from the photodiode; a bias node for receiving a bias voltage for operating the photodiode in a photoconductive mode; a reference node for receiving a reference voltage for operating the photodiode in a photovoltaic mode; at least one switch operable in at least: a first state in which the photodiode is connected to the bias node to operate in the photoconductive mode; and a second state in which the photodiode is connected to the reference node to operate in the photovoltaic node.
2. The photodiode module according to claim 1, wherein in the first state the photodiode is disconnected from the reference node.
3. The photodiode module according to claim 1, wherein in the second state the photodiode is disconnected from the bias node.
4. The photodiode module according to claim 1, wherein the photodiode comprises a first terminal and the at least one switch comprises a first switch configured to connect the first terminal to the bias node and the at least one switch further comprises a second switch configured to connect the first terminal to the reference node.
5. The photodiode module according to claim 4, wherein, in the first state, the first switch is on to connect the bias node to the first terminal and the second switch is off to disconnect the reference node from the first terminal and wherein, in the second state, the second switch is on to connect the reference node to the first terminal and the first switch is off to disconnect the bias node from the first terminal.
6. The photodiode module according to claim 1, wherein the TEM is selectively operable to generate a time encoded signal based on the input signal from the photodiode in a first configuration and a second configuration.
7. The photodiode module according to claim 6, wherein when in the first configuration the TEM operates in a higher power mode of operation than when in till second configuration.
8. The photodiode module according to claim 6, wherein when in the first configuration the TEM operates in a higher quality processing mode of operation thar when in the second configuration.
9. The photodiode module according to claim 6, wherein the TEM comprises a filter wherein, when in the first configuration, the filter is configured as an active filter and wherein, when in the second configuration, the filter is configured as a passive filter.
10. The photodiode module according to claim 6, further comprising a controller configured to selectively control the photodiode module in: a first mode wherein the at least one switch is configured in the first state and the TEM is configured in the first configuration; and a second mode wherein the at least one switch is configured in the second state and the TEM is configured in the second configuration.
11. An integrated circuit comprising the photodiode module according to claim 1.
12. An electronic device comprising the photodiode module according to claim 1.
13. A photodetector module comprising: a photodetector configured to monitor incident optical radiation; a time-encoding modulator (TEM) configured to receive an input signal from the photodetector indicative of the incident optical radiation and to output an output signal based on said incident optical radiation; and a controller configured to: operate the photodetector and the TEM in a first mode; and responsive to the output signal being indicative that the incident optical radiation comprises an optical signal of interest, operate the photodetector and the TEM in a second mode; wherein the second mode is a higher power and/or quality mode of operation than the first mode.
14. The photodetector module according to claim 13, wherein the output signal comprises a pulse width modulated (PWM) signal.
15. The photodetector module according to any of claim 13, wherein the optical signal of interest comprises an optical signal comprising a predetermined characteristic.
16. The photodetector module according to claim 15, wherein the predetermined characteristic comprises a frequency of interest.
17. The photodetector module according to claim 15, wherein the predetermined characteristic comprises an amplitude greater than a predetermined threshold.
18. The photodetector module according to claim 13, wherein when in the first mode, the photodetector operates in a photovoltaic mode and when in the second mode, the photodetector operates in a photoconductive mode.
19. An integrated circuit comprising the photodetector module according to claim 13.
20. An electronic device comprising the photodetector module according to claim 13.
21. An integrated circuit comprising: a plurality of photodiodes and a corresponding plurality of modulators; and a controller configured to: operate the plurality of photodiodes in a photovoltaic mode; and responsive to at least one of the photodiodes detecting an optical signal of interest, operate the plurality of photodiodes in a photoconductive mode.
22. An integrated circuit according to claim 21, wherein the plurality of photodiodes are arranged in an array.
23. An electronic device comprising an integrated circuit according to claim 21.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) For a better understanding of examples of the present disclosure, and to show more clearly how the examples may be carried into effect, reference will now be made, by way of example only, to the following drawings in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
DETAILED DESCRIPTION
(14) The description below sets forth example embodiments according to this disclosure. Further example embodiments and implementations will be apparent to those having ordinary skill in the art. Further, those having ordinary skill in the art will recognize that various equivalent techniques may be applied in lieu of, or in conjunction with, the embodiments discussed below, and all such equivalents should be deemed as being encompassed by the present disclosure.
(15) Embodiments of the present disclosure relate to time-encoding modulators (TEMs) and in particular to PWM (pulse-width modulation) modulators, and especially to self-oscillating TEMs.
(16) In embodiments of the disclosure the TEM may be selectively operable in at least first and second modes. The TEM may be reconfigurable so as to operate in a first configuration in the first mode and in a second, different, configuration in the second mode. The first mode may be a higher quality mode than the second mode, but the second mode may be lower power mode than the first mode. This allows the TEM to be operated in the second mode when low power consumption is important, such as to provide an ‘always-on’ functionality for detecting voice commands or ultrasonic data transfer etc. at any time. The TEM can be operated in the first mode when higher quality is more important. In some embodiments the plurality of modes may be implemented by selectively enabling or disabling at least one operational amplifier (op-amp). When enabled in the first mode the op-amp may form part of an integrator for integrating a combined input and feedback signal. When disabled, the op-amp may be bypassed, although a capacitance used as part of the integrator in the first mode may be used as part of a filter arrangement in the second mode. When disabled, the op-amp may be powered down, thus reducing power consumption. The TEM may thus have a filter arrangement that can be selectively reconfigured in the first and second modes.
(17)
(18) The TEM comprises a comparator 101 which, in use, is arranged within a forward signal path between the TEM input and the TEM output. The TEM also has a filter arrangement 102 which is configured to receive a feedback signal S.sub.FB derived from the TEM output and to supply a filtered signal S.sub.FIL to a first comparator input of the comparator 101. The filtered signal S.sub.FIL is dependent on at least the feedback signal S.sub.FB so that the comparator 101 is arranged within a feedback loop as part of a self-oscillating modulator arrangement. In embodiments of the present disclosure the TEM is operable in at least first and second different operating modes, wherein the configuration of the filter arrangement 102 is different in the different operating modes.
(19) The comparator 101 is configured to compare the filtered signal S.sub.FIL received at the first comparator input to at least one defined value which, in some embodiments may be defined by a signal S.sub.2 received at a second comparator input, as illustrated in
(20) In some embodiments the defined value(s) may be defined by a threshold signal Vth supplied to the second comparator input. The threshold signal Vth may correspond to a defined midlevel voltage V.sub.MID which is midway between the voltage levels of the output states, i.e. V.sub.MID=(V.sub.H+V.sub.L)/2. This may also correspond to the signal level of a quiescent input signal, i.e. an input signal S.sub.IN of zero magnitude. In some embodiments V.sub.H and V.sub.L may be equal in magnitude but opposite in sign and so V.sub.MID may correspond to ground potential.
(21) In some instances the comparator 101 may be a hysteretic comparator and thus may apply some hysteresis to the comparison. In which case, a threshold at which the comparator transitions from the first output state to the second output state may be different to a threshold at which the comparator transitions from the second output state to the first output state. The relevant thresholds will still be defined by the threshold signal Vth but will also depend on the amount of hysteresis applied by the comparator 101, e.g. for symmetric hysteresis the thresholds may be Vth+H and Vth−H respectively, where H is an indication of the amount of hysteresis. In some embodiments however there may not be an explicit second comparator input for receiving a threshold signal Vth and the threshold(s) may depend on a baseline threshold defined by the structure of the comparator itself, plus the amount of hysteresis applied, if any.
(22) Referring to
(23)
(24) As will be understood by one skilled in the art, in the first mode, the first op-amp 103 and first capacitance 104 will function as an integrator 202 and integrate the signal at the first node 201, i.e. the combined input and feedback signal, with respect to the voltage reference Vref1. The output of the first op-amp 103 will thus be a signal that ramps up or down, and in which the direction of ramping and the rate of ramping depends on the combination of the input signal S.sub.IN and the feedback signal S.sub.FB. In the example of
(25)
(26)
(27) The level of the feedback signal S.sub.FB and the level of the input signal S.sub.IN are set such that, in each of the first and second modes, the direction of ramping is defined by the state of the feedback signal S.sub.FB, i.e. V.sub.H or V.sub.L, with the rate of ramping being defined by the level of the input signal and the feedback signal.
(28) In the example configuration of the first mode of operation illustrated in
(29) It can thus be seen that in each of the first mode and the second mode (whether the second mode variant of
(30) In the second mode of operation the first op-amp 103 is bypassed and not used. As such the first op-amp 103 may be substantially powered down in the second mode of operation. In the example of
(31) In the first mode, the configurable filter arrangement 102 may be configured as an active filter, and in the example illustrated in
(32) The use of the first op-amp 103 as part of an integrator in this embodiment, when operating in the first mode, provides a larger low-frequency gain in the feedback loop compared to the passive filter in the second mode. The higher loop gain of the active integrator 202 more effectively suppresses the effect of any imperfections in the feedforward path in the loop, for example thermal or other noise or signal-dependent delay introduced by the comparator 101. Also the first op-amp 103 provides a virtual earth at node 201, whereas in the second mode as illustrated in
(33) Thus in the first mode of operation, where an active integrator is employed, the TEM 100 may form part of a relatively high quality signal processing path compared to the second mode, wherein a passive filter is employed, and may, for instance, be used with a suitable time-decoding converter (TDC) to provide part of a relatively high performance analogue-to-digital converter (ADC).
(34) A TEM 100 according to embodiments of the disclosure can thus be used in the second mode of operation, to allow for low power operation, for example for always-on type functionality when a signal of interest may be received only periodically but at any time. The TEM 100 can also be reconfigured to provide the first mode of operation when desired, e.g. on detection of a signal of interest in the output and/or when required for some other use case, and in the first mode of operation provides an output signal of better quality. The configurable TEM 100 can thus be used as part of an ADC which can be operable in a low power mode (the second mode) or a higher power, but higher quality mode (the first mode), and which can be selectively varied between the two modes of operation as desired.
(35)
(36) In some implementations however, in the second mode of operation the first op-amp 103 may be disabled by putting it into a high-impedance mode, e.g. tri-stating the first op-amp 103. In such an implementation switch SW1a may not be required, and a path between the output of the first op-amp 103 and the first input of comparator 101 that exists in both the first and second operating modes could be implemented instead. In this case switch SW1b may be closed in the first operating mode, with switches SW2a and SW2b open, and to provide the second operating mode switch SW1b may be opened, switches SW2a and SW2b closed and the first op-amp 103 tri-stated.
(37) Alternatively, if switch SW1a is present and opened in the second operating mode, and the first op-amp 103 is disabled to a high-impedance mode, switch SW1b may alternatively not be required and a path between the capacitor 104 and output of the first op-amp 103 that exists in both the first and second operating modes may be implemented instead. In this case switch SW1a may be closed in the first operating mode, with switches SW2a and SW2b open, and to provide the second operating mode switch SW1a may be opened, switches SW2a and SW2b closed and the first-op 103 tri-stated.
(38) In some embodiments, where switch SW1a is present, the first op-amp 103 may be controlled in the second operating mode such that its output stage is no longer responsive to the op-amp inputs but is instead configured to clamp the output of the first-op to a defined reference voltage, such as ground. For example an NMOS transistor of the output stage could be driven to clamp the output of the first op-amp to the most negative supply. This may avoid the need for a separate defined reference Vref2 and switch SW2b. Thus in such an arrangement switch SW1b may be replaced with a continuous signal path and the connection to a defined reference Vref via switch SW2b omitted. In this arrangement the switch network may thus comprise switches SW1a and SW2a only. In the first operating mode switch SW1a may be closed and switch SW2a opened and the first op-amp enabled. In the second operating mode switch SW2a is closed, to provide the bypass path, switch SW1a opened to isolate the output of the first op-amp 103 from the comparator 101 and the first op-amp 103 controlled to clamp one side of first capacitance 104 to the defined reference.
(39) To provide desired self-oscillating characteristics, in some embodiments the comparator 101 may be a hysteretic comparator and thus may apply some hysteresis to the comparison. This means that the value of the filtered signal S.sub.FIL at the first input of the comparator 101 will need to reach a first threshold to transition from the first output state to the second output state, e.g. from V.sub.H to V.sub.L, but will then need to reach a second, different, threshold to transition from the second output state to the first output state. For example for symmetric hysteresis the thresholds may be Vth+H and Vth−H, where H is an indication of the hysteresis applied. Additionally or alternatively, as illustrated in
(40)
(41) In each case the feedback signal S.sub.FB (which is tapped from the output signal S.sub.OUT) is initially in the low state V.sub.L and the filtered signal S.sub.FIL is ramping upwards.
(42) The filtered signal S.sub.FIL ramps up until it reaches the higher threshold Vth+H, at which point the output state of the comparator 101 changes state to the high output state V.sub.H.
(43) The feedback signal S.sub.FB will thus also change state and thus the filtered signal S.sub.FIL starts ramping downwards. The filtered signal S.sub.FIL ramps down until it reaches the lower threshold Vth−H, at which point the output of the comparator 101, and hence the feedback signal S.sub.FB changes state again. The comparator 101 remains in the low state V.sub.L until the upper threshold is reached again. The output of the comparator 101 is thus a two-level signal with pulses of a first state, e.g. V.sub.H, of duration α and pulses of a second state, e.g. V.sub.L, of duration β in an overall cycle period T.sub.PWM which is equal to α+β.
(44) In the example of
(45) Note
(46) However, when configured as illustrated in
(47)
(48) This operation again results in a pulse of the high output state V.sub.H of duration α and a pulse of the low output state V.sub.H of duration β.
(49) Again
(50)
(51) For the examples illustrated with respect to
α=T.sub.0/2*(1−X) β=T.sub.0/2*(1+X) Eqn. (1)
and the PWM cycle period T.sub.PWM will thus vary according to:
T.sub.PWM=α+β=T.sub.0/(1−X.sup.2) Eqn. (2)
where X is a where X is a normalised value of the input signal within an input range of +1 to −1 and T.sub.0 is the limit cycle period. The normalised input signal value X represents the level of the input signal within an input range, where a normalised magnitude of 1 correspond to the level of the input signal that asymptotically leads to a frequency of zero. In the example discussed above with respect to
(52) In some embodiments, as illustrated in
(53) Note that
(54) It will be noted that
(55) In some embodiments the TEM 100 is configured such that any signal transitions in the output signal S.sub.OUT from the TEM 100 are synchronised to a first clock signal CLK1.
(56) In some embodiments the forward signal path may thus comprise at least one latching element, i.e. a synchronising element, for latching signal transitions in the forward signal path so as to be synchronised to the first clock signal CLK1. In some embodiments the latching element could be associated with the comparator 101 so that the PWM signal S.sub.PWM is synchronised to the first clock signal, or the latching element could be downstream of the comparator in the forward signal path, and possibly part of a delay element 107 in the forward signal path. The modulator 100 thus operates so that a rising edge in the output signal S.sub.OUT, i.e. the beginning of a pulse of the high output state/end of a period of the low output state, is synchronised to the first clock signal CLK1, as is a falling edge, i.e. the end of a pulse of the high output state/beginning of a period of the low output state. This means that the durations α and β of pulses of the high state and low state in the output signal, and also the overall cycle period, will all correspond to integer numbers of periods of the first clock signal CLK1. This can be advantageous when the output PWM signal S.sub.OUT is output to a time-decoding converter (TDC) comprising a counter as will be discussed in more detail below.
(57) In some embodiments the comparator 101 may comprise a latched comparator such that signal transitions in the PWM signal S.sub.PWM are synchronised to the first clock signal.
(58)
(59) It will be appreciated that constraining the time-encoded signal S.sub.PWM which is output from the TEM 100 to change state at a time synchronised to the first clock signal CLK1 will result in the durations α and β possibly being different from what they might otherwise have been, introducing a quantisation error. However it will be noted that the feedback signal S.sub.FB is derived from the synchronised time-encoded signal S.sub.OUT. Any such quantisation error thus occurs within the feedback loop of the TEM 100, which provides some noise shaping. Noise shaping will be present in both the first and second operating modes, but for the first mode of operation, the higher loop gain of the filter arrangement 102 configured as an active filter will provide better noise shaping.
(60) Referring to
(61) By introducing the quantisation error within the loop of the time-encoding modulator 100 in this way, the TEM 100 thus provides noise shaping in a similar way as discussed above in relation to a VCO based TDC, but provides a time-encoded signal S.sub.OUT which is synchronised to a first clock signal. This means that the durations of pulses of the time encoded signal S.sub.OUT can be supplied directly to a counter which is synchronised to the first clock signal to provide count values without introducing any quantisation error due to the count.
(62) It should be noted that the comparator element 601 and latch 602 have been illustrated as separate components for ease of description, and in some embodiments the latch 602 may indeed be a separate component to a comparator element 601. In some embodiments the latching element may be a latch which is separate to comparator 101 and downstream of the output of the comparator 101. In some embodiments a delay element 107, located in the path between the output of the comparator 101 and the modulator output for outputting the output signal S.sub.OUT, may including a latching element that provide a similar function to latch 602 as part of the delay. In some implementations however the comparator and latch functions may be combined as a latched comparator such that there may not be a separate intermediate signal S.sub.CO. There are various ways in which a latched comparator 101 could be implemented.
(63) One skilled in the art will be well aware of how to implement a latched comparator 101 in which transitions in the output time-encoded signal S.sub.PWM are synchronised to a clock signal. For example some circuits are pre-set to a meta-stable state and then released on one edge of each period of a clock signal to make a comparison decision.
(64) It will thus be appreciated that the output from the latch 602, and hence from the latched comparator 101, will still be a PWM signal with cycle-by-cycle durations of α and β of the first and second output states, but in this case the durations α and β and hence the overall cycle period T.sub.PWM will be integer multiples of the period of the first clock signal CLK1.
(65) In some implementations the latching functionality to synchronise the PWM signal S.sub.PWM to the first clock signal may be selectively enabled or disabled. In some implementations the latching functionality may be enabled in the first mode of operation but may be disabled in the second mode of operation so as to reduce power consumption in the second mode of operation. In some instances the latching element, e.g. latch 602, may be operable in a pass-through mode, or in some implementations there may be a signal selector, such as a multiplexor 603 which may be operable to receive the output of the comparator element 601 directly and also operable to receive the output of latch 602 and pass a selected one of these inputs as the output PWM signal based on a signal select control signal, SEL, which may be controlled depending on the mode of operation. The latch 602 may be disabled when not in use.
(66) In embodiments where the PWM signal S.sub.PWM received by a delay element 107 is synchronised to the first clock signal CLK1, the delay element 107 may comprise a digital delay that is also clocked by the first clock signal CLK1. The delay element 107 may thus receive the PWM signal S.sub.PWM and delay propagation of any change in state of the PWM signal S.sub.PWM for a defined number of periods of the first clock signal CLK1 to provide a desired delay. Thus the delayed signal will also be synchronised to the first clock signal CLK1. Such a digital delay, which is clocked by a clock signal so as to provide a delay for a controlled number of periods of the clock signal, can be readily implemented by relatively small and lower power circuitry to provide a controlled and accurate delay. The duration of the delay D may be defined by setting the number of clock periods for which the digital delay element 107 will delay any propagation of a change in state of its input to a change in state in its output.
(67) Synchronising the output PWM signal S.sub.OUT from the time-encoding modulator (TEM) 100 to the first clock signal CLK1 can provide advantages for the downstream processing of the output signal S.sub.OUT.
(68) In various embodiments the PWM output signal S.sub.OUT may be received by a time-decoding converter (TDC) to convert the PWM signal to a digital signal. For example, as mentioned above with respect to
(69)
(70) The counter 701 may be configured to produce a count value of the number of clock periods of the counter clock signal CLK1 in a periods defined by the durations α and β of the pulses of the output PWM signal S.sub.OUT so that an indication of the duty cycle can be determined, e.g. by a demodulator 403 as a value α/(α+β) or (α−β)/(α+β).
(71) If the durations α and β of the pulses of the output PWM signal S.sub.OUT are not synchronised to the counter clock signal, there could be a quantisation error associated with these count values. The extent of such a quantisation error would be determined by the time resolution of the counter 701, which would depend on the frequency of the counter clock signal CLK1. Thus, for example, if the counter clock signal CLK1 had a frequency of, say, 100 MHz, the difference between a count value of M and a count value of M+1 corresponds to a difference in time of 10 ns and thus the minimum time resolution of the TDC 301 would be 10 ns. The resulting quantisation noise spectrum of a purely counter based TDC is effectively flat. To provide an output with acceptably low quantisation noise in the first mode of operation, the frequency of the counter clock signal supplied to the counter 701 in the first mode of operation may be relatively high, for example of the order of several GHz. However such a fast clock speed may be undesirable for power and practicality reasons for some applications.
(72) In some embodiments of the present disclosure, the TEM 100 receives the first clock signal CLK1 and, as described previously, in at least the first mode of operation, synchronises any signal transitions in the output time-encoded signal S.sub.OUT to the first clock signal. Thus, as mentioned, the durations α and β of the pulses of the PWM signal S.sub.OUT will correspond to integer number of periods of the first clock signal CLK1. As such the counter 701 of the TDC 301 can determine count values for these periods without introducing any quantisation error at all.
(73)
(74) As mentioned the level of the input signal S.sub.IN is encoded by the duty cycle of the pulses in the time-encoded signal S.sub.OUT and may be decoded as (α−β)/(α+β) or as α/(α+β) for example. Providing separate counts for α and β allows the desired demodulation to a digital value to be performed and values such as α+β or α−β can be readily determined. However, in some arrangement the counter could also be arranged to provide a count of the cycle period T.sub.PWM, i.e. a count directly of α+β. Additionally or alternatively an up-down counter could be arranged to increment during the pulse of one output state and decrement during the pulse of the other output state to provide a count value indicative of α−β.
(75) The count values, which in this example may be the count values α and β, may be provided to a demodulator 702 for conversion to a digital output, e.g. as (α−β)/(α+β) or as α/(α+β), which digital value may be output as a digital output signal D.sub.OUT. In some implementations the demodulator may comprise an asynchronous sample rate converter (ASRC) to provide a regular sample rate, although in some implementations an ASRC may be provided downstream or may not be required.
(76) There are various known ways in which the count values could be demodulated to provide the digital output. For example the demodulation may be achieved in a computationally efficient way through use of a sigma-delta modulator (SDM).
(77) The demodulator 702 may provide output signal D.sub.OUT at a sample rate defined by a demodulator clock CLK2 which is of lower frequency than the first clock signal CLK1, to which the time-encoded signal is synchronised. Conveniently the demodulator clock signal CLK2 used to control the demodulator(s) may be synchronised to the first clock signal CLK1. The clock signal CLK2 may conveniently be derived from the first clock signal CLK1, e.g. by frequency divider 703. The demodulator 702 may thus be clocked at a lower clock rate than the counter 701 of TDC 301. Operating a lower clock rate may result in some of the power of higher frequency components folding down into the signal band of interest and increasing the noise with the signal band. In some implementations therefore a TDC filter arrangement 704 may be arranged to provide filtering of the count values α and β for anti-aliasing. The TDC filter arrangement 705 may be a low-pass filter (LPF) applying low-pass filtering to the count values α and β in any convenient way.
(78) The ADC 300 may thus be operable in at least two modes of operation, corresponding to the modes of operation of the TEM 100. In the first mode of operation the ADC 300 may be operable with relatively high quality. In some embodiments, in the first mode of operation the TEM 100 may be arranged to receive the first clock signal and to synchronise any signal transitions in the output time-encoded signal S.sub.OUT to the first clock signal. In the first mode, the first clock signal CLK1 may thus have a first frequency f1, which may for example be of the order of a few hundred megahertz, say around 300 MHz for example. The counter 701 of TDC 301 may also be synchronised to the first clock signal CLK so that the counter 701 does not introduce any quantisation noise. The count values may be demodulated by demodulator 702 to provide a digital output D.sub.OUT.
(79) In the second mode of operation, the TEM 100 again operates to provide the output time-encoded signal S.sub.OUT, but in the second mode the TEM 100 has a lower power consumption than in the first mode. In some embodiments the TEM 100 also receives the first clock signal CLK1 in the second mode and may synchronise the time encoded output to the first clock signal. However in some embodiments the TEM 100 may be operable so that the output PWM signal S.sub.OUT is not synchronised to a clock signal in the second mode of operation as this may provide further power savings. The time encoded signal S.sub.OUT output from the TEM 100 may be provided to the counter 701 of TDC 301 which may again count the number of clock periods of the first clock signal CLK1 in periods defined by the output PWM signal S.sub.OUT. If the output time encoded signal S.sub.OUT is not synchronised to the first clock signal, the count may introduce quantisation noise, but this may be acceptable for the second mode of operation. In some embodiments, in the second mode of operation the first clock signal CLK1 may have a second frequency f2, which is different to, and lower than, the first frequency f1. In some examples, e.g. where the second mode is mainly used for activity detection, the frequency in the second mode of operation may be of the order of a few hundred kilohertz or so.
(80) In other words the frequency of the first clock signal CLK1 may be reduced in the second mode so as to provide additional power savings. In some embodiments the ADC may thus be configured to receive the first clock signal from a clock generator 705, which may be operable to provide the first clock signal at different frequencies responsive to a mode control signal C.sub.MODE. In some embodiments the clock generator 705 may comprise a TEM configured to receive a defined voltage as an input signal.
(81) In some embodiments the ADC 300 may operate to provide a digital output D.sub.OUT in the second mode and thus the count values from the counter 701 may be demodulated by demodulator 702 as described above. In some implementation however, the count values produced by the counter 701 may be sufficient for the particular application.
(82) For instance, in some implementation the ADC 300 may be operated in the second mode, to provide some low power always-on type functionality for detecting any significant signal activity. Once any signal activity is detected, the ADC 300 may be switched to the first mode so as to provide a higher quality digital output for subsequent processing. In such a case it may be possible to detect signal activity based on the count values alone, in which case in the second mode of operation the demodulator 702 may be substantially unpowered.
(83) As mentioned above the pulse durations α and β and also the PWM cycle period T.sub.PWM will vary with the level of the input signal. For input signals of zero magnitude the pulse durations α and β will be equal and each equal to half the limit cycle period T.sub.0. As the input signal magnitude increases the relative durations α and β will vary, as will the overall cycle period. If the expected limit cycle period T.sub.0 is known for the TEM 100 when operating in the second mode, a count value corresponding to α or β, or the sum or difference between α and β, or a direct count of the overall cycle period, could be monitored against a threshold. If the relevant value remains below the threshold this indicates that the input signal S.sub.IN is below some magnitude limit. If however the monitored value increase above the threshold, this indicates that the input signal S.sub.IN has increased the magnitude limit, in which case the ADC 300 may change to the first mode of operation.
(84) In some embodiments the ADC 300 may therefore comprise a mode controller 706 for controlling the mode of operation of the TEM 100 and the ADC 300. The mode controller may receive at least some count values directly from the counter 701 and/or may receive a digital output from the demodulator 702 when active. The mode controller 706 may determine an appropriate mode of operation based on the count values and/or the digital output D.sub.OUT and may operate in the second mode when there is no significant signal activity and then transition to the first mode when significant activity when detected. Following any defined period of inactivity the mode controller 706 may transition back to the second mode of operation. Additionally or alternatively the mode controller 706 may be responsive to some external control signals to implement a particular mode of operation. As noted above in some embodiments the mode controller 706 may also generate a mode control signal to vary the frequency of the counter clock signal CLK1 and/or to enable or disable the demodulator 702 of the TDC 301.
(85) In some embodiments a cycle period controller (CPC) 401 may be configured to control at least one parameter P of the TEM 100 so as to control the cycle period, and hence frequency of the PWM output signal S.sub.OUT from the TEM 100. As described above, not only do the durations α and β of the pulses of high and low state in the PWM signal S.sub.PWM (and consequently the output signal S.sub.OUT) vary with the level of the input signal S.sub.IN but also with the PWM cycle period T.sub.PWM, and hence PWM cycle frequency f.sub.PWM, also vary with the input signal S.sub.IN. The PWM cycle period T.sub.PWM can increase significantly at higher input signal magnitudes. For instance at a signal magnitude of nine tenths of the maximum signal level, (|X|=0.9), if can be seen from equation (2) the cycle period will be over five times longer than the limit cycle period T.sub.0 at X=0. The PWM cycle frequency f.sub.PWM will thus be over five times lower than the limit cycle frequency f.sub.0.
(86) This relatively large variation in cycle frequency or period of the output signal S.sub.OUT may be disadvantageous in some implementations. For instance any downstream time-decoding components may need to be able to cope with a large range of cycle period, which may add to the complexity of such decoding components. In addition, to ensure that cycle frequency remains sufficiently high at all signals levels may require the limit cycle frequency to be very high, which again may add to the complexity of downstream components. Otherwise, as the cycle frequency reduces at higher signal magnitudes, it could approach the signal band of interest.
(87) To avoid these issues the operation of the time-encoding modulator 100 may be controlled so as to control the cycle period or cycle frequency of the output signal S.sub.OUT. In some embodiments the cycle period controller 401 may, in at least the first operating mode, be adaptive and respond to an indication of the level of the input signal S.sub.IN to maintain the cycle period of the PWM signal S.sub.PWM and hence the output signal S.sub.OUT within a set range. In particular the cycle period controller 401 may be configured, in at least the first mode of operation, to control at least one parameter P of TEM 100 based on the output signal S.sub.OUT. In some embodiments the cycle period controller 401 may receive a count values, e.g. counts corresponding to some α and/or β or some combination thereof from counter 701 and/or an indication of the digital output from demodulator 702. In some embodiments, as illustrated in
(88) In some implementations the at least one parameter controlled by the cycle period controller 401 may comprise an amount of hysteresis H applied by the comparator 101. If the magnitude of the input signal S.sub.IN increases, which would tend to lead to a longer PWM cycle period T.sub.PWM, the cycle period controller 401 may reduce the amount of hysteresis H applied so as to maintain the overall PWM cycle period T.sub.PWM within defined limits. There are various ways in which a comparator 101 could be implemented with a controllable hysteresis.
(89) Additionally or alternatively, in some implementations the at least one parameter controlled by the cycle period controller 401 may comprise an amount of controlled delay D applied by a delay element 107, which may be a variable delay element operable to provide a defined delay that may be selectively varied in a known way. Thus, if the magnitude of the input signal S.sub.IN increases, which would tend to lead to a longer PWM cycle period T.sub.PWM, the cycle period controller 401 may reduce the amount of delay D applied so as to maintain the overall PWM cycle period T.sub.PWM within defined limits.
(90) There are various ways in which a controlled delay may be implemented and in which the controlled delay applied may be controllably variable. In some embodiments the comparator 101 of the TEM 100 may be operable to apply hysteresis to the comparison and there may be a variable delay element 107 in the feedback loop of the TEM, in which case the cycle period controller may be operable to control both the applied hysteresis H and the controlled delay D.
(91) In some embodiments the delay and/or hysteresis may be controlled to control the variation in the PWM cycle frequency f.sub.PWM in operation. In some embodiments the delay D and/or hysteresis H may be controlled to implement different operating modes as discussed above.
(92) It will be appreciated that the PWM cycle period T.sub.PWM for the PWM signal S.sub.PWM for a given magnitude of input signal S.sub.IN will also depend on the ramp rate of the filtered signal S.sub.FIL for the given input signal, which depends at least partly on the filter parameters of the filter arrangement 102 in the relevant configuration. Additionally or alternatively therefore the at least one parameter P of the TEM 100 controlled by the cycle period controller 401 may comprise a filter parameter of the filter arrangement 102. For instance in the first mode of operation a gain factor of the integrator 202 could be controllably varied, for example by varying the value of component resistances and/or capacitances. One skilled in the art will be aware of various filter parameters that could be varied for the relevant filter so as to controllably vary the ramp rate of the filtered signal.
(93) Embodiments of the present disclosure thus relate to a TEM 100 that can be used as part of an ADC 300 and which can be operated in at least two different modes, wherein a filter arrangement 102 of the TEM 100 can be reconfigured in the two operating modes so as to provide a first higher quality, but higher power and a second lower power, but lower quality mode. In at least one operating mode, e.g. the first operating mode, the output time encoded signal may be synchronised to a received first clock signal, which may relay requirements for downstream processing. In at least one operating mode, e.g. the first operating mode, one or more parameters of the TEM may be controlled to control the cycle period of the time encoded signal.
(94) In the example of
(95)
(96)
(97) The switch network 105 of the filter arrangement 102 of
(98) Other arrangements are possible however, in particular in at least one mode the filter arrangement may be implemented as an active and/or passive second or higher order filter.
(99)
(100) In some embodiments, if desired, a further mode of operation could be enabled by appropriate switches so as to allow the filter arrangement to be configured as a first order filter using just one of the op-amps. It will of course be appreciated that higher order filters could also be implemented in at least some operating modes if desired.
(101) It will be understood that
(102) In some embodiments the feedback path may include a controllable current generator which is configured to generate defined currents based on the state of the feedback signal. Such a current generator may be used instead of applying the feedback signal via a feedback resistance R.sub.FB.
(103) One practical advantage of the use of a current generator 903 is that avoids the need for voltage buffers to provide accurate voltage levels V.sub.H and V.sub.L in order for example to avoid the effects of power supply voltage variation. Such buffers need to be well designed in order to avoid transient effects as the feedback load is switched from V.sub.H to V.sub.L and vice-versa and thus may require more power and chip area than required for a simple current source whose output may be simply steered from the output node to some other node. It will be appreciated that the use of a current generator in the feedback path could also be applied to the other embodiments described.
(104) Embodiments of the present disclosure thus relate to a TEM which is operable in at least first and second modes. The TEM includes a reconfigurable filter arrangement that can be configured in one operating mode to act as an active filter, for higher quality operation, and in another mode may be configured in another operating mode to act as a passive filter, for lower power operation. Aspects also relate to such a reconfigurable filter, such as illustrated in
(105) Embodiments may be implemented in a range of applications and in particular are suitable for audio or ultrasonic applications. Embodiments may be implemented as part of an ADC circuit and may in particular be suitable for applications requiring the ability to provide low power operation at times but higher quality operation at other times. In particular embodiments may be implemented as part of a signal path which is operable with always-on functionality and may be usefully employed as part of signal path for receiving voice commands.
(106) Embodiments may also be suitable for optical applications and the input signal for the TEM may be generated by any suitable photodetector. The TEM could be a TEM as described in any of the variants above. This may be useful for providing monitoring for an optical signal of interest, and as described above the TEM may be operable in different modes to selectively provide a high quality mode of operation or a lower power mode of operation as desired.
(107) For example the TEM may be operable in the low power mode to provide activity detection for an optical signal of interest by monitoring the output of the photodetector. If activity of interest is detected the TEM may swap to the higher quality mode of operation in a similar manner as described above. Note as used herein the term optical is not to be limited to the visible part of the electromagnetic spectrum and the term optical shall be used to encompass ultraviolet radiation and infrared radiation. Any references to light shall be interpreted in the same way.
(108) Any suitable optical detector could be used to provide the input signal for the TEM. In some instance the optical detector may comprise a photodiode.
(109) As will be understood by one skilled in the art, there are two ways in which a photodiode may generally be operated. In a photovoltaic mode of operation there no voltage applied across the photodiode, e.g. there is zero bias. This mode exploits the photovoltaic effect. Such mode of operation relies on incident optical radiation causing a voltage to build up to forward bias the diode, and thus the response of the photodiode to incident radiation is relatively slow. In a photoconductive mode of operation the diode is reverse biased by application of a suitable bias voltage. This mode of operation improves the response time of photodiode, but can result in increased noise in the output, and does require a bias voltage to be applied to the photodiode which can increase power consumption compared to the photovoltaic mode.
(110) In embodiments of the disclosure a photodiode could be connected in either photovoltaic mode or photoconductive mode to provide the input signal for the TEM 100. In some embodiments however the mode of operation of the photodiode 1101 may be selectively varied in use. For example,
(111) In some implementations the controller 706, which controls the mode of operation of the TEM 100, may also control the mode of operation of the photodiode. The controller 706 may thus generate a control signal C.sub.MODEPD to selectively operate the photodiode 1101 in the selected mode by selectively coupling it to ground or the bias voltage V.sub.BIAS, e.g. by control of switches S.sub.PV and S.sub.PC. In some implementations the controller may be configured so that the photodiode is operated in the photovoltaic mode when the TEM is operating in the low power mode of operation, e.g. the second mode of operation of the TEM. As mentioned, in the photovoltaic mode of operation there is no bias applied to the photodiode 1101 and thus this represents a low power mode of operation of the photodiode 1101. As also mentioned, the response to incident optical radiation may be slower in the photovoltaic mode, but the speed of response may be good enough for activity detection and, unless and until significant activity is detected, it is not necessary be able to respond rapidly to any variations in incident light. If significant activity is detected the controller may control the TEM to swap to the high quality mode of operation and may control the photodiode to operate in the photoconductive mode of operation so that the output from photodiode 1101, and hence the input signal S.sub.IN to the TEM 100, will provide a better indication of any relatively rapid variations in the incident optical signal.
(112)
(113) Referring back to
(114) Embodiments may be implemented as an integrated circuit which in some examples could be a codec or audio DSP or similar. Embodiments may be incorporated in an electronic device, which may for example be a portable device and/or a device operable with battery power. The device could be a communication device such as a mobile telephone or smartphone or similar. The device could be a computing device such as notebook, laptop or tablet computing device. The device could be a wearable device such as a smartwatch. The device could be a device with voice control or activation functionality. In some instances the device could be an accessory device such as a headset or the like to be used with some other product.
(115) The skilled person will recognise that some aspects of the above-described apparatus and methods, for example the discovery and configuration methods may be embodied as processor control code, for example on a non-volatile carrier medium such as a disk, CD- or DVD-ROM, programmed memory such as read only memory (Firmware), or on a data carrier such as an optical or electrical signal carrier. For many applications, embodiments will be implemented on a DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit) or FPGA (Field Programmable Gate Array). Thus the code may comprise conventional program code or microcode or, for example code for setting up or controlling an ASIC or FPGA. The code may also comprise code for dynamically configuring re-configurable apparatus such as re-programmable logic gate arrays. Similarly the code may comprise code for a hardware description language such as Verilog™ or VHDL (Very high speed integrated circuit Hardware Description Language). As the skilled person will appreciate, the code may be distributed between a plurality of coupled components in communication with one another. Where appropriate, the embodiments may also be implemented using code running on a field-(re)programmable analogue array or similar device in order to configure analogue hardware.
(116) It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. The word “comprising” does not exclude the presence of elements or steps other than those listed in a claim, “a” or “an” does not exclude a plurality, and a single feature or other unit may fulfil the functions of several units recited in the claims. Any reference numerals or labels in the claims shall not be construed so as to limit their scope.