You are on page 1of 2

University of Souk-Ahras, Master of Software Engineering

Embedded and Real-time systems

Quiz 2
Consider the next picture of the Arduino Uno board along with the specifications of the
ATmega328:

The ATmega328 is an Atmel 8-bit AVR RISC-based microcontroller that combines 32 KB


ISP flash memory, 1 KB EEPROM, 2 KB SRAM, 23 general purpose I/O lines, 32 general
purpose working registers, three flexible timer/counters, internal and external interrupts,
serial programmable USART, a byte-oriented 2-wire serial interface, SPI serial port,
programmable watchdog timer, and five software selectable power saving modes, etc. The
device operates between 1.8-5.5 volts. The device achieves throughput approaching 1 MIPS
per MHz. [src: Wikipedia]
1. Locate the processor, the central memory, the second memory and the power input
on the board.

2. Can it run with a PSU (power supply unit) of 220v?

3. How much RAM does it have?

4. How much persistent storage does it have?

5. Does it have a parallel IO port? Which type? Where is on the board?

6. Does it have a serial ports? Which type? Where is on the board?

7. Does it support interrupts

8. Can it run Linux or Windows?

9. Can it connect to the Internet?

Consider the next C code that sends 1 byte to the serial port using the UART of the Atmel
AVR 8-bit micro-controller. UCSR0A & UDR0 are memory mapped registers of the UART.
while(!(UCSR0A & 0x20));
UDR0 = x; // x: variable of type uint8

10. Is this code performing an input or an output operation?

11. Is it polling or interrupt based?

12. If the UART speed is 115200 baud (1baud = 1bps) and the CPU runs at 20 MHz. How
many cycles will it take to transmit the ASCII string “Algeria is free”?

You might also like