Question: Using Atmega328ps perhipherals write a program that will read from the ADC channel 0, and display the decimal value of the ADCH:ADCL registers on the

Using Atmega328ps perhipherals write a program that will read from the ADC channel 0, and display the decimal value of the ADCH:ADCL registers on the seven segment display when a push button is pressed. You are to write the code using C, no assembly. All activities should be interupt driven. Use timers to trigger an interupt to update the seven segment display. Use a Pin Change interupt to monitor the push button and intiate a ADC reading upon detecting a button press. Use the ADC complete interupt to update the value to be displayed in memory, that is to be read in from your Analog Discovery Kit. To show that you are using interupts, each time the button is pressed toggle pin B4. This will allow you to trigger the logic analyzer on a button press.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!