This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to write this program?

Hi everybody,

Suppose that we have a micocontroller and some inputs and outputs (digital and analog and serial) as my picture.We have a process and micro is checking all inputs and outputs and answering to all of them.
The question is this.I want to write value in EEEROM of micro by pressing Set button and increasing and decreasing value by up and down buttons Withou disordering the rest of process of micro.In fact micro is doing it's process but also gives us capability for writing value in EEEROM.(Similar to paralell processing).
Also i don't want to use another micro.
How is it possible?

  • 1) What picture?

    2) How many other forums has this been cross-posted to?

    3) If you want to simulate parallell processing you do what a processor is good at: quickly jump between many different jobs, at a high enough speed that you can't see the switching.

    So, just start designing a solution that checks each job in sequence. Any button pressed? Any other value to read from any inputs/ADC? Any outputs to update? Time to write data to EEPROM? Rinse and repeat.