AnsweredAssumed Answered

Can't read data from AD7793 with Linux driver

Question asked by peterlin82 on Aug 30, 2017
Latest reply on Sep 18, 2017 by peterlin82
Branched from an earlier discussion

I have a similar problem.

{
.modalias = "ad7793",
.max_speed_hz = 1000000,
.bus_num = 0,
.chip_select = 0,
.platform_data = &ad7793_pdata,
.mode = SPI_MODE_3,
.irq = gpio_to_irq(9), // Raspberry Pi SPI0_MISO is GPIO9.
}

 

cat /sys/bus/iio/devices/iio\:device0/name

I get "ad7793".

But 

cat in_voltage0-voltage0_raw // connect 0.5v

cat in_voltage1-voltage1_raw // null

cat in_voltage2-voltage2_raw // null

I always get the same thing(7502040).

Outcomes