Introduction To Digital Electronics: Objective and Overview
Introduction To Digital Electronics: Objective and Overview
Inputs Output
Input A Input B X
• Hexadecimal or ‘Hex’–base 16 (each digit represents a power of 16), digits are 0 through 9 plus
A-B-C-D-E-F representing 10-15, numbers are denoted with ‘0x’ at the beginning or ‘h’ at the
end, such as 0x5A or 5Ah (90 in the decimal system) and require four binary bits each. A dollar
sign preceding the number ($01BE) is sometimes used, as well.
• Binary-coded decimal or BCD–a four-bit number similar to hexadecimal, except that the decimal
value of the number is limited to 0-9.
• Decimal–the usual number system. When used in combination with other numbering systems,
decimal numbers are denoted with ‘d’ at the end, such as 23d.
• Octal–base eight (each digit represents a power of 8), digits are 0-7, and each requires three bits.
Rarely used in modern designs.
As examples, 0x2A, 00101010B, and 42d all have the same value of 42.
Hexadecimal is useful because it is a compact way of dealing with binary numbers that
have a multiple of four bits. Each hexadecimal digit can be represented by four binary
bits. 0 is 0x0 in hexadecimal and 0000B in binary. 15 is 0xF in hexadecimal and 1111B
in binary. Since most computers and microprocessors use 8, 16 or 32-bit words,
hexadecimal notation is very common.
This course will deal with binary, decimal, and hexadecimal numbers.
As long as we’re on the subject of numbers, there are some prefixes to review, as well.
You are probably familiar with the metric prefixes k (kilo), M (Mega), and G (Giga) and
their use to represent (loosely) some powers of two in the computer world. Because the
binary numbers they’re used to represent aren’t equal to the exact values, they are
gradually being replaced with IEC binary prefixes: The new prefixes are Ki = 210 = 1024,
Mi = 220 = 1,048,576, and Gi = 230 = 1,073,741,820. “bits” will be used to mean bits and
“B” will be used to mean bytes. These are by no means common at present, so for this
course we’ll stick with the familiar (but slightly incorrect) k, M, and G. Be prepared to
see them more frequently as the old prefixes are gradually phased out. More information
on binary prefixes is available at http://physics.nist.gov/cuu/Units/binary.html.
Bit Ordering and Counting
Without some kind of agreement, it’s easy to get into trouble when labeling bits and
signals. In digital logic there are four different sizes or widths of numbers (see Figure 1-
1).
• Bit–a single binary signal taking on the value 0 or 1, and
representing a power of two in a binary number.
• Nibble–a group of four bits, containing a single
hexadecimal number, such as 0x8
• Byte–a group of eight bits, containing two hexadecimal
numbers, such as 0x3F
• Word–a group of bits larger than a byte, usually 16 bits,
and almost always multiples of four bits
For the groups that have more than one bit, it is important to know “which way” to start
reading the number. Fortunately, like for the decimal system, the least significant
positions (meaning the lowest powers) are on the right as shown in Figure 1-1. The bit
representing the smallest power of two (usually the zero-th power or 1) is called the
“Least Significant Bit” or LSB. On the other end of the binary number is the bit
representing the highest power of two, called the “Most Significant Bit” or MSB.
• Use wire jumpers that are about the right length to be about 1/2 ~ 3/4” above the board when they
are installed. Jumpers that are too short tend to pull out of the sockets and if too long, snag on
fingers and test probes and obscure the circuit.
• Remember that power supply grounds, function generator grounds, and all circuit grounds must be
physically connected to be electrically identical.
• For complex circuits, use different colored wires for different functions and use masking tape or
paper labels to label major signal paths or power leads.
• Finally, take your time and be careful. Make a paper copy of the circuit and use it as a guide as
you build the circuit and for making notes. Use a highlighter to color each connection as it’s made
or component as it’s installed.
Review:
Logical–refers to a signal or device in terms of logical conditions
Physical–refers to a signal in terms of voltage or current or a device’s physical
characteristics
HIGH–the signal level with the greater voltage
LOW–the signal level with the lower voltage
TRUE or 1–the signal level that results from logic conditions being met
FALSE or 0–the signal level that results from logic conditions not being met
Active High–a HIGH signal indicates that a logical condition is occurring
Active Low–a LOW signal indicates that a logical condition is occurring
Truth Table–a table showing the logical operation of a device’s outputs based on the
device’s inputs
State–a stable combination of signals or of a set of inputs and outputs, can refer to a
device, a circuit, or a set of signals
A logic family is a set of devices that all use the same internal technology, so their logic
levels are all compatible.
Binary–base two (each bit represents a power of two), digits are 0 and 1, numbers are
denoted with a ‘B’ or ‘b’ at the end, such as 01001101B (77 in the decimal system).
Hexadecimal or ‘Hex’–base 16 (each digit represents a power of 16), digits are 0 through
9 plus A-B-C-D-E-F representing 10-15, numbers are denoted with ‘0x’ at the beginning
or ‘h’ at the end, such as 0x5A or 5Ah (90 in the decimal system) and require four binary
bits each. A dollar sign preceding the number ($01BE) is sometimes used, as well.
Binary-coded decimal or BCD–a four-bit number similar to hexadecimal, except that the
decimal value of the number is limited to 0-9.
Bit–a single binary signal taking on the value 0 or 1, and representing a power of two in a
binary number.
Nibble–a group of four bits, containing a single hexadecimal number, such as 0x8
Byte–a group of eight bits, containing two hexadecimal numbers, such as 0x3F
Word–a group of bits larger than a byte, usually in multiples of four bits
Counting in the binary system begins at zero, not one.
Now click on the Activities button and proceed with the Student Activities, which are
required before moving to the Questions (click on the Questions button). Upon
completion of these Questions, go to the next Learning Unit.