Microcontroller › 8051 › how to display a 4-digit numeric data on 7-seg displays with variable data at receiver
- This topic has 17 replies, 2 voices, and was last updated 11 years ago by Mehtab Ali.
March 3, 2012 at 5:20 am #1613
how to display a 4-digit numeric data on 7-seg displays with variable data at receiver.
i need to carry out serial communication with a dial guage n diaplay its reading on four 7-seg diaplays. i am coding in assembly….plaz help me with the codeMarch 4, 2012 at 3:24 am #7218
can any one post a reply sooner….its bit urgent…March 4, 2012 at 3:34 am #7219
can you send me the circuit diagramMarch 4, 2012 at 4:57 am #7220March 4, 2012 at 5:33 am #7221
do you need the code only for the display of data being received or complete code for the whole circuitMarch 4, 2012 at 5:45 am #7222
code for d complete circuit as in to cary out serial communication also….m coding in assembly….the task is jus to receive a 4-digit data from a dial guage & diaplay on 7-seg.
The data i continuosly varying depending on to load variation at d dial gauge.March 4, 2012 at 6:08 am #7225
i can provide you a program for the dispaly of digits after databyte has reached to microcontroller through rxd pin.
it becomes a lengthy process to make a complete code for your circuit.also complete code is only possible if you provide your circuit detailed working.March 4, 2012 at 6:13 am #7223
ok tell me,as it is serial communication,so which digit’s data will enter microcontoller first.rightmost or leftmost.March 4, 2012 at 6:20 am #7226
ofcourse data received is from LSB.
Herein,first of all i hav to communicate with dial guage through rs-232. the reading on dial guage is received at Rxd which is supposed to be stored at sbuf. As received data is ASCII.first convert it to HEx by anding with 0x7Fh & comparing fo carriage return i.e CJNE 0x0D& store it at some memoy location.
later division is to be carried out so as to separate each digit by dividing d 4-digit data with 1000,100,10 respectivly.after evry DIV opration data in A is sent to disp being selcted by transistor selection & the remainder stored in B is carried to next DIV instruction by sending it to Acc.
i hav also stoed a look-up table at dptr with 0-9 hex values.
n virtual terminal connected is supposed to be dial guage just to carry out simulationMarch 4, 2012 at 9:05 am #7228
ok. i try to develop a code for your circuit in a day or two as i myself is stucked in gsm interfacing.March 4, 2012 at 9:36 am #7230
for now jus tell me what is to be done to keep a digit diaplayed at resp display …i.e refrehing diaplay aftr prescribed timer timeout..
i am stuck with how to write a code for timer for 5msec refreshMarch 4, 2012 at 9:40 am #7231
you can use 74ls373 latch for each digit to keep it displayed. if you want to change the digit then enable it change the data and disable itMarch 4, 2012 at 9:51 am #7232
this program will generate a time delay of 5msecs. if clock frequency is 11.0592Mhz
TRR: MOV TL0,#0
RRT: JNB TF0,RRT
CLR TF0March 4, 2012 at 10:02 am #7234
are you doing a some project or doing it as a hobbyMarch 5, 2012 at 4:57 pm #7255
its a project n m running out of deadline…plz can u reply me by tomorrow…its preety urgent
- You must be logged in to reply to this topic.