Docsity

ECE 4175 Lab 6: Dual Processor Clock/Timer with Alarm, Lab Reports of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 4175 Lab 6 (and 7*)
Dual Processor clock/timer with alarm
(Multiple interrupts, multiple CPUs, and debugging)
Due Nov 25th, 2002
For this lab, implement a clock/timer function. The clock should show time of day, in hours and
minutes, on the first line of the LCD. The time of day should be settable by pressing a 4 digit
“time” on the keypad, and pressing the ‘#’ (aka ‘enter’) key. The second line of the display
should show the alarm timer. The “timer” is a count-down timer. When it reaches zero, the
buzzer should “buzz” until either a button is pressed or RPG is turned. The second button (SW2)
should “start” the count down timer. Pressing the button when it is buzzing should stop the
buzzer.
The count-down timer should be settable with the RPG. You will need to implement RPG
acceleration using a timer (ie, timer1 or timer0), so that turning the RPG quickly causes the time
to increment in minute steps rather than by second steps. The RPG should also allow the time to
be decremented when turned in the opposite direction.
This lab is a complex lab, and will count as (2) labs for the purposes of final grade computations.
Debugging techniques will be critical for successful completion of a reliable project. We will
present additional debugging techniques in upcoming class lectures.
Your Cover sheet should include the following
ECE 4175 RPK/RPY
Lab 5
Your Name
Due Nov 25
th, 2002
This program was written by (your name), with appropriate full notation
in the program comments where routines, algorithms or other code is used
from another source.
Signed _______________________________
Demonstration (all values to be checked at signoff by TA):
Time of day can be entered via the keyboard ____
Time of day is accurate (verify over 2 minutes) ____
RPG sets alarm count down time____
Turning the RPG quickly causes minutes to increment (acceleration) _____
Buzzer sounds when count-down reaches zero ______
Buzzer stops when RPG turned or button pressed _____
Program is robust ___
alarm can be made to sound multiple times for multiple countdowns
clock doesn’t change time unexpectedly
no stray or excess display on LCD
no keybounce effects
(note, LEDs may implement diagnostic/debugging features)
Complete Listing file included (TA must initial each page)
Sign-off Date ____________________
Signature ________________________ (Siplon/Mullenax/Abler)

Partial preview of the text

Download ECE 4175 Lab 6: Dual Processor Clock/Timer with Alarm and more Lab Reports Electrical and Electronics Engineering in PDF only on Docsity!

ECE 4175 Lab 6 (and 7*)

Dual Processor clock/timer with alarm

(Multiple interrupts, multiple CPUs, and debugging)

Due Nov 25

th

For this lab, implement a clock/timer function. The clock should show time of day, in hours and minutes, on the first line of the LCD. The time of day should be settable by pressing a 4 digit “time” on the keypad, and pressing the ‘#’ (aka ‘enter’) key. The second line of the display should show the alarm timer. The “timer” is a count-down timer. When it reaches zero, the buzzer should “buzz” until either a button is pressed or RPG is turned. The second button (SW2) should “start” the count down timer. Pressing the button when it is buzzing should stop the buzzer.

The count-down timer should be settable with the RPG. You will need to implement RPG acceleration using a timer (ie, timer1 or timer0), so that turning the RPG quickly causes the time to increment in minute steps rather than by second steps. The RPG should also allow the time to be decremented when turned in the opposite direction.

This lab is a complex lab, and will count as (2) labs for the purposes of final grade computations. Debugging techniques will be critical for successful completion of a reliable project. We will present additional debugging techniques in upcoming class lectures.

Your Cover sheet should include the following

ECE 4175 RPK/RPY Lab 5

Your Name

Due Nov 25th, 2002 This program was written by (your name), with appropriate full notation in the program comments where routines, algorithms or other code is used from another source. Signed _______________________________

Demonstration (all values to be checked at signoff by TA): Time of day can be entered via the keyboard ____ Time of day is accurate (verify over 2 minutes) ____ RPG sets alarm count down time____ Turning the RPG quickly causes minutes to increment (acceleration) _____ Buzzer sounds when count-down reaches zero ______ Buzzer stops when RPG turned or button pressed _____ Program is robust ___ alarm can be made to sound multiple times for multiple countdowns clock doesn’t change time unexpectedly no stray or excess display on LCD no keybounce effects (note, LEDs may implement diagnostic/debugging features) Complete Listing file included (TA must initial each page) Sign-off Date ____________________ Signature ________________________ (Siplon/Mullenax/Abler)