User Tools

Site Tools


clockdisplay

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
clockdisplay [2019/05/07 11:17]
hutch
clockdisplay [2019/10/03 13:53] (current)
hutch
Line 42: Line 42:
   * increment seconds   * increment seconds
   * decrement seconds   * decrement seconds
-  * show the clock keeping time at a rate that is 10x the usual rate to quickly view the display while it changes. clockDisplay_runTest() should terminate after it has been keeping time at the 10x clock rate for 10 actual seconds. You will need a delay function for this purpose and you can find one in ''​suportFiles/​utils.h'':​ ''​void utils_msDelay(long ms);''​ This function implements a busy-loop (a for-loop incrementing an integer) that is approximately 1 millisecond long if you pass in a value of 1. Just include the ''​supportFiles/​utils.h''​ file in your main.c file and you can call the function with an appropriate argument. Note that you can only use a busy-wait function when implementing the ''​clockDisplay_runTest()''​. ''​clockControl.c''​ must use states and counters (C variables that you increment) to implement delays as discussed in the text.+  * show the clock keeping time at a rate that is 10x the usual rate to quickly view the display while it changes. clockDisplay_runTest() should terminate after it has been keeping time at the 10x clock rate for 10 actual seconds. You will need a delay function for this purpose and you can find one in ''​supportFiles/​utils.h'':​ ''​void utils_msDelay(long ms);''​ This function implements a busy-loop (a for-loop incrementing an integer) that is approximately 1 millisecond long if you pass in a value of 1. Just include the ''​supportFiles/​utils.h''​ file in your main.c file and you can call the function with an appropriate argument. Note that you can only use a busy-wait function when implementing the ''​clockDisplay_runTest()''​. ''​clockControl.c''​ must use states and counters (C variables that you increment) to implement delays as discussed in the text.
  
 ---- ----
clockdisplay.txt ยท Last modified: 2019/10/03 13:53 by hutch