//Inclass Exercise (Stimulus Reaction Timer) //R. Traylor 9.3.2020 This is the final exercise on using the counter and timer modules. It was written by Justin Goins and modified slightly by me for class use. It is helpful to see how someone else writes embedded code and learn from it. Its a long piece of code with plenty of work involved. It is a fun bit of work as well and fun to play with. Download the required files: wget http://www.ece.orst.edu/~traylor/ece473/inclass_exercises/timers_and_counters/stim_timer/Makefile wget http://www.ece.orst.edu/~traylor/ece473/inclass_exercises/timers_and_counters/stim_timer/hd44780.c wget http://www.ece.orst.edu/~traylor/ece473/inclass_exercises/timers_and_counters/stim_timer/hd44780.h wget http://www.ece.orst.edu/~traylor/ece473/inclass_exercises/timers_and_counters/stim_timer/stim_timer_skel.c This code checks the speed of your visual and manual reaction times. After the program is started, you push a button. A random time later, an LED is turned on. You then hit one of the pushbuttons on the mega128 board as fast as you can. The time from LED illumination to pushbutton press is timed and the result is output to the LCD. If you try to cheat by holding down the button, it will catch you! Read through the stimulus reaction timer code and complete lines indicated with a "*" in column 1. This will take you some time. Previously, with groups of 3 working together, about 50% of the groups completed this exercise within 90 minutes. This is not a timed test, so take your time, understand what you are doing, and enjoy. You will need the knowledge you gain here again. I will give you a little more time again.