|
|||||||
| Home | Forums | Rules | Articles | Store | Gallery | Blogs | Register | Donations | FAQ | Calendar | Search | Today's Posts | Mark Forums Read | Search |
| Solid State Talk all about solid state amplification. |
|
Please consider donating to help us continue to serve you.
Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving |
|
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
diyAudio Member
Join Date: Oct 2000
Location: Sweden
|
What is the easiest way to convert the gray-code output from a Bourns optical encoder to binary (parallell)?
I don't want to use a microcontroller. Perhaps there is a IC that converts from gray code to binary that I can use? /Freddie |
|
|
|
|
#2 |
|
diyAudio Member
Join Date: Apr 2001
Location: S.E. England
|
Perhaps using a simple prom/eprom device would suffice - feed the gray code output of the optical encoder (buffered to correct voltage if not 5v) onto the address pins of the prom, take the translated binary value (upto 8 bits) from the data pins.
|
|
|
|
|
#3 |
|
diyAudio Member
Join Date: May 2001
Location: Norway, -north of the moral circle..
|
The classical way to convert Gray to Binary is as follows:
Feed the Gray MSB directly through to be your Binary MSB. Then make an XOR of the the Gray MSB and 2.MSB. Output will be your Binay 2.MSB. Then XOR this output with your Gray 3rd. MSB. Output is now your 3. MSB Binary. Proceed with XORing each output with your next following unused Gray bit until your all done. That's all there is to it. On the other hand, - generating a LUT in a PROM might do it in one chip, as 8 bits will need two XOR DIPs. One DIP will suffice up to 7 Gray bits........... |
|
|
|
|
#4 |
|
diyAudio Member
Join Date: Oct 2000
Location: Sweden
|
AuroraB,
This was just what I was looking for. XOR ICs to convert from gray to binary, nice. Thanks for the reply. /Freddie |
|
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tango series II binary PCB file help needed! | Suoliang | Everything Else | 2 | 4th November 2008 04:51 AM |
| Problem witht [code]blah[/code] ? | elseif | Forum Problems | 1 | 17th August 2008 01:30 AM |
| beautiful galaxy gray heatsinks | kderedwolf | Swap Meet | 0 | 25th April 2005 03:36 AM |
| How to dye gray foam surrounds black? | dhenryp | Multi-Way | 8 | 13th January 2005 09:55 PM |
| New To Site? | Need Help? |
| Page generated in 0.08406 seconds (71.12% PHP - 28.88% MySQL) with 10 queries |