thanks for the help. your code worked. I need 4 functions to be running in a series that would run every 200mSec. the 4 functions may call 3 to 4 sub functions. Can I use millis for it. example as done on pic
void loop(){
do{
while(!flag_200ms); // wait until 200mS has passed
flag_200ms = 0; // reset the 0.2 Second flag
power_calc(); // Run Voltage, Current and Wattage Calculations
//***LCD Line 2 ***//
display_amphour(2, 1, aH); // Remaining Battery Capacity
batt_percNbar(); // Calculate & Display Battery Percentage/Bar
if(charging_flag){
display_TimeRemaining(); // Charge-Discharge Time Remaining ///
}
else{
speed_calc();
}
}while(1);
}