Dosen't sound all that hard. A constant current source, with it's reference taken from Vin through a divider instead of a zener or band-gap ref. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist