Adam, I posted my modest attempt in the LTspice mailing list and people responded. One response is very elaborate (from analog@ieee.org): http://tech.groups.yahoo.com/group/LTspice/message/38676 I still like the switch approach more but all the other options deserve careful analysis. -- Peter -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist