Arduino and AtMega328 datasheet questions
Questions from
https://www.ini.uzh.ch/~tobi/wiki/doku.php?id=dig:lab_1_2014
. ATMEGA328P datasheet is at
https://www.ini.uzh.ch/~tobi/wiki/lib/exe/fetch.php?media=dig:atmega328p.pdf
You will not be graded on your answers, but you must do this exercise and try to answer these questions and we will compare and discuss the survey results in class.
Quiz must be completed by Friday 3.3.17 before class starts.
* Required
What is your name? (e.g. Pauli, Wolfgang) (You are certifying that it is really you who are answering this quiz)
*
Your answer
How much SRAM (static random access memory) does the ATmega328P have? This is the memory you can use for variables etc that can be quickly written and read.
*
Choose
1kB
2kB
16kB
32kB
Is there one instruction executed per clock cycle or does it require multiple clock cycles per instruction?
*
1 clock cycle
Mostly 1, some can take 2
Mostly 1, some can take 2 or even 3
Required
In what section of the datasheet did you find the information for the previous question?
*
2
6
30
31
What is the maximum system clock frequency?
*
figure 28-1
4MHz
8MHz
16MHz
20MHz
And how does max clock frequency depend on supply voltage?
*
Linearly
Expoentially
Doesn't depend
Depends more on temperature
What is the maximum power consumption of ATmega328P at clock frequency of 8MHz with 5V supply, with no peripherals enabled?
*
section 28.2.4
Choose
1mW
4mW
25mW
45mW
100mW
What is the closest maximum sleep mode current consumption in power-save mode with 32kHz oscillator enabled at VCC=3V?
*
Choose
3uA
30uA
300uA
1mA
What is the start-up time in oscillator cycles from sleep mode, when using external oscillator?
*
see section 8.2.2
1
3
6
16
16k
32k
What is the “initialisation time” for the analog to digital converter (ADC), in ADC clock cycles?
Choose
1 system clock cycle
1 ADC clock cycle
13 ADC clock cycles
25 ADC clock cycles
What is the ADC current consumption at VCC=3.3V?
Choose
50uA
100uA
200uA
400uA
1mA
What is the maximum pulse width modulation (PWM) output frequency using 8-bit timer/counter and 16Mhz system clock
*
see page 101 of datasheet
Choose
16MHz
1MHz
127kHz
62.5kHz
1kHz
What is the maximum PWM output frequency using 16MHz system clock and 50% duty cycle with 16-bit timer/counter?
*
see page 128
Choose
16MHz
8MHz
62.5kHz
32kHz
What is the minimum value of the pull-up resistor on the GPIO (general purpose input-output pins) (when enabled)?
*
This pullup resistor pulls the input voltage high when nothing external is pulling down, simplifying PCB designs and allowing "wired-OR" connections to multiple sources.
Choose
1kOhm
2kOhm
10kOhm
20kOhm
50kOhm
100kOhm
Does the ATmega family have floating point hardware support?
*
Choose
Yes
No
Does the ATmega328P have a hardware multiplier?
*
Choose
Yes
No
Does the Atmega have DSP (Digital Signal Processing) instructions for multiplying, accumulating, and incrementing a pointer in one instruction?
*
(very useful for accelerating filtering/dot product operations)
Choose
Yes
No
How can you debug your code in Arduino Sketch environment?
*
UART (debug print)
LEDs
Pins + Oscilloscope
Make up a debug commands (for memory dumping etc.)
Other:
Required
What is the size of an "int" in Arduino Sketch?
*
8 bits
16 bits
32 bits
Are ints signed or unsigned?
*
signed
unsigned
Option 3
What is the best way to declare a constant value in your Sketch program?
*
#define N 100
const int N=100;
Use a hardcoded number in your code
Approximately what is the largest possible volatile 32-bit variable array that you could allocate in SRAM, assuming that you need no other SRAM memory?
*
32k
8k
2k
1k
512
256
128
Submit
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google.
Report Abuse
-
Terms of Service
-
Privacy Policy
Forms