Exam Prep Flashcards
(264 cards)
What is fixed precision?
A tool used by microprocessors or computing systems to limit the numbers to a fixed number of bits
What is overflow?
When two numbers are added or subtracted and the correct result is a number that is outside of the range of allowable numbers for that precision
What is signed magnitude representation?
A way to sign integers. Put a 1 in front of a binary number to make it negative, a 0 to make it positive
What is ones complement representation?
A way to sign integers. Invert (replace 0s with 1s, vice versa) a binary number to it’s negative form
What is twos complement representation?
A way to sign integers. Use ones complement, but add 1 to its least significant bit
N bits can represent ___ different values
2^N
Define system clock
A component of a microcontroller. Provides a stable and consistent beat for the embedded control system
Define the central processing unit (CPU)
A component of a microcontroller. A multifunction math engine that takes commands stored in memory and uses them as an instruction list to accomplish tasks
Define the register
A component of a microcontroller. A digital location for holding temporary data, instructions or addresses
Define memory
A component of a microcontroller. Used to hold instructions and data
Define Line I/O
A component of a microcontroller. Standard input/output functions. Allows data to be transferred to and from the microcontroller
Define timer
A digital memory location that is updated or counted (incremented or decremented) at predetermined times
Define the accumulator (A) (a.k.a. working register)
A register type. This is where data for an input to the ALU is temporarily stored.
Describe how an accumulator system operates in steps
Example: Sum
- One number is fetched from memory and placed in the accumulator
- Second number is fetched from memory and placed in accumulator
- Result is placed into accumulator
Define status (a.k.a. condition code or flag register)
A register type. Contains information related to the result of the latest process carried out in the ALU. Each bit, called a flag, has a special significance. After an operation, each flag (bit) is set (1) or reset (0) to indicate a specific status
Define program counter (PC) (a.k.a. instruction pointer)
A register type. Used by the CPU to keep track of its position in a program. Contains the address of the memory location that contains the next program instruction. Updated after each instruction is executed. Program is executed sequentially unless an instruction alters the program counter
Define memory address register (MAR)
A register type. Contains the address of data. Example: Sum
- MAR loaded with address of first number
- Data at that address is then moved to the accumulator
- Memory address of second number loaded
- Data at the address is then added to data in the accumulator
- The result is then stored in a memory location addressed by the MAR
Define instruction register (IR)
A register type. Stores an instruction. Used by CPU to store an instruction after fetching it from memory, prior to decoding and execution
Define stack pointer register (SP)
A register type. Contents form an address which defines the top of the stack in RAM. The stack is a special area of the memory in which program counter values can be stored when a subroutine is being executed
Define general-purpose registers
A register type. May serve as temporary storage for data and addresses. May also be used in operations involving transfers from various other registers
Define buses
The bus is a shared set of communication lines that serves as the central nervous system of the computer. Data, address, and control signals are shared by all system components via the bus
Define data bus
Used to communicate words to and from data registers in the various system components
Define address bus
Used to select devices on the bus or specific data locations within memory
Define control bus
Transmits read and write signals, the system clock signal, and other control signals such as system interrupts