I'm still quite unclear on how the look-up tables routine works. The app note isn't that clear to me, the code I posted early works quite fine. Can anyone point me to a better description on how to implement the table reads Thanks _/ _/ _/_/_/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/_/_/ _/ _/ _/ _/ _/ _/ _/_/ _/_/ _/ _/ _/ _/ _/ _/_/_/_/ Wayne Bennett Griffith University Brisbane Australia w.bennett@sct.gu.edu.au