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.

How to display integer value on 7 segment display

Status
Not open for further replies.

xilinx1001

Member level 3
Member level 3
Joined
Apr 3, 2013
Messages
60
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Visit site
Activity points
1,781
Hi,

I have 3 digit integer number and I need to display the number on 7 segment display

I know how to write code for binary numbers to display on 7 segment

But how can I write code for the integer to display
 


digit4 = (count/1000);
digit3 = (count/100 ) % 10;
digit2 = (count/10 ) % 10;
digit1 = (count%10 );
this is bcd for 4 digit no.
expend this and enjoy.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top