Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1 Generally, a modern microcontroller uses A. only RAMS memory to store program

ID: 3726189 • Letter: 1

Question

1 Generally, a modern microcontroller uses A. only RAMS memory to store program code. B. only DRAM C. only Flash ROM D. both RAM and ROM 2. An 8-bit microcontroller uses A an 8-bit address bus B. only 8-bit control signals only 8-bit control signals only 8-bit control signals only 8-bit control signals only 8-bit control signals C. an 8-bit data bus D. an 8-bit program counters register 3. For the 8051 microcontroller, the lowest 8 bytes of on board RAM are A. Bank 2 B. Bank 1 C. Bank 0 D. Bank 3 4. Which of the following 8051 registers contains the address of the next instruction to be executed? A. A B. RO-R7 C. PC D. B 5. Which of the following is actually stored in on-chip program memory? A. Java codes of the application program B. The assembly source files of the application program C. The hex object codes of the application program D. C codes of the application program 6. What is the maximum number of memory locations (bytes) that can be accessed by an address bus that is 16 bits wide? A. 8 B. 64 C. 64K D. 8K

Explanation / Answer

1)----c----The 8051 Microcontroller Memory is separated in Program Memory (ROM) and Data Memory (RAM). The Program Memory of the 8051 Microcontroller is used for storing the program to be executed i.e. instructions. The Data Memory on the other hand, is used for storing temporary variable data and intermediate results.

2)---c---Eight-bit CPUs use an 8-bit data bus and can therefore access 8 bits of data in a single machine instruction. The address bus is typically a double octet wide (i.e. 16-bit), due to practical and economical considerations. This implies a direct address space of only 64 kB on most 8-bit processors.

3)----d----The 8051 has 4 selectable banks of 8 addressable 8-bit registers, R0 to R7. This means that there are essentially 32 available general purpose registers, although only 8 (one bank) can be directly accessed at a time. To access the other banks, we need to change the current bank number in the flag register.

4)----c---- important register in the 8051 is the PC (program counter). The program counter points to the address of the next instruction to be executed.

5)-----c-----On-Chip Memory refers to any memory (Code, RAM, or other) that physically exists on the microcontroller itself.When programming, SFRs have the illusion of being Internal Memory. For example, if you want to write the value "1" to Internal RAM location 50 hex you would execute the instruction:MOV 50h,#01h

6)------c----2^16=64K