from what i know you just multiply by voltage units: ie: 5/1024 = how much each is then do value times how_much_each_is.... see ya andy ----- Original Message ----- From: Salah Mohammed To: Sent: Thursday, July 26, 2001 8:31 PM Subject: [PIC]: ADC actual value Need help! > Hello List!, > I don`t know if it is simple problem or not ...anyway ... > > Target Chip : PIC16F877. > A/D : 10 bits. > programming language : PICC. > > the problem is that how to calculate the actual value of the A/D readings, > for example : > I am reading the voltage on a specific pin by using the A/D(10 bits) ,but > the value in these 10 bits are not the actual value of the applied voltage > so who can I converet it to the real value, > > A/D(10 bits) value voltage > _______________________________________________________________ > > 0000000000 0v > ....................... ? I don`t > know how to get the values here > ...................... ? > ....................... ? > ...................... ? > 1111111111 5v > > thanx in advance, > Regards > Salah Mohammed > > email: salah@hugle.co.jp > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads