Tuesday, April 5, 2022

Test your knowledge in Arduino and ATmega328P

 


Arduino QUIZ# 1

1. As the AVR CPU has a 16-bit wide address bus, the ATmega328P microcontroller is known to be a 16-bit microcontroller.

A. True

B. False

2. The Program Counter register of the microcontroller ATmega328P [select the correct answer from the choices below]

A. is a 14-bit register which contains the address of the instruction stored in the program memory

B. is a 8-bit register which contains the address of the instruction stored in the data memory

C. is a 16-bit register which is part of the 32 general-purpose registers

D. is a 14-bit register, which contains the result of the ALU operation

3. The second phase in an AVR CPU cycle is called "Execution" and this phase is subdivided into [select the correct answer from the choices below]

A. ROF, ALU

B. ROF, IF, ALU

C. ALU, ROF and RWB

D. IF, ROF and RWB

4. Pipelining helps in implementing a certain amount of parallelism in the CPU execution and IF phases so that the RISC CPU could finish most of its instructions in a single clock cycle. [True/False]

A. True

B. False

5. The execution phase might involve ALU operation and read/write operation from/into general-purpose registers and/or data memory. [True/False] 

A. True

B. False

6. Boot Loader is a program that helps the application program image to get uploaded in the desired sections of the program memory. [True/False]

A. True

B. False 

7. As the Program Counter (PC) of ATmega328P is a 14-bit register, it allows access of 32KB of program memory organized in 16K x 16 bits. [True/False]

A. True

B. False 

8. An occurrence of an interrupt for the ATmega328P microcontroller is independent of ALU operation. [True/False]

A. True

B. False  

9. How many Pin Change Interrupt inputs are available on Arduino UNO?

A. 3

B. 10

C. 23

D. 16 

10. Which of the following statements is NOT correct about the polling method?

A. In polling method, the microcontroller keeps on checking an input repeatedly in a loop to determine its state of change

B. Polling method is not efficient to determine the state of change of an external digital input

C. On Arduino UNO, the analog inputs can be checked by polling method

D. In polling method of reading any change of a digital input, there is no chance of missing a transition 

Can you guess the answers correct? Answers to follow in the next post. 😉

No comments: