Embedded Software Engineer Question: Download Embedded Software Engineer PDF

Please write a program to show the functionality of Power-save super loop?

Tweet Share WhatsApp

Answer:

To check the loop time of the program the power-save super loop is used. If the average loop time of the program is 1ms, and it requires only few instructions to be checked every second the program will save the state and build a delay that will be caused to read the input on every loop and it saves lot of energy or the power that needs to be used. The function that is required to be performed to show the functionality is:
Main_Function()
Function
{
Initialization();
Do_Forever
{
Check_Status();
Do_Calculations();
Output_Response();
Delay_For_Next_Loop();
}
}

Download Embedded Software Engineer PDF Read All 100 Embedded Software Engineer Questions
Previous QuestionNext Question
Tell me how does the interrupts handle by using the threads?Tell me what is interrupt latency? How can you reduce it?