Re: [Owfs-developers] DS2450 and voltages

2008-05-02 Thread Alessio Sangalli
Paul Alfille wrote: It's certainly possible to give the raw byte sequence. There is a slight Are you using a platform where floating point arithmetic is inconvenient? I'm told the true resolution is only 8 bit even though 16bit is set, so rounding errors are probably irrelevant. Well I do

Re: [Owfs-developers] DS2450 and voltages

2008-05-02 Thread Paul Alfille
Allesio After a conversion (measurement) is done, the raw data can be read from memory (page 0). This is a little less efficient since the memory page is read twice, once for the voltage and once for the page. Still, data A/D is probably the slowest part of the sequence. The data sheet calls

[Owfs-developers] DS2450 and voltages

2008-05-01 Thread Alessio Sangalli
Hi, I am using a DS2450 to control voltages. I use a voltage divider, 33K + 10K resistors and measure the voltage in the middle to measure up to about 20V. I have to calibrate each ADC to get an accurate reading depending on the real value of the resistors. In this operation I would be more

Re: [Owfs-developers] DS2450 and voltages

2008-05-01 Thread Paul Alfille
It's certainly possible to give the raw byte sequence. There is a slight wrinkle that the DS2450 does A/D conversion either 0-2.5V or 0-5V and we use the requested property to transparently set the correct resolution. From modules/owlib/src/c/ow_2450.c: // data conversions f[0] =