Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The AT 9 0 lab board is equipped with the DS 1 3 0 5 real - me clock. The clock can be programmed through

The AT90 lab board is equipped with the DS1305 real-me clock. The clock can be programmed
through the serial peripheral interface. It is connected by the pins PB0-3(SS, SCK, MOSI, MISO) and
PE4(INT4).
Objecve: Write a program to realize an advanced alarm clock using SPI. The program should have
the following features:
1. Buon 1:
Sets the alarm me for 15 seconds from now (overriding any previously set alarm).
2. Buon 2:
When pressed, the LED strip should flash with a period of 500 ms, indicang the
system is waing for user input.
The user must input two integers via the computers keyboard transferred through
UART serial port by Puy as per instrucon given in Lab 10. These integers represent
seconds.
Once the second integer is entered, the alarm me will start (overriding any
previously set alarm).
3. Buon 3:
Deacvates the current alarm.
4. Alarm Acvaon:
When the alarm me is reached, a beeping sound should be heard.
The beeping connues unl any of the buons is pressed (either deacvang the
alarm or seng a new one).
Hint: It may pay off to start simple, e.g., by first wring a program that just displays the me in
seconds on the LED strip.
A diagram may help you to structure your thoughts, but it is not required as part of this weeks lab
submission.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions