Answered step by step
Verified Expert Solution
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 AT lab board is equipped with the DS realme clock. The clock can be programmed
through the serial peripheral interface. It is connected by the pins PBSS SCK MOSI, MISO and
PEINT
Objecve: Write a program to realize an advanced alarm clock using SPI. The program should have
the following features:
Buon :
Sets the alarm me for seconds from now overriding any previously set alarm
Buon :
When pressed, the LED strip should flash with a period of 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 These integers represent
seconds.
Once the second integer is entered, the alarm me will start overriding any
previously set alarm
Buon :
Deacvates the current alarm.
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, eg 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started