"Ruben J=F6nsson" wrote: > I'm sure that there are a lot of people here that can help you but we > have to do a lot of guessing. You say you can't use a "black box" like > a 555 but you can still use an opamp which can also be considered a > "black box". Perhaps you can explain why you can't use certain parts This smells like a homework assignment. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist