AnsweredAssumed Answered

AD3961 & Temperature

Question asked by Daveman on Oct 15, 2014
Latest reply on Oct 20, 2014 by rgetz

I'm using Linaro running on a MicroZed board to talk to the AD3961.  I'm initially trying to use the Linux drivers to get the data from the internal temperature sensor.  I tried to follow the example shown on page 84 of the AD9361 Reference Manual.

 

I was able to find these adi equivalents in /sys/kernel/debug/iio/iio:device0

 

SPI Address
dataadi equivalent
B0echo 0 > adi,temp-sense-offset-signed
CFecho 1 > adi,temp-sense-periodic-measurement-enable
D0echo 1000 > adi,temp-sense-measurement-interval-ms
F0echo 256 > adi,temp-sense-decimation
1D

1

??
351Eecho 30 > adi,ctrl-outs-index
36FFecho 255 > adi,ctrl-outs-enable-mask

 

If I understand things correctly, this should set up a 1000ms periodic internal temperature measurement.

So my questions:

  1. How can I read the temperature values (Address: 0x00E) from the command line?
  2. How do I set the Aux-ADC config (Address: 0x01D)?
  3. How would I set it up to manually start a temperature reading? (setting bit in Address 0x00C)?
    1. Is it just a matter of setting adi,temp-sense-measurement-interval-ms to zero, and then setting adi,temp-sense-periodic-measurement-enable to 1 to start the reading?

Outcomes