Dave Posted October 9, 2012 Report Share Posted October 9, 2012 Can anybody help me with decoding a 12 bit, gray code output from an absolute encoder? There are 12 bits of rotaional position data and up to 12 bits of ``number of turns`` data, using 24 inputs total. I would like to convert the Gray Code value to a floating point value, scale it and display it. The scaling and displaying portion I have no problem with. I`m just not sure how to go about decoding the gray code(without writing pages and pages of logic). Any ideas would be much appreciated. Quote Link to comment Share on other sites More sharing options...
MVP 2014 Simon Posted October 9, 2012 MVP 2014 Report Share Posted October 9, 2012 Here's one we prepared earlier, with example programs: the logic to decode the Gray code is not that hard once you look into it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.