Have a look here : http://www.edn.com/article/CA198889.html

and here : http://focus.ti.com/lit/an/slyt091/slyt091.pdf