Documentation for adc2level (SPASS).

Computation of the levels of an Analog to Digital Converter


Description

The function adc2level computes the levels of an Analog to Digital Converter for level crossing conversion.

Usage

levels = adc2level(adc)
[levels,timeprec] = adc2level(adc)

Arguments

adc Analog to Digital Converter.

Values

levels Levels. Row vector.
timeprec Time precision for level crossing. Scalar. Optional

See Also

Example

  nbit = 3;        % resolution
  vmin = 0;        % minimum voltage
  vmax = 1.8;      % maximum voltage

  adc = adcinit(nbit,vmin,vmax);
  levels = adc2level(adc);