Register definition for ADS101x/111x devices. More...

Detailed Description

Register definition for ADS101x/111x devices.

Author
Vincent Dupont vince.nosp@m.nt@o.nosp@m.takey.nosp@m.s.co.nosp@m.m
Matthew Blue matth.nosp@m.ew.b.nosp@m.lue.n.nosp@m.euro.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Definition in file ads101x_regs.h.

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

ADS101x/111x register addresses

#define ADS101X_CONV_RES_ADDR   (0)
 
#define ADS101X_CONF_ADDR   (1)
 
#define ADS101X_LOW_LIMIT_ADDR   (2)
 
#define ADS101X_HIGH_LIMIT_ADDR   (3)
 

ADS101x/111x Config flags

Comparator flags have no effect on ADS1013 and ADS1113.

#define ADS101X_CONF_OS_CONV   (1 << 7)
 
#define ADS101X_CONF_COMP_MODE_WIND   (1 << 4)
 
#define ADS101X_CONF_COMP_DIS   ((1 << 1) | (1 << 0))
 

ADS101x/111x mux settings

Supports both single mode and differential.

This has no effect on ADS1013-4 and ADS1113-4.

#define ADS101X_MUX_MASK   ((1 << 6) | (1 << 5) | (1 << 4))
 
#define ADS101X_AIN0_DIFFM_AIN1   ((0 << 6) | (0 << 5) | (0 << 4))
 
#define ADS101X_AIN0_DIFFM_AIN3   ((0 << 6) | (0 << 5) | (1 << 4))
 
#define ADS101X_AIN1_DIFFM_AIN3   ((0 << 6) | (1 << 5) | (0 << 4))
 
#define ADS101X_AIN2_DIFFM_AIN3   ((0 << 6) | (1 << 5) | (1 << 4))
 
#define ADS101X_AIN0_SINGM   ((1 << 6) | (0 << 5) | (0 << 4))
 
#define ADS101X_AIN1_SINGM   ((1 << 6) | (0 << 5) | (1 << 4))
 
#define ADS101X_AIN2_SINGM   ((1 << 6) | (1 << 5) | (0 << 4))
 
#define ADS101X_AIN3_SINGM   ((1 << 6) | (1 << 5) | (1 << 4))
 

ADS101x/111x programmable gain

Sets the full-scale range (max voltage value).

This has no effect on ADS1013 and ADS1113 (both use 2.048V FSR).

#define ADS101X_PGA_MASK   ((1 << 3) | (1 << 2) | (1 << 1))
 
#define ADS101X_PGA_FSR_6V144   ((0 << 3) | (0 << 2) | (0 << 1))
 
#define ADS101X_PGA_FSR_4V096   ((0 << 3) | (0 << 2) | (1 << 1))
 
#define ADS101X_PGA_FSR_2V048   ((0 << 3) | (1 << 2) | (0 << 1))
 
#define ADS101X_PGA_FSR_1V024   ((0 << 3) | (1 << 2) | (1 << 1))
 
#define ADS101X_PGA_FSR_0V512   ((1 << 3) | (0 << 2) | (0 << 1))
 
#define ADS101X_PGA_FSR_0V256   ((1 << 3) | (0 << 2) | (1 << 1))
 

ADS101x/111x data rate settings

Determines how quickly samples are taken (even on one-shot mode)

#define ADS101X_DATAR_MASK   ((1 << 7) | (1 << 6) | (1 << 5))
 
#define ADS101X_DATAR_128   ((0 << 7) | (0 << 6) | (0 << 5))
 
#define ADS101X_DATAR_250   ((0 << 7) | (0 << 6) | (1 << 5))
 
#define ADS101X_DATAR_490   ((0 << 7) | (1 << 6) | (0 << 5))
 
#define ADS101X_DATAR_920   ((0 << 7) | (1 << 6) | (1 << 5))
 
#define ADS101X_DATAR_1600   ((1 << 7) | (0 << 6) | (0 << 5))
 
#define ADS101X_DATAR_2400   ((1 << 7) | (0 << 6) | (1 << 5))
 
#define ADS101X_DATAR_3300   ((1 << 7) | (1 << 6) | (0 << 5))