Zero-order hold
The zero-order hold is a mathematical model of the practical signal reconstruction done by a conventional digital-to-analog converter. That is, it describes the effect of converting a discrete-time signal to a continuous-time signal by holding each sample value for one sample interval. It has several applications in electrical communication.
Time-domain model
[Image:Zeroorderhold.impulseresponse.svg|thumb|Figure 1. The time-shifted and time-scaled rect function used in the time-domain analysis of the ZOH.][Image:Zeroorderhold.signal.svg|thumb|Figure 2. Piecewise-constant signal xZOH(t).]
[Image:Sampled.signal.svg|thumb|Figure 3. A modulated Dirac comb xs(t).]
A zero-order hold reconstructs the following continuous-time waveform from a sample sequence x, assuming one sample per time interval T:
where is the rectangular function.
The function is depicted in Figure 1, and is the piecewise-constant signal depicted in Figure 2.
Frequency-domain model
The equation above for the output of the ZOH can also be modeled as the output of a linear time-invariant filter with impulse response equal to a rect function, and with input being a sequence of dirac impulses scaled to the sample values. The filter can then be analyzed in the frequency domain, for comparison with other reconstruction methods such as the Whittaker–Shannon interpolation formula suggested by the Nyquist–Shannon sampling theorem, or such as the first-order hold or linear interpolation between sample values.In this method, a sequence of Dirac impulses, xs, representing the discrete samples, x, is low-pass filtered to recover a continuous-time signal, x.
Even though this is not what a DAC does in reality, the DAC output can be modeled by applying the hypothetical sequence of dirac impulses, xs, to a linear, time-invariant filter with such characteristics so that each input impulse results in the correct constant pulse in the output.
Begin by defining a continuous-time signal from the sample values, as above but using delta functions instead of rect functions:
The scaling by, which arises naturally by time-scaling the delta function, has the result that the mean value of xs is equal to the mean value of the samples, so that the lowpass filter needed will have a DC gain of 1. Some authors use this scaling, while many others omit the time-scaling and the T, resulting in a low-pass filter model with a DC gain of T, and hence dependent on the units of measurement of time.
[Image:Zeroorderhold.impulseresponse.svg|thumb|Figure 4. Impulse response of zero-order hold hZOH(t). It is identical to the rect function of Figure 1, except now scaled to have an area of 1 so the filter will have a DC gain of 1.]
The zero-order hold is the hypothetical filter or LTI system that converts the sequence of modulated Dirac impulses xsto the piecewise-constant signal :
resulting in an effective impulse response of:
The effective frequency response is the continuous Fourier transform of the impulse response.
where is the sinc function commonly used in digital signal processing.
The Laplace transform transfer function of the ZOH is found by substituting s = i 2 π ''f:
The fact that practical digital-to-analog converters do not output a sequence of dirac impulses, x''s, but instead output a sequence of rectangular pulses, xZOH, means that there is an inherent effect of the ZOH on the effective frequency response of the DAC, resulting in a mild roll-off of gain at the higher frequencies. This drop is a consequence of the hold property of a conventional DAC, and is not due to the sample and hold that might precede a conventional analog-to-digital converter.