Table of Contents
Cover
Title Page
Copyright Page
Contents
Preface
Chapter 1: What Does the CPU Do?
Computers Can Process Any Type of Information
The CPU Is the Core of Each Computer
The Five Components of a Modern Computer
ALUs: The CPU’s Core
CPUs Process Operations and Make Decisions
What Is Information Anyway?
The Difference Between Analog and Digital Information
Chapter 2: Digital Operations
The Computer’s World Is Binary
The Reciprocal States of 1 and 0
Decimal vs. Binary Number systems
Expressing Numbers in Binary
Fixed-Point and Floating-Point Fractions
Addition and Subtraction in Binary
What Are Logical Operations?
Integrated Circuits Contain Logic Gates
The Three Basic Logic Gates: AND, OR, and NOT
Truth Tables and Venn Diagrams
A Summary of the AND, OR, and NOT Gates
Other Basic Gates: NAND, NOR, and XOR
A Summary of the NAND, NOR, and XOR Gates
De Morgan’s Laws
Circuits That Perform Arithmetic
The Addition Circuit
The Half Adder
The Full Adder and Ripple Carry Adder
The Carry Look-ahead Adder
Circuits That Remember
Circuits with Memory Are a Necessity!
Flip-flop: the Basics of Memory Circuits
The RS Flip-flop
The D Flip-flop and the Clock
The T Flip-flop and Counters
Modern Circuit Design: CAD and FPGA
Chapter 3: CPU Architecture
All About Memory and the CPU
Memory Has Assigned Addresses
Data Passes Through the Bus
Bus Width and Bits
R/W Signals and I/O Signals
Instructions Are Made of Operands and Opcodes
Accumulators and Other Registers Are Used in Operations
CPU Instruction Processing
Classic CPU Architecture
The Instruction Cycle
The Instruction We Process Changes Depending on the Program Counter
All Kinds of Memory Devices
A Comparison Between HDD and Memory
RAM Space, ROM Space, and I/O Space
What Are Interrupts?
Interrupts Are Useful
The Stack and the Stack Pointer
Interrupt Priority
Memory Classifications
I/O Ports and the GPU
Clock Frequency and Degrees of Accuracy
Clock Generators
Timer Interrupts
Reset Signals
CPU Performance Is Measured in FLOPS
Chapter 4: Operations
Types of Operations
There Are Many Types of Instructions
Instructions for Arithmetic and Logic Operations
What Are Bit Shifts?
The Sign Bit Lets Us Express Negative Binary Numbers
Logical Shifts and Arithmetic Shifts
Circular Shifts (Rotating Shifts)
Data Transfer Operations
Input/Output Instructions
Branch Instructions
Condition Evaluation and Status Flags
Putting Branches and Condition Evaluation Together
Operand Types
How Many Operands Do We Have?
Operands Take Many Forms
Immediate Value Processing
Address References
What Are Addressing Modes?
Addressing Mode Overview
The Structure of Operations in the ALU
A Look Inside the ALU
Serial Transmission and Parallel Transmission
An Overview of Some Basic Registers
An Overview of Some Basic Status Flags
The Sleep Instruction
Chapter 5: Programs
Assembly and High-Level Languages
What Are Assembly Languages?
c2 54 68 65 20 43 68 61 72 61 63 74 65 72 69 73 74 69 63 73 20 6f 66 20 41 73 73 65 6d 62 6c 79 20 4c 61 6e 67 75 61 67 65 73 20 61 6e 64 a0 48 69 67 68 2d 6c 65 76 65 6c 20 4c 61 6e 67 75 61 67 65 73 af 54 68 65 20 44 69 66 66 65 72 65 6e 63 65 20 42 65 74 77 65 65 6e 20 50 72 6f 67 72 61 6d 73 20 61 6e 64 20 53 6f 75 72 63 65 20 43 6f 64 65 ad 57 68 61 74 20 43 61 6e 20 59 6f 75 20 4d 61 6b 65 20 55 73 69 6e 67 20 43 6f 6e 64 69 74 69 6f 6e 73 20 61 6e 64 20 4a 75 6d 70 73 3f a4 57 68 61 74 20 53 68 6f 75 6c 64 20 57 65 20 4d 61 6b 65 20 74 68 65 20 43 6f 6d 70 75 74 65 72 20 44 6f 3f ad 4d 69 63 72 6f 63 6f 6e 74 72 6f 6c 6c 65 72 73 20 41 72 65 20 69 6e 20 41 6c 6c 20 4b 69 6e 64 73 20 6f 66 20 50 72 6f 64 75 63 74 73 a1 54 68 65 20 46 75 6e 63 74 69 6f 6e 20 6f 66 20 61 20 4d 69 63 72 6f 63 6f 6e 74 72 6f 6c 6c 65 72 a1 41 72 63 68 69 74 65 63 74 75 72 65 20 6f 66 20 61 20 4d 69 63 72 6f 63 6f 6e 74 72 6f 6c 6c 65 72
Unknown Text
Program Basics
Unknown Text
Unknown Text
Where are Programs Stored?
What Happens Before a Program Is Executed?
Chapter 6: Microcontrollers
What Are Microcontrollers?
Unknown Text
Unknown Text
Unknown Text
What Are DSPs?
DSPs and Multiplier-Accumulate Operations
Microcontrollers in Industrial Machines
Epilogue
Afterword
Index
Back Cover