Arduino platforms (week 2/3) Flashcards

1
Q

ATMega controllers-What is their memory organisations?

A

AVR architecture has two main memories:
CODE AND DATA MEMORY (HARVARD ARCHITECTURE)

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

ATMega controllers-What is the CODE memory?

A

The code memory (Flash memory) structure: 256k byte of memory. 128k locations. 16-bit stored in each location.

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

ATMega controllers-What is the DATA memory?

A

Data memory (RAM memory) has a structure with:
- 32 locations to store register file
-64 locations for standard I/O memory
-416 locations for extended I/O memory
-8192 locations for internal RAM

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

Memory organisation in ATMega controllers. How the code is executed?

A

We set the right bits in the right registers

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

What would look like a user Arduino code at low level ? what are the PIN REGISTERS ?

A

DDRx -> set corresponding pin, input=0, output=1
PORTx -> read/write value of the voltage on corresponding pin. (low /high)
PINx -> holds current state of input pin.Get current logical level

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

Why is there no need in reading an input pin?

A

Because it is directly copied in corresponding PORTx register.

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

How to write a digital output with registers ?

A

Set/clear the corresponding bit in the PORTx register.
State of corresponding physical pin will change accordingly.

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

What is the timing of a program?

A

The AVR CPU is driven by CPU clock, generated from selected clock for the chip.

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

What is the difference between coding in low-level and high-level languages?

A

In high-level code, it is hard to predict running time.
In low-level, every line corresponds to one instruction, highly accurate control of time.

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