ECE 4436 Chapter Notes - Chapter 2: Microcontroller, Opcode, Address Bus
Document Summary
Control all activities of the microcontroller: rom. Table 2-1: high-level language converted to bytes. Represents operation and operands: memory address correspond to the rom, all address and instruction code bytes are in hexadecimal. 1st byte (opcode byte) a unique code for each operation that will be executed by the microcontroller. The bytes representing the operands for the operation. Memory map shows what memory addresses are used for what type of memory: for programmer"s reference. Rom operation: contains opcode, operand, and constant data bytes, sequence of storage locations. Each containing a byte of information: cpu fetch (read) the opcode and operand bytes from the rom. Then execute the program: data bus only goes out of the rom. Ram operation: data bus is bidirectional because you can write data to the ram, used for variable data storage, used for the stack. Stack an area of ram that is used for temporary variable data storage and for return addresses for subroutines.