Question: Atmel Studio 7 . Analog Discovery Kit ATmega328P Xplained Mini Board (or replacement 328P development board) 7-segment Display Breakout Board Phase 1 First create a

Atmel Studio 7 . Analog Discovery Kit ATmega328P Xplained Mini Board (or replacement 328P development board) 7-segment Display Breakout Board Phase 1 First create a program that uses the timer to trigger an interrupt every 4ms. In the ISR toggle a bit and measure the frequency of the bit with an oscilloscope and compare to the desired frequency. After the ISR triggers at the correct frequency. Write a 16-bit variable from memory to four seven segment digits. Phase 2 Add the push button to your code for Phase 1. This means incorporating pin change interrupts to detect a press of the button. Every time the button is pressed, increment the value in NUM 2 DISP by one Remember that the pin change interrupt will fire twice for the press and release of the button, so only increment once per press and release. At the completion of phase two you will have the timer interrupts performing TDM, and the push button triggering an ISR Phase 3 Add the ADC to your code for Phase 3. In the ISR for the push button, start an ADC conversion, and when the interrupt for the ADC completing fires, update the value in NUM 2 DISP with this ADC value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
