Documentation for adcinit (SPASS).

Initialization of an analog to digital converter


Description

The function adcinit initializes an analog to digital converter given its resolution, minimumand maximum voltage and time precision.

Usage

adc = adcinit(nbit,vmin,vmax)
adc = adcinit(nbit,vmin,vmax,timeprec)

Arguments

nbit Number of bits (converter resolution). Scalar.
vmin Converter power supply minimum voltage. Scalar.
vmax Converter power supply maximum voltage. Scalar.
timeprec Converter time precision. Scalar. Optional.

Values

adc Analog to Digital Converter.

See Also

Example

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

  adc = adcinit(nbit,vmin,vmax);