I'am looking for a understanding of how the meter converts it's reading to a
display for a class i'am teaching this summer.
display for a class i'am teaching this summer.
Pababravo: thank you for this information.But how does it get converted to a string of decimal digets and what device uses the decimal conversion to activate the LCD. Could I show my class that I could use that device to actvatePapabravo said:A digital meter reads a binary value from an Analog to Digital Converter. This binary value is converted to a string of decimal digits which are then written to the display. Is that sufficient for your purposes?
let a/b be the INTEGER quotient of a divided by b
let a%b be the remainder of a divided by b
let n be an arbitrary eight bit quantity in the range [0..255]
let 197 be such a number
We are looking for three decimal digits to display
d2 = n / 100 and r2 = n % 100 --> d2 = 197 / 100 = 1 and r2 = 197 % 100 = 97
d1 = r2 / 10 and r1 = r2 % 10 --> d1 = 97 / 10 = 9 and r1 = 97 % 10 = 7
d0 = r1 / 1 --> d0 = 7 / 1 = 7
by Jake Hertz
by Jake Hertz