- This topic has 17 replies, 2 voices, and was last updated 12 years, 6 months ago by .
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › how to display a 4-digit numeric data on 7-seg displays with variable data at receiver
hi…
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
can any one post a reply sooner….its bit urgent…
can you send me the circuit diagram
do you need the code only for the display of data being received or complete code for the whole circuit
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.
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.
ok tell me,as it is serial communication,so which digit’s data will enter microcontoller first.rightmost or leftmost.
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 simulation
ok. i try to develop a code for your circuit in a day or two as i myself is stucked in gsm interfacing.
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 refresh
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 it
this 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
are you doing a some project or doing it as a hobby
its a project n m running out of deadline…plz can u reply me by tomorrow…its preety urgent