Microcontroller › 8051 › Plz help me with Electronic voting machine..! › dig_ctrl_var =
November 23, 2011 at 10:08 am
#6869
Qaisar
Participant
dig_ctrl_var = vote_amt[p]+48; ?
lcd display ascii character.
48 = 0 in ascii
how u will display 5 on lcd?
simple
add 5 in 48 =53
53 decimal charatcer is equal to 5 in ascii characters.
have a look on ascii table . just google it ..
the above statemnt is taking a number from a array , converting that number to ascii and copy to dig_ctr_var.