Number Systems - Week 2
Course Overview and Learning Outcomes
Academic Context: Week 2 instruction on Number Systems by Marko N. Kostic, Ph.D., P.Eng.
Core Objectives:
Understand number systems and perform base conversions ().
Analyze analog/digital signals and switch-circuit timing ().
Construct truth tables, Boolean expressions, and logic circuits (, ).
Introduce microcontrollers and FPGAs ().
Core Number Systems
Decimal (Base 10):
Symbols: Ten digits ( through ).
Positional Weights: Whole numbers scale by positive powers of ten (); fractional components scale by negative powers ().
Role: General counting, financial calculation, and physical measurement.
Binary (Base 2):
Symbols: Two digits ( and ).
Hardware Mapping: Directly represents physical two-state electronic logic (high/low voltage, on/off).
Positional Weights: Powers of two (; fractions: ).
Key Terms:
Least Significant Bit (LSB): Rightmost bit with lowest positional weight ().
Most Significant Bit (MSB): Leftmost bit with highest positional weight.
Octal (Base 8):
Symbols: Eight digits ( through ).
Positional Weights: Powers of eight ().
Role: Shorthand for binary sequences ( octal digit = binary bits); commonly used in Unix file permissions.
Hexadecimal (Base 16):
Symbols: Sixteen characters: through and letters through ().
Positional Weights: Powers of sixteen ().
Role: Compact binary representation ( hex digit = binary bits); used in memory addressing, debugging, and color codes.
Conversion Procedures
Base to Decimal:
Multiply each digit by its positional weight () and sum all evaluated products.
Example: .
Decimal to Base :
Successively divide the decimal integer by , recording the remainder at each step.
Continue until quotient is .
Read remainders in reverse order (bottom-up: first remainder is LSB, last remainder is MSB).
Example: .
Binary to Hexadecimal:
Partition bits into 4-bit nibbles starting from right to left (pad with leading zeros if needed).
Map each nibble to its hex value using weighting.
Example: .
Hexadecimal to Binary:
Replace each hex symbol with its equivalent 4-bit binary group.
Example: .
Character and Numeric Encodings
ASCII (American Standard Code for Information Interchange):
Standard 7-bit character encoding yielding unique codes ( to ).
Ranges:
Control Characters: Decimal to and .
Digits (
0–9): Decimal to ( to ).Uppercase (
A–Z): Decimal to ( to ).Lowercase (
a–z): Decimal to ( to ).
Binary Coded Decimal (BCD):
Encodes each individual decimal digit ( to ) into a distinct 4-bit binary nibble ( to ).
Nibbles through are invalid in standard BCD.
Contrast: Decimal is
0100 0101in BCD, but in pure binary.Role: Directly drives decimal displays (seven-segment displays, digital clocks, calculators) without conversion overhead.
Next Topics
Fundamental digital logic gates (AND, OR, NOT, NAND, NOR).
Assigned reading: Chapter 3, Sections 3-1 through 3-5.
Practical breadboard wiring and datasheet interpretation.