4. Digital Systems
Microcontrollers — Quiz
Test your understanding of microcontrollers with 5 practice questions.
Practice Questions
Question 1
What is the purpose of the 'volatile' keyword when declaring a variable in embedded C for microcontroller programming?
Question 2
Which C expression correctly reads a 32-bit peripheral register located at address 0x40000000?
Question 3
In input capture mode, a microcontroller timer running at 1 MHz records two capture values of 125 and 1125. What is the time interval between these events?
Question 4
In a preemptive RTOS, what is 'priority inversion'?
Question 5
In SPI communication, what are the clock polarity (CPOL) and phase (CPHA) settings for Mode 0?
