Dear members, I have the following problem: I need that the state of some pins of an 8051 being a logical function of the state of other pins. The difficult is that the logical function must be programmable. For example: I need that logical state of pin P1.0 must be a logical function of pins P1.1 and P1.2 and the logical functions could be "AND", "OR", or "XOR". I am using an AT89S8252 with 2K of internal EEPROM. I need some advice, tips, ideas, etc. about how to implement this. Thanks in advance for your help. best regards, JLR (rodribaires@hotmail.com)