ARM Assembly Flashcards

(27 cards)

1
Q

What makes a system useful in terms of I/O?

A

Input devices, output devices, and storage devices.

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

How can a CPU send data to an I/O device?

A

By using mechanisms like Memory-Mapped I/O (MMIO).

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

What is an exception in computing?

A

A special event that interrupts the normal execution of a program, allowing hardware to notify the CPU.

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

What is Memory-Mapped I/O (MMIO)?

A

A mechanism where hardware device registers are mapped to specific memory addresses, allowing the CPU to interact with devices using normal load (LDR) and store (STR) instructions.

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

How do CPU and hardware interact using MMIO?

A

By reading and writing to the memory locations mapped to hardware device registers.

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

What address range is typically used for MMIO operations?

A

0x40000000 to 0x60000000.

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

What does an interface define in a computer system?

A

How different hardware components communicate at the electrical or signal level.

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

What is a protocol in computing?

A

The exact form and meaning of signals exchanged between sender and receiver.

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

What are the two signal types in a protocol?

A

Command signals and data signals.

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

What is a handshake protocol?

A

A communication method where the receiver sends an acknowledgment or readiness signal to the sender.

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

What does the stack (SRAM) store?

A

Local variables and function arguments.

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

What does the heap store?

A

Data allocated during runtime.

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

What does the global data area store?

A

Global variables.

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

What does the text section store?

A

The machine language program.

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

What does a temperature sensor measure?

A

The die temperature over the device’s operating range.

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

What is the resolution of the temperature sensor?

A

0.25 degrees.

17
Q

How is a temperature reading started?

A

By triggering the START register.

18
Q

What event is generated when a temperature reading is ready?

A

The DATARDY event.

19
Q

Where is the temperature reading available?

A

In the TEMP register.

20
Q

How does polled I/O work?

A

The CPU continuously monitors a control/status register until a ‘data ready’ bit is set, then processes the data.

21
Q

What is a disadvantage of polled I/O?

A

It keeps the CPU busy, preventing it from doing other tasks.

22
Q

How does interrupt-driven I/O work?

A

Devices send asynchronous signals (interrupts) to the CPU when they have data to send, allowing the CPU to perform other tasks in the meantime.

23
Q

What is an interrupt?

A

An asynchronous signal sent by a device to request CPU attention.

24
Q

What is configurable about interrupt-driven I/O?

A

The granularity — whether to interrupt for every word or an entire batch.

25
What is a General-Purpose Input/Output (GPIO)?
A digital IO signal pin on a circuit board that can be controlled by software.
26
How are Microbit buttons connected to the ARM CPU?
Via GPIO pins.
27
What is the GPIOTE module used for?
To access GPIO pins using tasks and events, with each GPIOTE channel assigned to one pin.