Data represntation Flashcards

(40 cards)

1
Q

What architecture family does the ATmega328P belong to?

A

The AVR 8-bit RISC microcontroller family.

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

What does RISC stand for?

A

Reduced Instruction Set Computer.

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

How many general-purpose registers does the AVR architecture have?

A

32 registers (R0–R31).

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

Why are AVR registers arranged in one register file?

A

To allow fast single-cycle arithmetic and logic operations.

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

What are the three 16-bit pointer registers?

A

X, Y, and Z.

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

What do pointer registers do?

A

Access data memory indirectly.

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

What memory organisation does the ATmega328P use?

A

Harvard architecture.

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

Where are program instructions stored?

A

Flash memory.

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

What memory stores variables and the stack?

A

SRAM.

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

What memory stores small non-volatile data?

A

EEPROM.

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

What is the width of the program counter?

A

16 bits.

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

What does the instruction decoder do?

A

Determines the CPU operations required for each instruction.

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

What does the ALU do?

A

Performs arithmetic and logic operations.

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

What does SREG contain?

A

Status flags (Carry, Zero, Negative, Overflow, Sign, Half-Carry, Bit-copy, Global Interrupt Enable).

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

What does the Global Interrupt Enable (I) flag do?

A

Enables or disables all maskable interrupts.

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

What does the Stack Pointer do?

A

Points to the top of the stack in SRAM.

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

What is the stack used for?

A

Return addresses, saved registers, local variables.

18
Q

What are I/O registers?

A

Memory-mapped registers used to configure peripherals.

19
Q

How wide is the ATmega328P data bus?

20
Q

How wide is the program memory address bus?

21
Q

What is memory-mapped I/O?

A

Assigning peripheral registers to addresses in the data memory space.

22
Q

What are the three registers for each I/O port?

A

DDRx, PORTx, PINx.

23
Q

What does DDRx control?

A

Pin direction (input 0, output 1).

24
Q

What does PORTx do?

A

Outputs logic values or enables pull-ups.

25
What does PINx read?
Logic levels on input pins.
26
What converts analogue voltages to digital values?
ADC.
27
What is the resolution of the ADC?
10-bit (0–1023).
28
What are timers used for?
Delays, counting events, PWM, timing operations.
29
Name the three timers.
Timer0 (8-bit), Timer1 (16-bit), Timer2 (8-bit).
30
What interface is used for serial communication?
USART.
31
What interface is used for synchronous serial communication?
SPI.
32
What interface is used for two-wire serial communication?
I2C (TWI).
33
What is a peripheral module?
A hardware block providing functions such as ADC, timers, serial interfaces.
34
What is the purpose of the clock system?
Provides timing signals for instruction execution and peripherals.
35
Name common clock sources.
Internal RC oscillator, external crystal, external clock input.
36
What does the prescaler do?
Divides the clock frequency to lower speeds.
37
Why use a lower clock?
To reduce power consumption.
38
What are power-saving modes for?
Reducing energy use when the CPU or modules are idle.
39
What module wakes the CPU from sleep?
Interrupt controller.
40
What are interrupts used for?
Letting the CPU respond immediately to hardware events.