I want to turn on 4 lamps in 6 combinations. These are controlled by 3 switches in 6 corresponding combinations of contact closings.
The truth table looks like this
Switches Lamps A B C W X Y Z
----- -------
0 1 0 1 0 0 0 0 1 1 1 1 0 0 1 0 0 0 0 1 0 1 0 1 1 0 1 0 1 1 0 1 0 0 1 1 1 1 1 1 1 1While it's straight 3-bit binary count input, how to I translate it to the desired 4 output combinations? What's the best way to implement such an input-to-output matrix?
Input from switches is 12 vdc and output requires 12 vdc, milliamp drive.
I'm ignorant in all things PIC, so prefer to have another solution.
Ideas?