> Just for once, not a problem mail! > I've recently been using Bourns' new ACE-128 rotary encoders. > (For those of you who haven't meet them, info is on my web page > shown below) > These give out a type of 'grey-code' to give the position of the > encoder. Bourns say to just use a 256 byte look-up table, but as > that can be upto 1/2 a PIC's memory, I've writen decoder routines > that are shorter (at the expense of speed). In case anybody > else out there is using these beasties, I stuck 4 of the routines > on my web page. > > If anybody uses any of the routines, and / or improves on the > code size, for the speed specified, could they let me know - I've > spent the best part of a week trying to optimise them, but I isn't > perfect! Hmm... I've looked at your web page and I must say that encoder sure does have a wierd coding sequence, doesn't it.... :-) Methinks I'll have to brainparse that one a little bit...