Welcome!
...
Previous Notifications
2023 4thQ
Part 3: Logic IC Replacement
4min
lead in in part 1 and part 2, we considered the preparatory requirements in this final part, we will consider the hardware requirements the inputs from the equation perspective, the code is correct however, we need to take into consideration how the hardware interacts with the user or the actuator providing the inputs one of the issues with the input to pic is the potential for false triggers while it would be unlikely for there to be two false triggers at the same time interference on the inputs can cause them not to work or trigger properly a common method to negate this would be to pull the inputs high however, that now means that your inputs are triggered to implement this, all that would be needed is to negate the logic so that you have !a !b = 1 // compare the value of the two inputs and if both are high, the equation is true if (!portb b0 && !portb b1){ portb b3 = 1; } // always remember to clear the output or set low else{ portb b3 = 0; } in the iteration above, when both inputs are pulled low you then have the same effect if you noticed that the truth table is out, then you are correct while there are other ways to implement the above, this is the most cost effective the output driving the output can be a simple led resistor combination to show that the software is working the options are there to drive more power intensive loads lead out that brings this section to a conclusion