Question: The only used BASYS 3 peripherals are LD 0 , LD 1 2 , LD 1 3 , LD 1 4 , LD 1 5
The only used BASYS peripherals are LD LD LD LD LD the Segment display, and the push buttons. Segment display usage: digits left are used for hours and digits right are used for minutes. There are two modes: adjust and clockalarm The default mode is the clockalarm In the clockalarm mode LD is OFF The nd decimal point from the left shall blink with a frequency of Hz To adjust the clock press BTNC to enter the adjust mode When the current time matches the set alarm time the LD blinks; hitting any button stops theblinking. In the adjust mode LD is ON The nd decimal point from the left does not blink. Pressing BTNC exits the adjust mode to the clockalarm mode. Pressing BTNL or BTNR selects what to adjust: time hour, time minute, alarm hour, andalarm minute in sequence LD LD LD and LD states reflect the parameter to be adjusted. For example, LD is ON while adjusting alarm hour; pressing BTNL changes the parameter to be adjusted to time minute, turns LD on and turns LD off. Pressing BTNU increments the selected parameter eg time hour Pressing BTND decrement the selected parameter eg time hour Please write me an algorithm pseudocode for this
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
