I have the same code as above in my archives so I can't help you there.

Would this help?
http://www.hantronix.com/files/down/t6963app.pdf

And then there's Steve's work:
http://homepages.tesco.net/~steve.la...dfs/t6963c.pdf

Taken from here:
http://homepages.tesco.net/~steve.la...eve/t6963c.htm