Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

7-segment display . I want to display the 11 bit word which is 1530 in decimal.

Status
Not open for further replies.

d@nny

Full Member level 5
Joined
May 28, 2011
Messages
246
Helped
11
Reputation
22
Reaction score
11
Trophy points
1,298
Activity points
3,238
Is it possible to display this binary data on 7-segment display easily using PIC16F676.

H L
00000101 11111010

This in Decimal is ( 1530 )

This is the maximum number i can get
the minimum in Decimal is ( Zero )
The maximum in Decimal is ( 1530 )
Can some one help me please
thanking you in anticipation.
 

The Gooligum midrange PIC tutorial details configuring and programming a multi digit 7-segment display:





The lessons use a 16F684, but they are adaptable to PIC16F676. You just need to expanded the design to however many digits you require.

Do you want to display the two bytes as binary, decimal or hexadecimal? Or do I not understand your question?

BigDog
 

You can use this for the processing of the value:
Code:
num = 1530;
a[0] = num/1000; //Holds 1
a[1] = (num/100)%10; //Holds 5
a[2] = (num/10)%10; //Holds 3
a[3] = num%10; //Holds 0
//You can use this code snippet for any value between 0 to 9999.

Then you can send a[0], a[1], a[2], a[3] to 7-segment one after the other after some delay. The challenge will be the setup of the 7-segment as you would require 7 pins for sending to 7-segment data and 4 pins for setting which 7-segment to use. That's 11 pins. It's okay, but if you want to use more pins for something else, then you're kinda stuck. Then you can use a 7447 to drive the 7-segment. Then you'll need 4 pins instead of 7, saving you 3 pins. If you need to reduce more pins, you can use 74195 or 4017. Configure the 4017 so that after every pulse received, it sends a high to the next bit, resetting to bit 0 after it has sent data to bit 3.

Hope this helps.
Tahmid.
 
  • Like
Reactions: alexxx

    alexxx

    Points: 2
    Helpful Answer Positive Rating
If you use 4 digits you can display upto 9999. But first bin2dec conversion is done in software.
See this example.

Link:3 digits Digital volt meter
 

Attachments

  • meter.zip
    27.8 KB · Views: 42
  • meter.jpg
    meter.jpg
    9.3 KB · Views: 49
  • meter_b.jpg
    meter_b.jpg
    9.4 KB · Views: 52

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top