The courtesy light of a car must go off when the door is closed and the light switch is off. What gate is required to implement this and what is the alternative way of looking at this circuit?
The courtesy light of a car must go off when the door is closed and the light switch is off. What gate is required to implement this and what is the alternative way of looking at this circuit?
This function can be implemented by an AND gate with active-LOW inputs and outputs. Hence the output will go LOW (and the light OFF) when both inputs are LOW (door closed and switch off).
The alternative interpretation is that the light in on (active-HIGH) when either the door is open (active-HIGH) or the switch is on (active-HIGH). This would require an OR gate for its implementation.