I am referring to a micro controller based embedded C programming. Most of the time the processor i am working with has very limited time, where the number of tasks are more, for example
a. Analog data reading of several channels.
b. UART transmission.
c. Timer interrupts.
d. LCD display.
So, i need to keep a close watch on the timing that it does not overrun. Once the data is ready in the ADC i need to read it in the main etc. So, it is becoming extremely difficult to keep track of any issue if i overwrite the code.
Now my question before i start programming i want to create a design of all the functions, the variables where it shall be enabled and where it shall be disabled after read operation etc.
What are the tools i can use to make my design easy, even if i make a mistake i can identify the bug.
Please help.