View Single Post
Unread 04-27-2005, 05:23 PM   #5
lukr
Cooling Neophyte
 
Join Date: Dec 2003
Location: Hungary
Posts: 23
Default

whats your question about the AD converter?
Just a quick info: It converts analog signals (one voltage in this case) to digital signals. Connect a known voltage to the reference-input pin (Vref). Connect the voltage you want to know to the Vin(+) pin, and Vin(-) to ground. And shows Vin/Vref on the digital output pins (you know binary numbers?).
(DB0..DB7 pins are the digital outputs in that chip.
MSB=Most significant bit, LSB=least significant bit.
1=high=voltage on pinX is about 5V; 0=low=voltage on pinX is about 0V.)

Some examples: if Vin=Vref the out (DB0..DB7) will be 11111111 (8bit ADC) , if Vin=0, out will be 00000000. If Vref=5V, and Vin=3.46V (Vin/Vref=0.692) the digital output will be close to 0.692*255=177=10110001. Maybe not exactly, because of some electrical noise or like, but accuracy is not realy important now i think.

For a quick test, look@chapter "Testing the A/D converter", pg23-24 in the datasheet.
lukr is offline   Reply With Quote