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.

Matlab Gray Code, from 2-bit to 6-bit

Status
Not open for further replies.

neoflash

Advanced Member level 1
Joined
Jul 2, 2005
Messages
492
Helped
10
Reputation
20
Reaction score
2
Trophy points
1,298
Activity points
4,759
Any tool can generate gray code, from 2-bit to 6-bit?

Or can people post 6-bit gray code here?

thanks
 

6-bit gray code

Hello,

use workbench.....

design a circuit for gray code for a particular no of bits..and see the output in truth table.

hope it will solve ur problem
 

6 bit gray code

I'm a little confused.

The reason I'm looking for the truth table, is to design a circuit for it. If I already have the circuit, I will know the code.

What's the workbench by the way?
 

gray code c++

what i want to say is ..there is a code converter circuit that convert binary code to gray code....using few gates....

workbench is a simulation software...

hope that answer ur question...
 

m code gray

Where can I find this circuit?
 

matlab gray code

hi

if you use proteus vsm simulation even a demo copy will do
get one at www.labcenter.co.uk
then comvdd dll project outputs gray code 2-16bit adjustable

it can also convert binary input to gray

in the comvdd archive there is also a folder containing info
i gleemed from the net to get this to work using c++
there is also a heep of code in c and c++ for conversion and output of gray code


youll find comvdd and other dlls here for download {use no points mirror }



dont forget to place the archive in the root of your c or d drive
BEFORE extracting

attached is a picture showing 6bit encoded binary to gray output
{slider value is encoded but you can also bus load binary to instanly convert}


 

    neoflash

    Points: 2
    Helpful Answer Positive Rating
c code to generate gray code

I used the following MATLAB expressions to generate gray code tables for 2, 3, 4, 5, and 6 bits.
You will notice the relatively simple repeating patterns in the tables.

dec2bin(bin2gray(0:3, 'pam', 4))
dec2bin(bin2gray(0:7, 'pam', 8))
dec2bin(bin2gray(0:15, 'pam', 16))
dec2bin(bin2gray(0:31, 'pam', 32))
dec2bin(bin2gray(0:63, 'pam', 64))
 

    neoflash

    Points: 2
    Helpful Answer Positive Rating
binary to gray code convreter

find a new version of comvdd in the usual place

i made it so each slider can be gray or binary

handy for your thing

if someone wants any other form of bin encoding added now is the time
then im back to midi sections of comvdd and my ebox ???

please email me
or pm via this eboard private mail system


picture of sbus 1 running in gray and sbus16 running in bin
thanks gulson for the nice job of the image system in the board now
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top