Lecture 2 Flashcards

1
Q

Describe the hardware interrupts

A

The hardware interrupt occurs by the interrupt request signal from peripheral circuits.
The hardware interrupts has an external interrupt and internal interrupts

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

Describe the software interrrupts

A

the software interrupt occurs by executing a dedicated instruction.

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

What is the main difference between maskable and non maskable interrupt

A

Maskable interrupt is a hardware interrupt that can be disabled or ignored by the instructions of CPU
While;
A non-maskable interrupt is a hardware interrupt that cannot be disabled or ignored by the instructions of CPU.

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

Mention other comparisions between maskable and non maskable interrupts

A
  1. NMI cannot be masked off or made pending while MI can be masked off or made pending
  2. NMI disables all maskable interrupts while MI does not disables all non maskable interrupts
  3. NMI is used or emergency purposes like power failure or smoke detector while the MI is used to interface peripherals
  4. NMI has higher priority while MI has lower prority
  5. NMI is vectored while MI is vectored or non vectored
  6. NMI response time is low while MI response time is high
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a watchdog timer>

A

A watchdog timer (WDT) isa timer that monitors microcontroller unit (MCU) programs to see if they are out of control or have stopped operating.

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

Describe instruction formats

A

Instruction formats provide computer guidelines to perform tasks. Basically instruction formats consist of two units of information.

The operations to be performed (such as ADD, LOAD, MOVE etc. ) and

the address of the operand (data that is to be operated upon).

OPERATION||OPERAND ADDRESS

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

Mention the two enconding formats that are presents in most computer architectures

A

Fixed lenghts: very computer instruction is represented using the same number of bytes,
Variable Lenght format

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

Mention the most common instructinon formats

A

Zero operand
OPCODE only

One operand (usually a memory address)
OPCODE + 1 Address

Two operands (usually registers, or one register and one memory address)
OPCODE + 2 Addresses

Three operands (usually registers, or combinations of registers and memory)
OPCODE + 3 Addresses

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

define address modes

A

Addressing mode refers to the mechanism employed for specifying operands.

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

Mention types of addressing modes

A

Direct
Indirect
Indexed
Relative
Intermediate

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

Describe Direct

A

Only one memory reference is needed and the operand’s address is contained in the instruction.

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

Describe Indirect

A

Two memory references are needed.

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

Describe indexed

A

A constant is added to the contents of a register known as the index register in order to determine the operand’s address

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

Describe relative

A

The program counter (PC) takes the place of the index register, otherwise it is identical to indexed addressing.

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

Describe Immediate

A

The operand’s value is directly specified in the instruction itself.

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

What is memory instruction

A

Memory instruction are set of instruction used to read from or write to memory

17
Q

Mention and describe

A

1 LOAD Fetch data from memory and loads to a register or memory
2 STORE Write data into memory from a register (memory location)
3 MOVE Transfer or copy data from one memory location to another
4 PUSH Store data from a register to stack
5 POP Retrieve data from stack into a register
6 COMPARE (CMP) Compare two values stored in a memory or register

18
Q

What are I/O instructions

A

They are used to transfer data between the computer and peripheral devices
The two basic I/O instructions used are the
INPUT and
OUTPUT instructions.

19
Q

Describe Common I/O instructions

A

1 INPUT Fetch data from memory and loads to a register or memory
2 OUTPUT Write data into memory from a register (memory location)
3 CONTROL (CTRL) Transfer or copy data from one memory location to another

20
Q
A