AD2S90

AD2S90 IIO Resolver-to-Digital Converter.

Supported Devices

Description

The AD2S90 is a complete 12-bit resolution resolver-to-digital converter that provides angular position measurement. It requires only a 3-wire serial interface and an external reference oscillator, offering a simple and cost- effective solution for shaft angle measurement in motor control systems.

This is a Linux industrial I/O (Linux Industrial I/O Subsystem) subsystem driver, targeting Resolver-to-Digital Converters. The industrial I/O subsystem provides a unified framework for drivers for many different types of converters and sensors using a number of different physical interfaces (i2c, spi, etc). See Linux Industrial I/O Subsystem for more information.

Source Code

Status

Source

Mainlined?

git

Yes

Files

Function

File

driver

drivers/iio/resolver/ad2s90.c

Adding Linux driver support

Kernel configuration

Configure kernel with make menuconfig (alternatively use make xconfig or make qconfig)

Enable CONFIG_AD2S90 with CONFIG_SPI. The module is ad2s90.

Device Drivers
  Industrial I/O support
    Resolver to digital converters
      <*> Analog Devices ad2s90 driver

Driver testing

Identify the device by reading name under /sys/bus/iio/devices/iio:deviceX/; the number X depends on probe order.

The device exposes in_angl0_raw and in_angl0_scale. The raw position is a 12-bit unsigned code; the scale is 6283 / 4096 (2π / 2^12), giving the angle in radians.

More Information