The following two application notes are provided by David H Lawrence one of our US resellers. As you will find out at http://www.rhombusinc.com David is specialized in Industrial Embedded Processing.
Download source code in an22_1.zip
Download source code in an22_2.zip