pic16f72 with 8 bit ADC

Status
Not open for further replies.

spiba

Junior Member level 2
Joined
Feb 1, 2010
Messages
23
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
india
Activity points
1,477
i am using pic16f72 with 8 bit ADC ie max FF h = 255 decimal steps .
Now if i want to display ( 00.0 <n< 24.5) on 3 seven segment i have kept Vref of ADC at 2.55 so i get step of exact 0.1 volt.
if i devide 255 by ten i get max 255 steps = 25 rounded of i.e tens and ones digit . How do i get the decimal value
as i want to display battery volts say values like12.5 ,13.2 etc . to max 25.5 .
Note : i am programming in assembly Language
 


Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…