Hi, I need to get position info from a Stegman single turn absolute position encoder. Getting the info is only a matter of clocking the unit and shifting in the 24 bit grey code result. Does anybody know the fastest way of converting this to binary using a pic. A pic is my preferred solution as I would like to do some position comparision (ie. accept position info from another microcontroller and read the encoder until that position has been reached.) Other suggestions are welcome though. Thanks. Joe _________________________________________________________________ Joe McCauley Physics Department, Tel: 353-1-6082218 Trinity College, Fax: 353-1-6711759 Dublin 2, Email: pmcculey@mail.tcd.ie Ireland.