Padu wrote: > Regarding my previous problem (see "PIC18F452 and NPN transistor to control PWM flow"), I've decided to go with two AND gates to let pass only one signal out of two, and then I'll use an OR gate to merge the two outputs into one wire. > > My question: are there any chips that encapsulate at least 2 AND gates and 1 OR gate in only one package? The perfect chip would be one with 2 ANDs, 1 OR and 1 NOT, but since I already have two traces to control the two AND gates, the NOT is dispensable. 74HC51. triple and or invert gate. I believe there is also and and/or without an inverted output. Or you could use a 74HC157 and get 4 channels of 2 to 1 multiplexing. Needs only ONE control line to decide the channel(s) to be output. Or you could use a 74HC125 quad tristate line driver and combine two outputs into one. Since you already have the 2 control lines, the 74HC125 is probably the simplest for you, and since it's a line driver, good for heavy loads. Robert -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist