ADS1015

Texas Instruments Analog-Digital Converter

Device Details

  • Device address 73
  • Address type 7-bit
  • Little Endian

Registers

Config

ADC config * Address 1 * 16-bytes

Defines sensing implementation and options.

Conversion

ADC Value * Address 0 * 16-bytes * Read-only

Contains the result of the last conversion.

Fields

#/registers/Config/Channel

Channel to read

  • Bits 14:12

Field values

  • 0: Channel 1
  • 1: Channel 2
  • 2: Channel 3
  • 3: Channel 4

Sets the channel for reading analog voltage.

#/registers/Config/DeviceOperatingMode

Operating mode

  • Bit 8

Field values

  • 0: Continuous Conversion
  • 1: Single-shot or power-down state

Controls the operating mode for reading analog voltage.

#/registers/Config/ProgrammableGain

Programmable gain

  • Bits 11:9

Field values

  • 5: Plus/minus 0.256V
  • 4: Plus/minus 0.512V
  • 3: Plus/minus 1.024V
  • 2: Plus/minus 2.048V
  • 1: Plus/minus 4.096V
  • 0: Plus/minus 6.144V

Sets the programmable gain for reading analog voltage in voltage.

#/registers/Config/SampleRate

Sample rate

  • Bits 7:5

Field values

  • 0: 128 samples/second
  • 4: 1600 samples/second
  • 5: 2400 samples/second
  • 1: 250 samples/second
  • 6: 3300 samples/second
  • 2: 490 samples/second
  • 3: 920 samples/second

Sets the sample read in samples-per-second for reading analog voltage.

Functions

  • analog: Reads the analog voltage in Volts.

License

ADS1015 version 0.1.0. Generated from Cyanobyte Codegen version HEAD.

Contact Nick Felker.

Copyright Google Inc. 2019. Published under Apache-2.0.