hai brother

Originally Posted by
HenrikOlsson
Hello,
You still haven't said what kind of resolution you actually NEED, just that you wanted to use 24bits becaue that is what you had. I also asked you earlier if you had the 4-20mA signal converted to 0-5 or 1-5V. With 1-5V it means that you are basically "wasting" 20% of the ADC range.
Now, with a 1-5V signal I'd configure the ADC to use the external Vref inputs instead of the VDD and VSS. That way, if you feed a stable 1V signal into Vref- and a stable 5V into Vref+ you'll use all the available resolution and you'll get 0 for 1V and 1023 for 5V. That way you get a basic resolution of 0.1bar as I outlined earlier and can increase that by oversampling.
"If you try the aproach of 1024 samples remember that you need to add them into a 32bit variable as the result may not fit in a 16bit variable".
/Henrik.
hai HENRIK,
THANKS FOR YOUR SUPPORT and sorry for delayed reply.am using "long variable" so the 32bit variable fits in it.how to feed 1v? is that any voltage regulator available for 1v.what about the -ve side.
as you said i used the internal adc and the oversampling method and got stable reading,but for now when i seperately send the readings to the lcd and hyperterminal it works but when i used both it doesn't work .i dont know what is the problem can you help me please.
THANKS AND REGARDS,
PUGAL
IF YOU BORN POOR ITS NOT BECAUSE OF YOU BUT IF YOU DIE POOR ITS BECAUSE OF YOU.
Bookmarks