How to display integer value on 7 segment display

Status
Not open for further replies.

xilinx1001

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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…