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 BASYS3 peripherals are LD0, LD12, LD13, LD14, LD15, the 7-Segment display, and the push buttons. 7-Segment display usage: 2 digits (left) are used for hours and 2 digits (right) are used for minutes. There are two modes: adjust and clock/alarm. The default mode is the clock/alarm In the clock/alarm mode LD0 is OFF The 2nd decimal point from the left shall blink with a frequency of 1Hz To adjust the clock press BTNC to enter the adjust mode When the current time matches the set alarm time the LD0 blinks; hitting any button stops theblinking. In the adjust mode LD0 is ON. The 2nd decimal point from the left does not blink. Pressing BTNC exits the adjust mode to the clock/alarm mode. Pressing BTNL or BTNR selects what to adjust: time hour, time minute, alarm hour, andalarm minute (in sequence). LD12, LD13, LD14, and LD15 states reflect the parameter to be adjusted. For example, LD14 is ON while adjusting alarm hour; pressing BTNL changes the parameter to be adjusted to time minute, turns LD13 on, and turns LD13 off. Pressing BTNU increments the selected parameter (e.g., time hour) Pressing BTND decrement the selected parameter (e.g., 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!