Gray code inputs to seven segment output using uc

Thread Starter

NIKHILMER

Joined Sep 14, 2017
11
I have a 4 gray code inputs and want to feed it to seven segment display using micro controller .
Can anyone suggest how to proceed.
thank you
 

JohnInTX

Joined Jun 26, 2012
4,787
4 inputs = 16 states. I would use the raw Gray code as an index into a 16 character array of segment patterns. No other fancy translation required.
 

Thread Starter

NIKHILMER

Joined Sep 14, 2017
11
4 inputs = 16 states. I would use the raw Gray code as an index into a 16 character array of segment patterns. No other fancy translation required.
OK
But how to convert it into 7 segment
patterns using look up table In micro controller programming or with some digital ic????
 

JohnInTX

Joined Jun 26, 2012
4,787
Like @crutschow says except sort the table on the raw gray code value so that it provides a direct index into the segment patterns for each digit.
The PDF shows how I would do it - a Gray to 7 segment decoder.
 

Attachments

Last edited:
Top