Memory Mapped Input/Output Flashcards

1
Q

Memory contains

A

flash memory
RAM
other flash/RAM

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

what connects the processsing unit and memory device

A

the memory bus

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

how many memory buses are there

A

one, this means that the processing unit can only communicate with one memory device ata time

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

what are the three parts of the memory bus

A

control bus
data bus
address bus

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

what does the control bus do

A

controls communication between the processing unit and memory device

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

what does the address bus do

A

carries the address of the location we want to store the data in/load the data from

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

how many electronic connections are in the address bus, why

A

32 electronic connections

1 for each bit of the address were looking to store.load

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

can memory devices overlap when assigned space in memory

A

no

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

what does GPIO stand for

A

general purpose input/output

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

do microcontrollers include both microprocessors and peripherals

A

yes, system on chip

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

what instructions are used to communicate between peripherals and processor

A

ldr and str

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

some of the peripherals on our microprocessor include

A
flash memory
RAM
USB
Ethernet
Timers
GPIO
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what is the sysTick timer

A

a timer integrated into the ARM coretx m4

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

what value does the systick timer begin counting down from

A

the value that is loaded into it

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

when the systick timer reaches 0 what happens

A

it resets and restarts counting down again from the load value

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

why does the sysTick timer count down in miliseconds and not seconds

A

it only takes in a 24 bit value and this isn’t big enough for 1 second

17
Q

what does CSR stand for

A

control and status register

18
Q

the bit 0 is the CSR is used to what

A

enable and disable the timer

19
Q

bit 1 in the CSR is used for what

A

enable and disable the timer interrupt

20
Q

bit 2 in the CSR is used for wha

A

clock source

21
Q

bit 3 in the CSR is used for what

A

reads as 1 if the timer has reached 0 since the last time we read it

when read itll be set to 0

22
Q

how to reset teh internal counter to 0

A

write any value to the value register

23
Q

what does the value register do

A

timer counter

24
Q

what is polling

A

repeatedly reading the value in the systick timer until it reaches 0 and then stopping the subroutine

25
what does the syntax 0b1<<13 mean
binary shifted left by 13 bits makes a 1 in position 13 and 0s everywhere else
26
what is an interrupt
they interrupt the current program when some external device tells it to, beginning another program, executing it and returning to the current program once complete
27
what are exceptions
events outside the normal flow of the program, can occur at unpredictable times
28
examples of exceptions
processor fetches the next address from memory but its not a valid instruction timer completes counting down trying str to a ROM address
29
what is a non maskable interrupts
the system cannot configure itself to ignore these interrupts
30
what is a hard fault
arise during the handling of another exception
31
when do memManage and bus faults occur
when trying to load and store from memory and something goes wrong
32
what is a usage fault
trying to run an execution that cannot be run
33
how to hide the side effects of an exception subroutine
acknowledge it at the end of the subroutine
34
how do exceptions raised know which exception subroutine to go to
using the exception vector table
35
what does FTSR stand for
falling trigger selection register