Although i'm only 15, my knowlege of micros has led me to be "contracted" by my dad's friend who owns a checmical company. They are extreamly adept at using analogue circuits to create liquid dispensers, etc. but wish to use a micro for a complex project.
Basically the system should have a 4x4 industial button matrix scanned by BASCOM. Each button will have several functions (text, numerical and mode) that are selected by the current device operation (some sections will require text, while others will need numbers, etc). I can't disclose the device's main functions, but I need to ask a question.
What is the best way to set up a menu system on the 16x2 LCD? It should have several functions that are selected with the left/right keys and entered with the "Enter" key. This is easy, but each function in the menu also has several sub-functions.
I was thinking to use a seperate subroutine for each menu that has a controller loop, looking for appropriate keypresses. This would add more complexity to the device's program, but I can't think of any other way.
Does anyone know of an easier method to implement a complex menu structure, using the smallest amount of memory possible? I need most of the flash memory for EEPROM accessing routines, and the liquid type ml/sec calculations which are extreamly complex.
- Dean :twisted: