Embedded Systems Flashcards

(8 cards)

1
Q

What happens when a microcontroller boots?

A

1) reset signal is issued: starts the system clock
2) fetches reset vector
3) Startup code runs
4) Stack initialised
5) global/static variables initialised
6) main function is called

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

What is fetching the reset vector?

A

This is when the processor loads the address of the first instruction of the boot code

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

Why is clock frequency important?

A

Clock frequency determines how fast your program is executed
- but it uses higher power consumption

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

Purpose of an external crystal?

A

Provides accurate clock signal to a microcontroller
And provides accurate timing for
- communication
- timers
- clocks

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

SPI vs I2C

A

**SPI: **
- full duplex: transmit and receive data at the same time
- 4+ wires
- faster
- no addressing: does not have a mechanism to uniquely identify different devices

**I2C: **
- half duplex: can transmit and receive data but not at the same time
- 2 wires
- slower
- Addressing

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

What is UART used for?

A

Serial communication
- debug logs
- view sensor data

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

What is DMA?

A

DMA: direct memory access
- allows peripherals to transfer data without CPU involvement

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

Memory-mapped I/O

A

Way of interacting with hardware by writing to or reading from predefined addresses where those addresses control the peripheral

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