public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* XADC values read from VAUX0-15 are consistently ~10% less than they should be
@ 2015-05-05 22:11 Xander Huff
  2015-05-06 18:35 ` Xander Huff
  0 siblings, 1 reply; 2+ messages in thread
From: Xander Huff @ 2015-05-05 22:11 UTC (permalink / raw)
  To: lars; +Cc: Jaeden Amero, Josh Cartwright, Joseph Hershberger, linux-iio

Hi Lars,

I've been working on transitioning one of our hardware devices over from using 
the out-of-tree hwmon driver that Xilinx used to provide to the xadc driver you 
added upstream, but I've been having trouble accessing our connected auxiliary 
channels. I've found that for all channels I've tested, after multiplying the 
raw value by the scale value (0.244140625), the resulting mVs are always about 
10 percent less than what we expect them to be. (2.9V instead of 3.3V, 5.4V 
instead of 6V, etc.). I'm interested in any tips you may have on how to debug 
this issue.

Thanks!

--
Xander Huff
Staff Software Engineer
National Instruments

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: XADC values read from VAUX0-15 are consistently ~10% less than they should be
  2015-05-05 22:11 XADC values read from VAUX0-15 are consistently ~10% less than they should be Xander Huff
@ 2015-05-06 18:35 ` Xander Huff
  0 siblings, 0 replies; 2+ messages in thread
From: Xander Huff @ 2015-05-06 18:35 UTC (permalink / raw)
  To: lars; +Cc: Jaeden Amero, Josh Cartwright, Joseph Hershberger, linux-iio

On 5/5/2015 5:11 PM, Xander Huff wrote:
> Hi Lars,
>
> I've been working on transitioning one of our hardware devices over from using
> the out-of-tree hwmon driver that Xilinx used to provide to the xadc driver you
> added upstream, but I've been having trouble accessing our connected auxiliary
> channels. I've found that for all channels I've tested, after multiplying the
> raw value by the scale value (0.244140625), the resulting mVs are always about
> 10 percent less than what we expect them to be. (2.9V instead of 3.3V, 5.4V
> instead of 6V, etc.). I'm interested in any tips you may have on how to debug
> this issue.
Nevermind, it turns out I had somehow transcribed the scale value incorrectly 
for my testing. After modifying my test to directly use the scale values from 
our target, the resulting voltages came out as expected

-- 
Xander Huff
Staff Software Engineer
National Instruments

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-06 18:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-05 22:11 XADC values read from VAUX0-15 are consistently ~10% less than they should be Xander Huff
2015-05-06 18:35 ` Xander Huff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox