ECE 541: Microprocessor and Embedded Systems Design Flashcards

1
Q

What is an embedded system?

A

Specialized computing systems designed to perform specific dedicated functions within a larger mechanical or electrical system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the primary component of an embedded system?

A

Processor/CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Name two types of memory used in embedded systems.

A
  • RAM (volatile memory)
  • ROM/Flash memory (non-volatile)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the role of input devices in an embedded system?

A

Collect data or receive commands.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

List two characteristics of embedded systems.

A
  • Real-time Operation
  • Low Power Consumption
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Give an example of an application for embedded systems in consumer electronics.

A

Smartphones

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the main difference between the Intel 8051 and 8031 microcontrollers?

A

The amount of on-chip memory; 8051 has ROM, while 8031 requires external ROM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What type of CPU architecture do the Intel 8051 and 8031 microcontrollers use?

A

8-bit CPU architecture

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

List the types of on-chip memory in the 8051 microcontroller.

A
  • 128 bytes of RAM
  • 4 KB of ROM
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the pin functions of VCC and GND in the 8051 microcontroller?

A

Power supply pins.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does ALE stand for, and what is its function?

A

Address Latch Enable; used to latch the address into external latch for interfacing with external memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Fill in the blank: The 8051 uses a _______ architecture, which means it separates program memory and data memory.

A

Harvard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the purpose of the stack pointer register in the 8051?

A

To point to the stack section of RAM for temporary storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How many register banks are available in the 8051, and how many registers does each bank contain?

A

4 register banks, each containing 8 registers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

True or False: The default register bank for the 8051 when powered up is register bank 1.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the initial value of the stack pointer (SP) register in the 8051 after initialization?

A

07H

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What types of devices can be interfaced with the I/O ports of the 8051 microcontroller?

A
  • Sensors
  • Other systems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What type of communication does the 8051 support for serial communication?

A

UART (Universal Asynchronous Receiver-Transmitter)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

List two applications of the Intel 8051 microcontroller.

A
  • Industrial Automation
  • Automotive Electronics
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What does the PSW register control in the 8051 microcontroller?

A

The selection of the desired register bank.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Fill in the blank: The 8051 microcontroller has a _______ address bus, allowing it to address up to 64 KB of memory.

A

16-bit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What are Special Function Registers (SFRs) in the context of the 8051 microcontroller?

A

Memory-mapped registers that control the functioning of various peripherals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

How is the memory in the 8051 divided?

A
  • Code Memory (ROM)
  • Data Memory (RAM)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is the register used to access the stack in the 8051?

A

Stack pointer register (SP)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What is the initial value of the stack pointer (SP) in the 8051 after initialization?

A

07H

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

What does the operation of storing a CPU register in the stack called?

A

PUSH

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

What is the process of retrieving contents from the stack back into a CPU register called?

A

POP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

What is the address range for Code Memory (ROM) in the 8051?

A

0000H to 0FFFH (4 KB)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

What is the address range for Data Memory (RAM) in the 8051?

A

00H to 7FH (128 bytes)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

What are Special Function Registers (SFRs) in the 8051?

A

Mapped to specific memory locations for controlling peripherals and special functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

What type of memory is the General-Purpose RAM in the 8051?

A

Volatile memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

What is the main use of the 128 bytes of RAM in the 8051?

A

Workspace for the processor during program execution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

Which addressing mode allows accessing memory locations directly using their physical addresses?

A

Direct Addressing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

What is the key feature of Indirect Addressing in the 8051?

A

Using pointers to access memory indirectly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

In Immediate Addressing mode, how is data presented in instructions?

A

Data is given directly to instructions with a special character ‘#

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

What is an example of an instruction in Immediate Addressing mode?

A

MOV A, #16H

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

What does Register Addressing mode involve?

A

Moving data from one register to another without erasing data from the first register

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

What is the syntax for Direct Addressing mode in the 8051?

A

MOV A, 25H

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

What is the purpose of the MOVX instruction?

A

Used for external RAM access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

What does the Index Addressing mode do in the 8051?

A

Uses the sum of two registers to access data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

What is the function of the assembler in the context of the 8051?

A

Translates assembly language code into machine code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

What does the directive ORG do in assembly language?

A

Specifies the origin (starting) address of the program in memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

What is the purpose of the END directive?

A

Marks the end of the assembly code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

What does the EQU directive do?

A

Defines a constant value for a label

45
Q

What is the purpose of the DB directive?

A

Reserves memory space and initializes it with byte values

46
Q

What does the MOV instruction do?

A

Moves data from one location to another

47
Q

What is the purpose of the CALL instruction in assembly language?

A

Calls a subroutine

48
Q

What does the RET instruction do in assembly language?

A

Returns from a subroutine

49
Q

What is the function of the SJMP instruction?

A

Unconditional short jump to a label

50
Q

What does the INC instruction do?

A

Increments the content of a register

51
Q

In the context of the 8051, what does the ANL instruction perform?

A

Bitwise AND operation

52
Q

What is the significance of comments in assembly language?

A

Used to explain the code and ignored by the assembler

53
Q

What type of instructions are included in the 8051 assembly language?

A

Data Movement, Arithmetic, Logical, Jump and Branch, Loop, Subroutine, Bit-Level, Stack, and I/O Port Instructions

54
Q

What is the purpose of the XDATA syntax in the 8051 microcontroller?

A

Declares variables to be stored in the external RAM (extended data memory).

55
Q

What does the assembler do in the assembly process for the 8051 microcontroller?

A

Translates assembly language code into machine code (binary) that the 8051 microcontrollers can execute.

56
Q

What is an Assembly File in the context of the 8051 microcontroller?

A

The source code written in assembly language with a file extension like .asm.

57
Q

What is the purpose of syntax checking by the assembler?

A

Ensures that the assembly code follows the correct syntax for the 8051 architectures.

58
Q

What is Symbol Resolution in the assembly process?

A

Resolves symbols and assigns memory addresses to variables and labels.

59
Q

What command is used to assemble the code using an assembler in 8051?

A

assembler8051 example.asm -o example.obj

60
Q

What is the function of a Linker in the 8051 microcontroller?

A

Combines multiple object files, resolves addresses, and creates the final executable file.

61
Q

What does the Linker Script specify?

A

The memory layout and segment placement for the final executable.

62
Q

What is the command to link an object file in 8051?

A

linker8051 example.obj -o example.hex

63
Q

What is the purpose of the hex file generated by the linker?

A

It can be directly programmed into the 8051 microcontroller’s memory.

64
Q

What does the ORG directive do in an assembly program?

A

Specifies the starting address for the program.

65
Q

What is the result of the assembly code ‘ADD A, B’ in the example program?

A

The accumulator A now holds the sum of the values in A and B.

66
Q

What is the role of timers in the 8051 microcontroller?

A

Used for various timing and counting applications.

67
Q

What are the timer modes available in the 8051 microcontroller?

A

16-bit mode and 8-bit mode.

68
Q

What is the purpose of the UART in the 8051 microcontroller?

A

Provides serial communication.

69
Q

What does the baud rate configure in serial communication?

A

The speed of data transmission.

70
Q

What types of devices can be interfaced with the 8051 microcontroller?

A

External memory, keypad, seven-segment LED display, ADC, DAC, and input/output port expansion.

71
Q

What is the function of an ADC?

A

Converts analog signals into digital values.

72
Q

What is the purpose of a DAC?

A

Converts digital values into analog signals.

73
Q

What is the function of a Microcontroller Development Board?

A

Includes the microcontroller, power supply, and crystal oscillator for prototyping.

74
Q

What is the Motorola M6811 microcontroller?

A

An 8-bit microcontroller widely used in embedded systems and control applications.

75
Q

What is the clock speed of the M6811 microcontroller?

A

Varies; different versions may have different clock frequencies.

76
Q

What is the significance of VCC and GND pins in the M6811 microcontroller?

A

VCC receives the positive power supply voltage, and GND is the ground reference.

77
Q

What does the RESET pin do in the M6811 microcontroller?

A

Resets the microcontroller and starts executing code from a predefined location.

78
Q

What is the function of the Data Direction Register (DDR)?

A

Configures the direction of each I/O pin.

79
Q

What does a ‘1’ bit in the DDR indicate?

A

The corresponding pin is configured as an output.

80
Q

What are special function pins in the M6811 microcontroller used for?

A

Dedicated functions like serial communication or clock input.

81
Q

What types of memory are integrated into the M68HC11 microcontroller?

A

Program memory (ROM) and data memory (RAM).

82
Q

What is the purpose of the Data Register (DR) in the M6811?

A

Holds the actual data for the I/O pins when configured as outputs.

83
Q

Fill in the blank: The M6811 microcontroller is based on the _______ architecture.

A

[Motorola 6800 CPU]

84
Q

True or False: The M6811 microcontroller is capable of interfacing with external memory.

85
Q

What does the instruction set of the M6811 include?

A

Enhancements and additional instructions tailored for embedded control applications.

86
Q

What types of memory are typically integrated in the M68HC11 microcontroller?

A

Program Memory (ROM), Data Memory (RAM), Stack Memory, Bit-Addressable Memory, Registers, Memory-Mapped I/O, External Memory Interface, Memory Space Mapping, Memory Decoding

Each type serves a specific purpose in program execution and data storage.

87
Q

What is the purpose of Program Memory (ROM) in the M68HC11?

A

Stores machine code instructions and is non-volatile

Retains contents even when power is turned off.

88
Q

What is the function of Data Memory (RAM) in the M68HC11?

A

Used for temporary storage of variables and data during program execution

Volatile memory, contents lost when power is turned off.

89
Q

What is Stack Memory used for in the M68HC11?

A

Stores subroutine return addresses, local variables, and temporary data

Crucial for managing function calls and interrupts.

90
Q

What is Bit-Addressable Memory in the M68HC11?

A

Regions of RAM that allow individual bits within a byte to be directly addressed and manipulated

Useful for setting or clearing specific flags.

91
Q

What are Registers in the M68HC11?

A

Storage locations within the microcontroller for arithmetic and data manipulation

Includes general-purpose registers and special function registers (SFRs).

92
Q

What does Memory-Mapped I/O allow in the M68HC11?

A

Enables communication with peripherals through specific memory addresses

Facilitates interaction with devices like timers and communication modules.

93
Q

What is the role of the External Memory Interface in the M68HC11?

A

Supports interfacing with external memory devices such as additional ROM or RAM

Extends available storage space for program code or data.

94
Q

Define Memory Space Mapping in the context of the M68HC11.

A

Organization of the memory space into different regions for specific purposes

Includes program memory, data memory, and I/O space.

95
Q

What is the purpose of Memory Decoding in the M68HC11?

A

Determines which memory region corresponds to a specific address during memory access

Helps route data and control signals to the correct memory location.

96
Q

What is the instruction set architecture (ISA) of the M6811?

A

Defines the set of instructions the processor can execute, including data movement, arithmetic, and control flow

Assembly language programming corresponds directly to these instructions.

97
Q

What are Data Movement Instructions in the M6811?

A

LDAA, LDAB, STAA, STAB, LDA, STA

Instructions for loading and storing values in accumulators.

98
Q

What are Arithmetic and Logic Instructions in the M6811?

A

ADDA, ADDB, SUBA, SUBB, ANDA, ANDB, ORA, ORB, EORA, EORB

Instructions for performing arithmetic and logical operations.

99
Q

What is the function of Branching and Control Flow Instructions in the M6811?

A

Control the flow of execution in a program with instructions like BRA, BEQ, BNE

Enables conditional and unconditional branching.

100
Q

What does the Hello World program for M6811 do?

A

Stores ASCII codes for ‘H’, ‘E’, ‘L’, ‘L’, ‘O’ in memory starting at address $1000

Uses software interrupt to halt the program.

101
Q

Describe the architecture of PIC microcontrollers.

A

Typically have Harvard architecture with separate program and data memory spaces

Allows simultaneous access to both memory types.

102
Q

What is the purpose of Program Memory (Flash) in PIC microcontrollers?

A

Stores the program code and is non-volatile

Code persists even when power is removed.

103
Q

What does EEPROM stand for and what is its use in PIC microcontrollers?

A

Electrically Erasable Programmable Read-Only Memory, used for non-volatile data storage

Data may need to be preserved across power cycles.

104
Q

What is the significance of the instruction set in PIC microcontrollers?

A

Follows RISC architecture with a small, optimized set of instructions for fast execution

Includes arithmetic, logic operations, and control flow instructions.

105
Q

List some common peripherals found in PIC microcontrollers.

A
  • Timers
  • Counters
  • USART
  • SPI
  • I2C
  • ADC

These peripherals enhance interfacing capabilities.

106
Q

What are the selection criteria for choosing a microcontroller?

A
  • Application Requirements
  • Power Consumption
  • Peripherals and Interfaces
  • Cost
  • Development Tools and Support
  • Package and Size

Considerations vary based on specific project needs.

107
Q

What advantages do PIC microcontrollers offer?

A
  • Versatility
  • Rich Peripheral Set
  • Low Power Options
  • Development Tools
  • Community Support

Suitable for a wide range of applications.

108
Q

What distinguishes low-end and high-performance PIC microcontrollers?

A
  • Low-End: PIC10, PIC12 - Simple control applications, limited resources
  • High-Performance: PIC18, PIC32 - Complex applications, advanced features

Different families are designed for varying application requirements.