Computing: Free Pascal Programming

Electronics: XOR gates simulation.


Download LogicGates2 desktop application (Windows 64bit) Download LogicGates2 source code (Lazarus/Free Pascal)

Description: Electronics related application, showing how Boolean algebra can be used to design XOR gates by making logical circuits constituted of a combination of NOT, AND, NAND and/or OR gates. The program is a simple interactive simulation of two such XOR implementations, where the user can choose the gate's input by opening/closing a switch, letting the current flow and observe the gate's output as a LED going on or off. To action the switches, just click on them; a green LED going on indicates that the corresponding gate input is high. The yellow LED indicate the output states of the intermediate gates, which are used as input for the final gate. The red LED at the output side of the final gate goes on or off as previewed by the XOR logic.

Change log:
Version 1.0 (June 2018): Original program.
Version 1.0.1 (December 2019):
   - Some minor code modifications
Version 1.0.2 (August 2021):
   - Circuit display amelioration

Free Pascal features: Interactively changing brush style and position of shapes. Using transparent images as "click-on areas". Filling string grids.

Screenshot:

Electronics simulation: XOR gate made of AND, OR and NOT gates

If you like this application, please, support me and this website by signing my guestbook.