Lab 05 - Stoplight

Lab 05 - Stoplight - BYU CS/ECEn 124 Stoplight Lab 1 Lab 5...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: BYU CS/ECEn 124 Stoplight Lab 1 Lab 5: Stoplight Lab Lab 5: Stoplight Program an assembly, callee-save, timer subroutine that executes (delays) in variable increments of 1/10 second. Use the timing subroutine to program timing delays for a simple traffic stoplight. • Turn on the green LED for 5 seconds. • Blink the green LED on and off at 1 second intervals for 6 seconds (3 offs and 3 ons). • Blink the green LED on and off at 0.2 second intervals for 4 seconds (10 offs and 10 ons). • And finally, turn the green LED off (and the red LED on) for 10 seconds. The total traffic light cycle time should be 25 seconds (plus or minus 1/2 second). Repeat the stoplight cycle indefinitely. BYU CS/ECEn 124 Stoplight Lab 2 Lab 5: Stoplight Lab Lab 5: Stoplight 5 1 1 1 1 1 1 1 1 1 1 10 Turn on the green LED for 5 seconds. Blink the green LED on and off at 1 second intervals for 6 seconds (3 offs and 3 ons)....
View Full Document

This document was uploaded on 03/20/2012.

Page1 / 4

Lab 05 - Stoplight - BYU CS/ECEn 124 Stoplight Lab 1 Lab 5...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online