




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Task 1:
Specify a menu system for an arbitrarily selected microcontroller application. Your menu system should
consists of at least
four levels
have a form of an unbalanced tree
-^
have at least
two items in each menu
allow going UP by pressing “*”, and going HOME (to the root node) by pressing “#” Each menu should start from the menu number Each item in the menu should start from two digits
first digit
= menu level
second digit
= position in a given menu
Specify each item of the menu in detail
Meals 0- Menu 0 Lunch^ Beverages 1-^
Sandwiches 1- Menu 2 Meals^ Salads 1-
Hot 1- Menu 3 Beverages^ Cold
Task 2:^ Write a general
program to display arbitrary menu
of this form. General:^ •^
menu system defined using data structures only; program independent of the exact shape and contents of the menu system • source of input and output can be easily changed^ with the minimum change in the contents of the program input:
keyboard, switch button, keypad
output:
monitor, LED 7-segment display, LCD display
-^ program portable among various C environments