EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / how to display a 4-digit numeric data on 7-seg displays with variable data at receiver

how to display a 4-digit numeric data on 7-seg displays with variable data at receiver

|

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 13 years, 9 months ago by Mehtab Ali.
Viewing 15 posts - 1 through 15 (of 18 total)
1 2 →
  • Author
    Posts
  • March 3, 2012 at 5:20 am #1613
    Snehal
    Participant

    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

    March 4, 2012 at 3:24 am #7218
    Snehal
    Participant

    can any one post a reply sooner….its bit urgent…

    March 4, 2012 at 3:34 am #7219
    Mehtab Ali
    Participant

    can you send me the circuit diagram

    March 4, 2012 at 4:57 am #7220
    Snehal
    Participant

    wysiwyg_imageupload:3879:

    March 4, 2012 at 5:33 am #7221
    Mehtab Ali
    Participant

    do 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 #7222
    Snehal
    Participant

     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
    Mehtab Ali
    Participant

    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
    Mehtab Ali
    Participant

    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
    Snehal
    Participant

    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

    March 4, 2012 at 9:05 am #7228
    Mehtab Ali
    Participant

    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
    Snehal
    Participant

    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

    March 4, 2012 at 9:40 am #7231
    Mehtab Ali
    Participant

    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

     

    March 4, 2012 at 9:51 am #7232
    Mehtab Ali
    Participant

                       

    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

    March 4, 2012 at 10:02 am #7234
    Mehtab Ali
    Participant

    are you doing a some project or doing it as a hobby

     

    March 5, 2012 at 4:57 pm #7255
    Snehal
    Participant

    its a project n m running out of deadline…plz can u reply me by tomorrow…its preety urgent

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 18 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • 1.1kV Cockroft-Walton 200J Capacitor Charger December 4, 2025
  • Samba ( not the dance) December 4, 2025
  • mechanism to shutdown feeding when sensor temperature rises December 4, 2025
  • Looking for a ~1″ Analog CVBS Micro-Display — Any Sources? December 4, 2025
  • Annex32 Basic for ESP Micros December 4, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise