User Tools

Site Tools


lab_4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
lab_4 [2018/05/18 11:08]
lab_4 [2019/04/10 10:36] (current)
hutch
Line 5: Line 5:
 In this lab you will implement a clock. Every modern device seems to include a clock, so we want one too. Your clock will look like this: In this lab you will implement a clock. Every modern device seems to include a clock, so we want one too. Your clock will look like this:
  
-{{::​clockphoto3.jpg?300|}}+{{youtube>​s8tV_iznYRU?rel=0&​allowfullscreen&​noborder&​560x315}}
  
-The middle numerical display shows the time in 12-hour format. The green triangles (arrows) above and below indicate touch regions above and below the clock display that allow you to set the time. The arrows that are above the display will increment the hours, minutes, and seconds of the clock, when touched. The arrows that are below the clock will decrement the hours, minutes, and seconds of the clock when touched. These clock-setting functions also have an auto-update rate that engages after the user presses the arrow for at least 0.5 seconds. Once the auto-update engages, it updates the time at a rate of 10 changes per second. For example, say the user presses the arrow below the minutes field for 0.5 seconds. After the initial 0.5 second delay, the hours will decrement automatically at a rate of 10 decrements per second. You have probably seen similar functionality in the clocks that you have used. View the [[http://​youtu.be/​s8tV_iznYRU|clock-lab demo]] on the BYU ECEN 330 channel to see the clock working in action.+The middle numerical display shows the time in 12-hour format. The green triangles (arrows) above and below indicate touch regions above and below the clock display that allow you to set the time. The arrows that are above the display will increment the hours, minutes, and seconds of the clock, when touched. The arrows that are below the clock will decrement the hours, minutes, and seconds of the clock when touched. These clock-setting functions also have an auto-update rate that engages after the user presses the arrow for at least 0.5 seconds. Once the auto-update engages, it updates the time at a rate of 10 changes per second. For example, say the user presses the arrow below the minutes field for 0.5 seconds. After the initial 0.5 second delay, the hours will decrement automatically at a rate of 10 decrements per second. You have probably seen similar functionality in the clocks that you have used. 
  
 The implementation of the lab will be separated into two major coding sections: display and control. This will provide good practice for just about any embedded-programming project as most embedded projects are usually best broken down this way, both for implementation and for debug/​verification. We will follow this general strategy throughout the semester. ​ The implementation of the lab will be separated into two major coding sections: display and control. This will provide good practice for just about any embedded-programming project as most embedded projects are usually best broken down this way, both for implementation and for debug/​verification. We will follow this general strategy throughout the semester. ​
lab_4.1526663331.txt.gz ยท Last modified: 2019/04/08 20:12 (external edit)