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 decode a 16-bit signal in a 5 digit 7-segment display

Status
Not open for further replies.

lucbra

Advanced Member level 2
Joined
Oct 30, 2003
Messages
511
Helped
73
Reputation
146
Reaction score
63
Trophy points
1,308
Location
Belgium
Activity points
3,251
divider help wanted

hi,

I need to decode a 16-bit signal in a 5 digit 7-segment display, meaning:
input signal : 12345 gives as output
1st digit: 1
2nd digit: 2
3th digit: 3
4th digit: 4
5th digit: 5

Anyone has done this before?

Thx in advance
 

Re: divider help wanted

what is the difficulty in this . i think that u convert the 16 bit data to decimal value and feed it to the FND decoder. u will get the output.
if u need any more help on this ask me directly i think i may help u on this

ashish
 

Re: divider help wanted

I did it before using Microcontroller, so I'll explain the idea and you can translat it into HDL.
Suppose you have number equal 32 (in binary form and you want to covert to decimal
1- Divide 32 by 10 --> it will produce 3 and the renaider is 2
2- the remaider 2 is the least significat digit in decimal number you can use a table like to generat the equivelant pattern of 2 to be diplayed on 7-seg.
3- repeat the division agin --> 0 (the indicator of end conversion) and the reminder 3.
4- display 3 on 7-seg using the table used before.

you can do effort in building the divider by 10 code or left it to the syntheizer.
 

Re: divider help wanted

Basically, I thought the same way, but some tools don't support dividing.
I have now a solution that uses some multipliers and a large counter. It consumes less than 150 registers and is synthesis independent.
I can share the code if you want, but the problem is, that this implementation is not real time, and the bigger the value to be decoded, the longer it takes.
Therefore I'm looking to a smarter way. Any help is appreciated.
 

Re: divider help wanted

you can send the available code to me and we can share together to find a solution.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top