Lab 5 – Digital Clock Start date: Week #8 Due date: Week #9 REPORT IS DUE WEEK #9 1.

5
Lab 5 – Digital Clock Start date: Week #8 Due date: Week #9 REPORT IS DUE WEEK #9 1

Transcript of Lab 5 – Digital Clock Start date: Week #8 Due date: Week #9 REPORT IS DUE WEEK #9 1.

Page 1: Lab 5 – Digital Clock Start date: Week #8 Due date: Week #9 REPORT IS DUE WEEK #9 1.

Lab 5 – Digital Clock

Start date: Week #8Due date: Week #9

REPORT IS DUE WEEK #9

1

Page 2: Lab 5 – Digital Clock Start date: Week #8 Due date: Week #9 REPORT IS DUE WEEK #9 1.

RTI subsystem

Very simple systemLess complicated than OC because you do not need to control output pinsLess complicated means less choice for interrupt rates

2

Page 3: Lab 5 – Digital Clock Start date: Week #8 Due date: Week #9 REPORT IS DUE WEEK #9 1.

Registers

RTICTL Interrupt enable, rate select

RTIFLG flag

3

Page 4: Lab 5 – Digital Clock Start date: Week #8 Due date: Week #9 REPORT IS DUE WEEK #9 1.

Hints

Get as close as possible to the real time It won’t be perfect, but it will be quite close

Show calculationsLCD code is available on the web for lab 4Reminder: initialize to 12:59:59 and 0 ticksWe will check the clocks by starting them all together and checking them a certain time later (~10 mins)

4

Page 5: Lab 5 – Digital Clock Start date: Week #8 Due date: Week #9 REPORT IS DUE WEEK #9 1.

Academic Misconduct

Reports and demos are submitted as a group, but it is a SINGLE group effortYou may talk with other groups but sharing code or reports is NOT ALLOWEDCopying code/reports from previous years is also NOT ALLOWEDIf we find copying we are REQUIRED to report it

5