 Home
 Products
 Integration
 Tutorial
 Barcode FAQ
 Purchase
 Company
barcode printing using vb.net Basic logic operations in Software
Basic logic operations Decode QR Code In None Using Barcode Control SDK for Software Control to generate, create, read, scan barcode image in Software applications. Painting QR Code 2d Barcode In None Using Barcode printer for Software Control to generate, create Quick Response Code image in Software applications. Perhaps you ve taken sentenial logic, also called propositional logic or propositional calculus (it sounds a lot more sophisticated than it really is) in high school or college. Electronic digital logic is basically the same thing. In logic, there are three basic operations. These are depicted in Table 302. Read Denso QR Bar Code In None Using Barcode decoder for Software Control to read, scan read, scan image in Software applications. QR Code 2d Barcode Drawer In C# Using Barcode generator for Visual Studio .NET Control to generate, create Quick Response Code image in .NET applications. Table 302. QR Creator In Visual Studio .NET Using Barcode creator for ASP.NET Control to generate, create QR Code image in ASP.NET applications. QR Code Maker In VS .NET Using Barcode drawer for .NET framework Control to generate, create QR Code JIS X 0510 image in VS .NET applications. Operation NOT AND OR
Printing QR Code JIS X 0510 In VB.NET Using Barcode drawer for .NET Control to generate, create Denso QR Bar Code image in Visual Studio .NET applications. Make UCC128 In None Using Barcode creation for Software Control to generate, create EAN 128 image in Software applications. Logic operations.
Barcode Generator In None Using Barcode encoder for Software Control to generate, create barcode image in Software applications. Generating Code 128 Code Set C In None Using Barcode maker for Software Control to generate, create Code128 image in Software applications. Symbology X X XY X Y X Y
Making Data Matrix 2d Barcode In None Using Barcode creation for Software Control to generate, create Data Matrix ECC200 image in Software applications. Printing UPC A In None Using Barcode encoder for Software Control to generate, create UCC  12 image in Software applications. Description Negation or complement of X Conjunction of X, Y Disjunction of X, Y
Painting EAN8 Supplement 5 AddOn In None Using Barcode generation for Software Control to generate, create EAN8 image in Software applications. Paint Code128 In None Using Barcode generator for Microsoft Word Control to generate, create Code128 image in Office Word applications. The logic NOT, also called negation or inversion, involves only a single logic variable. It changes the value of a bit from 1 to 0, or from 0 to 1, as shown in the truth table for logic operations (Table 303). It is represented by a minus sign in front of a capital letter, usually from the end of the alphabet (W, X, Y, or Z). It might also be represented by a squiggly dash before the letter, an apostrophe after the letter, or a line over the letter. Code39 Creation In None Using Barcode creation for Font Control to generate, create Code 3/9 image in Font applications. USS Code 128 Creator In Java Using Barcode drawer for Java Control to generate, create Code 128C image in Java applications. Table 303. Truth table for logic operations.
Data Matrix Recognizer In None Using Barcode reader for Software Control to read, scan read, scan image in Software applications. Bar Code Recognizer In Visual Basic .NET Using Barcode Control SDK for Visual Studio .NET Control to generate, create, read, scan barcode image in VS .NET applications. X 0 0 1 1 Y 0 1 0 1 X 1 1 0 0 XY 0 0 0 1 X+Y 0 1 1 1
UPC  13 Creator In None Using Barcode generator for Online Control to generate, create EAN13 image in Online applications. Barcode Printer In Java Using Barcode encoder for Java Control to generate, create barcode image in Java applications. The logic AND, or conjunction, involves two variables. The resultant is high if, but only if, both variables are high. If either variable is low, or if both are low, then the resultant is 560 Basic digital principles low. This operation gets its name from the fact that it corresponds to the function of the word and in propositional calculus. It is usually represented as multiplication. See Table 303. The logic OR, or disjunction, also involves two variables. The resultant is high if either of the variables are high. The resultant is low if, but only if, both variables are low. This is sometimes called the inclusive OR operation. It corresponds to the word or in propositional calculus. It is represented as addition. See Table 303. Table 304. X 0 0 1 1 Y 0 1 0 1 XOR 0 1 1 0
AM FL Y
More logic operations.
NAND 1 1 1 0 NOR 1 0 0 0
Occasionally you ll hear about the exclusive OR or XOR operation. The resultant of X XOR Y is high if X and Y have opposite states. The resultant X XOR Y is low if X and Y have the same state. It can be thought of as either/or, but not both. The X means exclusive. The XOR operation is shown in Table 304. XNOR 1 0 0 1
NAND
The logic NAND is a combination of two operations, NOT and AND. It involves two variables. The AND is performed first, and the result is negated. The value of X NAND Y is low if, but only if, both X and Y are high. Otherwise, X NAND Y is high. This is shown in Table 304. The logic NOR combines NOT and OR. It involves two variables. The OR is done first, and then the result is negated. The value of X NOR Y is high if, but only if, X and Y are low. Otherwise, X NOR Y is low (Table 304). XNOR
The logic XNOR combines NOT and XOR. As with all the basic logic operations except NOT, it involves two variables. The XOR is done first, and then the result is negated. This is shown in Table 304. TeamFly
Complex logic operations 561
Symbols for logic gates
A logic gate is an electronic switch that performs a logic operation. The earliest logic gates were built using vacuum tubes; later, transistors and diodes were employed. Modern logic gates are fabricated on integrated circuits (ICs), with hundreds or even thousands of gates per chip. An inverter (NOT gate) has one input and one output. Other logic gates usually have two inputs and a single output. The symbols for the various logic gates are shown in Fig. 303. 303 Symbols for logic gates: NOT (A), AND ( ), OR (C), XOR (D), NAND (E), NOR (F), and XNOR (G). It is possible for AND, NAND, OR, or NOR gates to have three or more inputs. For an AND gate, the output is high if and only if all of the inputs are high. For an OR gate, the output is low if and only if all the inputs are low. The multipleinput NAND and NOR gates perform the conjunction or disjunction operation first, followed by negation. Figure 304 shows schematic symbols for fourinput AND fourinput NOR gates. The XOR and XNOR operations are hard to define when there are three or more inputs. These fall into the category of complex logic operation.

