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.
-
AuthorPosts
-
March 3, 2012 at 5:20 am #1613
Snehal
Participanthi…
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 code
March 4, 2012 at 3:24 am #7218Snehal
Participantcan any one post a reply sooner….its bit urgent…
March 4, 2012 at 3:34 am #7219Mehtab Ali
Participantcan you send me the circuit diagram
March 4, 2012 at 4:57 am #7220Snehal
ParticipantMarch 4, 2012 at 5:33 am #7221Mehtab Ali
Participantdo you need the code only for the display of data being received or complete code for the whole circuit
March 4, 2012 at 5:45 am #7222Snehal
Participantcode 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 #7225Mehtab Ali
Participanti 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 #7223Mehtab Ali
Participantok 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 #7226Snehal
Participantofcourse 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 simulation
March 4, 2012 at 9:05 am #7228Mehtab Ali
Participantok. 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 #7230Snehal
Participantfor 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 refresh
March 4, 2012 at 9:40 am #7231Mehtab Ali
Participantyou 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 it
March 4, 2012 at 9:51 am #7232Mehtab Ali
Participantthis program will generate a time delay of 5msecs. if clock frequency is 11.0592Mhz
MOV TMOD,#O1H
TRR: MOV TL0,#0
MOV TH0,#0EEH
SETB TR0
RRT: JNB TF0,RRT
CLR TR0
CLR TF0
March 4, 2012 at 10:02 am #7234Mehtab Ali
Participantare you doing a some project or doing it as a hobby
March 5, 2012 at 4:57 pm #7255Snehal
Participantits a project n m running out of deadline…plz can u reply me by tomorrow…its preety urgent
-
AuthorPosts
- You must be logged in to reply to this topic.