Question: Question 1 Timer, counter, interrupt and polling can be programmed in Atmega328 microcontroller in both assembly language and C language. (a) Create a scenario where
Question 1 Timer, counter, interrupt and polling can be programmed in Atmega328 microcontroller in both assembly language and C language. (a) Create a scenario where timer and counter are used differently. (5 marks) (b) Create a scenario where interrupt and polling are used differently. (5 marks) (c) Discuss the concept of prescaling in timer clock selection (4 marks) (d) A control application requires the signals to be sampled at 0.2 us while another application requires the signals to sampled at 10 ps. Plan and justify suitable prescaling settings for the microcontroller for both applications
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
