XOR Gate

To get a HIGH(1) output from an XOR gate, the number of HIGH(1) inputs must be odd. Looking at the truth table, TRUTH[1], TRUTH[2], TRUTH[4], and TRUTH[7] fulfill this requirement. This means that these must be HIGH(1) and the rest must be LOW(0), giving the hex value 0x96 to put into the TRUTHn register.

Figure 1. XOR Gate