This version (10 Dec 2020 12:05) was approved by Cristian Pop.The Previously approved version (10 Dec 2020 11:40) is available.Diff

AD7091R5 User Guide


The AD7091R-5 is a 12-bit, multichannel, ultra low power, successive approximation analog-to-digital converter (ADC). The AD7091R-5 operates from a single 2.7 V to 5.25 V power supply and typically consumes only 24 µA at a 3 V supply in fast mode. The AD7091R-5 provides a 2-wire serial interface compatible with I2C interfaces. The conversion process can be controlled by a sample mode via the CONVST/GPO1 pin, an autocycle mode selected through software control, or a command mode in which conversions occur across I2C write operations. The device contains a wide bandwidth track-and-hold amplifier that can handle input frequencies up to 1.5 MHz. The AD7091R-5 also features an on-chip conversion clock, an on-chip accurate 2.5 V reference, and a programmable out of bounds user alert function. The AD7091R-5 offers four single-ended analog input channels with a channel sequencer that allows a preprogrammed selection of channels to be converted sequentially. The AD7091R-5 uses advanced design techniques to achieve ultra low power dissipation without compromising performance. It also features flexible power management options. An on-chip configuration register allows the user to set up different operating conditions. These include power management, alert functionality, busy indication, channel sequencing, and general-purpose output pins. The MUXOUT and ADCIN pins allow signal conditioning of the multiplexer output before acquisition by the ADC.

Supported devices

Evaluation board

No-OS Driver Description

Functions Declarations

Function Description
int32_t ad7091r5_init(struct ad7091r5_dev **device,
		      struct ad7091r5_init_param *init_param);
Initialize the device.
int32_t ad7091r5_remove(struct ad7091r5_dev *dev);
Remove the device and release resources.
int32_t ad7091r5_set_mode(struct ad7091r5_dev *dev,
			  enum ad7091r5_mode mode);
Set device mode.
int32_t ad7091r5_sleep_mode(struct ad7091r5_dev *dev,
			    enum ad7091r5_sleep_mode mode);
Set device sleep mode.
int32_t ad7091r5_set_port(struct ad7091r5_dev *dev,
			  enum ad7091r5_port port, bool value);
Set device set port value.
int32_t ad7091r5_set_gpo0_mode(struct ad7091r5_dev *dev,
			       enum ad7091r5_gpo0_mode mode,
			       bool is_cmos);
Set device set GPO0 mode.
int32_t ad7091r5_set_cycle_timer(struct ad7091r5_dev *dev,
				 enum ad7091r5_cycle_timer timer);
Set cycle timer for autocycle mode.
int32_t ad7091r5_set_limit(struct ad7091r5_dev *dev,
			   enum ad7091r5_limit limit,
			   uint8_t channel,
			   uint16_t value);
Set high limit, low limit, hysteresis.
int32_t ad7091r5_get_alert(struct ad7091r5_dev *dev,
			   uint8_t channel,
			   enum ad7091r5_alert_type *alert);
Get alert.
int32_t ad7091r5_get_limit(struct ad7091r5_dev *dev,
			   enum ad7091r5_limit limit,
			   uint8_t channel,
			   uint16_t *value);
Get high limit, low limit, hysteresis.
int32_t ad7091r5_set_channel(struct ad7091r5_dev *dev,
			     uint8_t channel);
Select device channel.
int32_t ad7091r5_read_one(struct ad7091r5_dev *dev,
			  uint8_t channel,
			  uint16_t *read_val);
Read one sample.

Types Declarations

 * @enum ad7091r5_mode
 * @brief Converter supported modes
enum ad7091r5_mode {
	/** Sample mode, conversion started by CONVST */
	/** Command mode, conversion starts on the first pos edge of SCL */
	/** Sample mode, convert continuously */
 * @enum ad7091r5_sleep_mode
 * @brief Converter supported sleep modes
enum ad7091r5_sleep_mode {
	/** Default operation:
	 * Sleep mode Off, Internal reference Off */
	/** Sleep mode Off, Internal reference On */
	/** Sleep mode On, Internal reference Off */
	/** Sleep mode On, Internal reference On */
 * @enum ad7091r5_port
 * @brief Converter general purpose outputs
enum ad7091r5_port {
	/** GPO0 */
	/** GPO1 */
	/** GPO2 */
 * @enum ad7091r5_gpo0_mode
 * @brief Port 0 configuration
enum ad7091r5_gpo0_mode {
	/** GPO0 is output port */
	/** GPO0 is Alert indicator */
	/** GPO0 is busy indicator, device is converting */
 * @enum ad7091r5_cycle_timer
 * @brief Timer used for autocycle mode
enum ad7091r5_cycle_timer {
	/** 100 uS */
	/** 200 uS */
	/** 400 uS */
	/** 800 uS */
 * @enum ad7091r5_alert_type
 * @brief Alert status
enum ad7091r5_alert_type {
	/** No alert */
	/** High alert */
	/** Low alert */
 * @enum ad7091r5_limit
 * @brief Limit type
enum ad7091r5_limit {
	/** Low limit */
	/** High limit */
	/** Hysteresis */
 * @struct ad7091r5_init_param
 * @brief  Structure containing the init parameters needed by the ad7091r5 device
struct ad7091r5_init_param {
	/* I2C */
	i2c_init_param		*i2c_init;
	/** RESET GPIO initialization structure. */
	struct gpio_init_param	*gpio_resetn;
 * @struct ad7091r5_dev
 * @brief  Structure representing an ad7091r5 device
struct ad7091r5_dev {
	/* I2C descriptor */
	struct i2c_desc 	*i2c_desc;
	/** RESET GPIO handler. */
	struct gpio_desc	*gpio_resetn;

No-OS Downloads

resources/eval/user-guides/ad7091r5.txt · Last modified: 10 Dec 2020 12:05 by Cristian Pop